Bug 1492160

Summary: [ceph-ansible]: mandatory variable check failed even though its enabled
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Tejas <tchandra>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: medium Docs Contact:
Priority: high    
Version: 3.0CC: adeza, aschoen, ceph-eng-bugs, gmeno, hnallurv, nthomas, sankarshan, seb
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Linux   
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:43:31 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:
Bug Depends On:    
Bug Blocks: 1484083    
Attachments:
Description Flags
ceph-anible playbook none

Description Tejas 2017-09-15 15:53:37 UTC
Created attachment 1326543 [details]
ceph-anible playbook

Description of problem:
      Running site.yml on a existing cluster, for configuring iSCSI gateways.
Seeing this error:

TASK [ceph-common : make sure an installation origin was chosen] ************************************************************************************************************
task path: /usr/share/ceph-ansible/roles/ceph-common/tasks/checks/check_mandatory_vars.yml:2
fatal: [havoc]: FAILED! => {"changed": false, "failed": true, "msg": "choose an installation origin between repository, distro and local\nValid ceph_origin are: [u'repository', u'distro', u'local']"}
fatal: [mustang]: FAILED! => {"changed": false, "failed": true, "msg": "choose an installation origin between repository, distro and local\nValid ceph_origin are: [u'repository', u'distro', u'local']"}
fatal: [skytrain]: FAILED! => {"changed": false, "failed": true, "msg": "choose an installation origin between repository, distro and local\nValid ceph_origin are: [u'repository', u'distro', u'local']"}



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


Additional info:
Attaching the playbook log.

options enabled in rhcs.yml:
ceph_origin: distro
ceph_repository: rhcs
ceph_stable_release: luminous
monitor_interface: ens2f0
public_network: 10.70.39.0/24

Comment 2 seb 2017-09-18 13:49:44 UTC
sorry you have to copy rhcs.yml to all.yml
fix upstream, tag today https://github.com/ceph/ceph-ansible/pull/1900

Comment 9 errata-xmlrpc 2017-12-05 23:43:31 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