Deleting a snapshot leads to deleting its parent volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Committed
|
High
|
Ivan Kolodyazhny | ||
5.0.x |
Fix Committed
|
High
|
Ivan Kolodyazhny |
Bug Description
Release: MOS 5.0
OS: CentOS
Description:
When I delete a snapshot , either via horizon or the cli ,the volume from which the snapshot was created from is also deleted
Upstream bug:
https:/
Need to verify fix (targeted to Cinder 2014.1.2) and backport if required (MOS 5.0.1 contains Cinder 2014.1.1)
Steps to reproduce:
[root@node-10 dev]# cinder create --display-name mirantis2 5
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2014-08-
| display_description | None |
| display_name | mirantis2 |
| encrypted | False |
| id | 7cad9151-
| metadata | {} |
| size | 5 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| volume_type | None |
+------
[root@node-10 dev]# cinder snapshot-create --display-name mirantis2_snapshot 7cad9151-
+------
| Property | Value |
+------
| created_at | 2014-08-
| display_description | None |
| display_name | mirantis2_snapshot |
| id | 8ab384dc-
| metadata | {} |
| size | 5 |
| status | creating |
| volume_id | 7cad9151-
+------
[root@node-10 dev]# ls -al /dev/mapper
total 0
drwxr-xr-x 2 root root 220 Aug 22 05:17 .
drwxr-xr-x 20 root root 3940 Aug 22 05:17 ..
lrwxrwxrwx 1 root root 7 Aug 22 05:17 cinder-
lrwxrwxrwx 1 root root 7 Aug 22 05:17 cinder-
lrwxrwxrwx 1 root root 7 Aug 21 14:02 cinder-
lrwxrwxrwx 1 root root 7 Aug 22 05:17 cinder-
lrwxrwxrwx 1 root root 7 Aug 22 05:17 cinder-
crw-rw---- 1 root root 10, 58 Aug 21 12:54 control
lrwxrwxrwx 1 root root 7 Aug 21 12:54 image-glance -> ../dm-2
lrwxrwxrwx 1 root root 7 Aug 21 12:54 os-root -> ../dm-0
lrwxrwxrwx 1 root root 7 Aug 21 12:54 os-swap -> ../dm-1
[root@node-10 dev]# cinder snapshot-delete 8ab384dc-
[root@node-10 dev]# ls -al /dev/mapper
total 0
drwxr-xr-x 2 root root 220 Aug 22 05:17 .
drwxr-xr-x 20 root root 3940 Aug 22 05:17 ..
lrwxrwxrwx 1 root root 7 Aug 22 05:17 cinder-
lrwxrwxrwx 1 root root 7 Aug 22 05:17 cinder-
lrwxrwxrwx 1 root root 7 Aug 21 14:02 cinder-
lrwxrwxrwx 1 root root 7 Aug 22 05:17 cinder-
lrwxrwxrwx 1 root root 7 Aug 22 05:17 cinder-
crw-rw---- 1 root root 10, 58 Aug 21 12:54 control
lrwxrwxrwx 1 root root 7 Aug 21 12:54 image-glance -> ../dm-2
lrwxrwxrwx 1 root root 7 Aug 21 12:54 os-root -> ../dm-0
lrwxrwxrwx 1 root root 7 Aug 21 12:54 os-swap -> ../dm-1
[root@node-10 dev]# ls -al /dev/mapper
total 0
drwxr-xr-x 2 root root 140 Aug 22 05:17 .
drwxr-xr-x 20 root root 3860 Aug 22 05:17 ..
lrwxrwxrwx 1 root root 7 Aug 21 14:02 cinder-
crw-rw---- 1 root root 10, 58 Aug 21 12:54 control
lrwxrwxrwx 1 root root 7 Aug 21 12:54 image-glance -> ../dm-2
lrwxrwxrwx 1 root root 7 Aug 21 12:54 os-root -> ../dm-0
lrwxrwxrwx 1 root root 7 Aug 21 12:54 os-swap -> ../dm-1
Changed in mos: | |
importance: | Undecided → High |
assignee: | nobody → Ivan Kolodyazhny (e0ne) |
milestone: | none → 5.1 |
status: | New → Triaged |
Changed in mos: | |
status: | Triaged → In Progress |
tags: | added: cinder |
Changed in mos: | |
status: | In Progress → Fix Committed |
Fix https:/ /bugs.launchpad .net/cinder/ +bug/1270192 is already in 5.1.