Bug 2317528

Summary: [RFE] Support adding multiple labels to a ceph host in one command
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vidushi Mishra <vimishra>
Component: CephadmAssignee: Adam King <adking>
Status: CLOSED ERRATA QA Contact: Vidushi Mishra <vimishra>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.0CC: agadge, akane, cephqe-warriors, mkasturi, saraut, sectpromise, tserlin
Target Milestone: ---Keywords: FutureFeature
Target Release: 8.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-19.2.1-152.el9cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-06-26 12:17:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vidushi Mishra 2024-10-09 09:24:16 UTC
Description of problem:

The current process requires running ceph orch host label add for each label, which is time-consuming and error-prone when dealing with many hosts.

Enable support for adding multiple labels at once, such as:

ceph orch host label add <hostname> <label1,label2,label3>


Impact: 
- Saves time by reducing repetitive commands.
- Increases efficiency in managing labels for large deployments.



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Daniel Blackburn 2024-10-10 04:28:58 UTC
(In reply to Vidushi Mishra from comment #0)
> Description of problem:
> https://geometrydashgame.org/
> The current process requires running ceph orch host label add for each
> label, which is time-consuming and error-prone when dealing with many hosts.
> 
> Enable support for adding multiple labels at once, such as:
> 
> ceph orch host label add <hostname> <label1,label2,label3>
> 
> 
> Impact: 
> - Saves time by reducing repetitive commands.
> - Increases efficiency in managing labels for large deployments.
> 
> 
> 
> Version-Release number of selected component (if applicable):
> 
> 
> How reproducible:
> 
> 
> Steps to Reproduce:
> 1.
> 2.
> 3.
> 
> Actual results:
> 
> 
> Expected results:
> 
> 
> Additional info:

The current Ceph command ceph orch host label add requires running the command multiple times for each label you wish to assign to a host. This process can be inefficient, especially when managing a large number of hosts and labels, as it increases the likelihood of errors and consumes significant time.
Version-Release Number:
This section should contain the specific version and release number affected by this issue (if known).
How Reproducible:
Describe if this issue occurs consistently under certain conditions or intermittently.
Steps to Reproduce:
Try to add multiple labels to a host using the current process (ceph orch host label add).
Notice that each label must be added individually, making the process slower and prone to errors.
Actual Results:
Currently, users must run multiple commands to add each label individually, increasing time and the possibility of mistakes.
Expected Results:
A single command should allow adding multiple labels to a host efficiently.
Additional Info:
This enhancement could greatly improve the user experience, particularly for users managing large Ceph clusters with multiple labels across many hosts.

Comment 3 Anuradha Gadge 2025-04-21 13:29:27 UTC
This commit is missed. Creating PR for the same.

Moving ticked back to the assigned state.

Comment 4 Anuradha Gadge 2025-04-22 06:41:29 UTC
PR is merged: https://gitlab.cee.redhat.com/ceph/ceph/-/merge_requests/1116

Comment 8 errata-xmlrpc 2025-06-26 12:17:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Red Hat Ceph Storage 8.1 security, bug fix, and enhancement updates), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2025:9775