oVirt / ovirt-ansible

This project has been archived, development moved to https://github.com/ovirt/ovirt-ansible-collection
Apache License 2.0
94 stars 70 forks source link

ovirt-storages role :there is an issue with fetch storages #38

Closed tareqalayan closed 6 years ago

tareqalayan commented 7 years ago
TASK [ovirt-storages : Validate connections of storages] **********************************************************************************************************************************************************
task path: /home/talayan/git/oVirt/ovirt-ansible/roles/ovirt-storages/tasks/main.yml:72
Wednesday 26 July 2017  18:05:14 +0300 (0:00:02.405)       0:00:13.368 ******** 
Using module_utils file /usr/lib/python2.7/site-packages/ansible/module_utils/ovirt.py
Using module_utils file /usr/lib/python2.7/site-packages/ansible/module_utils/basic.py
Using module_utils file /usr/lib/python2.7/site-packages/ansible/module_utils/_text.py
Using module_utils file /usr/lib/python2.7/site-packages/ansible/module_utils/pycompat24.py
Using module_utils file /usr/lib/python2.7/site-packages/ansible/module_utils/six/__init__.py
Using module_utils file /usr/lib/python2.7/site-packages/ansible/module_utils/six/_six.py
Using module file /home/talayan/git/oVirt/ovirt-ansible/roles/ovirt-storages/library/ovirt_storage_connections.py
<jenkins-vm-16.qa.lab.tlv.redhat.com> ESTABLISH SSH CONNECTION FOR USER: root
<jenkins-vm-16.qa.lab.tlv.redhat.com> SSH: EXEC sshpass -d13 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/home/talayan/.ansible/cp/158b45b35a jenkins-vm-16.qa.lab.tlv.redhat.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<jenkins-vm-16.qa.lab.tlv.redhat.com> (0, '\n{"warnings": ["Module did not set no_log for password"], "changed": false, "invocation": {"module_args": {"username": null, "force": true, "target": null, "poll_interval": 3, "storage": "export_domain", "state": "present", "nested_attributes": [], "nfs_version": null, "port": null, "mount_options": null, "fetch_nested": false, "nfs_retrans": null, "timeout": 180, "address": "vserver-nas01.qa.lab.tlv.redhat.com", "nfs_timeout": null, "path": "/nas01/ge_6_export", "vfs_type": null, "password": null, "type": null, "id": "062351a1-e449-4f7c-a721-6731d0c665dc", "wait": true}}, "diff": {"after": {}, "before": {}}, "id": "062351a1-e449-4f7c-a721-6731d0c665dc", "storageconnection": {"path": "/nas01/ge_6_export", "href": "/ovirt-engine/api/storageconnections/062351a1-e449-4f7c-a721-6731d0c665dc", "type": "nfs", "id": "062351a1-e449-4f7c-a721-6731d0c665dc", "address": "vserver-nas01.qa.lab.tlv.redhat.com"}}\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /home/talayan/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug3: /etc/ssh/ssh_config line 56: Including file /etc/ssh/ssh_config.d/05-redhat.conf depth 0\r\ndebug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf\r\ndebug1: /etc/ssh/ssh_config.d/05-redhat.conf line 2: include /etc/crypto-policies/back-ends/openssh.config matched no files\r\ndebug1: /etc/ssh/ssh_config.d/05-redhat.conf line 8: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 23632\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [jenkins-vm-16.qa.lab.tlv.redhat.com] => (item=({u'warning_low_space_indicator': 10, u'supports_discard_zeroes_data': False, u'wipe_after_delete': False, u'href': u'/ovirt-engine/api/storagedomains/968ed1ab-0a53-4ef3-9d44-4fa25e443f1e', u'committed': 0, u'id': u'968ed1ab-0a53-4ef3-9d44-4fa25e443f1e', u'external_status': u'ok', u'data_centers': [{u'id': u'f513e037-0b4e-4af6-894a-1be0028b741d'}], u'storage': {u'path': u'/nas01/ge_6_export', u'type': u'nfs', u'address': u'vserver-nas01.qa.lab.tlv.redhat.com'}, u'vms': [], u'templates': [{u'id': [u'89ea94e6-4598-4999-8dda-f3c731a441d8']}, {u'id': [u'2d366f56-e916-4c38-bd5e-023766ea1d53']}, {u'id': [u'a248242e-df3e-400f-9394-435adbb3a564']}], u'master': False, u'permissions': [{u'id': [u'58ca605c-010d-0307-0224-0000000001a9']}, {u'id': [u'5964a6a1-0146-02d9-024e-00000000019f']}], u'type': u'export', u'storage_format': u'v1', u'supports_discard': False, u'available': 1340029796352, u'used': 485331304448, u'disk_snapshots': [], u'discard_after_delete': False, u'disk_profiles': [], u'name': u'export_domain', u'critical_space_action_blocker': 5, u'disks': []}, {u'id': [u'062351a1-e449-4f7c-a721-6731d0c665dc']})) => {
    "changed": false, 
    "diff": {
        "after": {}, 
        "before": {}
    }, 
    "failed": false, 
    "id": "062351a1-e449-4f7c-a721-6731d0c665dc", 
    "invocation": {
        "module_args": {
            "address": "vserver-nas01.qa.lab.tlv.redhat.com", 
            "fetch_nested": false, 
            "force": true, 
            "id": "062351a1-e449-4f7c-a721-6731d0c665dc", 
            "mount_options": null, 
            "nested_attributes": [], 
            "nfs_retrans": null, 
            "nfs_timeout": null, 
            "nfs_version": null, 
            "password": null, 
            "path": "/nas01/ge_6_export", 
            "poll_interval": 3, 
            "port": null, 
            "state": "present", 
            "storage": "export_domain", 
            "target": null, 
            "timeout": 180, 
            "type": null, 
            "username": null, 
            "vfs_type": null, 
            "wait": true
        }
    }, 
    "item": [
        {
            "available": 1340029796352, 
            "committed": 0, 
            "critical_space_action_blocker": 5, 
            "data_centers": [
                {
                    "id": "f513e037-0b4e-4af6-894a-1be0028b741d"
                }
            ], 
            "discard_after_delete": false, 
            "disk_profiles": [], 
            "disk_snapshots": [], 
            "disks": [], 
            "external_status": "ok", 
            "href": "/ovirt-engine/api/storagedomains/968ed1ab-0a53-4ef3-9d44-4fa25e443f1e", 
            "id": "968ed1ab-0a53-4ef3-9d44-4fa25e443f1e", 
            "master": false, 
            "name": "export_domain", 
            "permissions": [
                {
                    "id": [
                        "58ca605c-010d-0307-0224-0000000001a9"
                    ]
                }, 
                {
                    "id": [
                        "5964a6a1-0146-02d9-024e-00000000019f"
                    ]
                }
            ], 
            "storage": {
                "address": "vserver-nas01.qa.lab.tlv.redhat.com", 
                "path": "/nas01/ge_6_export", 
                "type": "nfs"
            }, 
            "storage_format": "v1", 
            "supports_discard": false, 
            "supports_discard_zeroes_data": false, 
            "templates": [
                {
                    "id": [
                        "89ea94e6-4598-4999-8dda-f3c731a441d8"
                    ]
                }, 
                {
                    "id": [
                        "2d366f56-e916-4c38-bd5e-023766ea1d53"
                    ]
                }, 
                {
                    "id": [
                        "a248242e-df3e-400f-9394-435adbb3a564"
                    ]
                }
            ], 
            "type": "export", 
            "used": 485331304448, 
            "vms": [], 
            "warning_low_space_indicator": 10, 
            "wipe_after_delete": false
        }, 
        {
            "id": [
                "062351a1-e449-4f7c-a721-6731d0c665dc"
            ]
        }
    ], 
    "storageconnection": {
        "address": "vserver-nas01.qa.lab.tlv.redhat.com", 
        "href": "/ovirt-engine/api/storageconnections/062351a1-e449-4f7c-a721-6731d0c665dc", 
        "id": "062351a1-e449-4f7c-a721-6731d0c665dc", 
        "path": "/nas01/ge_6_export", 
        "type": "nfs"
    }, 
    "warnings": [
        "Module did not set no_log for password"
    ]
}
Using module file /home/talayan/git/oVirt/ovirt-ansible/roles/ovirt-storages/library/ovirt_storage_connections.py
<jenkins-vm-16.qa.lab.tlv.redhat.com> ESTABLISH SSH CONNECTION FOR USER: root
<jenkins-vm-16.qa.lab.tlv.redhat.com> SSH: EXEC sshpass -d13 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/home/talayan/.ansible/cp/158b45b35a jenkins-vm-16.qa.lab.tlv.redhat.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<jenkins-vm-16.qa.lab.tlv.redhat.com> (1, '\n{"exception": "Traceback (most recent call last):\\n  File \\"/tmp/ansible_xkqynm/ansible_module_ovirt_storage_connections.py\\", line 268, in main\\n    update_params={\'force\': True},\\n  File \\"/tmp/ansible_xkqynm/ansible_modlib.zip/ansible/module_utils/ovirt.py\\", line 549, in create\\n    **update_params\\n  File \\"/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py\\", line 20635, in update\\n    return self._internal_update(connection, headers, query, wait)\\n  File \\"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\\", line 244, in _internal_update\\n    return future.wait() if wait else future\\n  File \\"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\\", line 53, in wait\\n    return self._code(response)\\n  File \\"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\\", line 241, in callback\\n    self._check_fault(response)\\n  File \\"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\\", line 123, in _check_fault\\n    self._raise_error(response, body)\\n  File \\"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\\", line 109, in _raise_error\\n    raise error\\nError: Fault reason is \\"Operation Failed\\". Fault detail is \\"[Cannot edit Storage Connection. Storage connection already exists.]\\". HTTP response code is 409.\\n", "warnings": ["Module did not set no_log for password"], "changed": false, "failed": true, "invocation": {"module_args": {"username": null, "nfs_version": null, "force": true, "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", "poll_interval": 3, "nfs_retrans": null, "storage": "iscsi_0", "state": "present", "nested_attributes": [], "id": "bde9cab4-65f4-4d51-92f2-5c9915cf65d3", "fetch_nested": false, "mount_options": null, "timeout": 180, "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", "nfs_timeout": null, "path": null, "vfs_type": null, "password": null, "type": null, "port": null, "wait": true}}, "msg": "Fault reason is \\"Operation Failed\\". Fault detail is \\"[Cannot edit Storage Connection. Storage connection already exists.]\\". HTTP response code is 409."}\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /home/talayan/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug3: /etc/ssh/ssh_config line 56: Including file /etc/ssh/ssh_config.d/05-redhat.conf depth 0\r\ndebug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf\r\ndebug1: /etc/ssh/ssh_config.d/05-redhat.conf line 2: include /etc/crypto-policies/back-ends/openssh.config matched no files\r\ndebug1: /etc/ssh/ssh_config.d/05-redhat.conf line 8: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 23632\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n')
The full traceback is:
Traceback (most recent call last):
  File "/tmp/ansible_xkqynm/ansible_module_ovirt_storage_connections.py", line 268, in main
    update_params={'force': True},
  File "/tmp/ansible_xkqynm/ansible_modlib.zip/ansible/module_utils/ovirt.py", line 549, in create
    **update_params
  File "/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py", line 20635, in update
    return self._internal_update(connection, headers, query, wait)
  File "/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py", line 244, in _internal_update
    return future.wait() if wait else future
  File "/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py", line 53, in wait
    return self._code(response)
  File "/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py", line 241, in callback
    self._check_fault(response)
  File "/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py", line 123, in _check_fault
    self._raise_error(response, body)
  File "/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py", line 109, in _raise_error
    raise error
