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"
You have to copy, rhcs.yml to all.yml.
@Ken, when can we expect this to be ON_QA
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.
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.
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