← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1220220] Re: Policy check for forced_host should be before the instance is created

 

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

** Changed in: nova
    Milestone: None => havana-rc1

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

Title:
  Policy check for forced_host should be before the instance is created

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  In compute/api.py the policy check for "compute:create:forced_host" is
  part of _build_filter_properties(), which is called in
  _create_instance() after the instance is created in the DB by
  _provision_instances()

  This means that if the policy check fails an instance is left in the
  "Building:Scheduling" state in the DB, although in practice no such
  action is in progress.

  Moving _build_filter_properties() ahead of _provision_instances()
  would fix the problem - or maybe the policy check should be moved even
  earlier to be part of the handle_az() method

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