Project

General

Profile

Bug #52504

raw: list is failing when using logical partition on the host

Added by Dimitri Savineau over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Target version:
% Done:

0%

Source:
Tags:
Backport:
pacific,octopus
Regression:
Yes
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

This is a regression introduced by [1]

When a logical partition is present on the host then the lsblk output displays the parent/child relationship between the device and the partition via the `└─` character.

# lsblk --paths --output=NAME --noheadings
/dev/sda
└─/dev/sda1
/dev/sdb
/dev/sdc
/dev/sdd

Due to this output, the `ceph-volume raw list` command is failing (in fact, the command returns zero but stderr shows the lsblk error)

# ceph-volume raw list
{}
 stderr: lsblk: `-/dev/sda1: not a block device

[1] https://github.com/ceph/ceph/commit/9212420bbc88e0caaf0b2302dd1f379f563f7d26


Related issues

Copied to ceph-volume - Backport #52538: pacific: raw: list is failing when using logical partition on the host Resolved
Copied to ceph-volume - Backport #52540: octopus: raw: list is failing when using logical partition on the host Resolved

History

#1 Updated by Dimitri Savineau over 2 years ago

  • Status changed from New to In Progress
  • Assignee set to Dimitri Savineau

#2 Updated by Dimitri Savineau over 2 years ago

  • Status changed from In Progress to Fix Under Review
  • Target version set to v17.0.0
  • Pull request ID set to 43050

#3 Updated by Guillaume Abrioux over 2 years ago

  • Status changed from Fix Under Review to Pending Backport

#4 Updated by Guillaume Abrioux over 2 years ago

  • Copied to Backport #52538: pacific: raw: list is failing when using logical partition on the host added

#6 Updated by Guillaume Abrioux over 2 years ago

  • Copied to Backport #52540: octopus: raw: list is failing when using logical partition on the host added

#8 Updated by Guillaume Abrioux over 2 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF