]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: Fix splitting with too many parts 63012/head
authorJanne Heß <janne@hess.ooo>
Mon, 28 Apr 2025 09:04:25 +0000 (11:04 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 30 Apr 2025 12:28:41 +0000 (12:28 +0000)
commitbf9681f5d5b9c949999462a206a3e74b69bd6d44
treecd644dc2926caa1d9d692584327a04b97c2d6df3
parenta24e4a9236cb4a12d2b1da474366bcd5c7fdd22f
ceph-volume: Fix splitting with too many parts

The data can be anything and also contain a `=`, causing the line to
fail with `Too many values to unpack`. In my case, it failed with
`ID_FS_LABEL=pvc_name=rook-ceph-lvm-data-44f2gc`.

Regression was introduced here: https://github.com/ceph/ceph/pull/60006

Fixes: https://tracker.ceph.com/issues/71101
Signed-off-by: Janne Heß <janne@hess.ooo>
(cherry picked from commit 315fb96243549afba316c60a8d74c24c9417c18e)
src/ceph-volume/ceph_volume/tests/util/test_disk.py
src/ceph-volume/ceph_volume/util/disk.py