RBD driver doesn't flatten image when clone depth > configured value.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
In Progress
|
Undecided
|
zhangdaolong |
Bug Description
Reproduce the process:
1.config rbd_max_clone_depth
#vim cinder.conf
-----
rbd_max_
-----
2.create vol
3.create vol1 from vol
4.create vol1-1 from vol1
5.create vol1-1-1 from vol1-1
volume relationship:
vol--
5.chang rbd_max_clone_depth from 3 to 1
# vim cinder.conf
----
rbd_
----
6.restart cinder-volume
7.create test from vol1-1-1 or vol1-1
Except results:
The volume was created successfully
In fact results:
Failed to create volume
The error log is as follows
-------
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
2016-11-23 15:49:38.365 32221 ERROR oslo_messaging.
Changed in cinder: | |
assignee: | nobody → zhangdaolong (zhangdaolong) |
summary: |
- RBD drivers create volume from volume when the config + RBD drivers can't continue create to volume from volume when the config "rbd_max_clone_depth" changed. |
description: | updated |
summary: |
- RBD drivers can't continue create to volume from volume when the config - "rbd_max_clone_depth" changed. + RBD driver doesn't flattern image when clone depth > configured value. |
Changed in cinder: | |
status: | New → In Progress |
summary: |
- RBD driver doesn't flattern image when clone depth > configured value. + RBD driver doesn't flatten image when clone depth > configured value. |
Changed in cinder: | |
status: | In Progress → Confirmed |
tags: | added: ceph drivers |
Fix proposed to branch: master /review. openstack. org/444054
Review: https:/