Creating a load balancer fails if the boot mode of overcloud nodes are UEFI.
Issue
- Creating a load balancer fails.
$ openstack loadbalancer create --name lb1 --vip-subnet-id 4c6684b8-4960-415e-b135-4804ef1be877
/usr/lib/python3.9/site-packages/osc_lib/utils/__init__.py:448: DeprecationWarning: The usage of formatter functions is now discouraged. Consider using cliff.columns.FormattableColumn instead. See reviews linked with bug 1687955 for more detail.
warnings.warn(
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| admin_state_up | True |
| availability_zone | None |
| created_at | 2022-10-11T07:04:58 |
| description | |
| flavor_id | None |
| id | e7ae837c-20d0-4c19-a636-fa6cef91ba9b |
| listeners | |
| name | lb1 |
| operating_status | OFFLINE |
| pools | |
| project_id | 6cbb0870e4484853b94ac89d1c80cf88 |
| provider | amphora |
| provisioning_status | PENDING_CREATE |
| updated_at | None |
| vip_address | 172.21.3.233 |
| vip_network_id | 2e4019b8-ef62-48d0-bc7f-b16f65137145 |
| vip_port_id | 2a6cb936-fef2-4a9e-93d6-f28039d2f639 |
| vip_qos_policy_id | None |
| vip_subnet_id | 4c6684b8-4960-415e-b135-4804ef1be877 |
| tags | |
+---------------------+--------------------------------------+
$ openstack loadbalancer show lb1
/usr/lib/python3.9/site-packages/osc_lib/utils/__init__.py:448: DeprecationWarning: The usage of formatter functions is now discouraged. Consider using cliff.columns.FormattableColumn instead. See reviews linked with bug 1687955 for more detail.
warnings.warn(
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| admin_state_up | True |
| availability_zone | None |
| created_at | 2022-10-11T07:04:58 |
| description | |
| flavor_id | None |
| id | e7ae837c-20d0-4c19-a636-fa6cef91ba9b |
| listeners | |
| name | lb1 |
| operating_status | OFFLINE |
| pools | |
| project_id | 6cbb0870e4484853b94ac89d1c80cf88 |
| provider | amphora |
| provisioning_status | ERROR |
| updated_at | 2022-10-11T07:05:04 |
| vip_address | 172.21.3.233 |
| vip_network_id | 2e4019b8-ef62-48d0-bc7f-b16f65137145 |
| vip_port_id | 2a6cb936-fef2-4a9e-93d6-f28039d2f639 |
| vip_qos_policy_id | None |
| vip_subnet_id | 4c6684b8-4960-415e-b135-4804ef1be877 |
| tags | |
+---------------------+--------------------------------------+
$
The following error messages are in /var/log/containers/octavia/worker.log in the controller node.
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server [-] Exception during message handling: octavia.common.exceptions.ComputeBuildException: Failed to build compute instance due to: Failed to retrieve image with amphora-image tag.
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/octavia/compute/drivers/nova_driver.py", line 108, in build
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server image_id = self.image_driver.get_image_id_by_tag(
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/octavia/image/drivers/glance_driver.py", line 61, in get_image_id_by_tag
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server raise exceptions.ImageGetException(tag=image_tag)
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server octavia.common.exceptions.ImageGetException: Failed to retrieve image with amphora-image tag.
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server During handling of the above exception, another exception occurred:
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/dispatcher.py", line 309, in dispatch
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/dispatcher.py", line 229, in _do_dispatch
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/octavia/controller/queue/v1/endpoints.py", line 45, in create_load_balancer
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server self.worker.create_load_balancer(load_balancer_id, flavor,
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/tenacity/__init__.py", line 333, in wrapped_f
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server return self(f, *args, **kw)
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/tenacity/__init__.py", line 423, in __call__
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server do = self.iter(retry_state=retry_state)
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/tenacity/__init__.py", line 360, in iter
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server return fut.result()
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib64/python3.9/concurrent/futures/_base.py", line 439, in result
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server return self.__get_result()
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib64/python3.9/concurrent/futures/_base.py", line 391, in __get_result
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server raise self._exception
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/tenacity/__init__.py", line 426, in __call__
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server result = fn(*args, **kwargs)
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/octavia/controller/worker/v1/controller_worker.py", line 371, in create_load_balancer
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server create_lb_tf.run()
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/taskflow/engines/action_engine/engine.py", line 247, in run
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server for _state in self.run_iter(timeout=timeout):
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/taskflow/engines/action_engine/engine.py", line 340, in run_iter
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server failure.Failure.reraise_if_any(er_failures)
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/taskflow/types/failure.py", line 339, in reraise_if_any
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server failures[0].reraise()
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/taskflow/types/failure.py", line 346, in reraise
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server six.reraise(*self._exc_info)
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/six.py", line 709, in reraise
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server raise value
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server result = task.execute(**arguments)
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/octavia/controller/worker/v1/tasks/compute_tasks.py", line 169, in execute
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server return super().execute(
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/octavia/controller/worker/v1/tasks/compute_tasks.py", line 111, in execute
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server compute_id = self.compute.build(
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/octavia/compute/drivers/nova_driver.py", line 152, in build
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server raise exceptions.ComputeBuildException(fault=e)
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server octavia.common.exceptions.ComputeBuildException: Failed to build compute instance due to: Failed to retrieve image with amphora-image tag.
2022-10-11 16:05:04.600 14 ERROR oslo_messaging.rpc.server
Environment
- Red Hat OpenStack Platform 17.0
- Octavia is deployed in the overcloud
- The boot mode of overcloud nodes are UEFI
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.