Bug 1365368

Summary: cluster name doesn't reflect what's given in ceph-ansible 'group_vars/all' file.
Product: [Red Hat Storage] Red Hat Storage Console Reporter: Bhaskarakiran <byarlaga>
Component: ceph-ansibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Rachana Patel <racpatel>
Severity: high Docs Contact:
Priority: high    
Version: 2CC: adeza, aschoen, byarlaga, ceph-eng-bugs, dang, gmeno, hchen, hnallurv, ifont, jim.curtis, kdreyer, kramdoss, mzywusko, nthomas, pprakash, rcyriac, sankarshan
Target Milestone: ---   
Target Release: 2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-ansible-2.2.1-1.el7scon Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-19 13:15:15 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:
Bug Depends On:    
Bug Blocks: 1371113    
Attachments:
Description Flags
group_vars/all
none
varant_variables.yml none

Description Bhaskarakiran 2016-08-09 05:50:35 UTC
Description of problem:
======================

Created a ceph cluster using ceph-ansible and in the 'all' file update the cluster name as "cluster: master" and the same is not getting reflecting after the configuration is done. The contents of /etc/ceph directory still shows ceph.conf file and not master.conf

The container are running on atomic hosts.

[root@dhcp43-179 ceph-ansible]# cat group_vars/all |grep cluster
cluster: master
[root@dhcp43-179 ceph-ansible]# 

Other parameters given in 'all' file :

ceph_mon_docker_username: hchen
ceph_mon_docker_imagename: rhceph2
ceph_osd_docker_username: hchen
ceph_osd_docker_imagename: rhceph2

mon_containerized_deployment: 'true'
osd_containerized_deployment: 'true'
ceph_mon_docker_interface: eth0
ceph_mon_docker_subnet: 10.70.37.0/23
ceph_osd_docker_extra_env:  "CEPH_DAEMON=OSD_CEPH_DISK,OSD_JOURNAL_SIZE=100"
ceph_osd_docker_devices: "[ '/dev/sdb', '/dev/sdc', '/dev/sdd', '/dev/sde' ]"

[root@dhcp37-41 /]# ll /etc/ceph/
total 20
-rw-------. 1 root root 137 Aug  8 10:56 ceph.client.admin.keyring
-rw-r--r--. 1 root root 841 Aug  8 10:56 ceph.conf
-rw-------. 1 ceph ceph  77 Aug  8 10:56 ceph.mon.keyring
-rw-r--r--. 1 ceph ceph 195 Aug  8 10:56 monmap

For RBD mirroring cases cluster names are needed. This blocks in verifying those all. 

Version-Release number of selected component (if applicable):
=============================================================
ceph version 10.2.2-5.el7cp (49c93ac9dceaa9318129ece8b0f45a3968d9c981)


How reproducible:
=================
100%

Steps to Reproduce:
1. Use ceph-ansible script to configure the cluster. Update the cluster name in group_vars/all file.

Actual results:


Expected results:


Additional info:

Comment 2 Daniel Gryniewicz 2016-08-09 12:16:10 UTC
https://github.com/ceph/ceph-ansible/pull/915

Comment 6 Bhaskarakiran 2016-09-12 09:19:33 UTC
The default cluster name doesn't work. I have tried couple of times with ansible as well too.

Comment 7 Daniel Gryniewicz 2016-09-12 12:55:23 UTC
Do you mean you tried with the name "ceph" and it failed?

Comment 8 Bhaskarakiran 2016-09-13 06:53:56 UTC
Yes, with the default cluster name as 'ceph', it doesn't work.

Comment 9 Alfredo Deza 2016-09-13 07:03:25 UTC
(In reply to Bhaskarakiran from comment #8)
> Yes, with the default cluster name as 'ceph', it doesn't work.

Please provide log output from ceph-ansible, output of ceph.conf and /var/lib/ceph/ contents, and anything else that might explain how this doesn't work

Comment 10 Bhaskarakiran 2016-09-14 05:38:43 UTC
The setup is no more. Will update the logs once its ready.

Comment 11 Jim Curtis 2016-09-15 03:44:45 UTC
Can you provide a copy of vagrant_variables.yml and group_vars/all, please.

Comment 12 Bhaskarakiran 2016-09-15 08:56:55 UTC
I will update the files once the setup is ready.

Comment 16 Bhaskarakiran 2016-09-19 11:52:55 UTC
Created attachment 1202458 [details]
group_vars/all

Comment 17 Bhaskarakiran 2016-09-19 11:53:23 UTC
Created attachment 1202459 [details]
varant_variables.yml

Comment 21 Andrew Schoen 2017-03-03 17:13:31 UTC
We test containerized deployments upstream now with custom cluster names, I believe this should be fixed.

Comment 25 Rachana Patel 2017-05-25 19:16:45 UTC
Verified with below version

ceph-ansible-2.2.7-1.el7scon.noarch
ansible-2.2.3.0-1.el7.noarch


Able to bring up cluster having name other than 'ceph'

Comment 27 errata-xmlrpc 2017-06-19 13:15:15 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:1496