Feature #47774
closedDashboard - Tasks #46756: mgr/dashboard: orchestration workflows & enhancements
orch,cephadm: host search with filters
0%
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.
Updated by Sebastian Wagner about 3 years ago
- Priority changed from Normal to Low
Updated by Sebastian Wagner about 3 years ago
actually I'd like to go the other way around and enable remote hosts to join the cluster by themselves. Similar to kubeadm
Updated by Sebastian Wagner almost 3 years ago
That would require some magic tricks to generate the list of hosts, like https://docs.ansible.com/ansible/latest/collections/index_inventory.html or similar.I'm somewhat skeptic adding something like this.
Updated by Paul Cuzner almost 3 years ago
Do we really need this? In most enterprise environments I;ve worked in this type of thing gets jumped on by security teams and network admins.
Updated by Ernesto Puerta almost 3 years ago
Paul Cuzner wrote:
Do we really need this? In most enterprise environments I;ve worked in this type of thing gets jumped on by security teams and network admins.
Without this, the only way of adding multiple hosts in large clusters (N ~ 100s) is launch-and-wait or, even worse, forcing users to write scripts (risks are even bigger... from my old days as a Ceph user I sadly remember myself writing a script to delete & create OSDs with asynchronous calls and causing a lots of issues).
Updated by Sebastian Wagner over 2 years ago
- Status changed from New to Fix Under Review
- Assignee set to Adam King
- Pull request ID set to 44020
Updated by Sebastian Wagner over 2 years ago
- Subject changed from orch,cephadm: host search/add with masks to orch,cephadm: host search with filters
- Status changed from Fix Under Review to Pending Backport
Updated by Sebastian Wagner over 2 years ago
- Status changed from Pending Backport to Resolved