When changing a rule in Auto Deploy, the hosts do not pick up the changes to the rule on the next boot.
When creating a new rule in Auto Deploy, a "Operation failed!"
message box appears, and the task fails with an error of "fault.com.vmware.rbd.taskerror.summary
".
ESXi hosts will fail to PXE boot.
In the rbd-vc-monitor.log, you see the following error repeating over and over:
2019-09-20T12:11:59.532 [31266]INFO:DepotCollection:Could not download from depot at http://<VC_FQDN_OR_IP>:80/vSphere-HA-depot/index.xml, skipping (('http://<VC_FQDN_OR_IP>:80/vSphere-HA-depot/index.xml', '', 'HTTP Error 502: Bad Gateway'))
2019-09-20T12:11:59.533 [31266]ERROR:vibutil:encountered errors while connecting to depots: [MetadataDownloadError('http://<VC_FQDN_OR_IP>:80/vSphere-HA-depot/index.xml', '', "Could not download from depot at http://<VC_FQDN_OR_IP>:80/vSphere-HA-depot/index.xml, skipping (('http://<VC_FQDN_OR_IP>:80/vSphere-HA-depot/index.xml', '', 'HTTP Error 502: Bad Gateway'))")]
2019-09-20T12:11:59.533 [31266]ERROR:pluginmaster:exception:rbdplugins.plainpxe.vmwMonitorInit -- ('', "No VIB matching VIB search specification 'VMware:vmware-fdm'.")
VMware vCenter Server 6.x
VMware vCenter Server 7.x
VMware vSphere ESXi 7.x
VMware vSphere ESXi 6.x
There are typically two causes of this issue:
The vc-monitor component of Auto Deploy is responsible for updating the associations from rules to the Auto Deploy database. Because it continually crashes, any changes to existing rules or new rules cannot be propagated to the database, causing hosts to fail to PXE boot, or to boot unexpectedly to the old rule values.
Currently, there is no resolution.
Workaround:
To work around this issue, alter the Auto Deploy database and change the value of the vCenter Server address from the FQDN to the internal loopback - 127.0.0.1.
service-control --stop vmware-rbd-watchdog
/var/lib/rbd/db
sqlite3 /var/lib/rbd/db
select * from vc_servers;
1|vcenter.example.com|80|e52ab74c-3950-4119-b268-985cede8934e|8088|
update vc_servers set addr="127.0.0.1";
select * from vc_servers;
1|127.0.0.1|80|e52ab74c-3950-4119-b268-985cede8934e|8088|
.quit
service-control --start vmware-rbd-watchdog
select * from vib_depot;
__vc|http://127.0.0.1:80/vSphere-HA-depot|unknown