ceph mirror mirroring -- Retype replicatione_enable to disable failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
renminmin |
Bug Description
root@controller:~# cinder type-list
+------
| ID | Name | Description | Is_Public |
+------
| 2d5dce38-
| 93d80945-
+------
root@controller:~# cinder extra-specs-list
+------
| ID | Name | extra_specs |
+------
| 2d5dce38-
| 93d80945-
+------
### Create volume replication disabled
# cinder show b1f873a1-
+------
| Property | Value |
+------
| attached_servers | [] |
| attachment_ids | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2019-05-
| description | None |
| encrypted | False |
| id | b1f873a1-
| metadata | |
| migration_status | None |
| multiattach | False |
| name | None |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| replication_status | disabled |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| updated_at | 2019-05-
| user_id | 8022c7be7396431
| volume_type | ceph-non-mirror |
+------
### Checking rbd mirror status and image features
# rbd -c /etc/ceph/
rbd: mirroring not enabled on the image
# rbd -c /etc/ceph/
rbd image 'volume-
size 1 GiB in 256 objects
order 22 (4 MiB objects)
id: 1530f6b8b4567
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
flags:
### Retype volume to replication enabled
root@controller:~# cinder retype bef18d01-
# cinder show b1f873a1-
+------
| Property | Value |
+------
| attached_servers | [] |
| attachment_ids | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2019-05-
| description | None |
| encrypted | False |
| id | b1f873a1-
| metadata | |
| migration_status | None |
| multiattach | False |
| name | None |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| replication_status | disabled |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| updated_at | 2019-05-
| user_id | 8022c7be7396431
| volume_type | ceph-mirror |
+------
root@compute:~# rbd -c /etc/ceph/
rbd image 'volume-
size 1 GiB in 256 objects
order 22 (4 MiB objects)
id: 1530f6b8b4567
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
flags:
root@compute:~# rbd -c /etc/ceph/
rbd: mirroring not enabled on the image
Fix proposed to branch: master /review. opendev. org/657985
Review: https:/