boot from image(create a new volume) lost image property
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Expired
|
Undecided
|
Unassigned |
Bug Description
when we create a instance by boot from image(create a new volume), if the image has one or more property, it will boot without the property.
for example, we add a property 'hw_qemu_
Property | Value |
+------
| Property 'hw_qemu_
| checksum | 2823c8bf0336349
| container_format | bare |
| created_at | 2014-10-15T09:07:31 |
| deleted | False |
| disk_format | raw |
| id | 92811d87-
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | qga-ubt1404 |
| owner | b85e1c03b2c84e0
| protected | False |
| size | 5368709120 |
| status | active |
| updated_at | 2014-10-15T09:08:54
then,we create a instance on horizon by boot from image(create a new volume), in the libvirt.xml of this instance, it doesn't contain below config:
<channel type="unix">
<source path="/
<target type="virtio" name="org.
</channel>
and if we create a instance by boot from image, the libvirt.xml contain the above config
I read the code and found :
if we create a instance by boot from image(create a new volume), image_ref in instance is null, below is the code to create libvirt.xml:
def to_xml(self, context, instance, network_info, disk_info,
# We should get image metadata everytime for generating xml
if image_meta is None:
# NOTE(danms): Stringifying a NetworkInfo will take a lock. Do
# this ahead of time so that we don't acquire it while also
# holding the logging lock.
conf = self.get_
xml = conf.to_xml()
if write_to_disk:
return xml
image_ref is null so it can't generate full libvirt.xml
Changed in horizon: | |
assignee: | nobody → Ritesh (rsritesh) |
Changed in horizon: | |
status: | New → Confirmed |
status: | Confirmed → New |
Changed in horizon: | |
assignee: | Ritesh (rsritesh) → nobody |
There are no clear directions for how to reproduce this in horizon. The code samples are not from horizon, either. Can you confirm that this is still a problem, and if so, how I can reproduce and verify that it is a problem?