netscaler / ansible-collection-netscaleradc

Custom Ansible modules for NetScaler ADC and NetScaler ADM. Part of NetScaler Automation Toolkit | https://github.com/netscaler/automation-toolkit
https://netscaler.github.io/ansible-collection-netscaleradc/
MIT License
112 stars 57 forks source link

CS vserver Type error #62

Closed tomiloza closed 5 years ago

tomiloza commented 5 years ago

Hello,

when executing the csvserver ansbile task a second time (first execution was successful) when already the root certificates are bindend to the csverver we get the following type error:

fatal: [netscaler_XXXX -> localhost]: FAILED! => { "changed": false, "module_stderr": "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning)\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning)\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning)\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning)\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning)\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning)\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning)\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning)\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning)\n/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n InsecureRequestWarning)\nTraceback (most recent call last):\n File \"/tmp/ansible_SQ0VXM/ansible_module_netscaler_cs_vserver.py\", line 1316, in \n main()\n File \"/tmp/ansible_SQ0VXM/ansible_module_netscaler_cs_vserver.py\", line 1258, in main\n ssl_certkey_bindings_sync(client, module)\n File \"/tmp/ansible_SQ0VXM/ansible_module_netscaler_cs_vserver.py\", line 815, in ssl_certkey_bindings_sync\n sslvserver_sslcertkey_binding.delete(client, binding)\n File \"/usr/local/lib/python2.7/site-packages/nssrc/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver_sslcertkey_binding.py\", line 254, in delete\n raise e\nTypeError: cannot concatenate 'str' and 'bool' objects\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1

sumanth-lingappa commented 5 years ago

Hi @tomiloza , I couldnt reproduce the same error. Is this error constantly coming? Please help us in understanding your playbook and usecase.

giorgos-nikolopoulos commented 5 years ago

@tomiloza

I cannot replicate the issue either.

I will be closing this issue due to inactivity.

If you still face the same problem please open a new issue, and include the playbook source code and the output of the verbose playbook execution. I usually catch all playbook output on ubuntu linux with the following command:

ansible-playbook -vvv my_playbook.yaml |& tee log.txt