Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Viewing all articles
Browse latest Browse all 1577

inMaintenanceMode not set while going to maintenance

$
0
0

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


Viewing all articles
Browse latest Browse all 1577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>