Comment 9 for bug 1961088

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

On a fresh octavia charm deployment I got a test failure and not all units have bind_ip set:

$ juju download octavia
Fetching charm "octavia" using "stable" channel and base "amd64/ubuntu/20.04"
Install the "octavia" charm with:
    juju deploy ./octavia_ac92496.charm

# ...

tox -e func-target focal-ussuri

# ...
--2022-03-15 14:55:13-- http://10.5.150.251/
Connecting to 10.5.150.251:80... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
2022-03-15 14:55:13 ERROR 503: Service Unavailable.

2022-03-15 14:55:13 [INFO] ERROR
2022-03-15 14:55:13 [INFO] ======================================================================
2022-03-15 14:55:13 [INFO] ERROR: test_create_loadbalancer (zaza.openstack.charm_tests.octavia.tests.LBAASv2Test)
2022-03-15 14:55:13 [INFO] Create load balancer.
2022-03-15 14:55:13 [INFO] ----------------------------------------------------------------------
2022-03-15 14:55:13 [INFO] Traceback (most recent call last):
2022-03-15 14:55:13 [INFO] File "/tmp/octavia/.tox/func-target/lib/python3.8/site-packages/zaza/openstack/charm_tests/octavia/tests.py", line 448, in test_create_loadbalancer
2022-03-15 14:55:13 [INFO] assert snippet in self._get_payload(lb_fp['floating_ip_address'])
2022-03-15 14:55:13 [INFO] File "/tmp/octavia/.tox/func-target/lib/python3.8/site-packages/tenacity/__init__.py", line 324, in wrapped_f
2022-03-15 14:55:13 [INFO] return self(f, *args, **kw)
2022-03-15 14:55:13 [INFO] File "/tmp/octavia/.tox/func-target/lib/python3.8/site-packages/tenacity/__init__.py", line 404, in __call__
2022-03-15 14:55:13 [INFO] do = self.iter(retry_state=retry_state)
2022-03-15 14:55:13 [INFO] File "/tmp/octavia/.tox/func-target/lib/python3.8/site-packages/tenacity/__init__.py", line 360, in iter
2022-03-15 14:55:13 [INFO] raise retry_exc.reraise()
2022-03-15 14:55:13 [INFO] File "/tmp/octavia/.tox/func-target/lib/python3.8/site-packages/tenacity/__init__.py", line 193, in reraise
2022-03-15 14:55:13 [INFO] raise self.last_attempt.result()
2022-03-15 14:55:13 [INFO] File "/usr/lib/python3.8/concurrent/futures/_base.py", line 437, in result
2022-03-15 14:55:13 [INFO] return self.__get_result()
2022-03-15 14:55:13 [INFO] File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
2022-03-15 14:55:13 [INFO] raise self._exception
2022-03-15 14:55:13 [INFO] File "/tmp/octavia/.tox/func-target/lib/python3.8/site-packages/tenacity/__init__.py", line 407, in __call__
2022-03-15 14:55:13 [INFO] result = fn(*args, **kwargs)
2022-03-15 14:55:13 [INFO] File "/tmp/octavia/.tox/func-target/lib/python3.8/site-packages/zaza/openstack/charm_tests/octavia/tests.py", line 382, in _get_payload
2022-03-15 14:55:13 [INFO] return subprocess.check_output(
2022-03-15 14:55:13 [INFO] File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
2022-03-15 14:55:13 [INFO] return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
2022-03-15 14:55:13 [INFO] File "/usr/lib/python3.8/subprocess.py", line 516, in run
2022-03-15 14:55:13 [INFO] raise CalledProcessError(retcode, process.args,
2022-03-15 14:55:13 [INFO] subprocess.CalledProcessError: Command '['wget', '-O', '-', 'http://10.5.150.251/']' returned non-zero exit status 8.

$ juju run --application octavia 'sudo grep bind_ip /etc/octavia/octavia.conf'
- Stdout: |
    bind_ip = fc00:c582:bccd:d652:f816:3eff:fe4d:a5a0
  UnitId: octavia/0
- Stdout: |
    bind_ip = fc00:c582:bccd:d652:f816:3eff:feaf:7fdc
  UnitId: octavia/2
- ReturnCode: 1
  Stdout: ""
  UnitId: octavia/1

While a loadbalancer created by the test ends up in the error status:

$ openstack loadbalancer list
+--------------------------------------+----------------+----------------------------------+---------------+---------------------+------------------+----------+
| id | name | project_id | vip_address | provisioning_status | operating_status | provider |
+--------------------------------------+----------------+----------------------------------+---------------+---------------------+------------------+----------+
| e61890be-11ad-4fed-8685-56acf0515f6a | zaza-amphora-0 | 1e38bdd131a7468e991070ef62c066b3 | 192.168.0.203 | ACTIVE | ERROR | amphora |
+--------------------------------------+----------------+----------------------------------+---------------+---------------------+------------------+----------+