Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


#

High level scenario description

Steps to be executed

Expected result

Test result

Comments

1

Check collectd installation procedure with logparser plugin enabled

  1. Clone the collectd repo
  2. cd ~/collectd
  3. ./build.sh
  4. ./configure
  5. make -j && make install
  6. Enable logparser configurations
  7. Start Collectd

collectd starts without any errors/interruptions 

Pass


2Check if plugin dispatched notification for injected pcie corrected error
  1. Clone the collectd repo
  2. cd ~/collectd
  3. ./build.sh
  4. ./configure
  5. make -j && make install
  6. Enable logparser configurations
  7. Start Collectd
  8. Inject a pcie corrected error
Notification for injected error should be dispatchedPass
3Check if plugin dispatched notification for injected pcie uncorrected error
  1. Clone the collectd repo
  2. cd ~/collectd
  3. ./build.sh
  4. ./configure
  5. make -j && make install
  6. Enable logparser configurations
  7. Start Collectd
  8. Inject a pcie uncorrected error
Notification for injected error should be dispatchedPass
4Verify if plugin dispatched notification data for injected pcie corrected error in accordance with the given configuration
  1. Clone the collectd repo
  2. cd ~/collectd
  3. ./build.sh
  4. ./configure
  5. make -j && make install
  6. Enable logparser configurations
  7. Start Collectd
  8. Inject a pcie corrected error
Notification for injected error should be dispatched and should contain fields specified in configuration file:
* Severity:WARNING
* Time
* Host
* Plugin:logparser
* PluginInstance
* Type: pcie_error
* TypeInstance: corrected
* incidenttime
* rootport
* device
* corrected: severity=Corrected
* errortype: Data Link Layer
* id:00e0(Receiver ID)
Pass
5Verify if plugin dispatched notification data for injected pcie non-fatal error in accordance with the given configuration
  1. Clone the collectd repo
  2. cd ~/collectd
  3. ./build.sh
  4. ./configure
  5. make -j && make install
  6. Enable logparser configurations
  7. Start Collectd
  8. Inject a pcie uncorrected non fatal error
Notification for injected error should be dispatched and should contain fields specified in configuration file:
* Severity:WARNING
* Time
* Host
* Plugin:logparser
* PluginInstance
* Type: pcie_error
* TypeInstance:non_fatal
* incidenttime
* rootport
* device
* nonfatal: severity=Uncorrected (Non-Fatal
* errortype: Transaction Layer
* id
Pass
6Verify if plugin dispatched notification data for injected pcie fatal error in accordance with the given configuration
  1. Clone the collectd repo
  2. cd ~/collectd
  3. ./build.sh
  4. ./configure
  5. make -j && make install
  6. Enable logparser configurations
  7. Start Collectd
  8. Inject a pcie uncorrected fatal error
Notification for injected error should be dispatched and should contain fields specified in configuration file:
* Severity:FAILURE
* Time
* Host
* Plugin:logparser
* PluginInstance
* Type:pcie_error
* TypeInstance:fatal
* incidenttime
* rootport
* device
* fatal: severity=Uncorrected (Fatal
* errortype: Data Link Layer
* id
Pass
7Verify if plugin dispatched notification for each severity of injected pcie error specified in configuration
  1. Clone the collectd repo
  2. cd ~/collectd
  3. ./build.sh
  4. ./configure
  5. make -j && make install
  6. Enable logparser configurations
  7. Start Collectd
  8. Inject a pcie corrected, uncorrected, fatal, non fatal error
Notification for each injected error should be dispatched and should contain fields specified in configuration file:
* Severity
* Time
* Host
* Plugin:logparser
* PluginInstance
* Type: pcie_error
* TypeInstance:
* incidenttime
* rootport
* device
* severity
* errortype
* id
Pass
8Verify if plugin dispatched notification only for pcie error type with mandatory field set to true in configuration
  1. Clone the collectd repo
  2. cd ~/collectd
  3. ./build.sh
  4. ./configure
  5. make -j && make install
  6. Enable logparser configurations
  7. Start Collectd
  8. Inject a pcie corrected, uncorrected, fatal, non fatal error
Notification for injected error should be dispatched and should contain fields specified in configuration file:
* Severity:FAILURE
* Time
* Host
* Plugin:logparser
* PluginInstance
* Type:pcie_error
* TypeInstance:fatal
* incidenttime
* rootport
* device
* fatal: severity=Uncorrected (Fatal
* errortype: Data Link Layer
* id
Pass
9Verify plugin behavior upon incorrect path to syslog in configuration
  1. Clone the collectd repo
  2. cd ~/collectd
  3. ./build.sh
  4. ./configure
  5. make -j && make install
  6. Enable logparser configurations
  7. Provide wrong syslog path configuration
  8. Start Collectd
  9. Inject a pcie corrected, uncorrected, fatal, non fatal error
Logparser is loaded.
Error messages in collectd logs:
{noformat}
[error] utils_tail: stat (/var/log/syslog123) failed: No such file or directory
[error] utils_tail: cu_tail_read: cu_tail_readline failed.
[error] tail_match: cu_tail_read failed.
[error] utils_message_parser: Error while parser read. Status: -1
[error] logparser: Failed to parse pcie_errors messages from /var/log/syslog123
{noformat}
Pass
10Verify plugin behavior upon tag failures in configuration
  1. Clone the collectd repo
  2. cd ~/collectd
  3. ./build.sh
  4. ./configure
  5. make -j && make install
  6. Edit the collectd config file without closing tag in one of the section in logparser configuration
  7. Start collectd 
Collectd fails to start with proper message in the logPass