ipmilan fence type test fails with error for a RHV host that is CISCO UCS server without the Cisco UCS infrastructure.

Solution In Progress - Updated -

Environment

  • Red Hat Virtualization (RHV-M) 4.4.6

Issue

  • The RHV host is a CISCO UCS series server without the Cisco UCS infrastructure (no org-name configured)

  • RHV host configured to use ipmilan type.

  • The test from the RHV-M GUI/Webadmin fails with the following error:

Test failed: WARNING:root:Parse error: Ignoring option 'agent' because it does not have value WARNING:root:Parse error: Ignoring unknown option 'ssl_insecure=1' ERROR:root:Failed: Unable to obtain correct plug status or plug is not available 
2021-07-21 17:54:27,565 ERROR: Failed: Unable to obtain correct plug status or plug is not available 

Resolution

  • The options lanplus=1,privlvl=Operator must be set for the fence type

  • In Edit fence agent window, for example set;

    • Address: XXX.XXX.XXX.XXX
    • User Name: user_name
    • Password: ******
    • Type: ipmilan
    • Options: lanplus=1,privlvl=Operator

Root Cause

  • The cisco_ucs fence type does not support the CISCO UCS server that being used stand-alone (without the UCS infrastructure) and the ipmilan fence type must be used instead.

Diagnostic Steps

  • Error reported in the engine logs from the test.
    When fencing a host, RHV will select a proxy host to fence a host.
    In this case, the host rhv-h1.example.com is the proxy host used to fence rhv-h2.example.com.
2021-07-21 17:54:20,503Z INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.FenceVdsVDSCommand] (default task-2) [e412d780-3af8-490f-93d6-4e5d22e75375] START, FenceVdsVDSCommand(HostName = rhv-h1.example.com, FenceVdsVDSCommandParameters:{hostId='2c4ef7ad-c051-4b2b-962b-9557ea720fa7', targetVdsId='da77c049-1bbd-43e2-8afb-a219fb087396', action='STATUS', agent='FenceAgent:{id='null', hostId='null', order='1', type='ipmilan', ip='XXX.XXX.XXX.XXX', port='null', user='user_name', password='***', encryptOptions='false', options='ssl_insecure=1'}', policy='null'}), log id: 3503e2f8
2021-07-21 17:54:28,614Z WARN  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-2) [e412d780-3af8-490f-93d6-4e5d22e75375] EVENT_ID: VDS_ALERT_FENCE_TEST_FAILED(9,001), Power Management test failed for Host rhv-h2.example.com.WARNING:root:Parse error: Ignoring option 'agent' because it does not have value

WARNING:root:Parse error: Ignoring unknown option 'ssl_insecure=1'

ERROR:root:Failed: Unable to obtain correct plug status or plug is not available


2021-07-21 17:54:27,565 ERROR: Failed: Unable to obtain correct plug status or plug is not available
  • On rhv-h2.example.com, the fence_ipmilan command can be used to troubleshot the problem.
    In this case, the fence_ipmilan utilizes the /usr/bin/ipmitool command and the -L ADMINISTRATOR is set.
# fence_ipmilan -a XXX.XXX.XXX.XXX -P -l user_name -p ****** -o status -v
2021-07-21 18:08:56,215 INFO: Executing: /usr/bin/ipmitool -I lanplus -H XXX.XXX.XXX.XXX -p 623 -U user_name -P [set] -L ADMINISTRATOR chassis power status

2021-07-21 18:08:56,258 DEBUG: 1  Set Session Privilege Level to ADMINISTRATOR failed: Unknown (0x81)
Error: Unable to establish IPMI v2 / RMCP+ session


2021-07-21 18:08:56,258 ERROR: Failed: Unable to obtain correct plug status or plug is not available
  • Using the command /usr/bin/ipmitool from the output above but using the -L Operator, completes without error and reports the status.
# /usr/bin/ipmitool -I lanplus -H XXX.XXX.XXX.XXX -p 623 -U user_name -P ****** -L Operator chassis power status -v
Using best available cipher suite 17

Running Get PICMG Properties my_addr 0x20, transit 0, target 0x20
Error response 0xc1 from Get PICMG Properities
Running Get VSO Capabilities my_addr 0x20, transit 0, target 0x20
Invalid completion code received: Invalid command
Discovered IPMB address 0x0
Chassis Power is on
  • Using the command fence_ipmilan with stdin --privlvl=Operator, the command reports the correct status.
# fence_ipmilan -a XXX.XXX.XXX.XXX -P -l user_name -p ****** -o status -v --privlvl=Operator
2021-07-21 18:34:18,911 INFO: Executing: /usr/bin/ipmitool -I lanplus -H XXX.XXX.XXX.XXX -p 623 -U rcuser -P [set] -L OPERATOR chassis power status

2021-07-21 18:34:18,979 DEBUG: 0 Chassis Power is on


Status: ON

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments