Bug 1646456

Summary: [ceph-ansible] - ubuntu - playbook must fail if debian rhcs packages are not installed
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: Ceph-AnsibleAssignee: Rishabh Dave <ridave>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.2CC: aschoen, ceph-eng-bugs, ceph-qe-bugs, gmeno, nthomas, tchandra, tserlin
Target Milestone: z2   
Target Release: 3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.2.5-1.el7cp Ubuntu: ceph-ansible_3.2.5-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-19 17:59:09 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:

Description Vasishta 2018-11-05 15:08:01 UTC
Description of problem:

When tried to initialize cluster on ubuntu, playbook failed in task "ceph-mon : include_tasks ceph_keys.yml" saying ceph-mon is not in quorum.

It was observed that ceph-mon package was not installed on 2/3 nodes and thus services were not running (Installation had failed because repo key was not added)

I think playbook should fail if the task ceph-common : include install_debian_rhcs_packages.yml should fail if packages were not installed.

Version-Release number of selected component (if applicable):
ceph-ansible 3.2.0~rc1-2redhat1

How reproducible:
Always

Steps to Reproduce:
1. Configure ceph-ansible to bring up cluster on ubuntu nodes and run playbook

Actual results:
Task - ceph-common : install red hat storage ceph packages for debian
"stderr": "E: There were unauthenticated packages and -y was used without --allow-unauthenticated\n",

Task - ceph-mon : collect admin and bootstrap keys
.
..
...

"INFO:ceph-create-keys:ceph-mon is not in quorum: u'probing'",
        "ceph-mon was not able to join quorum within 0 seconds"

Task - ceph-common : install red hat storage ceph packages for debian
"stderr": "E: There were unauthenticated packages and -y was used without --allow-unauthenticated\n",

Expected results:
Playbook must fail if there are any failures in "Task - ceph-common : install red hat storage ceph packages "

Additional info:

Comment 4 Rishabh Dave 2019-01-31 17:15:07 UTC
The PR got merged. The fix should be present upstream in v3.2.5.

Comment 5 Giridhar Ramaraju 2019-08-05 13:11:15 UTC
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. 

Regards,
Giri

Comment 6 Giridhar Ramaraju 2019-08-05 13:12:16 UTC
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. 

Regards,
Giri

Comment 10 errata-xmlrpc 2019-12-19 17:59:09 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/RHSA-2019:4353