Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With Juju 2.9: None does not appear to be an IPv4 or IPv6 address #642

Open
lourot opened this issue Sep 30, 2021 · 2 comments
Open

With Juju 2.9: None does not appear to be an IPv4 or IPv6 address #642

lourot opened this issue Sep 30, 2021 · 2 comments

Comments

@lourot
Copy link
Contributor

lourot commented Sep 30, 2021

https://openstack-ci-reports.ubuntu.com/artifacts/f94/811942/1/check/bionic-ussuri/f94334a/

Traceback (most recent call last):
  File "/home/ubuntu/src/review.opendev.org/openstack/charm-openstack-dashboard/.tox/func-target/bin/functest-run-suite", line 8, in <module>
    sys.exit(main())
  File "/home/ubuntu/src/review.opendev.org/openstack/charm-openstack-dashboard/.tox/func-target/lib/python3.6/site-packages/zaza/charm_lifecycle/func_test_runner.py", line 372, in main
    test_directory=args.test_directory)
  File "/home/ubuntu/src/review.opendev.org/openstack/charm-openstack-dashboard/.tox/func-target/lib/python3.6/site-packages/zaza/charm_lifecycle/func_test_runner.py", line 278, in func_test_runner
    force=force, test_directory=test_directory)
  File "/home/ubuntu/src/review.opendev.org/openstack/charm-openstack-dashboard/.tox/func-target/lib/python3.6/site-packages/zaza/charm_lifecycle/func_test_runner.py", line 154, in run_env_deployment
    test_directory=test_directory)
  File "/home/ubuntu/src/review.opendev.org/openstack/charm-openstack-dashboard/.tox/func-target/lib/python3.6/site-packages/zaza/charm_lifecycle/configure.py", line 51, in configure
    run_configure_list(functions)
  File "/home/ubuntu/src/review.opendev.org/openstack/charm-openstack-dashboard/.tox/func-target/lib/python3.6/site-packages/zaza/charm_lifecycle/configure.py", line 37, in run_configure_list
    utils.get_class(func)()
  File "/home/ubuntu/src/review.opendev.org/openstack/charm-openstack-dashboard/.tox/func-target/lib/python3.6/site-packages/zaza/openstack/charm_tests/keystone/setup.py", line 142, in add_demo_user
    _v3()
  File "/home/ubuntu/src/review.opendev.org/openstack/charm-openstack-dashboard/.tox/func-target/lib/python3.6/site-packages/zaza/openstack/charm_tests/keystone/setup.py", line 69, in _v3
    keystone_session = openstack_utils.get_overcloud_keystone_session()
  File "/home/ubuntu/src/review.opendev.org/openstack/charm-openstack-dashboard/.tox/func-target/lib/python3.6/site-packages/zaza/openstack/utilities/openstack.py", line 521, in get_overcloud_keystone_session
    get_overcloud_auth(model_name=model_name),
  File "/home/ubuntu/src/review.opendev.org/openstack/charm-openstack-dashboard/.tox/func-target/lib/python3.6/site-packages/zaza/openstack/utilities/openstack.py", line 2057, in get_overcloud_auth
    address = network_utils.format_addr(address)
  File "/home/ubuntu/src/review.opendev.org/openstack/charm-openstack-dashboard/.tox/func-target/lib/python3.6/site-packages/zaza/utilities/networking.py", line 28, in format_addr
    ipaddr = ipaddress.ip_address(addr)
  File "/usr/lib/python3.6/ipaddress.py", line 54, in ip_address
    address)
ValueError: None does not appear to be an IPv4 or IPv6 address
ERROR: InvocationError for command /home/ubuntu/src/review.opendev.org/openstack/charm-openstack-dashboard/.tox/func-target/bin/functest-run-suite --keep-model --bundle bionic-ussuri (exited with code 1)

This happens in get_keystone_ip().

@ChrisMacNaughton
Copy link
Collaborator

I've opened this bug to track the issue in libjuju itself, as it's a bug in that library

@freyes
Copy link
Member

freyes commented May 23, 2022

There was an attempt to fix this in openstack-charmers/zaza#468 , although it had to be reverted openstack-charmers/zaza#471 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants