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 1469781

Summary: Deploying multiple RGWs on different hosts mix up service creation
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Alexandre Marangone <amarango>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Vidushi Mishra <vimishra>
Severity: high Docs Contact:
Priority: high    
Version: 2.3CC: adeza, aschoen, ceph-eng-bugs, flucifre, 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.rc6.el7cp Ubuntu: ceph-ansible_3.0.0~rc6-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:35:34 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 Alexandre Marangone 2017-07-11 20:13:30 UTC
Description of problem:
This is an issue a customer is experiencing that I managed to reproduce on a couple of test VMs.
When deploying multiple RGWs on different machines, one of the RGW machine got its service enabled for itself and the RGW on the other host.

In the following setup I have a radosgw deployed on hosts ceph0 and grafana. If I list the ceph-radosgw services on ceph0, I get both:

[root@ceph0 ~]# systemctl | grep ceph-radosgw
  ceph-radosgw.service                                                           loaded active running   Ceph rados gateway
● ceph-radosgw.service                                                         loaded failed failed    Ceph rados gateway
  ceph-radosgw.target                                                                      loaded active active    ceph target allowing to start/stop all ceph-radosgw@.service instances at once

On the grafana host:
[root@grafana ceph-ansible]# systemctl | grep ceph-radosgw
  ceph-radosgw.service                                                         loaded active running   Ceph rados gateway
  ceph-radosgw.target                                                                      loaded active active    ceph target allowing to start/stop all ceph-radosgw@.service instances at once

This means that any use of ceph-rados.target will fail. 

Version-Release number of selected component (if applicable): 2.3

Comment 2 seb 2017-07-24 07:58:07 UTC
Please share your inventory file.

Comment 3 Alexandre Marangone 2017-07-24 12:41:20 UTC
I wiped the hosts and not on-site with the customer anymore but it was:
[mons]
ceph0

[osds]
ceph0

[rgws]
ceph0
grafana

[ceph-grafana]
grafana

Comment 4 seb 2017-08-30 22:43:10 UTC
I can reproduce, will send a fix tomorrow.

Comment 5 Ken Dreyer (Red Hat) 2017-08-31 17:47:02 UTC
leseb would you please tag and announce a new version upstream so we can rebase to that version downstream?

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