CEPH RBD mirroring - failed to create a none replicated volume from a replicated snapshot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned |
Bug Description
Description of problem: Creating a none replicated volume from a replicated volume's snapshot creates a replicated volume. Resulting volume should be none replicated rather than replicated.
Version-Release number of selected component (if applicable):
RHEL7.3
openstack-
python-
puppet-
python-
How reproducible:
Every time
Steps to Reproduce:
1. Create a replicated volume
# cinder create 1 --volume-type REPL --name RepVolume
2. Create a snapshot from the replicated volume
# cinder snapshot-create 7b6d1c1f-
3. Create a NONE replicated volume from snapshot, notice no --volume-type REPL.
# cinder create 1 --snapshot-id 3df8e598-
4. Volume is created successfully but it's of type replicated when it shouldn't be!
# cinder show d6f3545b-
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2017-03-
| description | None |
| encrypted | False |
| id | d6f3545b-
| metadata | {} |
| migration_status | None |
| multiattach | False |
| name | NoneReplFromRep
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| replication_status | enabled |
| size | 1 |
| snapshot_id | 3df8e598-
| source_volid | None |
| status | available |
| updated_at | 2017-03-
| user_id | ebe9590626e14fa
| volume_type | REPL |
+------
Actual results:
A volume is created but notice volume type wrongly created as replicated.
Expected results:
Volume should be created as NONE replicated volume, as I didn't ask for it to be replicated.
Additional info:
Could be a misunderstanding on my part.
As a user I didn't set replicated I don't expect volume to be replicated.
Cinder sets the type of new volume the same with source volume.