Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1492675

Summary: [ceph-ansible] - value of fetch_directory in rhcs.yml getting ignored
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: urgent Docs Contact:
Priority: high    
Version: 3.0CC: adeza, aschoen, ceph-eng-bugs, gmeno, hnallurv, kdreyer, nthomas, sankarshan, seb
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:44:17 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:
Attachments:
Description Flags
File contains contents ansible-playbook log none

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