Compute manager ignores image_meta from api when booting an instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When booting an instance, in the API layer, we get the image to be used for this instance or, if the instance is booted from a volume, the image metadata attached to the volume (if present). This allows us to know a bit more of the volume through the inherited properties of the image from where it was created. This same image metadata is then passed to the selected compute manager for processing the request.
Right now the compute manager completely ignores the image metadata and tries to obtain it only if the instance is booted from an image. This prevents us from obtaining some properties present in the volume that might be needed while starting the instance (think about the hw_disk_bus). Besides, it requires of an extra call to glance that can be avoided.
Changed in nova: | |
assignee: | nobody → Xavier Queralt (xqueralt) |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
importance: | Undecided → High |
status: | Fix Committed → In Progress |
Changed in nova: | |
importance: | High → Medium |
importance: | Medium → High |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → icehouse-rc1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-rc1 → 2014.1 |
Reviewed: https:/ /review. openstack. org/74634 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=0185d2445f6 db7278ba3a02ace 597717ccdbd6b3
Committed: https:/
Submitter: Jenkins
Branch: master
commit 0185d2445f6db72 78ba3a02ace5977 17ccdbd6b3
Author: Xavier Queralt <email address hidden>
Date: Wed Feb 19 18:48:16 2014 +0100
Use image from the api in run_instance, if present
When booting an instance, the API layer already fetches the image
from glance and passes it to the compute manager. Right now, that
info is ignored and the compute node has fetches the image metadata
again from glance if booting from an image. This is a problem when
booting from a volume, because most of the properties that the volume
keeps when it has been created from an image won't be considered.
With this patch, the image metadata passed to run_instance from the API
will be used if present instead of asking glance again.
Change-Id: I4680d9d309d7a0 9f64d52ef0fb105 282ace79e5f
Closes-Bug: 1281973