Owner metadata is missing when regenerating libvirt XML after host reboot
Bug #1524363 reported by
Simon Pasquier
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Low
|
Tardis Xu |
Bug Description
Environment:
devstack running OpenStack from master.
Steps to reproduce:
1. Make sure that resume_
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://
[2] http://
Changed in nova: | |
status: | New → Confirmed |
assignee: | nobody → Tardis Xu (xiaoxubeii) |
importance: | Undecided → Medium |
Changed in nova: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
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.