ceph-volume: major batch refactor#34740
Conversation
|
jenkins test docs |
cbbd9f8 to
7f0f8c0
Compare
7f0f8c0 to
e523d64
Compare
f79fabc to
63b0e8a
Compare
63b0e8a to
a1b8cac
Compare
Signed-off-by: Joshua Schmid <jschmid@suse.de>
b7855f0 to
de8f034
Compare
e86004a to
6d746d6
Compare
f6ce9f9 to
6ba8195
Compare
|
jenkins test ceph-volume tox |
|
jenkins test ceph-volume all |
38d109c to
9920e6f
Compare
I suppose that is a symptom of the switch-over to readthedocs. |
Yep. I triggered the render second time just to confirm that. |
rishabh-d-dave
left a comment
There was a problem hiding this comment.
Looks good except for two things; first, the PR description says that it fixes a dozen tracker issues but the commit messages only link one tracker issue and, second, the lvm/batch doc doesn't have a sample output.
indeed, it could be nice to know which commit fixes which issue. |
|
That would also help a lot with backporting. |
My working assumption is that this PR will get backported as a whole to both octopus and nautilus. @jan--f Am I far from the truth? If that's correct, and if @jan--f is going to shoulder the backporting responsibility, then I don't think we need to insist on knowing exactly which commit(s) fix which tracker issue(s). |
This is not only for backporting concerns. I would say generally not having the corresponding tracker (if there's one...) and no commit message at all can be a nightmare in that kind of situation. Just saying... |
|
FYI the ceph-volume CI jobs via ceph-ansible are useless since the PR changes aren't included. (because those changes could break ceph-ansible) |
Can you elaborate please? I do think the changes are tested. ceph-ansible did receive patches to handle the changed output format a while ago. |
You're currently using ceph-ansible@master which uses ceph@master so it uses the latest shaman build from the master branch but not your PR. https://github.com/ceph/ceph-ansible/blob/master/group_vars/all.yml.sample#L199-L204 |
The majority of the Fixes would have to be added to b0b7973. I'm not entirely sure how helpful that would be, but I can add those links to this commit. We should already be able to track a change back to this PR: Get the sha from git blame, search for it either in the git log or on github, determine PR from either branch or github tells you directly. I was going to agree with @smithfarm... |
The functional testing setup rsyncs the ceph-volume code to the VMs (see https://github.com/ceph/ceph/blob/master/src/ceph-volume/ceph_volume/tests/functional/playbooks/deploy.yml). Its all rather convoluted but the PR code is actually run. Search for Those notices were added in this PR. |
Thx, good catch. Will push those asap. |
ack, I wasn't aware of the rsync of the ceph-volume source. Sorry for the noise. |
yes, in that case maybe it's not really relevant, I was more speaking about how I think it should be from a more general point of view. |
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
Some device we never want to pass to the batch subcommand. For now this includes devices that have a partition or are mounted on the machine. One goal is to filter the root device, so it is not included on a batch command and thus would contribute to its implicit sizing calculation. Signed-off-by: Jan Fajerski <jfajerski@suse.com>
This enables user to pass sizes like "10G", which batch now understands. Signed-off-by: Jan Fajerski <jfajerski@suse.com>
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
|
Alright, I added the missing output in the doc. One last round of tests and unless someone has objections I'll merge this. |
|
jenkins test ceph-volume all |
|
jenkins test ceph-volume tox |
|
I just experienced the following error with |
@haslersn could you paste the exact command you tried to run? |
This is a major rewrite of batch in order to use the create/prepare code path and significantly simplify this subcommands code. Simultaneously this adds support for vg re-use, idempotency, use of LVs with batch and additional implicit sizing arguments.
This also closes a number of bugs and unblocks other work in cephadm and rook.
Fixes: https://tracker.ceph.com/issues/24969
Fixes: https://tracker.ceph.com/issues/36242
Fixes: https://tracker.ceph.com/issues/36283
Fixes: https://tracker.ceph.com/issues/37502
Fixes: https://tracker.ceph.com/issues/37590
Fixes: https://tracker.ceph.com/issues/38168
Fixes: https://tracker.ceph.com/issues/42412
Fixes: https://tracker.ceph.com/issues/43899
Fixes: https://tracker.ceph.com/issues/44749
Fixes: https://tracker.ceph.com/issues/44783
Fixes: https://tracker.ceph.com/issues/44951
Fixes: https://tracker.ceph.com/issues/46031
Fixes: https://tracker.ceph.com/issues/46033
Signed-off-by: Jan Fajerski jfajerski@suse.com
Some things are still TODO