Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1482061

Summary: [ceph-ansible] [ceph-container] : restart osds daemon task should be skipped for non osd node during cluster deployment
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.0CC: adeza, aschoen, ceph-eng-bugs, gmeno, hnallurv, icolle, nthomas, sankarshan, seb
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.0.0-0.1.rc4.el7cp Ubuntu: ceph-ansible_3.0.0~rc4-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:39:47 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:
Attachments:
Description Flags
File contains contents of inventory file, all.yml, mons.yml, osds.yml and ansible-playbook log none

Description Vasishta 2017-08-16 11:50:52 UTC
Created attachment 1314081 [details]
File contains contents of inventory file, all.yml, mons.yml, osds.yml and ansible-playbook log

Description of problem:
Restart containerized ceph osds daemon task is failing on non-osd node during initial cluster deployment.

Version-Release number of selected component (if applicable):
ceph-ansible-3.0.0-0.1.rc3.el7cp.noarch

How reproducible:
Always (2/2)

Steps to Reproduce:
Configure configure ceph-ansible/group_vars file to deploy containerized ceph cluster 

Actual results:
RUNNING HANDLER [ceph-defaults : restart containerized ceph osds daemon(s)] ***************************************************************************************************************************************
fatal: [magna012]: FAILED! => {"failed": true, "msg": "'dict object' has no attribute 'results'"}


Expected results:
Restart containerized ceph osds daemon task should be skipped

Comment 2 seb 2017-08-22 09:59:15 UTC
Do you mind testing the branch I just uploaded?

Thanks!

Comment 3 Vasishta 2017-08-23 12:52:13 UTC
Hi Sebastien,

Tried with fix-restart-osd-container branch, still facing same issue.

RUNNING HANDLER [ceph-defaults : restart containerized ceph osds daemon(s)] ***************************************************************************************************************************************
fatal: [magna012.ceph.redhat.com]: FAILED! => {"failed": true, "msg": "'dict object' has no attribute 'results'"}

# git branch
* fix-restart-osd-container
  master

# rpm -qa |grep ansible
ansible-2.3.1.0-3.el7.noarch


Regards,
Vasishta

Comment 4 seb 2017-08-25 16:02:54 UTC
Alright, the new PR should fix this, please test :)

Comment 6 seb 2017-08-28 08:53:41 UTC
Hum what's your ansible version?

Comment 7 Vasishta 2017-08-28 08:57:07 UTC
Downstream - ansible-2.3.1.0-3.el7.noarch

Comment 8 seb 2017-08-28 21:16:35 UTC
Please set: ceph_stable_release to luminous. So: "ceph_stable_release: luminous".
Thanks.

I'm preparing a fix.

Comment 9 seb 2017-08-29 09:13:40 UTC
fyi fix is here: https://bugzilla.redhat.com/show_bug.cgi?id=1486062

Comment 14 errata-xmlrpc 2017-12-05 23:39:47 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-2017:3387