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 | +--------------------------------------+----------------+----------------------------------+---------------+---------------------+------------------+----------+
On a fresh octavia charm deployment I got a test failure and not all units have bind_ip set:
$ juju download octavia ubuntu/ 20.04" ac92496. charm
Fetching charm "octavia" using "stable" channel and base "amd64/
Install the "octavia" charm with:
juju deploy ./octavia_
# ...
tox -e func-target focal-ussuri
# ... 10.5.150. 251/
--2022-03-15 14:55:13-- http://
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 ======= ======= ======= ======= ======= ======= ======= ======= ======= loadbalancer (zaza.openstack .charm_ tests.octavia. tests.LBAASv2Te st) ------- ------- ------- ------- ------- ------- ------- ------- ------- .tox/func- target/ lib/python3. 8/site- packages/ zaza/openstack/ charm_tests/ octavia/ tests.py" , line 448, in test_create_ loadbalancer payload( lb_fp[' floating_ ip_address' ]) .tox/func- target/ lib/python3. 8/site- packages/ tenacity/ __init_ _.py", line 324, in wrapped_f .tox/func- target/ lib/python3. 8/site- packages/ tenacity/ __init_ _.py", line 404, in __call__ retry_state= retry_state) .tox/func- target/ lib/python3. 8/site- packages/ tenacity/ __init_ _.py", line 360, in iter .tox/func- target/ lib/python3. 8/site- packages/ tenacity/ __init_ _.py", line 193, in reraise attempt. result( ) python3. 8/concurrent/ futures/ _base.py" , line 437, in result python3. 8/concurrent/ futures/ _base.py" , line 389, in __get_result .tox/func- target/ lib/python3. 8/site- packages/ tenacity/ __init_ _.py", line 407, in __call__ .tox/func- target/ lib/python3. 8/site- packages/ zaza/openstack/ charm_tests/ octavia/ tests.py" , line 382, in _get_payload check_output( python3. 8/subprocess. py", line 415, in check_output python3. 8/subprocess. py", line 516, in run ror(retcode, process.args, CalledProcessEr ror: Command '['wget', '-O', '-', 'http:// 10.5.150. 251/']' returned non-zero exit status 8.
2022-03-15 14:55:13 [INFO] =======
2022-03-15 14:55:13 [INFO] ERROR: test_create_
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/
2022-03-15 14:55:13 [INFO] assert snippet in self._get_
2022-03-15 14:55:13 [INFO] File "/tmp/octavia/
2022-03-15 14:55:13 [INFO] return self(f, *args, **kw)
2022-03-15 14:55:13 [INFO] File "/tmp/octavia/
2022-03-15 14:55:13 [INFO] do = self.iter(
2022-03-15 14:55:13 [INFO] File "/tmp/octavia/
2022-03-15 14:55:13 [INFO] raise retry_exc.reraise()
2022-03-15 14:55:13 [INFO] File "/tmp/octavia/
2022-03-15 14:55:13 [INFO] raise self.last_
2022-03-15 14:55:13 [INFO] File "/usr/lib/
2022-03-15 14:55:13 [INFO] return self.__get_result()
2022-03-15 14:55:13 [INFO] File "/usr/lib/
2022-03-15 14:55:13 [INFO] raise self._exception
2022-03-15 14:55:13 [INFO] File "/tmp/octavia/
2022-03-15 14:55:13 [INFO] result = fn(*args, **kwargs)
2022-03-15 14:55:13 [INFO] File "/tmp/octavia/
2022-03-15 14:55:13 [INFO] return subprocess.
2022-03-15 14:55:13 [INFO] File "/usr/lib/
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/
2022-03-15 14:55:13 [INFO] raise CalledProcessEr
2022-03-15 14:55:13 [INFO] subprocess.
$ juju run --application octavia 'sudo grep bind_ip /etc/octavia/ octavia. conf' bccd:d652: f816:3eff: fe4d:a5a0 bccd:d652: f816:3eff: feaf:7fdc
- Stdout: |
bind_ip = fc00:c582:
UnitId: octavia/0
- Stdout: |
bind_ip = fc00:c582:
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 ------- ------- ------- ------- ----+-- ------- ------- +------ ------- ------- ------- ------- +------ ------- --+---- ------- ------- ---+--- ------- ------- -+----- -----+ ------- ------- ------- ------- ----+-- ------- ------- +------ ------- ------- ------- ------- +------ ------- --+---- ------- ------- ---+--- ------- ------- -+----- -----+ 11ad-4fed- 8685-56acf0515f 6a | zaza-amphora-0 | 1e38bdd131a7468 e991070ef62c066 b3 | 192.168.0.203 | ACTIVE | ERROR | amphora | ------- ------- ------- ------- ----+-- ------- ------- +------ ------- ------- ------- ------- +------ ------- --+---- ------- ------- ---+--- ------- ------- -+----- -----+
+------
| id | name | project_id | vip_address | provisioning_status | operating_status | provider |
+------
| e61890be-
+------