Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1549004 - [Ceph-ansible] Failure on TASK [igw_purge | purging the gateway configuration]
[Ceph-ansible] Failure on TASK [igw_purge | purging the gateway configuration]
Status: CLOSED ERRATA
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: Ceph-Ansible (Show other bugs)
3.0
Unspecified Unspecified
high Severity high
: z4
: 3.0
Assigned To: Paul Cuzner
Manohar Murthy
Erin Donnelly
:
Depends On:
Blocks: 1557269
  Show dependency treegraph
 
Reported: 2018-02-26 03:41 EST by Pratik Surve
Modified: 2018-07-11 14:11 EDT (History)
14 users (show)

See Also:
Fixed In Version: RHEL: ceph-ansible-3.0.35-1.el7cp Ubuntu: ceph-ansible_3.0.35-2redhat1
Doc Type: Known Issue
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-07-11 14:11:08 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
File contains playbook log for purge_iscsi_gateway.yml (10.15 KB, text/plain)
2018-02-26 03:41 EST, Pratik Surve
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Github ceph/ceph-ansible/pull/2644 None None None 2018-05-24 19:57 EDT
Red Hat Product Errata RHSA-2018:2177 None None None 2018-07-11 14:11 EDT

  None (edit)
Description Pratik Surve 2018-02-26 03:41:56 EST
Created attachment 1400767 [details]
File contains playbook log for purge_iscsi_gateway.yml

Description of problem:

purging iscsi-gateway playbook failed saying

TASK [igw_purge | purging the gateway configuration] **************************************************************************************************************************************************************
fatal: [ceph-prsurve-run889-node3-osd]: FAILED! => {"changed": false, "module_stderr": "Shared connection to ceph-prsurve-run889-node3-osd closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_H3WbuA/ansible_module_igw_purge.py\", line 204, in <module>\r\n    backupCount=7)\r\n  File \"/usr/lib64/python2.7/logging/handlers.py\", line 117, in __init__\r\n    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)\r\n  File \"/usr/lib64/python2.7/logging/handlers.py\", line 64, in __init__\r\n    logging.FileHandler.__init__(self, filename, mode, encoding, delay)\r\n  File \"/usr/lib64/python2.7/logging/__init__.py\", line 902, in __init__\r\n    StreamHandler.__init__(self, self._open())\r\n  File \"/usr/lib64/python2.7/logging/__init__.py\", line 925, in _open\r\n    stream = open(self.baseFilename, self.mode)\r\nIOError: [Errno 13] Permission denied: '/var/log/ansible-module-igw_config.log'\r\n", "msg": "MODULE FAILURE", "rc": 0}
fatal: [ceph-prsurve-run889-node5-osd]: FAILED! => {"changed": false, "module_stderr": "Shared connection to ceph-prsurve-run889-node5-osd closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_HZDr3g/ansible_module_igw_purge.py\", line 204, in <module>\r\n    backupCount=7)\r\n  File \"/usr/lib64/python2.7/logging/handlers.py\", line 117, in __init__\r\n    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)\r\n  File \"/usr/lib64/python2.7/logging/handlers.py\", line 64, in __init__\r\n    logging.FileHandler.__init__(self, filename, mode, encoding, delay)\r\n  File \"/usr/lib64/python2.7/logging/__init__.py\", line 902, in __init__\r\n    StreamHandler.__init__(self, self._open())\r\n  File \"/usr/lib64/python2.7/logging/__init__.py\", line 925, in _open\r\n    stream = open(self.baseFilename, self.mode)\r\nIOError: [Errno 13] Permission denied: '/var/log/ansible-module-igw_config.log'\r\n", "msg": "MODULE FAILURE", "rc": 0}
fatal: [ceph-prsurve-run889-node2-osd]: FAILED! => {"changed": false, "module_stderr": "Shared connection to ceph-prsurve-run889-node2-osd closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_clatsm/ansible_module_igw_purge.py\", line 204, in <module>\r\n    backupCount=7)\r\n  File \"/usr/lib64/python2.7/logging/handlers.py\", line 117, in __init__\r\n    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)\r\n  File \"/usr/lib64/python2.7/logging/handlers.py\", line 64, in __init__\r\n    logging.FileHandler.__init__(self, filename, mode, encoding, delay)\r\n  File \"/usr/lib64/python2.7/logging/__init__.py\", line 902, in __init__\r\n    StreamHandler.__init__(self, self._open())\r\n  File \"/usr/lib64/python2.7/logging/__init__.py\", line 925, in _open\r\n    stream = open(self.baseFilename, self.mode)\r\nIOError: [Errno 13] Permission denied: '/var/log/ansible-module-igw_config.log'\r\n", "msg": "MODULE FAILURE", "rc": 0}
fatal: [ceph-prsurve-run889-node6-osd]: FAILED! => {"changed": false, "module_stderr": "Shared connection to ceph-prsurve-run889-node6-osd closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_BGpAvT/ansible_module_igw_purge.py\", line 204, in <module>\r\n    backupCount=7)\r\n  File \"/usr/lib64/python2.7/logging/handlers.py\", line 117, in __init__\r\n    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)\r\n  File \"/usr/lib64/python2.7/logging/handlers.py\", line 64, in __init__\r\n    logging.FileHandler.__init__(self, filename, mode, encoding, delay)\r\n  File \"/usr/lib64/python2.7/logging/__init__.py\", line 902, in __init__\r\n    StreamHandler.__init__(self, self._open())\r\n  File \"/usr/lib64/python2.7/logging/__init__.py\", line 925, in _open\r\n    stream = open(self.baseFilename, self.mode)\r\nIOError: [Errno 13] Permission denied: '/var/log/ansible-module-igw_config.log'\r\n", "msg": "MODULE FAILURE", "rc": 0}


Version-Release number of selected component (if applicable):
ceph-ansible-3.0.26-1.el7cp.noarch
ceph-iscsi-config-2.3-12.el7cp.noarch

How reproducible:
always

Steps to Reproduce:
1.configure iscsi through ansible running playbook
2.run playbook for purge-iscsi-gateways.yml
3.

Actual results:


Expected results:


Additional info:
Attaching the playbook log.
Comment 3 leseb 2018-03-13 12:57:24 EDT
[Errno 13] Permission denied: '/var/log/ansible-module-igw_config.log'

Can you change the permission on the directory?
Please make sure the user running ansible can write on this directory.
Comment 5 leseb 2018-03-15 08:23:06 EDT
That's the best I could do, your new issue seems related to the module itself.
I'm assigning this to Paul since he wrote the module.
Comment 9 Paul Cuzner 2018-04-22 18:46:29 EDT
@Pratik / @Tejas - could you tell me the sequence that the iscsi purge was attempted please. For example, I've seen this sort of problem when the cluster has been purged first, which removes the rbd pool, and then the iscsi purge is run. In this scenario it will fail, since it's config object has been wiped.
Comment 19 errata-xmlrpc 2018-07-11 14:11:08 EDT
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/RHSA-2018:2177

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