Bug 2313491 - [cephadm] Bootstrap command does not accept the "--yes-i-know" flag
Summary: [cephadm] Bootstrap command does not accept the "--yes-i-know" flag
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
high
Target Milestone: ---
: 8.0
Assignee: Adam King
QA Contact: Sayalee
URL:
Whiteboard:
Depends On:
Blocks: 2317218
TreeView+ depends on / blocked
 
Reported: 2024-09-19 08:29 UTC by Sayalee
Modified: 2024-11-25 09:11 UTC (History)
3 users (show)

Fixed In Version: ceph-19.1.1-65.el9cp
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-11-25 09:11:43 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-10084 0 None None None 2024-10-22 10:47:11 UTC
Red Hat Issue Tracker RHCEPH-9827 0 None None None 2024-09-20 03:59:18 UTC
Red Hat Product Errata RHBA-2024:10216 0 None None None 2024-11-25 09:11:48 UTC

Description Sayalee 2024-09-19 08:29:11 UTC
Description of problem:
=======================
In RHCS 6 we decided to continue the support for "--yes-i-know" flag[https://bugzilla.redhat.com/show_bug.cgi?id=2073030].

But in RHCS 8, when the flag is passed to the command, it fails with below error -

# cephadm --verbose --image registry-proxy.engineering.redhat.com/rh-osbs/rhceph:ceph-8.0-rhel-9-containers-candidate-34840-20240918232232 bootstrap --mon-ip 10.70.44.131 --registry-url subscription.rhsm.redhat.com:443 --registry-username qa --registry-password MTQj5t3n5K86p3gH --yes-i-know
usage: cephadm [-h] [--image IMAGE] [--docker] [--data-dir DATA_DIR] [--log-dir LOG_DIR] [--logrotate-dir LOGROTATE_DIR] [--sysctl-dir SYSCTL_DIR]
               [--unit-dir UNIT_DIR] [--verbose] [--log-dest {file,syslog}] [--timeout TIMEOUT] [--retry RETRY] [--env ENV] [--no-container-init]
               [--no-cgroups-split]
               {version,pull,inspect-image,ls,list-networks,adopt,rm-daemon,rm-cluster,run,shell,enter,ceph-volume,zap-osds,unit,unit-install,logs,bootstrap,deploy,_orch,check-host,prepare-host,add-repo,rm-repo,install,registry-login,gather-facts,host-maintenance,agent,disk-rescan,sos}
               ...
cephadm: error: unrecognized arguments: --yes-i-know



Version-Release number of selected component (if applicable):
=============================================================
# rpm -qa | grep cephadm
cephadm-ansible-3.2.0-1.el9cp.noarch
cephadm-19.1.1-62.el9cp.noarch


# cat /etc/yum.repos.d/rh_ceph.repo
[ceph-Tools]
name=ceph-Tools
baseurl=http://download-01.beak-001.prod.iad2.dc.redhat.com/rhel-9/composes/auto/ceph-8.0-rhel-9/RHCEPH-8.0-RHEL-9-20240918.ci.7/compose/Tools/x86_64/os/
gpgcheck=0
enabled=1



How reproducible:
=================
Always


Steps to Reproduce:
=================
1. Run cephadm bootstrap command with flag "--yes-i-know"
e.g.
cephadm bootstrap --cluster-network NETWORK_CIDR --mon-ip IP_ADDRESS --registry-url registry.redhat.io --registry-username USER_NAME --registry-password PASSWORD --yes-i-know


Actual results:
===============
Bootstrap command fails with "unrecognized arguments: --yes-i-know" error.


Expected results:
===============
Command should be successful.


Additional info:
===============

Flag is NOT supported in RHCS 8.0 and RHCS 7 as well.


Squid/8.0 cluster -

[root@localhost cephadm-ansible]# cephadm bootstrap --help | grep yes-i-know
[root@localhost cephadm-ansible]#


Reef/7.x cluster -
[root@ceph-vpap-71-q3drn6-node1-installer ~]# cephadm bootstrap --help | grep yes-i-know
[root@ceph-vpap-71-q3drn6-node1-installer ~]#


Quincy/6.x cluster -
[root@ceph-saraut-clt7ko-node4 ~]# cephadm bootstrap --help | grep yes-i-know
                         [--yes-i-know]
  --yes-i-know          deprecated flag only here for backwards compatibility
[root@ceph-saraut-clt7ko-node4 ~]#

Comment 5 Akash Raj 2024-10-23 06:44:27 UTC
Hi Adam

Please confirm if this needs to go in the 8.0 release notes. If so, please provide the doc text.

Thanks.

Comment 8 errata-xmlrpc 2024-11-25 09:11:43 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 (Red Hat Ceph Storage 8.0 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/RHBA-2024:10216


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