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

pacific: ceph-volume: fixes fallback to stat in is_device and is_partition #54709

Merged
merged 2 commits into from Jan 24, 2024

Conversation

k0ste
Copy link
Contributor

@k0ste k0ste commented Nov 29, 2023

backport tracker: https://tracker.ceph.com/issues/63677


backport of #53798
parent tracker: https://tracker.ceph.com/issues/58812

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

@k0ste k0ste requested a review from a team as a code owner November 29, 2023 11:02
@github-actions github-actions bot added this to the pacific milestone Nov 29, 2023
@k0ste k0ste force-pushed the wip-63677-pacific branch 2 times, most recently from 54ad57c to 830ad44 Compare December 1, 2023 17:49
Copy link
Contributor

@asm0deuz asm0deuz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

asm0deuz and others added 2 commits January 24, 2024 01:28
os.stat (or lstat) cannot distinguish a block device from
a partition.

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

Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit 52ca4a6)
This makes ceph-volume report partitions in inventory.
A partition is a valid device for `ceph-volume lvm prepare`
so we should report them in inventory (when using `--list-all`
parameter).

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 00ba00f)

Conflicts:
  - file: src/ceph-volume/ceph_volume/util/device.py
    comment: pacific don't have --list-all, remove from init
  - src/ceph-volume/ceph_volume/util/disk.py
    comment: manually resolve conflict in block_types[]
Copy link
Contributor

@pereman2 pereman2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yuriw yuriw merged commit 1f4304b into ceph:pacific Jan 24, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants