← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1524363] Re: Owner metadata is missing when regenerating libvirt XML after host reboot

 

The problem is in virt/libvirt/driver.py, _get_guest_config_meta, it
gets the nova owner meta from current context. But if the instance is
booted when host up, the context is admin. I think we can add the
identity cache to instance like network info. If this, we must change
the db table. So I think we should implement it as a bp not a bug.

** Changed in: nova
       Status: In Progress => Opinion

** Changed in: nova
   Importance: Medium => Low

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

Title:
  Owner metadata is missing when regenerating libvirt XML after host
  reboot

Status in OpenStack Compute (nova):
  Opinion

Bug description:
  Environment:

  devstack running OpenStack from master.

  Steps to reproduce:

  1. Make sure that resume_guests_state_on_host_boot=True in nova.conf.
  2. Boot an instance.
  3. Check that the libvirt XML contains a nova:owner element with the project and user ids [1].
  4. Stop the nova-compute service.
  5. Destroy the instance using virsh. This is to simulate the reboot of the host.
  6. Restart the nova-compute service.
  7. Check that the instance is respawned.

  Expected result:

  The project id and user id are still present in the libvirt XML.

  Actual result:

  The project id and user id are missing [2].

  [1] http://paste.openstack.org/show/481314/
  [2] http://paste.openstack.org/show/481315/

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


References