Bug 1536098

Summary: [ceph-ansible] dedicated journal and dmcrypt enabled scenarios are failing
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: subhash <vpoliset>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 2.5CC: adeza, agunn, aschoen, ceph-eng-bugs, gabrioux, gmeno, hnallurv, kdreyer, mmurthy, nthomas, sankarshan, shan
Target Milestone: rc   
Target Release: 2.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.0.19-1.el7cp Ubuntu: ceph-ansible_3.0.19-2redhat1 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
: 1541071 (view as bug list) Environment:
Last Closed: 2018-02-21 19:48:14 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: 1541071    
Bug Blocks:    
Attachments:
Description Flags
FIle contains ansible-playbook log none

Description subhash 2018-01-18 15:52:42 UTC
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

Comment 3 Harish NV Rao 2018-01-22 03:46:27 UTC
@Sebastien, this is blocking our installation tests. Can you please provide the fix at the earliest?

Comment 4 Guillaume Abrioux 2018-01-22 11:08:49 UTC
@Harish, Sebastien is on PTO this week. I'll work on this BZ as a top priority.

Comment 5 subhash 2018-01-22 12:07:51 UTC
(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)

Comment 6 Guillaume Abrioux 2018-01-22 13:45:50 UTC
upstream PR:
https://github.com/ceph/ceph-ansible/pull/2338

Comment 7 Guillaume Abrioux 2018-01-22 17:16:22 UTC
v3.0.19 released upstream with the fix.
waiting for the upstream/downstream process

Comment 20 errata-xmlrpc 2018-02-21 19:48:14 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-2018:0340