Project

General

Profile

Bug #11612

ceph-disk: get_partition_type fails on /dev/cciss...

Added by Loic Dachary over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
05/13/2015
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
hammer, firefly
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

Because the regular expression is incorrect in ceph-disk, it should be

    if 'loop' in dev or 'cciss' in dev:
        (base, partnum) = re.match('(.*\d+)p(\d+)', dev).group(1, 2)
    else:
        (base, partnum) = re.match('(\D+)(\d+)', dev).group(1, 2)


Related issues

Copied to Ceph - Backport #11759: ceph-disk: get_partition_type fails on /dev/cciss... Resolved 05/13/2015
Copied to Ceph - Backport #11760: ceph-disk: get_partition_type fails on /dev/cciss... Resolved 05/13/2015

Associated revisions

Revision 9b62cf25 (diff)
Added by Ilja Slepnev over 3 years ago

ceph-disk: support NVMe device partitions

Linux nvme kernel module v0.9 enumerate devices as following:

/dev/nvme0 - characted revice
/dev/nvme0n1 - whole block device
/dev/nvme0n1p1 - first partition
/dev/nvme0n1p2 - second partition

http://tracker.ceph.com/issues/11612 Fixes: #11612

Signed-off-by: Ilja Slepnev <>

Revision 90a1a758 (diff)
Added by Ilja Slepnev over 3 years ago

ceph-disk: support NVMe device partitions

Linux nvme kernel module v0.9 enumerate devices as following:

/dev/nvme0 - characted revice
/dev/nvme0n1 - whole block device
/dev/nvme0n1p1 - first partition
/dev/nvme0n1p2 - second partition

http://tracker.ceph.com/issues/11612 Fixes: #11612

Signed-off-by: Ilja Slepnev <>
(cherry picked from commit 9b62cf254d02d30609793be8b1cb8a94f38891f1)

Conflicts:
src/ceph-disk

Revision 82988d61 (diff)
Added by Ilja Slepnev over 3 years ago

ceph-disk: support NVMe device partitions

Linux nvme kernel module v0.9 enumerate devices as following:

/dev/nvme0 - characted revice
/dev/nvme0n1 - whole block device
/dev/nvme0n1p1 - first partition
/dev/nvme0n1p2 - second partition

http://tracker.ceph.com/issues/11612 Fixes: #11612

Signed-off-by: Ilja Slepnev <>
(cherry picked from commit 9b62cf254d02d30609793be8b1cb8a94f38891f1)

History

#1 Updated by Sage Weil over 3 years ago

  • Project changed from rgw to Ceph

#2 Updated by Loic Dachary over 3 years ago

  • Description updated (diff)
  • Status changed from Need Review to Pending Backport

#3 Updated by Nathan Cutler over 3 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF