Project

General

Profile

Bug #45872

ceph orch device ls exposes the `device_id` under the DEVICES column which isn't too useful for the user

Added by Joshua Schmid 2 months ago. Updated 5 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
cephadm
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

Instead of just listing the device_id, we should consider adding columns for disk properties that can be filtered for in the drivegroup/osdspec.

HOST           PATH      TYPE   SIZE  DEVICE MODEL      VENDOR        ROTATIONAL AVAIL  REJECT REASONS

cephadm-dev    /dev/vdb  hdd   25.0G  foo    model_str  vendor_str    1|0        False  Insufficient space (<5GB) on vgs, LVM detected, locked

This will extend the table quite a bit, so maybe we should limit the output to only the more relevant attributes. Alternatively there can be a `--long|--details` or similar switch to extend the output.

History

#1 Updated by Sebastian Wagner 2 months ago

  • Description updated (diff)

#2 Updated by Sebastian Wagner 2 months ago

what about poiting users to --format yaml? that would be an easy fix.

#3 Updated by Joshua Schmid 2 months ago

Sebastian Wagner wrote:

what about poiting users to --format yaml? that would be an easy fix.

Yep, taht's probably an accepted workaround. However this will hit you hard when the cluster is bigger. The proper fix for this would be to only list columns that we support in the DriveGroups.

#4 Updated by Joshua Schmid 29 days ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 35946

#5 Updated by Sebastian Wagner 14 days ago

  • Status changed from Fix Under Review to Pending Backport

#6 Updated by Sebastian Wagner 5 days ago

  • Status changed from Pending Backport to Resolved
  • Target version changed from v16.0.0 to v15.2.5

Also available in: Atom PDF