Bug 2317528 - [RFE] Support adding multiple labels to a ceph host in one command
Summary: [RFE] Support adding multiple labels to a ceph host in one command
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Cephadm
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 8.1
Assignee: Adam King
QA Contact: Vidushi Mishra
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-09 09:24 UTC by Vidushi Mishra
Modified: 2025-06-26 12:17 UTC (History)
7 users (show)

Fixed In Version: ceph-19.2.1-152.el9cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2025-06-26 12:17:13 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-9965 0 None None None 2024-10-09 09:24:39 UTC
Red Hat Product Errata RHSA-2025:9775 0 None None None 2025-06-26 12:17:16 UTC

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


Note You need to log in before you can comment on or make changes to this bug.