← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1226965] Re: nova sync_power_states broken when db is stopped, but VM is running

 

** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1226965

Title:
  nova sync_power_states broken when db is stopped, but VM is running

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  the Nova has the logic to synchronize the state of virtual machine with the record in database, when the state is stopped but 
  the virtual machine is in running state, it will try to stop the virtual machine with compute api call. But the compute api 
  call has the check that only allow to execute the call when VM in ACTIVE,RESCUED, ERROR state.  So the sync logic is broken here.

  option 1:
     allow to run stop API when VM in stopped state

  option 2:
     add another method in API  such as force_stop , and sync_power_states will use this api to stop the VM.

  option 3: 
      sync_power_states to call the rpcapi to stop the VM

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1226965/+subscriptions