Cinder does not report an error when snapshot failed to be deleted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Won't Fix
|
High
|
Ivan Kolodyazhny | ||
10.0.x |
Won't Fix
|
High
|
Ivan Kolodyazhny | ||
8.0.x |
Won't Fix
|
High
|
Ivan Kolodyazhny | ||
9.x |
Won't Fix
|
High
|
Ivan Kolodyazhny |
Bug Description
Detailed bug description:
When volume snapshot has at least one clone (not flattened child in CEPH reference or from Openstack perspective this is volume created from snapshot) it is not possible to delete this snapshot till you don't perform flatten procedure for rbd image. This is OK, but the issue is that Horizon doesn't reports an error - only "Successfully scheduled". The same behavior if you try to delete from cli.
Steps to reproduce:
1) Create volume (glance image doesn't matter)
2) Create snapshot from volume
3) Create volume from snapshot, that you created at step2
4) Try to delete snapshot
Expected results:
Error message
"No possible to delete snapshot. It has at least one clone "
or
"No possible to delete snapshot. It has clone id:c8b9cca0-
Actual result:
From horizon:
Success: deletion of Volume Snapshot: snapshot_of_pap:
From cli: no output
# cinder snapshot-show c8b9cca0-
+------
| Property | Value |
+------
| created_at | 2016-08-
| description | |
| id | c8b9cca0-
| metadata | {} |
| name | snapshot_of_pap |
| os-extended-
| os-extended-
| size | 1 |
| status | available |
| volume_id | 773c20e5-
# cinder snapshot-delete c8b9cca0-
# cinder snapshot-show c8b9cca0-
+------
| Property | Value |
+------
| created_at | 2016-08-
| description | |
| id | c8b9cca0-
| metadata | {} |
| name | snapshot_of_pap |
| os-extended-
| os-extended-
| size | 1 |
| status | available |
| volume_id | 773c20e5-
Workaround:
# rbd ls volumes | grep 773c20e5-
volume-
# rbd snap ls volumes/
SNAPID NAME SIZE
508 snapshot-
# rbd children volumes/
volumes/
# rbd flatten volumes/
Image flatten: 100% complete...done.
Impact:
After this action we can remove snapshot as child become independent from snapshot.
Description of the environment:
Operation system: Ubuntu 14.04
Versions of components: MOS 8
Related projects installed:
# fuel plugins
id | name | version | package_version
---|---
1 | elasticsearch_
2 | influxdb_grafana | 0.9.0 | 4.0.0
3 | lma_collector | 0.9.0 | 4.0.0
4 | lma_infrastruct
5 | static_ntp_routing | 4.0.6 | 4.0.0
6 | zabbix-database | 4.0.1 | 4.0.0
9 | static_routing | 4.0.7 | 4.0.0
10 | ivb5_plugin_vw | 1.0.27 | 4.0.0
7 | zabbix_monitoring | 2.6.25 | 4.0.0
11 | avi_controller_
12 | openbook | 1.3.4 | 4.0.0
Network model: Neutron+OVS
Additional information:
A debug output of `# cinder --debug snapshot-delete` is almost the same when snapshot is actually deleted or when it is remaining not deleted.
# cinder --debug snapshot-delete c8b9cca0-
DEBUG:keystonec
DEBUG:keystonec
RESP BODY: {"versions": {"values": [{"status": "stable", "updated": "2015-03-
DEBUG:keystonec
DEBUG:keystonec
DEBUG:keystonec
RESP BODY: {"snapshot": {"status": "available", "metadata": {}, "os-extended-
DEBUG:keystonec
DEBUG:keystonec
summary: |
- Cinder does not report an errror when snapshot failed to be deleted + Cinder does not report an error when snapshot failed to be deleted |
affects: | fuel → mos |
Changed in mos: | |
assignee: | nobody → MOS Cinder (mos-cinder) |
milestone: | none → 9.1 |
status: | New → Confirmed |
assignee: | MOS Cinder (mos-cinder) → nobody |
milestone: | 9.1 → 10.0 |
no longer affects: | mos/9.x |
Changed in mos: | |
status: | Confirmed → Won't Fix |
Could you please also include fix for MOS 8?