Skip to content
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

nautilus: ceph-volume: don't use container classes in api/lvm.py #35878

Merged
merged 7 commits into from Aug 12, 2020

Conversation

andrewschoen
Copy link
Contributor

@andrewschoen andrewschoen commented Jul 1, 2020

backport of #32493 and #36219

@rishabh-d-dave
Copy link
Contributor

jenkins test ceph-volume tox

@smithfarm smithfarm added this to the nautilus milestone Jul 7, 2020
@pdvian
Copy link

pdvian commented Jul 14, 2020

jenkins test dashboard backend

@andrewschoen andrewschoen requested a review from jan--f July 14, 2020 19:44
@andrewschoen
Copy link
Contributor Author

I've backported #36219 here as well.

@andrewschoen
Copy link
Contributor Author

jenkins test ceph-volume tox

@andrewschoen
Copy link
Contributor Author

jenkins test dashboard backend

@jan--f
Copy link
Contributor

jan--f commented Aug 3, 2020

jenkins test dashboard backend

@andrewschoen
Copy link
Contributor Author

jenkins test ceph-volume tox

@jan--f
Copy link
Contributor

jan--f commented Aug 4, 2020

Something is off with the API tests. Maybe someone from the @ceph/dashboard team can chime in here?

@jan--f
Copy link
Contributor

jan--f commented Aug 4, 2020

jenkins test make check

@andrewschoen
Copy link
Contributor Author

jenkins test ceph-volume tox

@rishabh-d-dave
Copy link
Contributor

jenkins test dashboard backend

rishabh-d-dave and others added 7 commits August 4, 2020 15:03
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>
(cherry picked from commit 2f5c10c)
Use api.lvm.get_lvs() and api.lvm.get_first_lv() instead and update
tests.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 5301c49)
Use api.lvm.get_lvs() and api.lvm.get_first_lv() instead and update the
tests.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit b225405)
Update api.lvm.get_first_pv() and api.lvm.get_pvs() instead and update
tests.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit a6e3c69)
Use api.lvm.get_vgs() and api.lvm.get_first_vg() instead and update
tests.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit dfe6b1b)
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>
(cherry picked from commit ca1d3e6)
2f5c10c introduced a bug:

`ceph-volume lvm zap` command fails under certain conditions.

when passing `--osd-id` or `--osd-fsid` to `ceph-volume lvm zap` command
it tries to zap additionnal devices that have nothing to do with the osd
being zapped.

When calling `api.get_lvs()` in `ensure_associated_lvs()` we have to
pass the osd-id/osd-fsid information so only related devices are
returned by `get_lvs()` method

Closes: https://tracker.ceph.com/issues/46627

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit e94aef6)
@andrewschoen
Copy link
Contributor Author

jenkins test ceph-volume tox

@andrewschoen
Copy link
Contributor Author

@jan--f the tox tests are failing for me the same way in #35881. Are we perhaps missing a backport for nautilus?

@rishabh-d-dave
Copy link
Contributor

rishabh-d-dave commented Aug 6, 2020

Wrote a fix - #36493.

#36372 contains a fix but there's no plan to backport it beyond Octopus (see - #36372 (comment)).

@jan--f jan--f merged commit d78d05b into nautilus Aug 12, 2020
@jan--f jan--f deleted the wip-nautilus-32493 branch August 12, 2020 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants