Page tree
Skip to end of metadata
Go to start of metadata

Tests covering analog sensors data provided by ipmi plugin

Test Environment details:

  • Bare Metal,  Ubuntu 16.04.1 LTS
  • Kernel version: 4.4.0-43-generic

Repo/branch used:

  • dpdk_xstats_collectd/feat_ipmi_analog

Tests precondition:

Install ipmitool: 

  • modprobe ipmi_msghandler
  • modprobe ipmi_si 
  • modprobe ipmi_ssif
  • modprobe ipmi_devintf 
  • echo ipmi_si >> /etc/modprobe 
  • echo ipmi_devintf >> /etc/modprobe 
  • apt-get install ipmitool

ipmi configuration:

  • Open collectd config file: vim /install_folder/etc/collectd.conf
  • Uncomment  LoadPlugin "ipmi" and Plugin ipmi tags.

Pre-installed software: 

Test cases covering operation of IPMI collectd plugin in relation to analog sensors

#

High level scenario description

Steps to be executed

Expected Result

Test result

Comments

1

Positive scenario ipmi plugin configuration.

1. Enable ipmi plugin in collectd.conf. 

Collectd ipmi plugin operates correctly with applied positive plugin config. Collectd service exits normally on service stop.

Pass

 

2. Perform change of plugin parameter in correct way.

Collectd ipmi plugin operates correctly after plugin config change. Collectd service exits normally on service stop.

 

2

Negative scenario ipmi plugin configuration.

1. Enable mcelog and snmp-agent plugins in collectd.conf.

2. Perform change of plugin parameter in correct way.

Error message is logged against collectd ipmi plugin.

Collectd service starts, runs and exits normally, only if no service affecting misconfiguration occured.

Else collectd fails to start, with rc=1.

Pass

 

3

Verify that plugin run occurs according to set Interval value.

1. Comment out collectd.conf entries setting global and plugin specific Interval parameter. Run collectd.

Plugin run occurs according to default Interval (10 seconds).

Pass

 

2. Set up global Interval value to 5 seconds.

Plugin run occurs every 5 seconds, according to new global Interval value.

 

3. Keep global Interval set to 5 seconds, and set ipmi specific Interval parameter to 3 seconds.

Plugin run occurs every 3 seconds, according to plugin specific Interval value.

 

4

Verify that ipmi plugin run does not occur if it is disabled in conf file.

1. Comment out"LoadPlugin" entry of ipmi plugin. Keep ipmi config section uncommented. Enable and configure write plugin. Run collectd.

Verify that ipmi plugin does not dispatch any data to write plugin.

Pass

 

2. Uncomment "LoadPlugin" section of ipmi plugin. Comment out config section. Keep write plugin enabled and configured. Run collectd.

Verify that ipmi plugin does not dispatch any data to write plugin.

 

3. Comment out all configs of ipmi plugin. Keep write plugin enabled and configured. Run collectd.

Verify that ipmi plugin does not dispatch any data to write plugin.

 

4. Uncomment all configs related to ipmi plugin. Run collectd.

Verify that ipmi plugin starts dispatching data.

 

5

Verify that same amount of data is received from ipmitool and collectd-ipmi plugin.

1. Run collectd with enabled ipmi and some write plugin.

Collectd plugins initialize as expected.

Pass

 

2. Wait for two periods of Interval value, to collect dispatched sensors data.

Verify that sensors data is received from ipmi plugin.

 

3. Using ipmitool or similar ones (e.g. ipmi-sensors) get a list of available sensors on the SUT. Compare this data with sensors list provided by collectd-ipmi plugin.

Verify that collectd-ipmi plugin provides a subset of data received by ipmitool.

Verify that each sensor entry belongs to proper category.

 

6

Verify that ipmi plugin reports only analog sensors.

1. Run collectd with enabled ipmi and some write plugin.

Collectd plugins initialize as expected.

Pass

 

2. Wait for two periods of Interval value to collect dispatched sensors data.

Verify that sensors data is received from ipmi plugin.

 

3. Using ipmitool or similar ones (e.g. ipmi-sensors) get a list of only analog sensors (filter standard data) on the SUT. 

Verify that collectd-ipmi plugin dispatches only analog sensors data.

 

 

  • No labels