No db access allowed in nova-compute:
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Unassigned | ||
tripleo |
New
|
Undecided
|
Unassigned |
Bug Description
[root@controller ~]# cat /etc/redhat-release
CentOS Linux release 8.4.2105
version:
openstack-v
Nova log does not continue to output now. I wonder if it is normal?
nova-compute.log:
2021-09-16 10:03:47.613 8421 INFO nova.virt.
2021-09-16 10:03:51.152 8421 INFO nova.compute.
2021-09-16 10:03:51.183 8421 ERROR nova.cmd.common [req-ea168173-
sys.
File "/usr/lib/
topic=
File "/usr/lib/
utils.
File "/usr/lib/
ctxt, ['nova-compute'])
File "/usr/lib/
binaries)
File "/usr/lib/
fn, *args, **kwargs)
File "/usr/lib/
with target_
File "/usr/lib64/
return next(self.gen)
File "/usr/lib/
set_
File "/usr/lib/
get_
File "/usr/lib/
return f(*args, **kwargs)
File "/usr/lib/
db_
File "/usr/lib/
return IMPL.create_
File "/usr/lib/
stacktrace = "".join(
2021-09-16 10:03:51.184 8421 WARNING nova.utils [req-ea168173-
2021-09-16 10:03:51.196 8421 WARNING oslo_config.cfg [req-ea168173-
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, NoAuthMiddlewar
). Its value may be silently ignored in the future.
2021-09-16 10:03:51.199 8421 WARNING oslo_config.cfg [req-ea168173-
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.
2021-09-16 10:03:51.214 8421 INFO nova.service [-] Starting compute node (version 22.2.2-1.el8)
2021-09-16 10:03:51.279 8421 INFO nova.compute.
[root@controller ~]# openstack compute service list
+----+-
| ID | Binary | Host | Zone | Status | State | Updated At |
+----+-
| 4 | nova-conductor | controller | internal | enabled | up | 2021-09-
| 6 | nova-scheduler | controller | internal | enabled | up | 2021-09-
| 8 | nova-compute | controller | nova | enabled | up | 2021-09-
+----+-
[root@controller ~]# mysql -unova -pNOVA_DBPASS -b "nova_api" -h controller -e "show databases;"
+------
| Database |
+------
| information_schema |
| nova |
| nova_api |
| nova_cell0 |
+------
description: | updated |
Changed in nova: | |
status: | Invalid → In Progress |
As the WARNING suggests in the log you should not have [api_database] /connection configuration for the nova-compute service. Remove that configuration then start the compute again.