Bug 1536098 - [ceph-ansible] dedicated journal and dmcrypt enabled scenarios are failing
Summary: [ceph-ansible] dedicated journal and dmcrypt enabled scenarios are failing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 2.5
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: rc
: 2.5
Assignee: Guillaume Abrioux
QA Contact: Vasishta
URL:
Whiteboard:
Depends On: 1541071
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-18 15:52 UTC by subhash
Modified: 2018-02-21 19:48 UTC (History)
12 users (show)

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
Clone Of:
: 1541071 (view as bug list)
Environment:
Last Closed: 2018-02-21 19:48:14 UTC
Embargoed:


Attachments (Terms of Use)
FIle contains ansible-playbook log (1.61 MB, text/plain)
2018-01-18 15:52 UTC, subhash
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 2338 0 None None None 2018-01-22 13:45:30 UTC
Github ceph ceph-ansible pull 2339 0 None None None 2018-01-22 16:40:08 UTC
Red Hat Product Errata RHBA-2018:0340 0 normal SHIPPED_LIVE Red Hat Ceph Storage 2.5 bug fix and enhancement update 2018-02-22 00:50:32 UTC

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


Note You need to log in before you can comment on or make changes to this bug.