Create a Post
FWNinja
Contributor

HA Script Issue

Jump to solution

Hi Guys,

I've installed a cluster fw on AWS Environment.

I had a huge issue with the HA. At the moment I'm not able to do a failover.

Following the "$FWDIR/Python/bin/python -m aws_ha_test" output:

"Traceback (most recent call last):
File "/opt/CPsuite-R80.40/fw1/Python/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/opt/CPsuite-R80.40/fw1/Python/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/opt/CPsuite-R80.40/fw1/scripts/aws_ha_test.py", line 38, in <module>
http_proxy = urlparse(os.environ.get('http_proxy'))
File "/opt/CPsuite-R80.40/fw1/Python/lib/python2.7/urlparse.py", line 143, in urlparse
tuple = urlsplit(url, scheme, allow_fragments)
File "/opt/CPsuite-R80.40/fw1/Python/lib/python2.7/urlparse.py", line 201, in urlsplit
i = url.find(':')
AttributeError: 'NoneType' object has no attribute 'find'"

 

Could you help me to solve this issue?

Thanks and Best Regards

Francesco

0 Kudos
1 Solution

Accepted Solutions
Dmitry_Gorn
Employee
Employee

Please try to use $FWDIR/Python/bin/python3 to execute the script, or simply run:

$FWDIR/scripts/azure_ha_test

The clustering scripts in R80.40 are based on Python 3.

The older Python is still there for backwards-compatibility reasons only.

Let me know if the issue persists.

 

Thanks

View solution in original post

0 Kudos
1 Reply
Dmitry_Gorn
Employee
Employee

Please try to use $FWDIR/Python/bin/python3 to execute the script, or simply run:

$FWDIR/scripts/azure_ha_test

The clustering scripts in R80.40 are based on Python 3.

The older Python is still there for backwards-compatibility reasons only.

Let me know if the issue persists.

 

Thanks

View solution in original post

0 Kudos