Reboot should not require a Glance.show
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Rick Harris |
Bug Description
When a host is rebooted, we use `resume_
In `libvirt` this translates to a bunch of `_hard_reboot` calls.
The problem is that, `_hard_reboot` calls `_get_guest_xml`, which then calls `get_image_
The reason the call will fail is that, the glanceclient needs user-credentials in order to make this call, but since we're a server-side triggered action (host rebooting), we don't have a user-request context.
At a high-level, this is an issue of user-impersonation for server-
We do, however, have a work around for this particular case.
We can use the cached image_metadata that we store with the instance.
In fact `_hard_reboot` is already using it, so we just need to pass that `image_meta` into `_get_guest_xml` and it will work.
Changed in nova: | |
assignee: | nobody → Rick Harris (rconradharris) |
status: | New → In Progress |
Changed in nova: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-3 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/105613
Review: https:/