Bug 1414737 - [ceph-ansible]: Unable to set the group_name in group_vars/all.yml
Summary: [ceph-ansible]: Unable to set the group_name in group_vars/all.yml
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Storage Console
Classification: Red Hat
Component: ceph-ansible
Version: 2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3
Assignee: leseb
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-19 10:54 UTC by Tejas
Modified: 2017-01-19 12:31 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-19 12:31:13 UTC
Target Upstream Version:


Attachments (Terms of Use)
ansible playbook log (14.55 KB, text/plain)
2017-01-19 10:54 UTC, Tejas
no flags Details

Description Tejas 2017-01-19 10:54:31 UTC
Created attachment 1242428 [details]
ansible playbook  log

Description of problem:
       I am trying to set my own group_names in group_vars/all.yml file:

###########
# INSTALL #
###########

mon_group_name: monitor    <----
osd_group_name: osdnode   <----
#rgw_group_name: rgws
#mds_group_name: mdss
#nfs_group_name: nfss
#restapi_group_name: restapis
#rbdmirror_group_name: rbdmirrors
client_group_name: client
#iscsi_group_name: iscsigws

But these new names are not recognized by the playbook.
 

Version-Release number of selected component (if applicable):
ceph-ansible-2.1.3-1.el7scon.noarch
ansible-2.2.1.0-1.el7.noarch


How reproducible:
Always

Steps to Reproduce:
1. CHange the group_name in all.yml
2. Have the same name in ansible hosts file.
3. CReate a cluster



Additional info:


It is not recognizing the new names :

 ceph-ansible]# ansible-playbook site.yml -i /etc/ansible/test
[DEPRECATION WARNING]: docker is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale..

This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

PLAY [mons,agents,osds,mdss,rgws,nfss,restapis,rbdmirrors,clients,iscsigws] ****





Hosts file:
ceph-ansible]# cat /etc/ansible/test 
[monitor]
magna063
magna070
magna077

[osdnode]
magna077
magna080
magna086

[client]
magna087

[rgws]
magna087

Comment 2 Andrew Schoen 2017-01-19 12:14:12 UTC
Tejas, if you change your group names you'll also need to modify site.yml to use those new group names. Would you please try changing site.yml as well to use your newly defined group names and see if that solves your issue?

Comment 3 Tejas 2017-01-19 12:30:55 UTC
Andrew,

   Yes you are right, I had missed that. Its working fine.

Thanks,
Tejas


Note You need to log in before you can comment on or make changes to this bug.