that error indicates the module cannot reach your F5 device.

"""
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='10.44.193.38',
port=443): Max retries exceeded with url: /mgmt/shared/authn/login (Caused
by 
NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection
object at 0x400a3d0>: Failed to establish a new connection: [Errno 110]
Connection timed out',))
"""

On Wed, May 31, 2017 at 3:04 PM, Siva Subramaniyan <[email protected]>
wrote:

> Hi Tim,
>
> Thanks for the details..! i got the below error while running the devel
> branch module. I am sorry to disturb you again.
>
>
> $ ansible-playbook f5-GTM-pool-disable.yml -i ../inv/fact-host -vvvv
> Using /etc/ansible/ansible.cfg as config file
> Loading callback plugin skippy of type stdout, v2.0 from
> /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
>
> PLAYBOOK: f5-GTM-pool-disable.yml ******************************
> **********************************************************
> 1 plays in f5-GTM-pool-disable.yml
>
> PLAY [testgtm] ******************************
> ************************************************************
> *****************
>
> TASK [Gathering Facts] ******************************
> *********************************************************************
> Using module file /usr/lib/python2.7/site-packages/ansible/modules/
> system/setup.py
> <10.44.193.38> ESTABLISH LOCAL CONNECTION FOR USER: ansuser
> <10.44.193.38> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo
> $HOME/.ansible/tmp/ansible-tmp-1496267129.89-253660434471106 `" && echo
> ansible-tmp-1496267129.89-253660434471106="` echo
> $HOME/.ansible/tmp/ansible-tmp-1496267129.89-253660434471106 `" ) &&
> sleep 0'
> <10.44.193.38> PUT /tmp/tmpOB79TI TO /home/ansuser/.ansible/tmp/
> ansible-tmp-1496267129.89-253660434471106/setup.py
> <10.44.193.38> EXEC /bin/sh -c 'chmod u+x /home/ansuser/.ansible/tmp/
> ansible-tmp-1496267129.89-253660434471106/ /home/ansuser/.ansible/tmp/
> ansible-tmp-1496267129.89-253660434471106/setup.py && sleep 0'
> <10.44.193.38> EXEC /bin/sh -c '/usr/bin/python /home/ansuser/.ansible/tmp/
> ansible-tmp-1496267129.89-253660434471106/setup.py; rm -rf
> "/home/ansuser/.ansible/tmp/ansible-tmp-1496267129.89-253660434471106/" >
> /dev/null 2>&1 && sleep 0'
> ok: [10.44.193.38]
> META: ran handlers
>
> TASK [Force pool member offline] ******************************
> ***********************************************************
> task path: /apps/ansible-scripts/f5-BigIP/playbooks/f5-GTM-pool-
> disable.yml:7
> Using module file /usr/lib/python2.7/site-packages/ansible/modules/
> network/f5/bigip_gtm_pool.py
> <localhost> ESTABLISH LOCAL CONNECTION FOR USER: ansuser
> <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo
> $HOME/.ansible/tmp/ansible-tmp-1496267130.41-260369370140814 `" && echo
> ansible-tmp-1496267130.41-260369370140814="` echo
> $HOME/.ansible/tmp/ansible-tmp-1496267130.41-260369370140814 `" ) &&
> sleep 0'
> <localhost> PUT /tmp/tmpEWcAQZ TO /home/ansuser/.ansible/tmp/
> ansible-tmp-1496267130.41-260369370140814/bigip_gtm_pool.py
> <localhost> EXEC /bin/sh -c 'chmod u+x /home/ansuser/.ansible/tmp/
> ansible-tmp-1496267130.41-260369370140814/ /home/ansuser/.ansible/tmp/
> ansible-tmp-1496267130.41-260369370140814/bigip_gtm_pool.py && sleep 0'
> <localhost> EXEC /bin/sh -c '/usr/bin/python2 /home/ansuser/.ansible/tmp/
> ansible-tmp-1496267130.41-260369370140814/bigip_gtm_pool.py; rm -rf
> "/home/ansuser/.ansible/tmp/ansible-tmp-1496267130.41-260369370140814/" >
> /dev/null 2>&1 && sleep 0'
> The full traceback is:
> Traceback (most recent call last):
>   File "/tmp/ansible_cLPO8c/ansible_module_bigip_gtm_pool.py", line 654,
> in <module>
>     main()
>   File "/tmp/ansible_cLPO8c/ansible_module_bigip_gtm_pool.py", line 642,
> in main
>     required_if=spec.required_if
>   File 
> "/tmp/ansible_cLPO8c/ansible_modlib.zip/ansible/module_utils/f5_utils.py",
> line 240, in __init__
>   File 
> "/tmp/ansible_cLPO8c/ansible_modlib.zip/ansible/module_utils/f5_utils.py",
> line 265, in _get_mgmt_root
>   File "/usr/lib/python2.7/site-packages/f5/bigip/__init__.py", line 124,
> in __init__
>     self.post_configuration_setup()
>   File "/usr/lib/python2.7/site-packages/f5/bigip/__init__.py", line 91,
> in post_configuration_setup
>     self._get_tmos_version()
>   File "/usr/lib/python2.7/site-packages/f5/bigip/__init__.py", line 96,
> in _get_tmos_version
>     response = connect.get(base_uri)
>   File "/usr/lib/python2.7/site-packages/icontrol/session.py", line 258,
> in wrapper
>     response = method(self, REST_uri, **kwargs)
>   File "/usr/lib/python2.7/site-packages/icontrol/session.py", line 427,
> in get
>     return self.session.get(uri, **kwargs)
>   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 501,
> in get
>     return self.request('GET', url, **kwargs)
>   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 474,
> in request
>     prep = self.prepare_request(req)
>   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 407,
> in prepare_request
>     hooks=merge_hooks(request.hooks, self.hooks),
>   File "/usr/lib/python2.7/site-packages/requests/models.py", line 306,
> in prepare
>     self.prepare_auth(auth, url)
>   File "/usr/lib/python2.7/site-packages/requests/models.py", line 543,
> in prepare_auth
>     r = auth(self)
>   File "/usr/lib/python2.7/site-packages/icontrol/authtoken.py", line
> 203, in __call__
>     self.get_new_token(netloc)
>   File "/usr/lib/python2.7/site-packages/icontrol/authtoken.py", line
> 100, in get_new_token
>     self.password))
>   File "/usr/lib/python2.7/site-packages/requests/api.py", line 110, in
> post
>     return request('post', url, data=data, json=json, **kwargs)
>   File "/usr/lib/python2.7/site-packages/requests/api.py", line 56, in
> request
>     return session.request(method=method, url=url, **kwargs)
>   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 488,
> in request
>     resp = self.send(prep, **send_kwargs)
>   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 609,
> in send
>     r = adapter.send(request, **kwargs)
>   File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 487,
> in send
>     raise ConnectionError(e, request=request)
> requests.exceptions.ConnectionError: HTTPSConnectionPool(host='10.44.193.38',
> port=443): Max retries exceeded with url: /mgmt/shared/authn/login (Caused
> by 
> NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection
> object at 0x400a3d0>: Failed to establish a new connection: [Errno 110]
> Connection timed out',))
>
> fatal: [10.44.193.38 -> localhost]: FAILED! => {
>     "changed": false,
>     "failed": true,
>     "module_stderr": "Traceback (most recent call last):\n  File
> \"/tmp/ansible_cLPO8c/ansible_module_bigip_gtm_pool.py\", line 654, in
> <module>\n    main()\n  File 
> \"/tmp/ansible_cLPO8c/ansible_module_bigip_gtm_pool.py\",
> line 642, in main\n    required_if=spec.required_if\n  File
> \"/tmp/ansible_cLPO8c/ansible_modlib.zip/ansible/module_utils/f5_utils.py\",
> line 240, in __init__\n  File \"/tmp/ansible_cLPO8c/ansible_
> modlib.zip/ansible/module_utils/f5_utils.py\", line 265, in
> _get_mgmt_root\n  File \"/usr/lib/python2.7/site-
> packages/f5/bigip/__init__.py\", line 124, in __init__\n
>  self.post_configuration_setup()\n  File \"/usr/lib/python2.7/site-
> packages/f5/bigip/__init__.py\", line 91, in post_configuration_setup\n
>  self._get_tmos_version()\n  File \"/usr/lib/python2.7/site-
> packages/f5/bigip/__init__.py\", line 96, in _get_tmos_version\n
>  response = connect.get(base_uri)\n  File \"/usr/lib/python2.7/site-
> packages/icontrol/session.py\", line 258, in wrapper\n    response =
> method(self, REST_uri, **kwargs)\n  File \"/usr/lib/python2.7/site-
> packages/icontrol/session.py\", line 427, in get\n    return
> self.session.get(uri, **kwargs)\n  File \"/usr/lib/python2.7/site-
> packages/requests/sessions.py\", line 501, in get\n    return
> self.request('GET', url, **kwargs)\n  File \"/usr/lib/python2.7/site-
> packages/requests/sessions.py\", line 474, in request\n    prep =
> self.prepare_request(req)\n  File \"/usr/lib/python2.7/site-
> packages/requests/sessions.py\", line 407, in prepare_request\n
>  hooks=merge_hooks(request.hooks, self.hooks),\n  File
> \"/usr/lib/python2.7/site-packages/requests/models.py\", line 306, in
> prepare\n    self.prepare_auth(auth, url)\n  File 
> \"/usr/lib/python2.7/site-packages/requests/models.py\",
> line 543, in prepare_auth\n    r = auth(self)\n  File
> \"/usr/lib/python2.7/site-packages/icontrol/authtoken.py\", line 203, in
> __call__\n    self.get_new_token(netloc)\n  File \"/usr/lib/python2.7/site-
> packages/icontrol/authtoken.py\", line 100, in get_new_token\n
>  self.password))\n  File \"/usr/lib/python2.7/site-packages/requests/api.py\",
> line 110, in post\n    return request('post', url, data=data, json=json,
> **kwargs)\n  File \"/usr/lib/python2.7/site-packages/requests/api.py\",
> line 56, in request\n    return session.request(method=method, url=url,
> **kwargs)\n  File \"/usr/lib/python2.7/site-packages/requests/sessions.py\",
> line 488, in request\n    resp = self.send(prep, **send_kwargs)\n  File
> \"/usr/lib/python2.7/site-packages/requests/sessions.py\", line 609, in
> send\n    r = adapter.send(request, **kwargs)\n  File
> \"/usr/lib/python2.7/site-packages/requests/adapters.py\", line 487, in
> send\n    raise ConnectionError(e, 
> request=request)\nrequests.exceptions.ConnectionError:
> HTTPSConnectionPool(host='10.44.193.38', port=443): Max retries exceeded
> with url: /mgmt/shared/authn/login (Caused by NewConnectionError('<requests.
> packages.urllib3.connection.VerifiedHTTPSConnection object at 0x400a3d0>:
> Failed to establish a new connection: [Errno 110] Connection timed
> out',))\n",
>     "module_stdout": "",
>     "msg": "MODULE FAILURE",
>     "rc": 0
> }
>
> msg: MODULE FAILURE
>         to retry, use: --limit @/apps/ansible-scripts/f5-
> BigIP/playbooks/f5-GTM-pool-disable.retry
>
> PLAY RECAP ************************************************************
> ***************************************************
> 10.44.193.38               : ok=1    changed=0    unreachable=0    failed=1
>
>
> Thanks
> Siva Subramaniyan
>
>
> On Wednesday, May 31, 2017 at 2:24:28 PM UTC-6, Tim Rupp wrote:
>>
>> the module you're using is from "master" branch.
>>
>> Master is not the newest code. the one you want is in "devel" here is the
>> link.
>>
>> https://github.com/F5Networks/f5-ansible/blob/devel/library/
>> bigip_gtm_pool.py
>>
>> -tim
>>
>> On Wed, May 31, 2017 at 12:48 PM, Siva Subramaniyan <[email protected]>
>> wrote:
>>
>>> HI Tim,
>>>
>>> Thanks for the details.
>>>
>>> I have tried copying the https://github.com/F5Netwo
>>> rks/f5-ansible/blob/master/library/bigip_gtm_pool.py  module
>>>
>>> placed in "/usr/lib/python2.7/site-packages/ansible/modules/network/f5"
>>>
>>> and tried my execution.. Some how it fails, can i wait till get the
>>> stable version or can you advice the stable module to place and try. i have
>>> the requirement to control the GTM traffic from ansible as my project
>>> delivery. any help is much appreciated,
>>>
>>>
>>> $ ansible-playbook f5-GTM-pool-disable.yml -i ../inv/fact-host -vvvv
>>> Using /etc/ansible/ansible.cfg as config file
>>> Loading callback plugin skippy of type stdout, v2.0 from
>>> /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
>>>
>>> PLAYBOOK: f5-GTM-pool-disable.yml ******************************
>>> **********************************************************
>>> 1 plays in f5-GTM-pool-disable.yml
>>>
>>> PLAY [testgtm] ******************************
>>> ************************************************************
>>> *****************
>>>
>>> TASK [Gathering Facts] ******************************
>>> *********************************************************************
>>> Using module file /usr/lib/python2.7/site-packag
>>> es/ansible/modules/system/setup.py
>>> <10.44.193.38> ESTABLISH LOCAL CONNECTION FOR USER: ansuser
>>> <10.44.193.38> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo
>>> $HOME/.ansible/tmp/ansible-tmp-1496259129.14-190984755053273 `" && echo
>>> ansible-tmp-1496259129.14-190984755053273="` echo
>>> $HOME/.ansible/tmp/ansible-tmp-1496259129.14-190984755053273 `" ) &&
>>> sleep 0'
>>> <10.44.193.38> PUT /tmp/tmpg3h_hL TO /home/ansuser/.ansible/tmp/ans
>>> ible-tmp-1496259129.14-190984755053273/setup.py
>>> <10.44.193.38> EXEC /bin/sh -c 'chmod u+x /home/ansuser/.ansible/tmp/ans
>>> ible-tmp-1496259129.14-190984755053273/ /home/ansuser/.ansible/tmp/ans
>>> ible-tmp-1496259129.14-190984755053273/setup.py && sleep 0'
>>> <10.44.193.38> EXEC /bin/sh -c '/usr/bin/python
>>> /home/ansuser/.ansible/tmp/ansible-tmp-1496259129.14-190984755053273/setup.py;
>>> rm -rf 
>>> "/home/ansuser/.ansible/tmp/ansible-tmp-1496259129.14-190984755053273/"
>>> > /dev/null 2>&1 && sleep 0'
>>> ok: [10.44.193.38]
>>> META: ran handlers
>>>
>>> TASK [Force pool member offline] ******************************
>>> ***********************************************************
>>> task path: /opt/ansible-scripts/f5-BigIP/playbooks/f5-GTM-pool-disable.
>>> yml:7
>>> fatal: [10.44.193.38]: FAILED! => {
>>>     "failed": true,
>>>     "msg": "Could not find imported module support code for
>>> bigip_gtm_pool.  Looked for either *.py or f5.py"
>>> }
>>>
>>> msg: Could not find imported module support code for bigip_gtm_pool.
>>> Looked for either *.py or f5.py
>>>         to retry, use: --limit @/opt/ansible-scripts/f5-BigIP
>>> /playbooks/f5-GTM-pool-disable.retry
>>>
>>> PLAY RECAP ************************************************************
>>> ***************************************************
>>> 10.44.193.38               : ok=1    changed=0    unreachable=0
>>>  failed=1
>>>
>>> Thanks
>>> Siva Subramaniyan
>>>
>>>
>>>
>>> On Monday, May 29, 2017 at 1:19:01 PM UTC-6, Tim Rupp wrote:
>>>>
>>>> Hey Siva,
>>>>
>>>> That module is not yet part of Ansible core. You need to install it
>>>> locally from the f5-ansible repository until it is.
>>>>
>>>> Instructions for doing that can be found here
>>>>
>>>> https://f5-ansible.readthedocs.io/en/latest/usage/
>>>> installing_modules.html
>>>>
>>>> -tim
>>>>
>>>> On Sat, May 27, 2017 at 10:25 PM, Siva Subramaniyan <[email protected]>
>>>> wrote:
>>>>
>>>>> HI Tim,
>>>>>
>>>>> When I run the Above play book, getting the error as below. Looks like
>>>>> my Ansible version is not recognizing the "bigip_gtm_pool" module. Please
>>>>> advise.
>>>>>
>>>>> *Ansible Version:-*
>>>>>
>>>>> ansible 2.3.0.0
>>>>>   config file = /etc/ansible/ansible.cfg
>>>>>   configured module search path = Default w/o overrides
>>>>>   python version = 2.7.5 (default, Aug  2 2016, 04:20:16) [GCC 4.8.5
>>>>> 20150623 (Red Hat 4.8.5-4)]
>>>>>
>>>>>
>>>>> *Error while running :-*
>>>>>
>>>>> *$ ansible-playbook f5-GTM-pool-disable.yml -i ../inv/fact-host
>>>>>  --syntax-check -vvvv*
>>>>>
>>>>> Using /etc/ansible/ansible.cfg as config file
>>>>> *ERROR! no action detected in task. This often indicates a misspelled
>>>>> module name, or incorrect module path.*
>>>>>
>>>>> The error appears to have been in '/apps/ansible-scripts/f5-BigI
>>>>> P/playbooks/f5-GTM-pool-disable.yml': line 7, column 5, but may
>>>>> be elsewhere in the file depending on the exact syntax problem.
>>>>>
>>>>> The offending line appears to be:
>>>>>
>>>>>
>>>>>   - name: Force pool member offline
>>>>>     ^ here
>>>>>
>>>>>
>>>>> The error appears to have been in '/apps/ansible-scripts/f5-BigI
>>>>> P/playbooks/f5-GTM-pool-disable.yml': line 7, column 5, but may
>>>>> be elsewhere in the file depending on the exact syntax problem.
>>>>>
>>>>> The offending line appears to be:
>>>>>
>>>>>
>>>>>   - name: Force pool member offline
>>>>>     ^ here
>>>>>
>>>>> =======================================================
>>>>>
>>>>>  Thanks
>>>>> Siva Subramaniyan.
>>>>>
>>>>>
>>>>> On Tuesday, May 23, 2017 at 11:26:03 PM UTC-6, Siva Subramaniyan wrote:
>>>>>>
>>>>>> Hi There,
>>>>>>
>>>>>> Can you please share the used case Playbook for the LTM/GTM traffic
>>>>>> disable in F5 Big IP.
>>>>>> I have the requirement to switch the Traffic during the change window
>>>>>> to do the Server side deployments.
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Ansible Project" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To post to this group, send email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/ansible-project/c635a269-
>>>>> 9a9f-42ce-89ef-0d5db6338400%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/ansible-project/c635a269-9a9f-42ce-89ef-0d5db6338400%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/ansible-project/ba448198-87d8-421d-8410-048b6f3e269b%
>>> 40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/ba448198-87d8-421d-8410-048b6f3e269b%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/c7cec089-7b8b-459f-93d7-d0ae1b2686f3%40googlegroups.
> com
> <https://groups.google.com/d/msgid/ansible-project/c7cec089-7b8b-459f-93d7-d0ae1b2686f3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAB0Zv8jCOXO8zcsm-OSf3cABP2BKpnuvvt6biTjeQ1CMfPbXHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to