]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume: Fix splitting with too many parts
authorJanne Heß <janne@hess.ooo>
Mon, 28 Apr 2025 09:04:25 +0000 (11:04 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Mon, 28 Apr 2025 16:26:05 +0000 (16:26 +0000)
commite8cd09fbf75310cd2cfc59b40d67542615fee129
treeeeba96224ffbf74276408da56dc69632dae53bcf
parent8df4497ba96ef4377930090e2bf3062ef5f819dc
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