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

ceph-volume: quick fix in zap.py #50745

Merged
merged 1 commit into from Apr 24, 2023
Merged

ceph-volume: quick fix in zap.py #50745

merged 1 commit into from Apr 24, 2023

Conversation

guits
Copy link
Contributor

@guits guits commented Mar 29, 2023

api.get_single_pv(filters={'lv_uuid': lv.lv_uuid}) needs to be called only if --destroy is passed in order to remove vg and pv when there's nothing left.

With old deployments, it is possible that a lv_uuid matches more than 1 PV.
Given that get_single_pv() is only needed when --destroy is passed, let's move this call where it is actually needed.

This makes ceph-volume lvm zap fail even though

Fixes: https://tracker.ceph.com/issues/59210

`api.get_single_pv(filters={'lv_uuid': lv.lv_uuid})` needs to be called
only if `--destroy` is passed in order to remove vg and pv when there's
nothing left.

With old deployments, it is possible that a lv_uuid matches more than 1
PV.
Given that `get_single_pv()` is only needed when `--destroy` is passed,
let's move this call where it is actually needed.

This makes `ceph-volume lvm zap` fail even though

Fixes: https://tracker.ceph.com/issues/59210

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
@adk3798
Copy link
Contributor

adk3798 commented Apr 24, 2023

https://pulpito.ceph.com/adking-2023-04-20_12:02:37-orch:cephadm-wip-adk-testing-2023-04-20-0105-distro-default-smithi/

Reruns of all but upgrade-with-workload jobs (which are known to timeout after multiple hours currently, so reruns would waste a lot of resources): https://pulpito.ceph.com/adking-2023-04-22_17:05:01-orch:cephadm-wip-adk-testing-2023-04-20-0105-distro-default-smithi/

After reruns, 2 dead and 5 failed jobs:

  • 2 dead jobs were infra failures: "Failed to download metadata for repo 'CentOS-PowerTools'
  • 2 failed jobs on staggered upgrade tests, https://tracker.ceph.com/issues/58535 + fix for it not working yet
  • 2 failed jobs on new keepalive-only test. It's a new test that doesn't work yet, shouldn't affect being able to merge other PRs
  • 1 failed test deploying jeagar-tracing. Needs investigation, but doesn't seem related to any PRs in the run.

@guits guits merged commit bfa8bd1 into ceph:main Apr 24, 2023
9 of 11 checks passed
@guits guits deleted the quick-fix-cv branch April 24, 2023 08:35
yuvalif pushed a commit to yuvalif/ceph that referenced this pull request Apr 30, 2023
ceph-volume: quick fix in zap.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants