Repository navigation
librbd/migration: add external clusters support - #44470
Conversation
trociny
left a comment
There was a problem hiding this comment.
I just glanced at it, so I may be completely wrong, but my guess is that the crash is due to using remote context after being freed.
Have you tried locally with valgrind? May be locally you have different debug levels (it seems to crash when trying to log)?
I debugged it and found this is actually a bug that exists in master:
I did not run into this on my manual test, since my image open did not fail. |
|
@ideepika @trociny My yaml looks like this: I copied the ceph.conf and the keyring to where the qemu task expects them, but it is still not enough, as I get: Is there a way to work around this by changing my yaml? Or there's no way but to change the code |
@orozery since this a 2 cluster setup and we have cluster name ceph hardcoded in qemu.py, I think it would be best to replace with |
+1 to @ideepika's suggestion to update qemu.py. I am not very familiar with this code but it seems like changing |
7b539eb to
7ef041e
Compare
|
@idryomov ready for review |
trociny
left a comment
There was a problem hiding this comment.
Another very minor thing is that I would try not to mix rbd_mirror and librbd changes in the same commit (i.e. add a new functionality to librbd, and then make rbd_mirror use it as a separate commit).
Otherwise LGTM and seems very useful, thanks!
Which commit mixes changes? |
|
jenkins test make check |
|
jenkins test make check arm64 |
Yes, I am talking about this commit "tools/rbd_mirror: move init_rados to librbd utils". It could be two: "librbd: add util::init_rados reusing code from rbd_mirror", and "tools/rbd_mirror: use generalised init_rados from librbd". This is the way we have usually used, treating librbd and rbd-mirror as a separate projects (though there is no a strong rule here, and this is just a suggestion). Also, in "librbd/migration: add external clusters support" you modified |
7ef041e to
794391f
Compare
|
@trociny thanks for the comments so far. |
trociny
left a comment
There was a problem hiding this comment.
There are minor notes you might want to consider, but in general LGTM.
794391f to
bd7ce84
Compare
699d330 to
7635c9e
Compare
These questions seem not for this PR? |
Right, my bad. |
It used to be exported until commit 318c62f ("common/config: cleanup remove some unused macros"). Having CEPH_CONF_FILE_DEFAULT avaialable is handy to prevent parse_config_files() from picking up CEPH_CONF environment variable. Signed-off-by: Ilya Dryomov <[email protected]>
This is another step towards supporting migration from external clusters, where creating an IoCtx from a Rados instance that has nothing to do with dst_io_ctx would be needed. It also allows to get rid of a pool lookup in the middle of parsing code. Signed-off-by: Ilya Dryomov <[email protected]>
6c70dd9 to
523177a
Compare
|
jenkins test api |
|
jenkins test make check |
|
jenkins test api |
|
I rewrote this on top of #58882 to address the biggest
outstanding issue and took care of all but one unresolved conversation while at it. The diff changed from: to Notable changes:
|
|
|
|
All One job hung with non-descriptive messages, but I doubt it's related. I'll plan a couple more similar runs to make sure. |
Two runs completed with no failures: https://pulpito.ceph.com/dis-2024-08-20_18:48:44-rbd:migration-external-wip-dis-testing-distro-default-smithi/ |
This commit extends NativeFormat (aka migration where the migration source is an RBD image) to support external Ceph clusters, limited to import-only mode. Co-authored-by: Or Ozeri <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
"optional if image in trash" can be easily interpreted as "required if image not in trash". Signed-off-by: Ilya Dryomov <[email protected]>
…ve_format() Signed-off-by: Ilya Dryomov <[email protected]>
523177a to
4a6800f
Compare
|
Pushed some test adjustments to resolve the remaining conversation:
and two minor tweaks to the code:
|
|
jenkins test make check |
|
All https://pulpito.ceph.com/dis-2024-08-22_11:46:38-rbd:migration-external-wip-dis-testing-distro-default-smithi/
|
ajarr
left a comment
There was a problem hiding this comment.
LGTM. Couple of questions.
|
jenkins test windows |
|
jenkins test make check |
|
Did another |
@idryomov @trociny would appreciate your review.
I tested it manually via
mstart.shand it seems to work.However, the new qa test I added still failed, because of a wrong setup (before actually migrating).
I'm still trying to figure it out, if you have a clue I will be grateful.
The current run log is here:
http://qa-proxy.ceph.com/teuthology/oro-2022-01-05_13:30:55-rbd-master-distro-default-smithi/6596348/teuthology.log
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 tox