Error: Fault reason is "Operation Failed". Fault detail is "[Cannot edit Storage Connection. Storage connection already exists.]". HTTP response code is 409.
failed: [jenkins-vm-16.qa.lab.tlv.redhat.com] (item=({u'warning_low_space_indicator': 10, u'supports_discard_zeroes_data': True, u'wipe_after_delete': False, u'href': u'/ovirt-engine/api/storagedomains/2ac0d732-0eee-4d12-a193-7a08f7d73186', u'committed': 0, u'id': u'2ac0d732-0eee-4d12-a193-7a08f7d73186', u'external_status': u'ok', u'data_centers': [{u'id': u'f513e037-0b4e-4af6-894a-1be0028b741d'}], u'storage': {u'type': u'iscsi', u'volume_group': {u'logical_units': [{u'discard_zeroes_data': True, u'discard_max_size': 8388608, u'volume_group_id': u'zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7', u'paths': 0, u'vendor_id': u'NETAPP', u'id': u'3600a09803830347a625d467a79745558', u'product_id': u'LUN C-Mode', u'portal': u'vserver-san01-iscsi01.qa.lab.tlv.redhat.com:3260,1036', u'address': u'vserver-san01-iscsi01.qa.lab.tlv.redhat.com', u'lun_mapping': 2, u'serial': u'SNETAPP_LUN_C-Mode_804zb_FzytUX', u'size': 53687091200, u'storage_domain_id': u'2ac0d732-0eee-4d12-a193-7a08f7d73186', u'port': 3260, u'target': u'iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6'}, {u'discard_zeroes_data': True, u'discard_max_size': 8388608, u'volume_group_id': u'zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7', u'paths': 0, u'vendor_id': u'NETAPP', u'id': u'3600a09803830347a625d467a79745558', u'product_id': u'LUN C-Mode', u'portal': u'vserver-san01-iscsi01.qa.lab.tlv.redhat.com:3260,1035', u'address': u'vserver-san01-iscsi01.qa.lab.tlv.redhat.com', u'lun_mapping': 2, u'serial': u'SNETAPP_LUN_C-Mode_804zb_FzytUX', u'size': 53687091200, u'storage_domain_id': u'2ac0d732-0eee-4d12-a193-7a08f7d73186', u'port': 3260, u'target': u'iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6'}, {u'discard_zeroes_data': True, u'discard_max_size': 8388608, u'volume_group_id': u'zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7', u'paths': 0, u'vendor_id': u'NETAPP', u'id': u'3600a09803830347a625d467a79745558', u'product_id': u'LUN C-Mode', u'portal': u'10.35.66.207:3260,1035', u'address': u'10.35.66.207', u'lun_mapping': 2, u'serial': u'SNETAPP_LUN_C-Mode_804zb_FzytUX', u'size': 53687091200, u'storage_domain_id': u'2ac0d732-0eee-4d12-a193-7a08f7d73186', u'port': 3260, u'target': u'iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6'}], u'id': u'zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7'}}, u'vms': [], u'templates': [], u'master': False, u'permissions': [{u'id': [u'58ca605c-010d-0307-0224-0000000001a9']}, {u'id': [u'5964a6a1-0146-02d9-024e-00000000019f']}], u'type': u'data', u'storage_format': u'v4', u'supports_discard': True, u'available': 47244640256, u'used': 5368709120, u'disk_snapshots': [], u'discard_after_delete': True, u'disk_profiles': [{u'id': [u'99360f80-3259-42da-8d95-79d70b131d76']}], u'name': u'iscsi_0', u'critical_space_action_blocker': 5, u'disks': [{u'id': [u'3971d9f7-aceb-4d84-9ba9-967f5c3ade77']}, {u'id': [u'e76ab7c5-95d5-44ce-b365-609a1d541343']}]}, {u'id': [u'bde9cab4-65f4-4d51-92f2-5c9915cf65d3']})) => {
    "changed": false, 
    "failed": true, 
    "invocation": {
        "module_args": {
            "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", 
            "fetch_nested": false, 
            "force": true, 
            "id": "bde9cab4-65f4-4d51-92f2-5c9915cf65d3", 
            "mount_options": null, 
            "nested_attributes": [], 
            "nfs_retrans": null, 
            "nfs_timeout": null, 
            "nfs_version": null, 
            "password": null, 
            "path": null, 
            "poll_interval": 3, 
            "port": null, 
            "state": "present", 
            "storage": "iscsi_0", 
            "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", 
            "timeout": 180, 
            "type": null, 
            "username": null, 
            "vfs_type": null, 
            "wait": true
        }
    }, 
    "item": [
        {
            "available": 47244640256, 
            "committed": 0, 
            "critical_space_action_blocker": 5, 
            "data_centers": [
                {
                    "id": "f513e037-0b4e-4af6-894a-1be0028b741d"
                }
            ], 
            "discard_after_delete": true, 
            "disk_profiles": [
                {
                    "id": [
                        "99360f80-3259-42da-8d95-79d70b131d76"
                    ]
                }
            ], 
            "disk_snapshots": [], 
            "disks": [
                {
                    "id": [
                        "3971d9f7-aceb-4d84-9ba9-967f5c3ade77"
                    ]
                }, 
                {
                    "id": [
                        "e76ab7c5-95d5-44ce-b365-609a1d541343"
                    ]
                }
            ], 
            "external_status": "ok", 
            "href": "/ovirt-engine/api/storagedomains/2ac0d732-0eee-4d12-a193-7a08f7d73186", 
            "id": "2ac0d732-0eee-4d12-a193-7a08f7d73186", 
            "master": false, 
            "name": "iscsi_0", 
            "permissions": [
                {
                    "id": [
                        "58ca605c-010d-0307-0224-0000000001a9"
                    ]
                }, 
                {
                    "id": [
                        "5964a6a1-0146-02d9-024e-00000000019f"
                    ]
                }
            ], 
            "storage": {
                "type": "iscsi", 
                "volume_group": {
                    "id": "zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7", 
                    "logical_units": [
                        {
                            "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", 
                            "discard_max_size": 8388608, 
                            "discard_zeroes_data": true, 
                            "id": "3600a09803830347a625d467a79745558", 
                            "lun_mapping": 2, 
                            "paths": 0, 
                            "port": 3260, 
                            "portal": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com:3260,1036", 
                            "product_id": "LUN C-Mode", 
                            "serial": "SNETAPP_LUN_C-Mode_804zb_FzytUX", 
                            "size": 53687091200, 
                            "storage_domain_id": "2ac0d732-0eee-4d12-a193-7a08f7d73186", 
                            "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", 
                            "vendor_id": "NETAPP", 
                            "volume_group_id": "zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7"
                        }, 
                        {
                            "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", 
                            "discard_max_size": 8388608, 
                            "discard_zeroes_data": true, 
                            "id": "3600a09803830347a625d467a79745558", 
                            "lun_mapping": 2, 
                            "paths": 0, 
                            "port": 3260, 
                            "portal": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com:3260,1035", 
                            "product_id": "LUN C-Mode", 
                            "serial": "SNETAPP_LUN_C-Mode_804zb_FzytUX", 
                            "size": 53687091200, 
                            "storage_domain_id": "2ac0d732-0eee-4d12-a193-7a08f7d73186", 
                            "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", 
                            "vendor_id": "NETAPP", 
                            "volume_group_id": "zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7"
                        }, 
                        {
                            "address": "10.35.66.207", 
                            "discard_max_size": 8388608, 
                            "discard_zeroes_data": true, 
                            "id": "3600a09803830347a625d467a79745558", 
                            "lun_mapping": 2, 
                            "paths": 0, 
                            "port": 3260, 
                            "portal": "10.35.66.207:3260,1035", 
                            "product_id": "LUN C-Mode", 
                            "serial": "SNETAPP_LUN_C-Mode_804zb_FzytUX", 
                            "size": 53687091200, 
                            "storage_domain_id": "2ac0d732-0eee-4d12-a193-7a08f7d73186", 
                            "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", 
                            "vendor_id": "NETAPP", 
                            "volume_group_id": "zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7"
                        }
                    ]
                }
            }, 
            "storage_format": "v4", 
            "supports_discard": true, 
            "supports_discard_zeroes_data": true, 
            "templates": [], 
            "type": "data", 
            "used": 5368709120, 
            "vms": [], 
            "warning_low_space_indicator": 10, 
            "wipe_after_delete": false
        }, 
        {
            "id": [
                "bde9cab4-65f4-4d51-92f2-5c9915cf65d3"
            ]
        }
    ], 
    "msg": "Fault reason is \"Operation Failed\". Fault detail is \"[Cannot edit Storage Connection. Storage connection already exists.]\". HTTP response code is 409."
}
Using module file /home/talayan/git/oVirt/ovirt-ansible/roles/ovirt-storages/library/ovirt_storage_connections.py
<jenkins-vm-16.qa.lab.tlv.redhat.com> ESTABLISH SSH CONNECTION FOR USER: root
<jenkins-vm-16.qa.lab.tlv.redhat.com> SSH: EXEC sshpass -d13 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/home/talayan/.ansible/cp/158b45b35a jenkins-vm-16.qa.lab.tlv.redhat.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<jenkins-vm-16.qa.lab.tlv.redhat.com> (0, '\n{"warnings": ["Module did not set no_log for password"], "changed": false, "invocation": {"module_args": {"username": null, "nfs_version": null, "force": true, "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", "poll_interval": 3, "nfs_retrans": null, "storage": "iscsi_0", "state": "present", "nested_attributes": [], "id": "3cfe82a3-c921-4ee0-b112-14820330c0af", "fetch_nested": false, "mount_options": null, "timeout": 180, "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", "nfs_timeout": null, "path": null, "vfs_type": null, "password": null, "type": null, "port": null, "wait": true}}, "diff": {"after": {}, "before": {}}, "id": "3cfe82a3-c921-4ee0-b112-14820330c0af", "storageconnection": {"target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", "port": 3260, "href": "/ovirt-engine/api/storageconnections/3cfe82a3-c921-4ee0-b112-14820330c0af", "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", "type": "iscsi", "id": "3cfe82a3-c921-4ee0-b112-14820330c0af"}}\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /home/talayan/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug3: /etc/ssh/ssh_config line 56: Including file /etc/ssh/ssh_config.d/05-redhat.conf depth 0\r\ndebug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf\r\ndebug1: /etc/ssh/ssh_config.d/05-redhat.conf line 2: include /etc/crypto-policies/back-ends/openssh.config matched no files\r\ndebug1: /etc/ssh/ssh_config.d/05-redhat.conf line 8: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 23632\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [jenkins-vm-16.qa.lab.tlv.redhat.com] => (item=({u'warning_low_space_indicator': 10, u'supports_discard_zeroes_data': True, u'wipe_after_delete': False, u'href': u'/ovirt-engine/api/storagedomains/2ac0d732-0eee-4d12-a193-7a08f7d73186', u'committed': 0, u'id': u'2ac0d732-0eee-4d12-a193-7a08f7d73186', u'external_status': u'ok', u'data_centers': [{u'id': u'f513e037-0b4e-4af6-894a-1be0028b741d'}], u'storage': {u'type': u'iscsi', u'volume_group': {u'logical_units': [{u'discard_zeroes_data': True, u'discard_max_size': 8388608, u'volume_group_id': u'zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7', u'paths': 0, u'vendor_id': u'NETAPP', u'id': u'3600a09803830347a625d467a79745558', u'product_id': u'LUN C-Mode', u'portal': u'vserver-san01-iscsi01.qa.lab.tlv.redhat.com:3260,1036', u'address': u'vserver-san01-iscsi01.qa.lab.tlv.redhat.com', u'lun_mapping': 2, u'serial': u'SNETAPP_LUN_C-Mode_804zb_FzytUX', u'size': 53687091200, u'storage_domain_id': u'2ac0d732-0eee-4d12-a193-7a08f7d73186', u'port': 3260, u'target': u'iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6'}, {u'discard_zeroes_data': True, u'discard_max_size': 8388608, u'volume_group_id': u'zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7', u'paths': 0, u'vendor_id': u'NETAPP', u'id': u'3600a09803830347a625d467a79745558', u'product_id': u'LUN C-Mode', u'portal': u'vserver-san01-iscsi01.qa.lab.tlv.redhat.com:3260,1035', u'address': u'vserver-san01-iscsi01.qa.lab.tlv.redhat.com', u'lun_mapping': 2, u'serial': u'SNETAPP_LUN_C-Mode_804zb_FzytUX', u'size': 53687091200, u'storage_domain_id': u'2ac0d732-0eee-4d12-a193-7a08f7d73186', u'port': 3260, u'target': u'iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6'}, {u'discard_zeroes_data': True, u'discard_max_size': 8388608, u'volume_group_id': u'zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7', u'paths': 0, u'vendor_id': u'NETAPP', u'id': u'3600a09803830347a625d467a79745558', u'product_id': u'LUN C-Mode', u'portal': u'10.35.66.207:3260,1035', u'address': u'10.35.66.207', u'lun_mapping': 2, u'serial': u'SNETAPP_LUN_C-Mode_804zb_FzytUX', u'size': 53687091200, u'storage_domain_id': u'2ac0d732-0eee-4d12-a193-7a08f7d73186', u'port': 3260, u'target': u'iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6'}], u'id': u'zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7'}}, u'vms': [], u'templates': [], u'master': False, u'permissions': [{u'id': [u'58ca605c-010d-0307-0224-0000000001a9']}, {u'id': [u'5964a6a1-0146-02d9-024e-00000000019f']}], u'type': u'data', u'storage_format': u'v4', u'supports_discard': True, u'available': 47244640256, u'used': 5368709120, u'disk_snapshots': [], u'discard_after_delete': True, u'disk_profiles': [{u'id': [u'99360f80-3259-42da-8d95-79d70b131d76']}], u'name': u'iscsi_0', u'critical_space_action_blocker': 5, u'disks': [{u'id': [u'3971d9f7-aceb-4d84-9ba9-967f5c3ade77']}, {u'id': [u'e76ab7c5-95d5-44ce-b365-609a1d541343']}]}, {u'id': [u'3cfe82a3-c921-4ee0-b112-14820330c0af']})) => {
    "changed": false, 
    "diff": {
        "after": {}, 
        "before": {}
    }, 
    "failed": false, 
    "id": "3cfe82a3-c921-4ee0-b112-14820330c0af", 
    "invocation": {
        "module_args": {
            "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", 
            "fetch_nested": false, 
            "force": true, 
            "id": "3cfe82a3-c921-4ee0-b112-14820330c0af", 
            "mount_options": null, 
            "nested_attributes": [], 
            "nfs_retrans": null, 
            "nfs_timeout": null, 
            "nfs_version": null, 
            "password": null, 
            "path": null, 
            "poll_interval": 3, 
            "port": null, 
            "state": "present", 
            "storage": "iscsi_0", 
            "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", 
            "timeout": 180, 
            "type": null, 
            "username": null, 
            "vfs_type": null, 
            "wait": true
        }
    }, 
    "item": [
        {
            "available": 47244640256, 
            "committed": 0, 
            "critical_space_action_blocker": 5, 
            "data_centers": [
                {
                    "id": "f513e037-0b4e-4af6-894a-1be0028b741d"
                }
            ], 
            "discard_after_delete": true, 
            "disk_profiles": [
                {
                    "id": [
                        "99360f80-3259-42da-8d95-79d70b131d76"
                    ]
                }
            ], 
            "disk_snapshots": [], 
            "disks": [
                {
                    "id": [
                        "3971d9f7-aceb-4d84-9ba9-967f5c3ade77"
                    ]
                }, 
                {
                    "id": [
                        "e76ab7c5-95d5-44ce-b365-609a1d541343"
                    ]
                }
            ], 
            "external_status": "ok", 
            "href": "/ovirt-engine/api/storagedomains/2ac0d732-0eee-4d12-a193-7a08f7d73186", 
            "id": "2ac0d732-0eee-4d12-a193-7a08f7d73186", 
            "master": false, 
            "name": "iscsi_0", 
            "permissions": [
                {
                    "id": [
                        "58ca605c-010d-0307-0224-0000000001a9"
                    ]
                }, 
                {
                    "id": [
                        "5964a6a1-0146-02d9-024e-00000000019f"
                    ]
                }
            ], 
            "storage": {
                "type": "iscsi", 
                "volume_group": {
                    "id": "zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7", 
                    "logical_units": [
                        {
                            "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", 
                            "discard_max_size": 8388608, 
                            "discard_zeroes_data": true, 
                            "id": "3600a09803830347a625d467a79745558", 
                            "lun_mapping": 2, 
                            "paths": 0, 
                            "port": 3260, 
                            "portal": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com:3260,1036", 
                            "product_id": "LUN C-Mode", 
                            "serial": "SNETAPP_LUN_C-Mode_804zb_FzytUX", 
                            "size": 53687091200, 
                            "storage_domain_id": "2ac0d732-0eee-4d12-a193-7a08f7d73186", 
                            "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", 
                            "vendor_id": "NETAPP", 
                            "volume_group_id": "zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7"
                        }, 
                        {
                            "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", 
                            "discard_max_size": 8388608, 
                            "discard_zeroes_data": true, 
                            "id": "3600a09803830347a625d467a79745558", 
                            "lun_mapping": 2, 
                            "paths": 0, 
                            "port": 3260, 
                            "portal": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com:3260,1035", 
                            "product_id": "LUN C-Mode", 
                            "serial": "SNETAPP_LUN_C-Mode_804zb_FzytUX", 
                            "size": 53687091200, 
                            "storage_domain_id": "2ac0d732-0eee-4d12-a193-7a08f7d73186", 
                            "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", 
                            "vendor_id": "NETAPP", 
                            "volume_group_id": "zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7"
                        }, 
                        {
                            "address": "10.35.66.207", 
                            "discard_max_size": 8388608, 
                            "discard_zeroes_data": true, 
                            "id": "3600a09803830347a625d467a79745558", 
                            "lun_mapping": 2, 
                            "paths": 0, 
                            "port": 3260, 
                            "portal": "10.35.66.207:3260,1035", 
                            "product_id": "LUN C-Mode", 
                            "serial": "SNETAPP_LUN_C-Mode_804zb_FzytUX", 
                            "size": 53687091200, 
                            "storage_domain_id": "2ac0d732-0eee-4d12-a193-7a08f7d73186", 
                            "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", 
                            "vendor_id": "NETAPP", 
                            "volume_group_id": "zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7"
                        }
                    ]
                }
            }, 
            "storage_format": "v4", 
            "supports_discard": true, 
            "supports_discard_zeroes_data": true, 
            "templates": [], 
            "type": "data", 
            "used": 5368709120, 
            "vms": [], 
            "warning_low_space_indicator": 10, 
            "wipe_after_delete": false
        }, 
        {
            "id": [
                "3cfe82a3-c921-4ee0-b112-14820330c0af"
            ]
        }
    ], 
    "storageconnection": {
        "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", 
        "href": "/ovirt-engine/api/storageconnections/3cfe82a3-c921-4ee0-b112-14820330c0af", 
        "id": "3cfe82a3-c921-4ee0-b112-14820330c0af", 
        "port": 3260, 
        "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", 
        "type": "iscsi"
    }, 
    "warnings": [
        "Module did not set no_log for password"
    ]
}
Using module file /home/talayan/git/oVirt/ovirt-ansible/roles/ovirt-storages/library/ovirt_storage_connections.py
<jenkins-vm-16.qa.lab.tlv.redhat.com> ESTABLISH SSH CONNECTION FOR USER: root
<jenkins-vm-16.qa.lab.tlv.redhat.com> SSH: EXEC sshpass -d13 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/home/talayan/.ansible/cp/158b45b35a jenkins-vm-16.qa.lab.tlv.redhat.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<jenkins-vm-16.qa.lab.tlv.redhat.com> (0, '\n{"warnings": ["Module did not set no_log for password"], "changed": false, "invocation": {"module_args": {"username": null, "nfs_version": null, "force": true, "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", "poll_interval": 3, "nfs_retrans": null, "storage": "iscsi_0", "state": "present", "nested_attributes": [], "id": "db305ac6-6739-4008-a121-bc289e71000d", "fetch_nested": false, "mount_options": null, "timeout": 180, "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", "nfs_timeout": null, "path": null, "vfs_type": null, "password": null, "type": null, "port": null, "wait": true}}, "diff": {"after": {}, "before": {}}, "id": "db305ac6-6739-4008-a121-bc289e71000d", "storageconnection": {"target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", "port": 3260, "href": "/ovirt-engine/api/storageconnections/db305ac6-6739-4008-a121-bc289e71000d", "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", "type": "iscsi", "id": "db305ac6-6739-4008-a121-bc289e71000d"}}\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /home/talayan/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug3: /etc/ssh/ssh_config line 56: Including file /etc/ssh/ssh_config.d/05-redhat.conf depth 0\r\ndebug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf\r\ndebug1: /etc/ssh/ssh_config.d/05-redhat.conf line 2: include /etc/crypto-policies/back-ends/openssh.config matched no files\r\ndebug1: /etc/ssh/ssh_config.d/05-redhat.conf line 8: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 23632\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [jenkins-vm-16.qa.lab.tlv.redhat.com] => (item=({u'warning_low_space_indicator': 10, u'supports_discard_zeroes_data': True, u'wipe_after_delete': False, u'href': u'/ovirt-engine/api/storagedomains/2ac0d732-0eee-4d12-a193-7a08f7d73186', u'committed': 0, u'id': u'2ac0d732-0eee-4d12-a193-7a08f7d73186', u'external_status': u'ok', u'data_centers': [{u'id': u'f513e037-0b4e-4af6-894a-1be0028b741d'}], u'storage': {u'type': u'iscsi', u'volume_group': {u'logical_units': [{u'discard_zeroes_data': True, u'discard_max_size': 8388608, u'volume_group_id': u'zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7', u'paths': 0, u'vendor_id': u'NETAPP', u'id': u'3600a09803830347a625d467a79745558', u'product_id': u'LUN C-Mode', u'portal': u'vserver-san01-iscsi01.qa.lab.tlv.redhat.com:3260,1036', u'address': u'vserver-san01-iscsi01.qa.lab.tlv.redhat.com', u'lun_mapping': 2, u'serial': u'SNETAPP_LUN_C-Mode_804zb_FzytUX', u'size': 53687091200, u'storage_domain_id': u'2ac0d732-0eee-4d12-a193-7a08f7d73186', u'port': 3260, u'target': u'iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6'}, {u'discard_zeroes_data': True, u'discard_max_size': 8388608, u'volume_group_id': u'zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7', u'paths': 0, u'vendor_id': u'NETAPP', u'id': u'3600a09803830347a625d467a79745558', u'product_id': u'LUN C-Mode', u'portal': u'vserver-san01-iscsi01.qa.lab.tlv.redhat.com:3260,1035', u'address': u'vserver-san01-iscsi01.qa.lab.tlv.redhat.com', u'lun_mapping': 2, u'serial': u'SNETAPP_LUN_C-Mode_804zb_FzytUX', u'size': 53687091200, u'storage_domain_id': u'2ac0d732-0eee-4d12-a193-7a08f7d73186', u'port': 3260, u'target': u'iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6'}, {u'discard_zeroes_data': True, u'discard_max_size': 8388608, u'volume_group_id': u'zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7', u'paths': 0, u'vendor_id': u'NETAPP', u'id': u'3600a09803830347a625d467a79745558', u'product_id': u'LUN C-Mode', u'portal': u'10.35.66.207:3260,1035', u'address': u'10.35.66.207', u'lun_mapping': 2, u'serial': u'SNETAPP_LUN_C-Mode_804zb_FzytUX', u'size': 53687091200, u'storage_domain_id': u'2ac0d732-0eee-4d12-a193-7a08f7d73186', u'port': 3260, u'target': u'iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6'}], u'id': u'zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7'}}, u'vms': [], u'templates': [], u'master': False, u'permissions': [{u'id': [u'58ca605c-010d-0307-0224-0000000001a9']}, {u'id': [u'5964a6a1-0146-02d9-024e-00000000019f']}], u'type': u'data', u'storage_format': u'v4', u'supports_discard': True, u'available': 47244640256, u'used': 5368709120, u'disk_snapshots': [], u'discard_after_delete': True, u'disk_profiles': [{u'id': [u'99360f80-3259-42da-8d95-79d70b131d76']}], u'name': u'iscsi_0', u'critical_space_action_blocker': 5, u'disks': [{u'id': [u'3971d9f7-aceb-4d84-9ba9-967f5c3ade77']}, {u'id': [u'e76ab7c5-95d5-44ce-b365-609a1d541343']}]}, {u'id': [u'db305ac6-6739-4008-a121-bc289e71000d']})) => {
    "changed": false, 
    "diff": {
        "after": {}, 
        "before": {}
    }, 
    "failed": false, 
    "id": "db305ac6-6739-4008-a121-bc289e71000d", 
    "invocation": {
        "module_args": {
            "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", 
            "fetch_nested": false, 
            "force": true, 
            "id": "db305ac6-6739-4008-a121-bc289e71000d", 
            "mount_options": null, 
            "nested_attributes": [], 
            "nfs_retrans": null, 
            "nfs_timeout": null, 
            "nfs_version": null, 
            "password": null, 
            "path": null, 
            "poll_interval": 3, 
            "port": null, 
            "state": "present", 
            "storage": "iscsi_0", 
            "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", 
            "timeout": 180, 
            "type": null, 
            "username": null, 
            "vfs_type": null, 
            "wait": true
        }
    }, 
    "item": [
        {
            "available": 47244640256, 
            "committed": 0, 
            "critical_space_action_blocker": 5, 
            "data_centers": [
                {
                    "id": "f513e037-0b4e-4af6-894a-1be0028b741d"
                }
            ], 
            "discard_after_delete": true, 
            "disk_profiles": [
                {
                    "id": [
                        "99360f80-3259-42da-8d95-79d70b131d76"
                    ]
                }
            ], 
            "disk_snapshots": [], 
            "disks": [
                {
                    "id": [
                        "3971d9f7-aceb-4d84-9ba9-967f5c3ade77"
                    ]
                }, 
                {
                    "id": [
                        "e76ab7c5-95d5-44ce-b365-609a1d541343"
                    ]
                }
            ], 
            "external_status": "ok", 
            "href": "/ovirt-engine/api/storagedomains/2ac0d732-0eee-4d12-a193-7a08f7d73186", 
            "id": "2ac0d732-0eee-4d12-a193-7a08f7d73186", 
            "master": false, 
            "name": "iscsi_0", 
            "permissions": [
                {
                    "id": [
                        "58ca605c-010d-0307-0224-0000000001a9"
                    ]
                }, 
                {
                    "id": [
                        "5964a6a1-0146-02d9-024e-00000000019f"
                    ]
                }
            ], 
            "storage": {
                "type": "iscsi", 
                "volume_group": {
                    "id": "zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7", 
                    "logical_units": [
                        {
                            "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", 
                            "discard_max_size": 8388608, 
                            "discard_zeroes_data": true, 
                            "id": "3600a09803830347a625d467a79745558", 
                            "lun_mapping": 2, 
                            "paths": 0, 
                            "port": 3260, 
                            "portal": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com:3260,1036", 
                            "product_id": "LUN C-Mode", 
                            "serial": "SNETAPP_LUN_C-Mode_804zb_FzytUX", 
                            "size": 53687091200, 
                            "storage_domain_id": "2ac0d732-0eee-4d12-a193-7a08f7d73186", 
                            "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", 
                            "vendor_id": "NETAPP", 
                            "volume_group_id": "zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7"
                        }, 
                        {
                            "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", 
                            "discard_max_size": 8388608, 
                            "discard_zeroes_data": true, 
                            "id": "3600a09803830347a625d467a79745558", 
                            "lun_mapping": 2, 
                            "paths": 0, 
                            "port": 3260, 
                            "portal": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com:3260,1035", 
                            "product_id": "LUN C-Mode", 
                            "serial": "SNETAPP_LUN_C-Mode_804zb_FzytUX", 
                            "size": 53687091200, 
                            "storage_domain_id": "2ac0d732-0eee-4d12-a193-7a08f7d73186", 
                            "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", 
                            "vendor_id": "NETAPP", 
                            "volume_group_id": "zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7"
                        }, 
                        {
                            "address": "10.35.66.207", 
                            "discard_max_size": 8388608, 
                            "discard_zeroes_data": true, 
                            "id": "3600a09803830347a625d467a79745558", 
                            "lun_mapping": 2, 
                            "paths": 0, 
                            "port": 3260, 
                            "portal": "10.35.66.207:3260,1035", 
                            "product_id": "LUN C-Mode", 
                            "serial": "SNETAPP_LUN_C-Mode_804zb_FzytUX", 
                            "size": 53687091200, 
                            "storage_domain_id": "2ac0d732-0eee-4d12-a193-7a08f7d73186", 
                            "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", 
                            "vendor_id": "NETAPP", 
                            "volume_group_id": "zhBtNl-MSd5-HBEJ-Ud9s-C3Wm-rF0N-aOGjS7"
                        }
                    ]
                }
            }, 
            "storage_format": "v4", 
            "supports_discard": true, 
            "supports_discard_zeroes_data": true, 
            "templates": [], 
            "type": "data", 
            "used": 5368709120, 
            "vms": [], 
            "warning_low_space_indicator": 10, 
            "wipe_after_delete": false
        }, 
        {
            "id": [
                "db305ac6-6739-4008-a121-bc289e71000d"
            ]
        }
    ], 
    "storageconnection": {
        "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", 
        "href": "/ovirt-engine/api/storageconnections/db305ac6-6739-4008-a121-bc289e71000d", 
        "id": "db305ac6-6739-4008-a121-bc289e71000d", 
        "port": 3260, 
        "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", 
        "type": "iscsi"
    }, 
    "warnings": [
        "Module did not set no_log for password"
    ]
}
Using module file /home/talayan/git/oVirt/ovirt-ansible/roles/ovirt-storages/library/ovirt_storage_connections.py
<jenkins-vm-16.qa.lab.tlv.redhat.com> ESTABLISH SSH CONNECTION FOR USER: root
<jenkins-vm-16.qa.lab.tlv.redhat.com> SSH: EXEC sshpass -d13 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/home/talayan/.ansible/cp/158b45b35a jenkins-vm-16.qa.lab.tlv.redhat.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<jenkins-vm-16.qa.lab.tlv.redhat.com> (1, '\n{"exception": "Traceback (most recent call last):\\n  File \\"/tmp/ansible_F0lfpW/ansible_module_ovirt_storage_connections.py\\", line 268, in main\\n    update_params={\'force\': True},\\n  File \\"/tmp/ansible_F0lfpW/ansible_modlib.zip/ansible/module_utils/ovirt.py\\", line 549, in create\\n    **update_params\\n  File \\"/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py\\", line 20635, in update\\n    return self._internal_update(connection, headers, query, wait)\\n  File \\"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\\", line 244, in _internal_update\\n    return future.wait() if wait else future\\n  File \\"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\\", line 53, in wait\\n    return self._code(response)\\n  File \\"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\\", line 241, in callback\\n    self._check_fault(response)\\n  File \\"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\\", line 123, in _check_fault\\n    self._raise_error(response, body)\\n  File \\"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\\", line 109, in _raise_error\\n    raise error\\nError: Fault reason is \\"Operation Failed\\". Fault detail is \\"[Cannot edit Storage Connection. Storage connection already exists.]\\". HTTP response code is 409.\\n", "warnings": ["Module did not set no_log for password"], "changed": false, "failed": true, "invocation": {"module_args": {"username": null, "nfs_version": null, "force": true, "target": "iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6", "poll_interval": 3, "nfs_retrans": null, "storage": "iscsi_1", "state": "present", "nested_attributes": [], "id": "bde9cab4-65f4-4d51-92f2-5c9915cf65d3", "fetch_nested": false, "mount_options": null, "timeout": 180, "address": "vserver-san01-iscsi01.qa.lab.tlv.redhat.com", "nfs_timeout": null, "path": null, "vfs_type": null, "password": null, "type": null, "port": null, "wait": true}}, "msg": "Fault reason is \\"Operation Failed\\". Fault detail is \\"[Cannot edit Storage Connection. Storage connection already exists.]\\". HTTP response code is 409."}\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /home/talayan/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug3: /etc/ssh/ssh_config line 56: Including file /etc/ssh/ssh_config.d/05-redhat.conf depth 0\r\ndebug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf\r\ndebug1: /etc/ssh/ssh_config.d/05-redhat.conf line 2: include /etc/crypto-policies/back-ends/openssh.config matched no files\r\ndebug1: /etc/ssh/ssh_config.d/05-redhat.conf line 8: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 23632\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n')
The full traceback is:
Traceback (most recent call last):
  File "/tmp/ansible_F0lfpW/ansible_module_ovirt_storage_connections.py", line 268, in main
    update_params={'force': True},
  File "/tmp/ansible_F0lfpW/ansible_modlib.zip/ansible/module_utils/ovirt.py", line 549, in create
    **update_params
  File "/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py", line 20635, in update
    return self._internal_update(connection, headers, query, wait)
  File "/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py", line 244, in _internal_update
    return future.wait() if wait else future
  File "/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py", line 53, in wait
    return self._code(response)
