Project

General

Profile

Feature #47774

mgr - Tasks #46756: mgr/dashboard: orchestration workflows & enhancements

orch,cephadm: host search/add with masks

Added by Ernesto Puerta 3 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
orchestrator
Target version:
% Done:

0%

Source:
Tags:
dashboard
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

For the bulk addition of nodes, a search command (or add --dry-run) would be useful. Additionally, for dashboard integration, a list of potential nodes should be presented in order to cherry-pick the specific nodes.

With masks/lengths and fnmatch for exclusion patterns:

> ceph orch host search 192.0.2.0/255.255.255.0 --exclude 192.0.2.1 --exclude 192.0.2.[5-9]

> ceph orch host search 192.0.2.0/24 --exclude 192.0.2.1 --exclude 192.0.2.[5-9]

# or, reusing a existing command:

> ceph orch host add --dry-run 192.0.2.0/255.255.255.0 --exclude 192.0.2.1 --exclude 192.0.2.[5-9]

> ceph orch host add --dry-run 192.0.2.0/255.255.255.0 --exclude 192.0.2.1 --exclude 192.0.2.[5-9]

Ideally this should also involve that the host add command supports wildcard, but it's ok if the hosts are still added one by one.

History

#1 Updated by Ernesto Puerta 3 months ago

  • Parent task set to #46756

Also available in: Atom PDF