Unexpected behavior when upload a snapshot-volume to vol-backed image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Yikun Jiang |
Bug Description
Unexpected behavior when upload a snapshot-volume to vol-backed image
0. Configure the volume-backed image, according [1]
1. Create a volume from snapshot.
# cinder create --snapshot 2609e615-
# cinder list --fields snapshot_id
+------
| ID | Snapshot_Id |
+------
| ae4ce4dc-
+------
2. Delete snapshot
# cinder snapshot-delete 2609e615-
3. Failed to upload volume to image.
# cinder upload-to-image ae4ce4dc-
Because:
Traceback (most recent call last):
File "/usr/local/
result = task.execute(
File "/opt/stack/
**volume_spec)
File "/opt/stack/
snapshot = objects.
File "/opt/stack/
orm_obj = db.get_
File "/opt/stack/
return IMPL.get_
File "/opt/stack/
return f(*args, **kwargs)
File "/opt/stack/
return _GET_METHODS[
File "/opt/stack/
return f(*args, **kwargs)
File "/opt/stack/
return _snapshot_
File "/opt/stack/
return f(*args, **kwargs)
File "/opt/stack/
raise exception.
SnapshotNotFound: Snapshot 2609e615-
The root reason of this failure is that the clone image is based on **snapshot** but not **snapshot-
Another impact of this bug is:
If we already make some data change on a snapshot-volume, then we export this snapshot-volume to image,
this image will lose all change data, beacause this image is based on **snapshot** but not **snapshot-
[1] https:/
Changed in cinder: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/606235
Review: https:/