Sheepdog driver doesn't set size correctly on create from snapshot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
ustcdylan |
Bug Description
My openstack version: stable/icehouse and I use sheepdog as the cinder's backend storage, and use "cinder create" to create a new volume based a snapshot with a given size, we find the size it not work. Other backend storages have no problem, for example lvm.
You can reproduce this bug as follows:
[root@compute-63-10 ~]# cinder snapshot-list
+------
| ID | Volume ID | Status | Display Name | Size |
+------
| e6a25098-
+------
[root@compute-63-10 ~]# cinder create --snapshot-id e6a25098-
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2014-12-
| display_description | None |
| display_name | dylan |
| encrypted | False |
| id | 2cc9dd67-
| metadata | {} |
| size | 40 |
| snapshot_id | e6a25098-
| source_volid | None |
| status | creating |
| volume_type | ebs |
+------
we check the volume size in the compute node which it attached to or if the new volume has a guest os, we can login in and check the disk size by "fdisk -l"
[root@compute-63-06 by-path]# qemu-img info ip-192.
image: ip-192.
file format: raw
virtual size: 10G (10737418240 bytes)
disk size: 0
summary: |
- if cinder backend storage is sheepdog, create a new volume with given - size based a volume snapshot, the given size is not work + If we use sheepdog as the cinder's backend storage, we use "cinder + create" to create a new volume based a snapshot with a given size, we + find the size it not work. |
summary: |
If we use sheepdog as the cinder's backend storage, we use "cinder create" to create a new volume based a snapshot with a given size, we - find the size it not work. + find the size is not work. |
Changed in cinder: | |
assignee: | nobody → ustcdylan (ustcdylan) |
assignee: | ustcdylan (ustcdylan) → nobody |
summary: |
- If we use sheepdog as the cinder's backend storage, we use "cinder - create" to create a new volume based a snapshot with a given size, we - find the size is not work. + If we create a new volume based a snapshot with a given size, we find + the size is not work. |
description: | updated |
description: | updated |
description: | updated |
Changed in cinder: | |
status: | New → In Progress |
assignee: | nobody → ustcdylan (ustcdylan) |
information type: | Public → Public Security |
information type: | Public Security → Public |
description: | updated |
tags: | added: drivers sheepdog |
summary: |
- If we create a new volume based a snapshot with a given size, we find - the size is not work. + Sheepdog driver doesn't set size correctly on create from snapshot |
Changed in cinder: | |
milestone: | none → kilo-2 |
importance: | Undecided → Medium |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | kilo-2 → 2015.1.0 |
I give a patch here:https:/ /review. openstack. org/#/c/ 139804/