rebuild volume-backed instance with image does not replace image in root disk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Matt Riedemann | ||
Ocata |
Confirmed
|
Medium
|
Unassigned | ||
Pike |
Confirmed
|
Medium
|
Unassigned |
Bug Description
When rebuild an volume-backed instance using normal images from glance,
nothing will be changed for the instance after rebuild except the image name
will be added to the instance, the instance is actually again built using the same
volume.
root@zheng-
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | building |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| adminPass | KX5f2qfJBs9S |
| config_drive | |
| created | 2015-08-
| flavor | m1.tiny (1) |
| hostId | |
| id | 2f91193c-
| image | Attempt to boot from volume - no image supplied |
| key_name | - |
| metadata | {} |
| name | test_rebuild |
| os-extended-
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | b8112a8d8227490
| updated | 2015-08-
| user_id | ed64bccd0227444
+------
root@zheng-
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | GParrEjj3DEW |
| created | 2015-08-
| flavor | m1.tiny (1) |
| hostId | e9701452373fee3
| id | 2f91193c-
| image | cirros-
| metadata | {} |
| name | test_rebuild |
| progress | 0 |
| public network | 2001:db8::19, 172.24.4.24 |
| status | REBUILD |
| tenant_id | b8112a8d8227490
| updated | 2015-08-
| user_id | ed64bccd0227444
+------
root@zheng-
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| config_drive | True |
| created | 2015-08-
| flavor | m1.tiny (1) |
| hostId | e9701452373fee3
| id | 2f91193c-
| image | cirros-
| key_name | - |
| metadata | {} |
| name | test_rebuild |
| os-extended-
| progress | 0 |
| public network | 2001:db8::19, 172.24.4.24 |
| security_groups | default |
| status | ACTIVE |
| tenant_id | b8112a8d8227490
| updated | 2015-08-
| user_id | ed64bccd0227444
+------
add using virsh to see the xml, we can see that the instance is still booted from the volume
</disk>
<disk type='block' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<source dev='/dev/
<target dev='vda' bus='virtio'/>
<
<alias name='virtio-
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</disk>
Changed in nova: | |
assignee: | nobody → Zhenyu Zheng (zhengzhenyu) |
tags: | added: libvirt rebuild volumes |
tags: | removed: rebuild |
Changed in nova: | |
assignee: | Laszlo Hegedus (laszlo-hegedus) → Zhenyu Zheng (zhengzhenyu) |
Changed in nova: | |
assignee: | Zhenyu Zheng (zhengzhenyu) → Laszlo Hegedus (laszlo-hegedus) |
Changed in nova: | |
assignee: | Laszlo Hegedus (laszlo-hegedus) → nobody |
status: | In Progress → Confirmed |
tags: | added: rebuild |
Changed in nova: | |
status: | In Progress → Confirmed |
assignee: | Akira KAMIO (kamio) → nobody |
summary: |
- rebuild volume-backed instance with image + rebuild volume-backed instance with image does not replace image in root + disk |
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Chris Friesen (cbf123) |
Changed in nova: | |
assignee: | Chris Friesen (cbf123) → Matt Riedemann (mriedem) |
Hi Zhenyu,
I'm afraid I could not parse your problem description correctly, so I don't know what exactly is the problem you're facing.
Would be useful if you can write a list of sequential steps to reproduce the problem you're facing.
[A friendly note: https:/ /wiki.openstack .org/wiki/ BugFilingRecomm endations]