Bug 1492675 - [ceph-ansible] - value of fetch_directory in rhcs.yml getting ignored
Summary: [ceph-ansible] - value of fetch_directory in rhcs.yml getting ignored
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 3.0
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: rc
: 3.0
Assignee: Sébastien Han
QA Contact: Vasishta
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-18 12:58 UTC by Vasishta
Modified: 2017-12-05 23:44 UTC (History)
9 users (show)

Fixed In Version: RHEL: ceph-ansible-3.0.0-0.1.rc9.el7cp Ubuntu: ceph-ansible_3.0.0~rc9-2redhat1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-05 23:44:17 UTC
Embargoed:


Attachments (Terms of Use)
File contains contents ansible-playbook log (1015.01 KB, text/plain)
2017-09-18 12:58 UTC, Vasishta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 1900 0 None None None 2017-10-09 14:45:33 UTC
Red Hat Product Errata RHBA-2017:3387 0 normal SHIPPED_LIVE Red Hat Ceph Storage 3.0 bug fix and enhancement update 2017-12-06 03:03:45 UTC

Description Vasishta 2017-09-18 12:58:13 UTC
Created attachment 1327386 [details]
File contains contents ansible-playbook log

Description of problem:
When running ansible-playbook, irrespective of value initialized for fetch_directory, 'fetch/' is assumed as path for fetch_directoy.
While using root user as ansible user, a folder named 'fetch' is getting created in /usr/share/ceph-ansible, playbook is failing for non-root users if non-root user doesn't have permissions to write in /usr/share/ceph-ansible directory.

Version-Release number of selected component (if applicable):
ceph-ansible-3.0.0-0.1.rc8.1.el7cp.noarch

How reproducible:
Always

Steps to Reproduce:
1. Configure ceph-ansible to get a cluster up.
2. Run ansible-playbook site.yml

Actual results:
Value of fetch_directory in rhcs.yml getting ignored. 

Expected results:
Value initialized for fetch_directory in rhcs.yml must be considered.

Additional info:
Value initialized in rhcs.yml -
 
$ cat group_vars/rhcs.yml | egrep -v ^# | grep -v ^$ |grep -n fetch
3:fetch_directory: ~/ceph-ansible-keys

ansible log snippet (please refer file for complete log)- 
 "msg": "There was an issue creating fetch as requested: [Errno 13] Permission denied: 'fetch'", 
    "path": "fetch/", 
    "state": "absent"

Comment 2 seb 2017-09-18 13:23:18 UTC
You have to copy, rhcs.yml to all.yml.

Comment 3 Harish NV Rao 2017-10-09 14:29:06 UTC
@Ken, when can we expect this to be ON_QA

Comment 4 Ken Dreyer (Red Hat) 2017-10-09 14:47:03 UTC
Note, as of https://github.com/ceph/ceph-ansible/pull/1900 (landed in 3.0.0rc9), there is no more need to copy rhcs.yml to all.yml, because the contents are identical downstream.

Comment 6 Vasishta 2017-10-10 08:28:34 UTC
It can be observed that all.yml is present in group_vars identical to rhcs.yml as Ken has mentioned in Comment 4.

Moving to VERIFIED state.

Comment 9 errata-xmlrpc 2017-12-05 23:44:17 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.

https://access.redhat.com/errata/RHBA-2017:3387


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