XenAPI: nova-compute fails when snapshotting VM with attached volumes

Bug #1005950 reported by Roman Sokolkov
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Renuka Apte

Bug Description

I use XCP 1.4.90-53341c and VM with nova-compute , as controller used external host with ubuntu 12.04.

I have VM with attached volume.
root@ubuntu:/opt/stack/nova# nova volume-list
+--------------------------------------+--------+--------------+------+-------------+--------------------------------------+
| ID | Status | Display Name | Size | Volume Type | Attached to |
+--------------------------------------+--------+--------------+------+-------------+--------------------------------------+
| 4856cb42-2918-4f69-a828-f5509f4389cc | in-use | None | 1 | None | 1ed7dd1b-6e4e-4362-a2ca-dfcaa33c0f9d |
+--------------------------------------+--------+--------------+------+-------------+--------------------------------------+

root@ubuntu:/opt/stack/nova# nova image-create 1ed7dd1b-6e4e-4362-a2ca-dfcaa33c0f9d newnew
root@ubuntu:/opt/stack/nova# nova image-list
+--------------------------------------+---------------------------------+--------+--------------------------------------+
| ID | Name | Status | Server |
+--------------------------------------+---------------------------------+--------+--------------------------------------+
| 069a449a-d9a2-4484-bbca-6f87850d239b | newnew | SAVING | 1ed7dd1b-6e4e-4362-a2ca-dfcaa33c0f9d |
| 1447dca1-ac58-4772-9bd7-49dfd262c6a4 | cirros-0.3.0-x86_64-uec-ramdisk | ACTIVE | |
| ed1d3d36-c183-468c-94a8-077bdbdca8e8 | cirros-0.3.0-x86_64-uec | ACTIVE | |
| f78a6d4f-611b-491e-afcb-9beea9b8d51d | cirros-0.3.0-x86_64-uec-kernel | ACTIVE | |
+--------------------------------------+---------------------------------+--------+--------------------------------------+

And snapshotting fails with http://paste.openstack.org/show/18205/ on nova-compute

This is because there are iscsi targets attached to instance and it is analogue if I tried "xe vm-snapshot"

xe vm-snapshot uuid=0de1f9b2-07a9-98ac-7c67-47b1126c4b31 new-name-label=newnew
The SR backend does not support the operation (check the SR's allowed operations)
sr: FA15E-D15C-4856cb42-2918-4f69-a828-f5509f4389cc (tempSR-4856cb42-2918-4f69-a828-f5509f4389cc)

As described for libvirt https://github.com/openstack/nova/commit/7dbf9c7de23623223ef60c0566d9330797c5f87e
we must use only root devices, instead fully snapshotting.

summary: - XEN: nova-compute fails when snapshotting VM with attached volumes
+ XenAPI: nova-compute fails when snapshotting VM with attached volumes
tags: added: xenapi
removed: xen
Revision history for this message
John Garbutt (johngarbutt) wrote :

Seems like a real bug, need to look only taking a snapshot of the root image.

Mark McLoughlin (markmc)
tags: added: xenserver
removed: xcp xenapi
Changed in nova:
assignee: nobody → Renuka Apte (renukaapte)
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
clayg (clay-gerrard) wrote :

I'm not able to reproduce this after Change-Id: I3e2973747135a9c33de194e38537620c397bb87e (35952750) was merged to master.

It was apparently more closely related to Bug #1028092 than I realized.

Revision history for this message
Yaguang Tang (heut2008) wrote :

@clayg is correct , bug #1028092 has fixed this bug.

Changed in nova:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.