Hi all,
a rarely accident today brings me here again.
Today morning a customer tried to create a vm via a website that is talking to our own perlscripts. The objective cluster was the one that we were updating at this moment. And the loop that picks a host randomly picked a host that was going to maintenance at this moment :-(. Of course the loop skips host that have "inMaintenanceMode" set to 1. But this is not the case while hosts are going to maintenance but are not ready yet.
vCenter throws a fault.InvalidState.summary error. Should we really catch this one or is there a way to query the host if it accecpts the creation of a vm at the moment?
Chris