VMware vCloud

 View Only
  • 1.  wrong status of the vapp after powerOff

    Posted Jul 31, 2013 01:33 PM

    I have a situation where I nead to make sure that the vap is POVERED_OFF or POWERED_ON but I get strange status readings for example

    directly after the command

    _vapp.powerOff().waitForTask(0);

    the status reading from

    _vapp.getVappStatus()

    is still POWERED_ON it should be POWERED_OFF

    How can I get the accurate status off the vapp?



  • 2.  RE: wrong status of the vapp after powerOff
    Best Answer

    Posted Jul 31, 2013 02:15 PM

    _vapp.getVappStatus()  the status could already be cached...


    _vapp.powerOff().waitForTask(0);

    _vapp = Vapp.GetVappByReference(client, _vapp.Reference)

    _vapp.getVappStatus()



    Also are you sure you just need to power off...  you might also need to undeploy if you really want it stopped  (tear down the vapp network) .  I think undeploy also can do the poweroff for you.