Openstack — не удалось создать экземпляр с использованием параметра зоны доступности
Краткое содержание
У меня довольно небольшой кластер Openstack с 2 AZ: AZ-GOLD-6248R имеет 3 вычислительных узла, а AZ-E5-2630 имеет 1 вычислительный узел (оба AZ имели разные характеристики).
- Я могу создать экземпляр AZ-E5-2630 с помощью Horizon или интерфейса командной строки openstack.
- Я не могу создать экземпляр AZ-GOLD-6248R с помощью Horizon или интерфейса командной строки openstack с параметром --availability-zone, ошибка.
No Valid Host was Found
- Но я могу создать экземпляр AZ-GOLD-6248R, используя параметр --host в CLI openstack.
- Это происходит во всех проектах и учетных записях пользователей.
- Все гипервизоры работают и имеют много доступных ресурсов.
Моя спецификация кластера
- 3 узла контроллера, 1 вычислительный узел на AZ-GOLD-6248R, 3 вычислительных узла на AZ-E5-2630
- Внутреннее хранилище для виртуальной машины, тома и образа (cinder, glight) с использованием хранилища NFS в другом кластере.
- Развертывание Openstack с использованием Kolla Ansible, версия openstack. Йога
- ОС Ubuntu 22.04 ЛТС
Что я сделал
- Перезапустите службы Neutron и OVN на контроллере (neutron_server Neutron_ovn_metadata_agent openvswitch_db ovn_northd ovn_nb_db ovn_sb_db ovn_controller)
- Перезапустите службы Nova на контроллере (nova_conductor nova_scheduler)
- Перезапустите службы Neutron и OVN на вычислительных узлах (openvswitch_db ovn_controller Neutron_ovn_metadata_agent)
- Перезапустите службы Nova на вычислительных узлах (nova_compute nova_api).
- Перезапустите службу Placement API на контроллере (placement_api).
Журналы
Статус вычислительной службы и сетевой службы
Зарегистрируйтесь, если не удалось создать экземпляр:
| fault | {'code': 500, 'created': '2023-04-16T23:57:35Z', 'message': 'No valid host was found. ', 'details': 'Traceback (most recent call last):\n File "/var/lib/kolla/venv/lib/python3.8/site-packages/nova/conductor/manager.py", line 1548, in schedule_and_build_instances\n host_lists = self._schedule_instances(context, request_specs[0],\n File "/var/lib/kolla/venv/lib/python3.8/site-packages/nova/conductor/manager.py", line 908, in _schedule_instances\n host_lists = self.query_client.select_destinations(\n File "/var/lib/kolla/venv/lib/python3.8/site-packages/nova/scheduler/client/query.py", line 41, in select_destinations\n return self.scheduler_rpcapi.select_destinations(context, spec_obj,\n File "/var/lib/kolla/venv/lib/python3.8/site-packages/nova/scheduler/rpcapi.py", line 160, in select_destinations\n return cctxt.call(ctxt, \'select_destinations\', **msg_args)\n File "/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_messaging/rpc/client.py", line 189, in call\n result = self.transport._send(\n File "/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_messaging/tran
sport.py", line 123, in _send\n return self._driver.send(target, ctxt, message,\n File "/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 689, in send\n return self._send(target,
ctxt, message, wait_for_reply, timeout,\n File "/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 681, in _send\n raise result\nnova.exception_Remote.NoValidHost_Remote: No valid host was found. \nTraceback (most recent call last):\n\n File "/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_messaging/rpc/server.py", line 241, in inner\n return func(*args, **kwargs)\n\n File "/var/lib/kolla/venv/lib/python3.8/site-packages/nova/scheduler/manager.py", line 209, in select_destinations\n raise exception.NoValidHost(reason="")\n\nnova.exception.NoValidHost: No valid host was found. \n\n'} |
Гипервизор показывает вычислительный узел на AZ-GOLD-6248R
+----+---------------------+-----------------+--------------+-------+------------+-------+----------------+-----------+
| ID | Hypervisor Hostname | Hypervisor Type | Host IP | State | vCPUs Used | vCPUs | Memory MB Used | Memory MB |
+----+---------------------+-----------------+--------------+-------+------------+-------+----------------+-----------+
| 6 | cmpt01 | QEMU | 172.16.231.4 | up | 24 | 48 | 44544 | 128472 |
+----+---------------------+-----------------+--------------+-------+------------+-------+----------------+-----------+
Журнал nova-планировщика
2023-04-17 06:57:35.038 667 INFO nova.scheduler.manager [req-f50022f7-d4bb-4f43-994b-2331643b64f7 cd7057b2314642c1a9174692a07a3e67 cc6ab975695b44418e88082cc693be36 - default default] Got no allocation candidates from the Placement API. This could be due to insufficient resources or a temporary occurrence as compute nodes start up.
2023-04-17 07:07:03.173 668 INFO nova.scheduler.manager [req-cabaf533-78ac-41d6-b052-0751b0cbad94 cd7057b2314642c1a9174692a07a3e67 cc6ab975695b44418e88082cc693be36 - default default] Got no allocation candidates from the Placement API. This could be due to insufficient resources or a temporary occurrence as compute nodes start up.
Журнал nova-проводник
nova.exception.NoValidHost: No valid host was found.
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager Traceback (most recent call last):
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager File "/var/lib/kolla/venv/lib/python3.8/site-packages/nova/conductor/manager.py", line 1548, in schedule_and_build_instances
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager host_lists = self._schedule_instances(context, request_specs[0],
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager File "/var/lib/kolla/venv/lib/python3.8/site-packages/nova/conductor/manager.py", line 908, in _schedule_instances
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager host_lists = self.query_client.select_destinations(
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager File "/var/lib/kolla/venv/lib/python3.8/site-packages/nova/scheduler/client/query.py", line 41, in select_destinations
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager return self.scheduler_rpcapi.select_destinations(context, spec_obj,
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager File "/var/lib/kolla/venv/lib/python3.8/site-packages/nova/scheduler/rpcapi.py", line 160, in select_destinations
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager return cctxt.call(ctxt, 'select_destinations', **msg_args)
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager File "/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_messaging/rpc/client.py", line 189, in call
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager result = self.transport._send(
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager File "/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_messaging/transport.py", line 123, in _send
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager return self._driver.send(target, ctxt, message,
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager File "/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 689, in send
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager return self._send(target, ctxt, message, wait_for_reply, timeout,
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager File "/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 681, in _send
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager raise result
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager nova.exception_Remote.NoValidHost_Remote: No valid host was found.
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager Traceback (most recent call last):
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager File "/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_messaging/rpc/server.py", line 241, in inner
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager return func(*args, **kwargs)
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager File "/var/lib/kolla/venv/lib/python3.8/site-packages/nova/scheduler/manager.py", line 209, in select_destinations
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager raise exception.NoValidHost(reason="")
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager nova.exception.NoValidHost: No valid host was found.
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager
2023-04-17 06:57:35.043 669 ERROR nova.conductor.manager
2023-04-17 06:57:35.232 669 WARNING nova.scheduler.utils [req-f50022f7-d4bb-4f43-994b-2331643b64f7 cd7057b2314642c1a9174692a07a3e67 cc6ab975695b44418e88082cc693be36 - default default] Failed to compute_task_build_instances: No valid host was found.
Traceback (most recent call last):
File "/var/lib/kolla/venv/lib/python3.8/site-packages/oslo_messaging/rpc/server.py", line 241, in inner
return func(*args, **kwargs)
File "/var/lib/kolla/venv/lib/python3.8/site-packages/nova/scheduler/manager.py", line 209, in select_destinations
raise exception.NoValidHost(reason="")
nova.exception.NoValidHost: No valid host was found.
: nova.exception_Remote.NoValidHost_Remote: No valid host was found.
2023-04-17 06:57:35.233 669 WARNING nova.scheduler.utils [req-f50022f7-d4bb-4f43-994b-2331643b64f7 cd7057b2314642c1a9174692a07a3e67 cc6ab975695b44418e88082cc693be36 - default default] [instance: 60c10cff-183d-46ed-8dd4-a5f713510661] Setting instance to ERROR state.: nova.exception_Remote.NoValidHost_Remote: No valid host was found.
При попытке выделить ресурс отображаются все вычислительные узлы. Узел номер 3 — это узел с ошибкой «Нет допустимого хоста не найден».
openstack allocation candidate list --resource VCPU=20
список кандидатов на распределение openstack
Заранее спасибо за всю вашу помощь