VMware: create snapshot is not creating virtual disk snapshot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
Medium
|
Vipin Balachandran |
Bug Description
test setps :
create a volume [cinder create 1 --name test]
now take snapshot. [cinder snapshot-create 0d6b77b7-
now restore existing backup to above volume [cinder snapshot-create 0d6b77b7-
expected : cinder should throw error volume with snapshots not allowed as target volume
actual : user able to restore a volume having snapshot.
observation : it happens only when volume don't have backing vm with virtual center. driver behavior should be same for volumes with backing & with out backin vm in virtual center.
command usage :
ssatya@
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
+------
ssatya@
Tue Sep 30 15:48:55 SGT 2014
ssatya@
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2014-09-
| description | None |
| encrypted | False |
| id | 0d6b77b7-
| metadata | {} |
| name | test |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| os-volume-
| os-volume-
| replication_status | disabled |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| user_id | da7ab4f87b994c2
| volume_type | None |
+------
ssatya@
+------
| Property | Value |
+------
| created_at | 2014-09-
| description | None |
| id | 25875d33-
| metadata | {} |
| name | test_snap |
| size | 1 |
| status | creating |
| volume_id | 0d6b77b7-
+------
ssatya@
+------
| ID | Volume ID | Status | Name | Size | Object Count | Container |
+------
| 4200b860-
+------
ssatya@
ssatya@
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 0d6b77b7-
ssatya@
ssatya@
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 0d6b77b7-
ssatya@
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 0d6b77b7-
Changed in cinder: | |
status: | New → Confirmed |
importance: | Undecided → Low |
assignee: | nobody → Vipin Balachandran (vbala) |
Changed in cinder: | |
status: | Confirmed → Invalid |
I don't think cinder should return any error - overwriting a volume with snapshots is absolutely fine - the snapshots will still contain what they always did, of course