Bug 1981186 - [RBD-Mirror] - Bootstrap import error message " unable to find a keyring on /etc/ceph/..keyring"
Summary: [RBD-Mirror] - Bootstrap import error message " unable to find a keyring on /...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD-Mirror
Version: 5.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: 5.0z1
Assignee: Ilya Dryomov
QA Contact: Vasishta
Mary Frances Hull
URL:
Whiteboard:
Depends On:
Blocks: 1959686 2005838
TreeView+ depends on / blocked
 
Reported: 2021-07-12 01:54 UTC by Harish Munjulur
Modified: 2021-12-13 15:58 UTC (History)
10 users (show)

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.
Clone Of:
Environment:
Last Closed: 2021-11-02 16:38:27 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 51628 0 None None None 2021-07-12 12:29:05 UTC
Red Hat Issue Tracker RHCEPH-1365 0 None None None 2021-08-31 12:32:18 UTC
Red Hat Product Errata RHBA-2021:4105 0 None None None 2021-11-02 16:38:56 UTC

Internal Links: 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


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