New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ceph-volume: don't use container classes in api/lvm.py #32493
Conversation
efc80ef
to
abd4520
Compare
|
Rebased the PR, unit tests are passing locally. Please review the PR. @jan--f |
abd4520
to
fa7d2ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comments as in #31700 apply. Otherwise look to be on a good way.
|
retest this please |
|
jenkins test ceph-volume tox |
fa7d2ed
to
37be284
Compare
|
Just a rebase. Unit tests were passing locally. |
|
jenkins test ceph-volume tox |
37be284
to
b8b1189
Compare
|
jenkins test ceph-volume tox |
|
Sorry...couldn't avoid those conflicts. |
b8b1189
to
15fe601
Compare
|
No worries. |
|
jenkins test ceph-volume tox |
|
@jan--f Unit tests passed. |
|
Same issue as in #31700. But one of these two PRs needs a rebase after the other merged anyway. |
15fe601
to
9a5139e
Compare
|
jenkins test ceph-volume tox |
9a5139e
to
b74b5f6
Compare
|
jenkins test ceph-volume tox |
d3210ba
to
759cf45
Compare
|
jenkins test ceph-volume all |
|
jenkins test ceph-volume tox |
1 similar comment
|
jenkins test ceph-volume tox |
|
Can't reproduce the error on tox job, tried fedora 31 as well as centos 8. See https://gist.github.com/rishabh-d-dave/78e433fb53d58b891c3c5434f7d4b540 |
|
jenkins test ceph-volume tox |
|
@jan--f @andrewschoen tox tests too passed. |
759cf45
to
d90f86c
Compare
|
Rebased my branch since "make check" wasn't passing and the failure isn't related to this PR. |
|
jenkins test ceph-volume tox |
|
jenkins test ceph-volume all |
Replace code using class Volumes by methods get_lvs() and get_first_lv(). Also, update the tests accordingly. Signed-off-by: Rishabh Dave <ridave@redhat.com>
Use api.lvm.get_lvs() and api.lvm.get_first_lv() instead and update tests. Signed-off-by: Rishabh Dave <ridave@redhat.com>
Use api.lvm.get_lvs() and api.lvm.get_first_lv() instead and update the tests. Signed-off-by: Rishabh Dave <ridave@redhat.com>
Update api.lvm.get_first_pv() and api.lvm.get_pvs() instead and update tests. Signed-off-by: Rishabh Dave <ridave@redhat.com>
Use api.lvm.get_vgs() and api.lvm.get_first_vg() instead and update tests. Signed-off-by: Rishabh Dave <ridave@redhat.com>
Since it calls get_lv_from_argument() internally and use get_first_lv() instead and update tests. Signed-off-by: Rishabh Dave <ridave@redhat.com>
d90f86c
to
ca1d3e6
Compare
|
jenkins test ceph-volume tox |
|
jenkins test ceph-volume all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Use
get_lvs,get_vgsandget_pvsinstead. The hallmark differencebetween usage of these methods and container classes is that these methods
use option
-Sto filter LVM devs. Seelvs -S --helpfor more details onthese filters.
Changes to api/lvm.py will be merged separately; see PR #32231. Only
devices/lvm/listing.py is an exception in this PR since refactoring on this
file happens on a separate PR (see #31700).
These containers classes will be removed from api/lvm.py on a separate PR
after this and related PR merges.
Note: not using these container classes means LVM devs would no more be
cached by ceph-volume.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard backendjenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox