Repository navigation
mgr/dashboard: rbd mirroring snapshot support - #46263
Conversation
8181b33 to
26ed966
Compare
26ed966 to
1c52b6c
Compare
2996f50 to
a9bcc7a
Compare
|
There is one bug in the list table, where even if there is no journal feature enabled, the mirror_mode is set to journal by default. It might be the behaviour but still the journaling feature is not showing as enabled in the image. I confirmed with @ideepika about this behaviour. She said it might not be a dashboard issue. @epuertat @pereman2 |
a9bcc7a to
888c4a1
Compare
951f966 to
08e836f
Compare
Why was that actually? Is it not possible to change the mirroring mode of an image? |
|
jenkins test api |
1 similar comment
|
jenkins test api |
No. I think there's no cli support for editing/changing mirroring mode. And btw I've already added a commit in this PR for tht. |
ideepika
left a comment
There was a problem hiding this comment.
as we discussed in meeting the PR work looks good! added some comments, with review in progress.
some questions would like to discuss:
-
move to trash, when mirror snapshot might lead to inconsistency if we try to delete mirror snapshot that's in sync or maintained for rollback purpose. If possible to delete, would suggest
mirror snapshot trash having some warning for scheduler generated (starting with .mirror*)
snapshots. This will be taken care of when mirroring is disabled/deleted or we
reachrbd_mirroring_max_mirroring_snapshotswhich could be a good advanced
option to add, default being 3 for rbd_mirroring_max_mirroring_snapshot. -
insignificant, but if it's not major effort, we can alter to keep same case
here:
https://user-images.githubusercontent.com/66050535/170961617-fe88dc8d-e745-4758-98e7-f2a9ea10fa05.png
There was a problem hiding this comment.
can you explain why we used journaling feature instead of using mirror_mode here?
There was a problem hiding this comment.
because mirror_mode says journal even when the journaling is disabled. I mean even if there is no mirroring enabled, the mode is always journal. so I couldn't rely on the mirror_mode for journal. I think I discussed this with you and you said it might be an issue from rbd side? @ideepika
There was a problem hiding this comment.
I see, yeah I remember now, since we use journaling feature just for mirroring, it should be fine, I will take a look into the discrepancy, please open a tracker if you happen to reproduce it. @nizamial09
There was a problem hiding this comment.
https://tracker.ceph.com/issues/55939, here's the tracker. Thanks to @Sarthak0702
|
Moving out from ready to merge to address comments from @ideepika |
|
jenkins test dashboard |
Just tested this. but this will mean that we cannot enable snapshot/journal mirroring on an existing image right? So I don't think we should disable editing it. @avanthakkar |
thanks for this. i tested it and its not working properly from dashboard. so created a tracker. https://tracker.ceph.com/issues/55894 along with other improvement topics too. lets keep it separate and do it in a different PR to keep this one minimal. |
b0f75f8 to
d8c7ca0
Compare
Enable snapshot mirroring from the Pools -> Image Also show the mirror-snapshot in the image where snapshot is enabled When parsing images if an image has the snapshot mode enabled, it will try to run commands that don't work with that mode. The solution was not running those for now and appending the mode in the get call. Fixes: https://tracker.ceph.com/issues/55648 Signed-off-by: Pere Diaz Bou <[email protected]> Signed-off-by: Nizamudeen A <[email protected]> Signed-off-by: Aashish Sharma <[email protected]> Signed-off-by: Avan Thakkar <[email protected]>
based on the discussion with @avanthakkar i re enabled editing the mirroring. |
d8c7ca0 to
489a385
Compare
|
jenkins test cephadm |
|
jenkins test dashboard cephadm |
|
jenkins test dashboard cephadm |
The op_*() methods of the S3 bucket and object handlers test the sub-resources they serve, and run any other request as the plain bucket or object operation for its method. A request for an S3 API that rgw lacks therefore runs as another operation, and is answered success: - DeleteBucketMetricsConfiguration and the other configuration deletes for analytics, inventory, intelligent-tiering and metadata tables run as DeleteBucket, and delete an empty bucket. - PutObjectAnnotation and UpdateObjectEncryption run as PutObject, and replace the object's data with the request body. RenameObject runs as PutObject with no body, and leaves an empty object at the destination. - DeleteObjectAnnotation runs as DeleteObject, and deletes the object. - The Get and List calls run as ListObjects or GetObject. ceph#46263 fixed this for DeleteBucketEncryption and DeleteBucketReplication by serving those sub-resources; each API that S3 has added since falls through the same way. Return no op for a request whose query names one of these APIs' sub-resources and none that its method serves, which is answered 405 MethodNotAllowed. S3 answers the same for a sub-resource that a region does not serve, such as accelerate, and S3 clients read it as a feature the endpoint lacks. The test is in the op_get(), op_put(), op_delete() and op_post() methods of the S3 bucket and object handlers, so it does not apply to the S3 website handlers, whose query strings are the site's. HEAD and OPTIONS requests are left alone. Fixes: https://tracker.ceph.com/issues/80921 Assisted-by: Claude:claude-opus-5-5 Assisted-by: Claude:claude-fable-5-1 Signed-off-by: Kyle Bader <[email protected]>
When parsing images if an image has the snapshot mode enabled, it will try to run commands
that don't work with that mode. The solution was not running those for now and appending the mode in the get call.
e2e tests are not done here!
Things to consider:
backend
frontend
Image List

Mirror snapshots (the one starts with

.mirror) is created implicitly when enabling an image snapshot mirroring and is handled differently. So all of the snapshot actions (like clone, protect etc) doesn't work. Hence disabling those.Known Issues so far
Fixes: https://tracker.ceph.com/issues/55648
Signed-off-by: Pere Diaz Bou [email protected]
Signed-off-by: Nizamudeen A [email protected]
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows