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 1488813

Summary: [ceph-ansible] [ceph-container] : restart ceph mds/rgws task are failing on respective nodes before configuring mdss/rgws
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: medium Docs Contact:
Priority: unspecified    
Version: 3.0CC: adeza, aschoen, ceph-eng-bugs, gmeno, hnallurv, icolle, kdreyer, 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.rc7.el7cp Ubuntu: ceph-ansible_3.0.0~rc7-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:42:05 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 and ansible-playbook log
none
File contains contents of inventory file and ansible-playbook log
none
File contains contents ansible-playbook log none

Description Vasishta 2017-09-06 09:13:24 UTC
Created attachment 1322590 [details]
File contains contents of inventory file and ansible-playbook log

Description of problem:
Restart ceph-defaults: retsceph mds task is failing on a node before configuring mdss. ceph-ansible was configured to colocate containerized osds with containerized mdss. While running ceph-defaults handlers after configuring osds, restart ceph mdss task failed as mds was not yet configured on the node. Same task was skipped on other nodes. But it should have skipped on this node also as mds was not yet configured.

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


Steps to Reproduce:
1. Configure ceph-ansible to get a cluster with osds container colocated with mds.
2. Run ansible-playbook site-docker.yml

Actual results:
RUNNING HANDLER [ceph-defaults : restart ceph mdss] **********************************************************************************************
failed: [magna025 -> magna025] (item=magna025) => {"failed": true, "item": "magna025", "msg": "Could not find the requested service ceph-mds@magna025: host"}


Expected results:
restart ceph mdss must have been skipped before mds is configured

Additional info:
$ cat /etc/ansible/hosts 
--------
[osds]
magna025
-------
[mdss]
magna025

Comment 2 Vasishta 2017-09-06 09:24:46 UTC
Created attachment 1322593 [details]
File contains contents of inventory file and ansible-playbook log

I had copied incorrect inventory file to the attachment, sincere apologies.
Please consider this attachment for ansible-playbook log and inventory file.

Regards,
Vasishta

Comment 3 Vasishta 2017-09-06 09:57:30 UTC
Created attachment 1322600 [details]
File contains contents ansible-playbook log

Same issue was seen with respect to rgw also. Ansible was configured to co-locate an OSD node and RGW node, while running handler ceph-defaults : restart ceph rgws on a node where osd was configured, it failed as RGW was not yet configured on the node.

Regards,
Vasishta

Comment 7 Vasishta 2017-09-12 15:48:09 UTC
Hi Ken,

ceph-ansible-3.0.0-0.1.rc7.el7cp is still not available for QE.
It would be helpful if we can get this version of ceph-ansible soon for testing.

Thanks,
Vasishta

Comment 12 errata-xmlrpc 2017-12-05 23:42:05 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