machacekondra commented 7 years ago

@tareqalayan Can you please try with the patch above?

machacekondra commented 7 years ago

@tareqalayan Can you please try I am unsure how to reproduce, what env what exact steps etc..?

tareqalayan commented 7 years ago

I am unable to reproduce it now.

On Mon, Aug 7, 2017 at 10:28 AM, Ondra Machacek notifications@github.com wrote:

@tareqalayan https://github.com/tareqalayan Can you please try I am unsure how to reproduce, what env what exact steps etc..?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/oVirt/ovirt-ansible/issues/38#issuecomment-320589754, or mute the thread https://github.com/notifications/unsubscribe-auth/AB6V5FB9EikAgYYkX8tNVqifjdyrg5llks5sVrypgaJpZM4OlXht .

machacekondra commented 7 years ago

I am unable to reproduce it now.

With provided patch or without?

tareqalayan commented 7 years ago

with and without ... i have no idea, i am unable to reproduce it now... the only thing changes is the ovirt version i did reinstalled . 4.2.0-0.0.master.20170803140556.git1e7d0dd.el7.centos

tareqalayan commented 7 years ago

i see this happen when python-ovirt-engine-sdk4-4.2.1-1.a1.20170718git56b2d49.el7.centos.x86_64 ovirt-engine-4.2.0-0.0.master.20170818152502.gita8c361f.el7.centos.noarch and it works when: python-ovirt-engine-sdk4-4.2.1-1.a1.20170718git56b2d49.el7.centos.x86_64 ovirt-engine-4.2.0-0.0.master.20170803140556.git1e7d0dd.el7.centos.noarch

machacekondra commented 7 years ago

The problem is that /storagedomains/{id}/storageconnections for iSCSI reports two connections same connections with different ID and address. The address is once with IP and second with hostname. Not sure why is this:

<storage_connections>
  <storage_connection href="/ovirt-engine/api/storageconnections/59cf4d49-5686-4c81-b8c4-c86459e21392" id="59cf4d49-5686-4c81-b8c4-c86459e21392">
    <address>1.2.3.4</address>
    <port>3260</port>
    <target>iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6</target>
    <type>iscsi</type>
  </storage_connection>
<storage_connection href="/ovirt-engine/api/storageconnections/93836255-9dd3-4232-a389-dc40d6900f1f" id="93836255-9dd3-4232-a389-dc40d6900f1f">
    <address>iscsi.example.com</address>
    <port>3260</port>
    <target>iqn.1992-08.com.netapp:sn.9a14187dd2e911e4bbb900a09861387c:vs.6</target>
    <type>iscsi</type>
  </storage_connection>
</storage_connections>

iscsi.example.com == 1.2.3.4

machacekondra commented 6 years ago

Moved to: https://github.com/oVirt/ovirt-ansible-infra/issues/20