Limetime's TimeLine
article thumbnail
반응형

2024.07.03. ubuntu-22.04 Caracal에서 발생

 

에러 로그


- Block 노드에서 /etc/var/log/nova-compute.log

2024-07-03 14:12:55.099 8929 ERROR nova.db.main.api [None req-50028313-16a7-49df-9c85-783075679d09 - - - - - -] No DB access allowed in nova-compute:   File "/usr/lib/python3/dist-packages/eventlet/greenthread.py", line 264, in main
    result = function(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/nova/utils.py", line 664, in context_wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/nova/context.py", line 422, in gather_result
    result = fn(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/nova/db/main/api.py", line 179, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/nova/objects/service.py", line 553, in _db_service_get_minimum_version
    return db.service_get_minimum_version(context, binaries)
  File "/usr/lib/python3/dist-packages/nova/db/main/api.py", line 238, in wrapper
    _check_db_access()
  File "/usr/lib/python3/dist-packages/nova/db/main/api.py", line 188, in _check_db_access
    stacktrace = ''.join(traceback.format_stack())

2024-07-03 14:12:55.100 8929 ERROR nova.db.main.api [None req-50028313-16a7-49df-9c85-783075679d09 - - - - - -] No DB access allowed in nova-compute:   File "/usr/lib/python3/dist-packages/eventlet/greenthread.py", line 264, in main
    result = function(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/nova/utils.py", line 664, in context_wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/nova/context.py", line 422, in gather_result
    result = fn(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/nova/db/main/api.py", line 179, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/nova/objects/service.py", line 553, in _db_service_get_minimum_version
    return db.service_get_minimum_version(context, binaries)
  File "/usr/lib/python3/dist-packages/nova/db/main/api.py", line 238, in wrapper
    _check_db_access()
  File "/usr/lib/python3/dist-packages/nova/db/main/api.py", line 188, in _check_db_access
    stacktrace = ''.join(traceback.format_stack())

2024-07-03 14:12:55.100 8929 WARNING nova.objects.service [None req-50028313-16a7-49df-9c85-783075679d09 - - - - - -] Failed to get minimum service version for cell 00000000-0000-0000-0000-000000000000
2024-07-03 14:12:55.100 8929 WARNING nova.objects.service [None req-50028313-16a7-49df-9c85-783075679d09 - - - - - -] Failed to get minimum service version for cell a60f24ad-4dbd-4738-be1b-d418c5c81de9
2024-07-03 14:12:55.103 8929 WARNING oslo_config.cfg [None req-50028313-16a7-49df-9c85-783075679d09 - - - - - -] Deprecated: Option "auth_strategy" from group "api" is deprecated for removal (
The only non-default choice, ``noauth2``, is for internal development and
testing purposes only and should not be used in deployments. This option and
its middleware, NoAuthMiddleware[V2_18], will be removed in a future release.
).  Its value may be silently ignored in the future.
2024-07-03 14:12:55.106 8929 WARNING oslo_config.cfg [None req-50028313-16a7-49df-9c85-783075679d09 - - - - - -] Deprecated: Option "api_servers" from group "glance" is deprecated for removal (
Support for image service configuration via standard keystoneauth1 Adapter
options was added in the 17.0.0 Queens release. The api_servers option was
retained temporarily to allow consumers time to cut over to a real load
balancing solution.
).  Its value may be silently ignored in the future.
2024-07-03 14:12:55.116 8929 INFO nova.service [-] Starting compute node (version 29.0.1)
2024-07-03 14:12:55.131 8929 WARNING nova.virt.libvirt.host [None req-740d23f0-54da-4a1c-ba88-dc89b6be2042 - - - - - -] URI qemu:///system does not support events: internal error: could not initialize domain event timer: libvirt.libvirtError: internal error: could not initialize domain event timer
2024-07-03 14:12:55.132 8929 INFO nova.virt.libvirt.driver [None req-740d23f0-54da-4a1c-ba88-dc89b6be2042 - - - - - -] Connection event '1' reason 'None'
2024-07-03 14:12:55.144 8929 WARNING nova.virt.libvirt.driver [None req-740d23f0-54da-4a1c-ba88-dc89b6be2042 - - - - - -] Cannot update service status on host "block-virtual-machine" since it is not registered.: nova.exception_Remote.ComputeHostNotFound_Remote: Compute host block-virtual-machine could not be found.
2024-07-03 14:12:55.774 8929 INFO nova.virt.libvirt.host [None req-740d23f0-54da-4a1c-ba88-dc89b6be2042 - - - - - -] Libvirt host capabilities <capabilities>

 

배경


1. Block 노드에서 nova-compute를 삭제했다가 재설치한 경우

2. Controller 노드에 이미 등록되어 있는 것으로 보임. down 상태.

root@controller-virtual-machine:/home/controller/Desktop# openstack compute service list
+--------------------------------------+----------------+----------------------------+----------+---------+-------+----------------------------+
| ID                                   | Binary         | Host                       | Zone     | Status  | State | Updated At                 |
+--------------------------------------+----------------+----------------------------+----------+---------+-------+----------------------------+
| f14ab65b-46b6-4336-a98b-07e13300bcf9 | nova-scheduler | controller-virtual-machine | internal | enabled | up    | 2024-07-03T05:05:09.000000 |
| 1aa28dcf-4802-4975-bec3-a730f507b657 | nova-conductor | controller-virtual-machine | internal | enabled | up    | 2024-07-03T05:05:04.000000 |
| 42ec561a-2b2f-4819-9f8a-e219d0442998 | nova-compute   | compute-virtual-machine    | nova     | enabled | up    | 2024-07-03T05:05:13.000000 |
| f897205c-c5da-43ce-9fee-7fde7c23a5d0 | nova-compute   | block-virtual-machine      | nova     | enabled | down  | 2024-07-01T06:04:29.000000 |
| 35a1047a-82d0-4c1f-908d-628c7f223bf0 | nova-compute   | controller-virtual-machine | nova     | enabled | up    | 2024-07-03T05:05:13.000000 |
+--------------------------------------+----------------+----------------------------+----------+---------+-------+----------------------------+

 

해결책


- Controller 노드에서

openstack compute service list
	+--------------------------------------+----------------+----------------------------+----------+---------+-------+----------------------------+
	| ID                                   | Binary         | Host                       | Zone     | Status  | State | Updated At                 |
	+--------------------------------------+----------------+----------------------------+----------+---------+-------+----------------------------+
	| f14ab65b-46b6-4336-a98b-07e13300bcf9 | nova-scheduler | controller-virtual-machine | internal | enabled | up    | 2024-07-03T05:05:09.000000 |
	| 1aa28dcf-4802-4975-bec3-a730f507b657 | nova-conductor | controller-virtual-machine | internal | enabled | up    | 2024-07-03T05:05:04.000000 |
	| 42ec561a-2b2f-4819-9f8a-e219d0442998 | nova-compute   | compute-virtual-machine    | nova     | enabled | up    | 2024-07-03T05:05:13.000000 |
	| f897205c-c5da-43ce-9fee-7fde7c23a5d0 | nova-compute   | block-virtual-machine      | nova     | enabled | down  | 2024-07-01T06:04:29.000000 |
	| 35a1047a-82d0-4c1f-908d-628c7f223bf0 | nova-compute   | controller-virtual-machine | nova     | enabled | up    | 2024-07-03T05:05:13.000000 |
	+--------------------------------------+----------------+----------------------------+----------+---------+-------+----------------------------+

#	nova-compute 서비스 비활성화
openstack compute service set --disable block-virtual-machine nova-compute

# nova-compute 서비스 삭제
openstack compute service delete f897205c-c5da-43ce-9fee-7fde7c23a5d0
openstack compute service list
	+--------------------------------------+----------------+----------------------------+----------+---------+-------+----------------------------+
	| ID                                   | Binary         | Host                       | Zone     | Status  | State | Updated At                 |
	+--------------------------------------+----------------+----------------------------+----------+---------+-------+----------------------------+
	| f14ab65b-46b6-4336-a98b-07e13300bcf9 | nova-scheduler | controller-virtual-machine | internal | enabled | up    | 2024-07-03T05:12:39.000000 |
	| 1aa28dcf-4802-4975-bec3-a730f507b657 | nova-conductor | controller-virtual-machine | internal | enabled | up    | 2024-07-03T05:12:34.000000 |
	| 42ec561a-2b2f-4819-9f8a-e219d0442998 | nova-compute   | compute-virtual-machine    | nova     | enabled | up    | 2024-07-03T05:12:43.000000 |
	| 35a1047a-82d0-4c1f-908d-628c7f223bf0 | nova-compute   | controller-virtual-machine | nova     | enabled | up    | 2024-07-03T05:12:43.000000 |
	+--------------------------------------+----------------+----------------------------+----------+---------+-------+----------------------------+

openstack compute service list
	+--------------------------------------+----------------+----------------------------+----------+---------+-------+----------------------------+
	| ID                                   | Binary         | Host                       | Zone     | Status  | State | Updated At                 |
	+--------------------------------------+----------------+----------------------------+----------+---------+-------+----------------------------+
	| f14ab65b-46b6-4336-a98b-07e13300bcf9 | nova-scheduler | controller-virtual-machine | internal | enabled | up    | 2024-07-03T05:12:59.000000 |
	| 1aa28dcf-4802-4975-bec3-a730f507b657 | nova-conductor | controller-virtual-machine | internal | enabled | up    | 2024-07-03T05:12:54.000000 |
	| 42ec561a-2b2f-4819-9f8a-e219d0442998 | nova-compute   | compute-virtual-machine    | nova     | enabled | up    | 2024-07-03T05:12:53.000000 |
	| 35a1047a-82d0-4c1f-908d-628c7f223bf0 | nova-compute   | controller-virtual-machine | nova     | enabled | up    | 2024-07-03T05:12:53.000000 |
	| 7842d0cd-2ee4-4fdb-b428-b1a84c20e7f5 | nova-compute   | block-virtual-machine      | nova     | enabled | up    | 2024-07-03T05:13:01.000000 |
	+--------------------------------------+----------------+----------------------------+----------+---------+-------+----------------------------+

# 데이터베이스 온라인 마이그레이션 : 모든 서비스가 올바르게 등록되었는지 확인, 데이터베이스 상태 점검
nova-manage db online_data_migrations
반응형
profile

Limetime's TimeLine

@Limetime

포스팅이 좋았다면 "공감❤️" 또는 "구독👍🏻" 해주세요!