Project

General

Profile

Feature #55576

[RFE] Add a rescan subcommand to the orch device command

Added by Paul Cuzner 7 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
orchestrator
Target version:
% Done:

0%

Source:
Tags:
backport_processed
Backport:
quincy, pacific
Reviewed:
Affected Versions:
Pull request ID:

Description

When disks are added/removed on a server (or enclosure) the bus/adapter may need to be rescanned to pick up the changes.

This is the kind of UX that should work.
ceph orch device rescan <host>

Running this with rook/k8s would be a no-op, but for cephadm it could run a cephadm subcommand on the host that rescans all scsi buses.


Related issues

Copied to Orchestrator - Backport #56743: pacific: [RFE] Add a rescan subcommand to the orch device command Resolved
Copied to Orchestrator - Backport #56744: quincy: [RFE] Add a rescan subcommand to the orch device command Resolved

History

#2 Updated by Paul Cuzner 7 months ago

Sebastian Wagner wrote:

https://github.com/ceph/ceph/blob/524ef52573141c819a71f9da93dac8db9fb81fc0/src/pybind/mgr/cephadm/module.py#L2051

maybe this just needs proper documentation?

A rescan requires a "probe" against host adapters - this triggers device node creation from the kernel. Performing a ceph-volume inventory only processes what is already defined.

#3 Updated by Paul Cuzner 6 months ago

  • Pull request ID set to 46420

added reference to PR

#4 Updated by Paul Cuzner 6 months ago

  • Status changed from New to Fix Under Review
  • Assignee set to Paul Cuzner

#5 Updated by Adam King 4 months ago

  • Backport changed from quincy pacific to quincy, pacific

#6 Updated by Adam King 4 months ago

  • Status changed from Fix Under Review to Pending Backport

#7 Updated by Backport Bot 4 months ago

  • Copied to Backport #56743: pacific: [RFE] Add a rescan subcommand to the orch device command added

#8 Updated by Backport Bot 4 months ago

  • Copied to Backport #56744: quincy: [RFE] Add a rescan subcommand to the orch device command added

#9 Updated by Backport Bot 4 months ago

  • Tags set to backport_processed

#10 Updated by Adam King 4 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF