← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1389899] [NEW] nova delete shouldn't remove instance from DB if host is not up

 

Public bug reported:

Under nova/compute/api.py, it will delete instance from DB if compute
node is not up. I think we should utilize force-delete to handle compute
node is not up scenario. So, if compute node is not up, only force-
delete can delete the instance.

Code flow:
delete -> _delete_instance -> _delete

_delete(...) code snippet: 
..
            if not is_up:
                # If compute node isn't up, just delete from DB
                self._local_delete(context, instance, bdms, delete_type, cb)
                quotas.commit()

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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/1389899

Title:
  nova delete shouldn't remove instance from DB if host is not up

Status in OpenStack Compute (Nova):
  New

Bug description:
  Under nova/compute/api.py, it will delete instance from DB if compute
  node is not up. I think we should utilize force-delete to handle
  compute node is not up scenario. So, if compute node is not up, only
  force-delete can delete the instance.

  Code flow:
  delete -> _delete_instance -> _delete

  _delete(...) code snippet: 
  ..
              if not is_up:
                  # If compute node isn't up, just delete from DB
                  self._local_delete(context, instance, bdms, delete_type, cb)
                  quotas.commit()

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


Follow ups

References