Bug 1981186

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: Harish Munjulur <hmunjulu>
Component: RBD-MirrorAssignee: Ilya Dryomov <idryomov>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: medium Docs Contact: Mary Frances Hull <mhull>
Priority: unspecified    
Version: 5.0CC: agunn, ceph-eng-bugs, ceph-qe-bugs, gpatta, idryomov, jelopez, mhull, tserlin, vashastr, vereddy
Target Milestone: ---   
Target Release: 5.0z1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-16.2.0-136.el8cp Doc Type: Bug Fix
Doc Text:
.Improvements to the `rbd mirror pool peer bootstrap import` command Previously, running the `rbd mirror pool peer bootstrap import` command caused `librados` to log errors about a missing key ring file in cases where a key ring was not required. This can confuse site administrators, because it appears as though the command failed due to a missing key ring. With this release, `librados` no longer log errors in cases where a remote storage cluster’s key ring is not required, such as when the bootstrap token contains the key.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-02 16:38:27 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: 1959686, 2005838    

Description Harish Munjulur 2021-07-12 01:54:37 UTC
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 1 Veera Raghava Reddy 2021-07-12 05:12:34 UTC
Hi Harish,
Moving this BZ to 5.0z1. If this is a blocker for 5.0, share the details and we can review to include in 5.0.

Comment 12 errata-xmlrpc 2021-11-02 16:38:27 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 5.0 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/RHBA-2021:4105