fence_vmware_soap errors out on 100+ vms on VMware host

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux Server 5 (with the High Availability Add on)
  • Red Hat Enterprise Linux Server 6 (with the High Availability Add on)

Issue

  • The fence_vmware_soap script fails to list virtual machines and fails to fence virtual machines if the virtual machine has an id that is higher than 100.

Resolution

  • This issue is resolved in the following errata for RHEL5: RHBA-2012-0167
  • This issue is resolved in the following errata for RHEL6: RHBA-2012-0548
  • This issue is resolved in the following errata for RHEL6: RHBA-2012-0943

Root Cause

There is a problem with the fence_vmware_soap script failing when there is more than 100+ vms.

Diagnostic Steps

List the virtual machines with the fence_vmware_soap command. If there is only a 100 virtual machines returned and there should be 100+ vms returned then you hitting this issue:

$ fence_vmware_soap  --ssl --ip 192.168.2.5 --username Administrator --password mypass --action list | wc -l
SBR
Components

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.