Bug 2040161

Summary: [RBD-Mirror] - Bootstrap import error message " unable to find a keyring on /etc/ceph/..keyring"
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: RBD-MirrorAssignee: Ilya Dryomov <idryomov>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2CC: ceph-eng-bugs, ceph-qe-bugs, tserlin, vereddy
Target Milestone: ---   
Target Release: 4.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-14.2.22-50.el8cp, ceph-14.2.22-50.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-05 07:54:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vasishta 2022-01-13 06:58:44 UTC
This bug was initially created as a copy of Bug #1981186

I am copying this bug because: Issue has been fixed in 5.x
Needs to be backported to 4.x



Description of problem: During bootstrap import on the secondary cluster we get the below error message

[ceph: root@ceph-hmunjulu-1626052127701-node1-mon-mgr-installer-node-export /]# rbd mirror pool peer bootstrap import --site-name site-b --direction rx-only data /root/bootstrap_token_site-a
2021-07-12T01:40:29.072+0000 7fc1ec4ff2c0 -1 auth: unable to find a keyring on /etc/ceph/..keyring,/etc/ceph/.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,: (2) No such file or directory
2021-07-12T01:40:29.074+0000 7fc1ec4ff2c0 -1 auth: unable to find a keyring on /etc/ceph/..keyring,/etc/ceph/.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,: (2) No such file or directory
2021-07-12T01:40:29.074+0000 7fc1ec4ff2c0 -1 auth: unable to find a keyring on /etc/ceph/..keyring,/etc/ceph/.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,: (2) No such file or directory


How reproducible: 2/2


Steps to Reproduce:
1.Site a - Create a bootstrap 
[ceph: root@rbd-client-site-a /]# rbd mirror pool peer bootstrap create --site-name site-a data > /root/bootstrap_token_site-a
2. Copy the bootstrap token file to the site-b storage cluster.
3. Import the bootstrap token on the site-b storage cluster:
[ceph: root@rbd-client-site-b /]# rbd mirror pool peer bootstrap import --site-name site-b --direction rx-only data /root/bootstrap_token_site-a


Actual results: [ceph: root@ceph-hmunjulu-1626052127701-node1-mon-mgr-installer-node-export /]# rbd mirror pool peer bootstrap import --site-name site-b --direction rx-only data /root/bootstrap_token_site-a
2021-07-12T01:40:29.072+0000 7fc1ec4ff2c0 -1 auth: unable to find a keyring on /etc/ceph/..keyring,/etc/ceph/.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,: (2) No such file or directory
2021-07-12T01:40:29.074+0000 7fc1ec4ff2c0 -1 auth: unable to find a keyring on /etc/ceph/..keyring,/etc/ceph/.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,: (2) No such file or directory
2021-07-12T01:40:29.074+0000 7fc1ec4ff2c0 -1 auth: unable to find a keyring on /etc/ceph/..keyring,/etc/ceph/.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,: (2) No such file or directory



Expected results: Import should not give any error

Comment 8 errata-xmlrpc 2022-05-05 07:54:26 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 (Moderate: Red Hat Ceph Storage 4.3 Security and Bug Fix update), 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-2022:1716