Created attachment 1492859[details]
ansible.log file
Description of problem:
osd_auto_discovery is not working
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.Added osd_auto_discovery:true in hosts file
2.executed playbook
3.
Actual results:
[ERROR]: [magna111] Validation failed for variable: osd_auto_discovery
[ERROR]: [magna111] Given value for osd_auto_discovery: true
[ERROR]: [magna111] Reason: not of type boolean
fatal: [magna111]: FAILED! => {
"changed": false,
"msg": "[magna111] Validation failed for variable: osd_auto_discovery\n[magna111] Reason: not of type boolean\n[magna111] Given value for osd_auto_discovery: true",
"stderr_lines": [
"[magna111] Validation failed for variable: osd_auto_discovery"
]
}
Expected results:
No error
Additional info:
Hi,
It can be observed that natario.validate was not considering 'true' as a valid value for dmcrypt and osd_auto_discovery and other flags. I feel that it would be better if we support flags to be set as 'true' or 'false' also.
As I very simple method plugins/actions/validate.py can be modified as in -
https://github.com/ceph/ceph-ansible/compare/master...VasishtaShastry:ceph_val_accept_small_case_bool
It seemed to be working.
Regards,
Vasishta Shastry
QE, Ceph
Working fine for both osd_auto_discovery and dmcrypt using ceph-ansible-3.2.0-0.1.rc4.el7cp.noarch .
$ cat /etc/ansible/hosts
.....
[osds]
abc24 osd_auto_discovery='true'
abc07 dmcrypt='true' devices="['/dev/sdb']"
abc32 devices="['/dev/sdb','/dev/sdc']"
....
Moving to VERIFIED state.
Regards,
Vasishta shastry
QE, Ceph
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-2019:0020
Created attachment 1492859 [details] ansible.log file Description of problem: osd_auto_discovery is not working Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1.Added osd_auto_discovery:true in hosts file 2.executed playbook 3. Actual results: [ERROR]: [magna111] Validation failed for variable: osd_auto_discovery [ERROR]: [magna111] Given value for osd_auto_discovery: true [ERROR]: [magna111] Reason: not of type boolean fatal: [magna111]: FAILED! => { "changed": false, "msg": "[magna111] Validation failed for variable: osd_auto_discovery\n[magna111] Reason: not of type boolean\n[magna111] Given value for osd_auto_discovery: true", "stderr_lines": [ "[magna111] Validation failed for variable: osd_auto_discovery" ] } Expected results: No error Additional info: