]> review.fuel-infra Code Review - packages/trusty/ceph.git/commit
ceph-disk: improve base device/partition number calculation 07/15607/1
authorAlexey Sheplyakov <asheplyakov@mirantis.com>
Tue, 29 Dec 2015 13:29:06 +0000 (16:29 +0300)
committerAlexey Sheplyakov <asheplyakov@mirantis.com>
Tue, 29 Dec 2015 14:01:52 +0000 (17:01 +0300)
commit1779febd5f6740a844b147291c3cfd3e24b76ae2
treef22cd28ffbb04fcdab87d4fd3b3b6073ae0b9a5b
parentcc0c175908eb0d44c6403f3eedf64a96af86c1dc
ceph-disk: improve base device/partition number calculation

split_dev_base_partnum fails to handle the device nodes names containing
digits (like those /dev/disk/by-id generated by udev), as a result

ceph-deploy osd prepare $node:/dev/sdc3:/dev/disk/by-id/wwn-0x50014ee00386a548-part3

fails, although it works fine this way

ceph-deploy osd prepare $node:/dev/sdc3:/dev/sde3

where /dev/sde3 is the very same partition (i.e. it's the destination of
the /dev/disk/by-id/wwn-0x50014ee00386a548-part3 symlink).

The problem has been silently fixed in the master branch by commits

https://github.com/ceph/ceph/commit/0e34742b968e
https://github.com/ceph/ceph/commit/3bc95dfc1b88
https://github.com/ceph/ceph/commit/77ff7c3dc6dd

Cherry pick those, and https://github.com/ceph/ceph/commit/1c5fea67
which fixes yet another symlink related problem.

Closes-Bug: #1529841
Change-Id: I37f83266efc4468103afd3fe82336b83f91fbe58
debian/changelog
debian/patches/Compare-parted-output-with-the-dereferenced-path.patch [new file with mode: 0644]
debian/patches/ceph-disk-is_mpath-predicate-for-multipath-devices.patch [new file with mode: 0644]
debian/patches/ceph-disk-multipath-support-for-is_partition-and-lis.patch [new file with mode: 0644]
debian/patches/ceph-disk-multipath-support-for-split_dev_base_partn.patch [new file with mode: 0644]
debian/patches/series