Forum Discussion
ConfigSync via PyControl Times out
I have been troubleshooting this for a couple of days, but can't seem to get past it.
We are using pycontrol against a few LTMs running 9.4.8 HF4.
--
We are doing all sorts of F5 configuration; defining pools, assigning VIPs, building profiles, much more.
The only thing that we can't get to work is the ConfigSync between our two devices.
ConfigSync works fine from the command line & the console, but when we run it via the API, we get timeout errors.
No matter how we attempt to do it, the sync takes over 90 seconds, and 90 seconds seems to be the default timeout with pycontrol. I have attempted to find ways to lower the amount of time it takes to sync the devices (checked filesystems, setup a dedicated vlan, etc), but I can't seem to make much headway there.
At this point, I just want to bump up the timeout in pycontrol, but I need a little handholding on how to do this?
Can anyone offer assistance?.. What I am seeing is shown below
urllib2.URLError:
2 Replies
- Jeff_McDowell_4
Nimbostratus
Here is the full error:
import pycontrol.pycontrol as pc
import sys
b = pc.BIGIP(
hostname = '...',
username = 'Automation',
password = '',
fromurl = True,
wsdls = ['System.ConfigSync'])
b.System.ConfigSync.synchronize_configuration(sync_flag='CONFIGSYNC_BASIC')
Traceback (most recent call last):
File "", line 1, in
File "build/bdist.linux-x86_64/egg/suds/client.py", line 542, in __call__
File "build/bdist.linux-x86_64/egg/suds/client.py", line 602, in invoke
File "build/bdist.linux-x86_64/egg/suds/client.py", line 637, in send
File "build/bdist.linux-x86_64/egg/suds/transport/https.py", line 64, in send
File "build/bdist.linux-x86_64/egg/suds/transport/http.py", line 77, in send
File "build/bdist.linux-x86_64/egg/suds/transport/http.py", line 116, in u2open
File "/opt/TWWfsw/python25/lib/python2.5/urllib2.py", line 387, in open
response = meth(req, response)
File "/opt/TWWfsw/python25/lib/python2.5/urllib2.py", line 498, in http_response
'http', request, response, code, msg, hdrs)
File "/opt/TWWfsw/python25/lib/python2.5/urllib2.py", line 419, in error
result = self._call_chain(*args)
File "/opt/TWWfsw/python25/lib/python2.5/urllib2.py", line 360, in _call_chain
result = func(*args)
File "/opt/TWWfsw/python25/lib/python2.5/urllib2.py", line 835, in http_error_401
url, req, headers)
File "/opt/TWWfsw/python25/lib/python2.5/urllib2.py", line 813, in http_error_auth_reqed
return self.retry_http_basic_auth(host, req, realm)
File "/opt/TWWfsw/python25/lib/python2.5/urllib2.py", line 823, in retry_http_basic_auth
return self.parent.open(req)
File "/opt/TWWfsw/python25/lib/python2.5/urllib2.py", line 381, in open
response = self._open(req, data)
File "/opt/TWWfsw/python25/lib/python2.5/urllib2.py", line 399, in _open
'_open', req)
File "/opt/TWWfsw/python25/lib/python2.5/urllib2.py", line 360, in _call_chain
result = func(*args)
File "/opt/TWWfsw/python25/lib/python2.5/urllib2.py", line 1127, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/opt/TWWfsw/python25/lib/python2.5/urllib2.py", line 1094, in do_open
raise URLError(err)
urllib2.URLError: - Jeff_McDowell_4
Nimbostratus
Issue is fixed.
The devices had their resolv.conf setup incorrectly, and were unable to resolve hostnames.
This presented issues (and major delays) when attempting to load configurations (specifically the /config/bigip_sys.conf file).
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
