Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1544720 - [ceph-ansible] [ceph-container] admin keyring is not copied on to the collocated nodes when copy_admin_key is set to true
Summary: [ceph-ansible] [ceph-container] admin keyring is not copied on to the colloca...
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: Ceph-Ansible
Version: 3.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: z2
: 3.0
Assignee: leseb
QA Contact: subhash
Erin Donnelly
Depends On:
Blocks: 1553254 1557269 1494421 1544643 1546175 1600697
TreeView+ depends on / blocked
Reported: 2018-02-13 11:43 UTC by subhash
Modified: 2018-07-12 19:43 UTC (History)
16 users (show)

Fixed In Version: RHEL: ceph-ansible-3.0.31-1.el7cp Ubuntu: ceph-ansible_3.0.31-2redhat1
Doc Type: Bug Fix
Doc Text:
Previously, when using "ceph-ansible" with the "copy_admin_key" option set to "true", the administrator's keyring would not copy to the other nodes in the Ceph Storage Cluster. With this update, the "copy_admin_key" option works as expected when set to "true".
Clone Of:
: 1546175 (view as bug list)
Last Closed: 2018-04-26 17:38:39 UTC
Target Upstream Version:

Attachments (Terms of Use)
FIle contains all.yml,osds.yml,hosts,ansible-playbook log (deleted)
2018-02-13 11:43 UTC, subhash
no flags Details

System ID Priority Status Summary Last Updated
Github ceph ceph-ansible pull 2428 None None None 2018-03-02 11:10:14 UTC
Github ceph ceph-ansible pull 2511 None None None 2018-04-10 19:51:31 UTC
Red Hat Product Errata RHBA-2018:1259 None None None 2018-04-26 17:40:22 UTC

Description subhash 2018-02-13 11:43:15 UTC
Created attachment 1395278 [details]
FIle contains all.yml,osds.yml,hosts,ansible-playbook log

Description of problem:
The admin keyring is not copied onto the collocated nodes (rgw+osd node ,mds+osd node) even though copy_admin_key is set to true in rgws.yml and mdss.yml config file. 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. collocate RGW and MDS daemons with OSD( OSD+RGW on node & OSD+MDS on another)
2. In yaml conf file osds.yml, keep copy_admin_key to false(defaults) and in 
   rgws.yml & mdss.yml set copy_admin_key to true
3. Run ansible playbook site-docker.yml

Actual results:
admin keyring is not copied onto the collocated nodes

Expected results:
admin keyring should be copied 

Additional info:
Different values for a single parameter in mutliple files( here mdss/rgw yml and osds yml file) should have a conflict ..only one can override the other config,apparently in this case osds.yml file parameter value takes the precedence.Not sure if it is supposed to work that way and also which yml config file should take precedence in collocated scenarios either mdss/rgws.yml or osd.yml.

Comment 5 Vasishta 2018-02-15 05:35:17 UTC
User needs to copy admin keyring to RGW/MDS using scp -

From monitor node -

#scp /etc/ceph/<cluster-name>.client.admin.keyring <rgw-or-mds>:/etc/ceph/

Comment 9 leseb 2018-03-13 16:47:37 UTC
will be in v3.0.28

Comment 12 leseb 2018-04-05 09:35:37 UTC
Erin, doc is fine thanks.

Comment 13 Vasishta 2018-04-10 06:54:53 UTC
The issue has been fixed for a RGW node but we are facing same issue for MDS, clients and NFS nodes.

Moving BZ back to ASSIGNED state.

Comment 19 errata-xmlrpc 2018-04-26 17:38:39 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

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