Bug 2313491

Summary: [cephadm] Bootstrap command does not accept the "--yes-i-know" flag
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Sayalee <saraut>
Component: CephadmAssignee: Adam King <adking>
Status: CLOSED ERRATA QA Contact: Sayalee <saraut>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.0CC: akraj, cephqe-warriors, tserlin
Target Milestone: ---   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-19.1.1-65.el9cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-25 09:11:43 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:
Bug Depends On:    
Bug Blocks: 2317218    

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