Created attachment 1382955 [details] FIle contains ansible-playbook log Description of problem: While initializing the cluster,OSD Scenarios with dedicated journal devices and dm crypt enabled are failing. Scenarios which are failing: 1.Dedicated journal 2.Dedicated journal + dmcrypt 3.collocated journal + dmcrypt 4. osd_auto_discovey=true + dmcrypt_journal_collocation='true' Working Scenarios: 1. Collocated Journal 2. osd_auto_discovey=true + journal_collocation='true' Version-Release number of selected component (if applicable): ceph-ansible-3.0.17-1.el7cp.noarch How reproducible: Always Steps to Reproduce: 1. Configure ceph-ansible to initialize a cluster (follow ceph 2 docs) 2. Run ansible-playbook site.yml Actual results: Error For DM crypt enabled scenarios. 2018-01-18 13:54:19,682 p=3176 u=ubuntu | TASK [ceph-osd : make sure an osd scenario was chosen] 2018-01-18 13:54:19,771 p=3176 u=ubuntu | fatal: [magna108]: FAILED! => { "changed": false, "failed": true, "msg": "please choose an osd scenario" } 2018-01-18 13:54:19,801 p=3176 u=ubuntu | fatal: [magna051]: FAILED! => { "changed": false, "failed": true, "msg": "please choose an osd scenario" } Error For raw journal cases. ----- 2018-01-18 13:54:20,391 p=3176 u=ubuntu | TASK [ceph-osd : verify dedicated devices have been provided] 2018-01-18 13:54:20,454 p=3176 u=ubuntu | fatal: [magna034]: FAILED! => { "changed": false, "failed": true, "msg": "please provide devices and dedicated_devices to your osd scenario" } 2018-01-18 13:54:20,468 p=3176 u=ubuntu | fatal: [magna083]: FAILED! => { "changed": false, "failed": true, "msg": "please provide devices and dedicated_devices to your osd scenario" } 2018-01-18 13:54:20,470 p=3176 u=ubuntu | skipping: [magna082] => { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } Expected results: TASK [ceph-osd : make sure an osd scenario was chosen] and TASK [ceph-osd : verify dedicated devices have been provided] shoudn't fail. Additional info: Hosts file : [osds] magna034 raw_journal_devices="['/dev/sdd','/dev/sdd']" devices="['/dev/sdb','/dev/sdc']" dmcrypt_dedicated_journal="true" magna083 raw_journal_devices="['/dev/sdd','/dev/sdd']" devices="['/dev/sdb','/dev/sdc']" raw_multi_journal="true" magna108 devices="['/dev/sdb','/dev/sdc','/dev/sdd']" dmcrypt_journal_collocation="true" magna111 devices="['/dev/sdb','/dev/sdc','/dev/sdd']" journal_collocation='true' magna051 osd_auto_discovery='true' dmcrypt_journal_collocation='true' magna082 osd_auto_discovery='true' journal_collocation='true' all.yml file : fetch_directory: ~/ceph-ansible-keys ceph_rhcs: true ceph_origin: distro ceph_repository: rhcs monitor_interface: eno1 public_network: 10.8.128.0/21 radosgw_interface: eno1
@Sebastien, this is blocking our installation tests. Can you please provide the fix at the earliest?
@Harish, Sebastien is on PTO this week. I'll work on this BZ as a top priority.
(In reply to subhash from comment #0) > Description of problem: > While initializing the cluster,OSD Scenarios with dedicated journal devices > and dm crypt enabled are failing. Same error while running on ubuntu node..by following 2.x variables(ceph-ansible 3.0.18-2redhat1)
upstream PR: https://github.com/ceph/ceph-ansible/pull/2338
v3.0.19 released upstream with the fix. waiting for the upstream/downstream process
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-2018:0340