RBD Async: Failed to mirrored Cloned PVC created from another PVC (PVC-PVC Clone)
- Dominant language
- Go
- Stars
- 1.6k
- Forks
- 617
- Avg merge
- 5d 10h
- Merged PRs (30d)
- 43
Description
Failed to mirror cloned PVC created from the another PVC
Steps to Reproduce
* Create a PVC
* Create a Clone from the PVC
* Create VolumeReplication to Enable Replication
```
I0819 06:47:21.653521 1 utils.go:176] ID: 1895 Req-ID: 0001-0009-rook-ceph-0000000000000005-26d8b1f5-00b9-11ec-89fe-0242ac110003 GRPC call: /replication.Controller/EnableVolumeReplication
I0819 06:47:21.653615 1 utils.go:178] ID: 1895 Req-ID: 0001-0009-rook-ceph-0000000000000005-26d8b1f5-00b9-11ec-89fe-0242ac110003 GRPC request: {"parameters":{"mirroringMode":"snapshot"},"secrets":"***stripped***","volume_id":"0001-0009-rook-ceph-0000000000000005-26d8b1f5-00b9-11ec-89fe-0242ac110003"}
I0819 06:47:21.657017 1 omap.go:86] ID: 1895 Req-ID: 0001-0009-rook-ceph-0000000000000005-26d8b1f5-00b9-11ec-89fe-0242ac110003 got omap values: (pool="replicapool-4", namespace="", name="csi.volume.26d8b1f5-00b9-11ec-89fe-0242ac110003"): map[csi.imageid:1972acb15df07 csi.imagename:csi-vol-26d8b1f5-00b9-11ec-89fe-0242ac110003 csi.volname:pvc-4c80d66e-f7c5-4335-b058-fd4c9a26c68b csi.volume.owner:default]
E0819 06:47:21.774904 1 replicationcontrollerserver.go:245] ID: 1895 Req-ID: 0001-0009-rook-ceph-0000000000000005-26d8b1f5-00b9-11ec-89fe-0242ac110003 failed to enable mirroring on "replicapool-4/csi-vol-26d8b1f5-00b9-11ec-89fe-0242ac110003" with error: rbd: ret=-22, Invalid argument
E0819 06:47:21.774997 1 utils.go:185] ID: 1895 Req-ID: 0001-0009-rook-ceph-0000000000000005-26d8b1f5-00b9-11ec-89fe-0242ac110003 GRPC error: rpc error: code = Internal desc = failed to enable mirroring on "replicapool-4/csi-vol-26d8b1f5-00b9-11ec-89fe-0242ac110003" with error: rbd: ret=-22, Invalid argument
```
Even i tried to mirror the cloned rbd images manually.
```
sh-4.4# rbd mirror image enable replicapool-4/csi-vol-26d8b1f5-00b9-11ec-89fe-0242ac110003 snapshot
2021-08-19T06:49:15.892+0000 7ff2b877e2c0 -1 librbd::api::Mirror: image_enable: mirroring is not enabled for the parent
sh-4.4# rbd mirror image enable replicapool-4/csi-vol-26d8b1f5-00b9-11ec-89fe-0242ac110003-temp snapshot
2021-08-19T06:52:31.379+0000 7fcfa8aca2c0 -1 librbd::api::Mirror: image_enable: mirroring is not enabled for the parent
```
```
sh-4.4# rbd info replicapool-4/csi-vol-26d8b1f5-00b9-11ec-89fe-0242ac110003
rbd image 'csi-vol-26d8b1f5-00b9-11ec-89fe-0242ac110003':
size 1 GiB in 256 objects
order 22 (4 MiB objects)
snapshot_count: 0
id: 1972acb15df07
block_name_prefix: rbd_data.1972acb15df07
format: 2
features: layering, operations
op_features: clone-child
flags:
create_timestamp: Thu Aug 19 06:46:17 2021
access_timestamp: Thu Aug 19 06:46:17 2021
modify_timestamp: Thu Aug 19 06:46:17 2021
parent: replicapool-4/csi-vol-26d8b1f5-00b9-11ec-89fe-0242ac110003-temp@2a3f1d55-fdc6-424b-8e49-e46fa3ae9573
overlap: 1 GiB
sh-4.4# rbd info replicapool-4/csi-vol-26d8b1f5-00b9-11ec-89fe-0242ac110003-temp
rbd image 'csi-vol-26d8b1f5-00b9-11ec-89fe-0242ac110003-temp':
size 1 GiB in 256 objects
order 22 (4 MiB objects)
snapshot_count: 1
id: 1972a3c5fd23a
block_name_prefix: rbd_data.1972a3c5fd23a
format: 2
features: layering, deep-flatten, operations
op_features: clone-parent, clone-child, snap-trash
flags:
create_timestamp: Thu Aug 19 06:46:16 2021
access_timestamp: Thu Aug 19 06:46:16 2021
modify_timestamp: Thu Aug 19 06:46:16 2021
parent: replicapool-4/csi-vol-1b227fe2-00b9-11ec-89fe-0242ac110003@e91ecb33-f05d-469d-831e-200247bbbd38
overlap: 1 GiB
sh-4.4# rbd info replicapool-4/csi-vol-1b227fe2-00b9-11ec-89fe-0242ac110003
rbd image 'csi-vol-1b227fe2-00b9-11ec-89fe-0242ac110003':
size 1 GiB in 256 objects
order 22 (4 MiB objects)
snapshot_count: 1
id: 1972a663f3297
block_name_prefix: rbd_data.1972a663f3297
format: 2
features: layering, operations
op_features: clone-parent, snap-trash
flags:
create_timestamp: Thu Aug 19 06:45:56 2021
access_timestamp: Thu Aug 19 06:45:56 2021
modify_timestamp: Thu Aug 19 06:45:56 2021
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.