Actions
Feature #47165
closedUpdate orch device ls (plain) to show the LSM data now available from ceph-volume
% Done:
70%
Source:
Tags:
Backport:
Description
Data returned from ceph-volume now includes libstoragemgmt data (health, transport, led support etc), so the orch device ls command should provide this information to the CLI user.
The general idea is as follows;
if the lsm_data dictionary is populated with usable info the table field layout would have the following columns
HOST, PATH, TYPE, RPM, TRANSPORT, SIZE, VENDOR, MODEL, SERIAL, HEALTH, IDENT*, FAULT*, AVAIL, REJECT_REASONS
- IDENT and FAULT would show ON/OFF or N/A - so after running a ceph device light on, it's state would be visible here too (after a refresh!)
if the lsm_data is not usable the output reverts to the original layout (with the exception of device_id (since this is a composite variable)
HOST, PATH, TYPE, SIZE, VENDOR, MODEL, SERIAL, AVAIL, REJECT_REASONS
Updated by Sebastian Wagner over 3 years ago
- Related to Bug #45872: ceph orch device ls exposes the `device_id` under the DEVICES column which isn't too useful for the user added
Updated by Sebastian Wagner over 3 years ago
- Description updated (diff)
We're quickly approaching a state where the table is too big to look nice.
Might probably make sense to add something like
ceph orch device ls --format wide
or similar. See #45872 for a similar proposal with similar problems already!
Updated by Paul Cuzner over 3 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 70
- Pull request ID set to 36894
PR raised which gives the following output
# bin/ceph orch device ls Hostname Path Type Serial Size Health Ident Fault Available rhs-cli-02.ceph-dev.lab.eng.rdu2.redhat.com /dev/sda hdd 25A0A05OFRD6 300G Good N/A N/A No rhs-cli-02.ceph-dev.lab.eng.rdu2.redhat.com /dev/sdb hdd 2590A07QFRD6 300G Good N/A N/A No
and wide mode
# bin/ceph orch device ls --wide Hostname Path Type Transport RPM Vendor Model Serial Size Health Ident Fault Available Reject Reasons rhs-cli-02.ceph-dev.lab.eng.rdu2.redhat.com /dev/sda hdd SAS 10000 TOSHIBA AL13SEB300 25A0A05OFRD6 300G Good N/A N/A No locked, Insufficient space (<5GB) on vgs, LVM detected rhs-cli-02.ceph-dev.lab.eng.rdu2.redhat.com /dev/sdb hdd SAS 10000 TOSHIBA AL13SEB300 2590A07QFRD6 300G Good N/A N/A No locked, Insufficient space (<5GB) on vgs, LVM detected
Actions