Bug 1498490 - [ceph-ansible]: configuring iscsi gateways through ansible failed with "gateway_ip_list" error.
Summary: [ceph-ansible]: configuring iscsi gateways through ansible failed with "gatew...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 3.0
Assignee: Sébastien Han
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-04 12:44 UTC by Manohar Murthy
Modified: 2017-12-05 23:46 UTC (History)
10 users (show)

Fixed In Version: RHEL: ceph-ansible-3.0.0-0.1.rc17 Ubuntu: ceph-ansible-3.0.0~rc17-2redhat1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-05 23:46:42 UTC
Embargoed:


Attachments (Terms of Use)
ansible-error-log (152.86 KB, text/plain)
2017-10-04 12:44 UTC, Manohar Murthy
no flags Details
iscsi-gws.yml (2.74 KB, text/x-vhdl)
2017-10-04 12:47 UTC, Manohar Murthy
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 2001 0 None None None 2017-10-05 14:43:37 UTC
Red Hat Product Errata RHBA-2017:3387 0 normal SHIPPED_LIVE Red Hat Ceph Storage 3.0 bug fix and enhancement update 2017-12-06 03:03:45 UTC

Description Manohar Murthy 2017-10-04 12:44:24 UTC
Created attachment 1334219 [details]
ansible-error-log

Description of problem:
Configuring the iscsi GWs through ansible failed. Able to configure through gwcli

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

ceph-iscsi-cli-2.5-8.el7cp.noarch
ceph-iscsi-config-2.3-10.el7cp.noarch


Steps to Reproduce:
1.Cluster is up and running then updated iscsi GW details in iscsi-gws.yml and ran playbook again.
2.Nothing was created from gwcli, tried to create target,Gateways and disks from ansible
3.trusted ip list error is shown . Tried with even single ip and removing double quotes but still same error is seen.

Added ansible-console log and iscsi-gws.yml files.

Error message :
fatal: [avenger]: FAILED! => {"changed": false, "failed": true, "msg": "you must set a list of IPs (comma separated) for gateway_ip_list"}
fatal: [banshee]: FAILED! => {"changed": false, "failed": true, "msg": "you must set a list of IPs (comma separated) for gateway_ip_list"}
 [WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: ceph_release_num.{{ ceph_stable_release }} >= ceph_release_num.luminous

fatal: [catalina]: FAILED! => {"changed": false, "failed": true, "msg": "you must set a list of IPs (comma separated) for gateway_ip_list"}
fatal: [cornell]: FAILED! => {"changed": false, "failed": true, "msg": "you must set a list of IPs (comma separated) for gateway_ip_list"}

Comment 2 Manohar Murthy 2017-10-04 12:47:13 UTC
Created attachment 1334220 [details]
iscsi-gws.yml

Comment 3 Sébastien Han 2017-10-04 12:51:44 UTC
iscsi-gws.yml does not exist in ceph-ansible anymore, also it's not attached to the BZ.
You need to use site.yml to deploy iscsi-gws.
Then run:

cp group_vars/iscsi-gws.yml.sample group_vars/iscsi-gws.yml

Edit group_vars/iscsi-gws.yml and change gateway_ip_list

This is not a bug, more a doc fix for me.

Bara, what do you think?
Thanks!

Comment 4 Tejas 2017-10-04 13:00:08 UTC
Seb,
We have run site.yml itself. Attached is the iscsi-gws.yml file which we have used.
You can also see the ansible playbook run log attached.

Thanks,
Tejas

Comment 7 Sébastien Han 2017-10-04 14:59:16 UTC
If the MON section has been erased this means you failed to pass a mandatory variable (like monitor_interface or so), can I see your all.yml file?

I'm receiving a mixed message from this BZ, at first, someone said you used iscsi-gws.yml, the site.yml, this is not very clear.

Also on your machine, I don't see any /usr/share/ceph-ansible, and ansible is not installed. I don't know where to look.

Thanks.

Comment 9 Sébastien Han 2017-10-05 14:31:57 UTC
Sorry, ignore my previous comments on iscsi-gws.yml I thought you were using the 'old' playbook to deploy gateways. I'm looking into your setup at the moment.

Thanks!

Comment 10 Sébastien Han 2017-10-05 16:29:23 UTC
fix will be in rc17

Comment 13 Manohar Murthy 2017-10-06 08:59:48 UTC
Issue is solved in below build. Able to configure iSCSI GWs using ceph-ansible.

ceph-ansible:
ceph-ansible-3.0.0-0.1.rc17.el7cp.noarch

iSCSI config :
ceph-iscsi-config-2.3-11.el7cp.noarch

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


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