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 1500281

Summary: [ceph-ansible]: purging iSCSI GWs using ansible failed.
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Manohar Murthy <mmurthy>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Manohar Murthy <mmurthy>
Severity: high Docs Contact:
Priority: medium    
Version: 3.0CC: adeza, anharris, aschoen, ceph-eng-bugs, ceph-qe-bugs, gmeno, hnallurv, mmurthy, nthomas, sankarshan, tchandra
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.0.2-1 Ubuntu: ceph-ansible-3.0.2-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:47:21 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
iscsi-gw-yml none

Comment 2 Manohar Murthy 2017-10-10 10:33:30 UTC
Created attachment 1336725 [details]
iscsi-gw-yml

Comment 3 Sébastien Han 2017-10-10 11:52:07 UTC
This is fixed in rc19.
We dropped the purge from purge-cluster.yml

We re-added the original purge-iscsi-gateways.yml

Comment 4 Tejas 2017-10-10 11:56:29 UTC
(In reply to leseb from comment #3)
> This is fixed in rc19.
> We dropped the purge from purge-cluster.yml
> 
> We re-added the original purge-iscsi-gateways.yml

But the creation of GWs is still done from site.yml right?

- Tejas

Comment 5 Sébastien Han 2017-10-10 12:11:16 UTC
Correct.

Comment 7 Sébastien Han 2017-10-11 12:28:54 UTC
Fixed in https://github.com/ceph/ceph-ansible/releases/tag/v3.0.1

Comment 12 Manohar Murthy 2017-10-13 11:59:06 UTC
Still not fixed so moving it back to assigned.

Updated:
  ceph-ansible.noarch 0:3.0.2-1.el7cp                                                                                                                                                                              

Complete!
[root@aircobra ~]# 
[root@aircobra ~]# 
[root@aircobra ~]# vim /etc/hosts
[root@aircobra ~]# vim /etc/ansible/hosts 
[root@aircobra ~]# cd /usr/share/ceph-ansible/
[root@aircobra ceph-ansible]# ansible-playbook purge-iscsi-gateways.yml 
Which configuration elements should be purged? (all, lio or abort) [abort]: all

PLAY [Confirm removal of the iSCSI gateway configuration] *********************************************************************************************************************************************************

TASK [Gathering Facts] ********************************************************************************************************************************************************************************************
ok: [localhost]

TASK [Exit playbook if user aborted the purge] ********************************************************************************************************************************************************************
skipping: [localhost]

TASK [set_fact] ***************************************************************************************************************************************************************************************************
ok: [localhost]

PLAY [Removing the gateway configuration] *************************************************************************************************************************************************************************
skipping: no hosts matched

PLAY RECAP ********************************************************************************************************************************************************************************************************
localhost                  : ok=2    changed=0    unreachable=0    failed=0   

[root@aircobra ceph-ansible]#

Comment 13 Sébastien Han 2017-10-13 12:17:21 UTC
This is missing info, your attachment shows an old purge-cluster.yml run and I don't see your inventory file.
Can I see your host inventory?

You need a [iscsi-gws] section.

Comment 15 Sébastien Han 2017-10-13 12:39:21 UTC
You're still using the old version of purge-iscsi-gateways.yml...
Please copy infrastructure-playbooks/purge-iscsi-gateways.yml to the root of ceph-ansible.

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