nova: Fix DBNotAllowed during compute startup
backport: stein, rocky During startup of nova-compute, we see the following error message: Error gathering result from cell 00000000-0000-0000-0000-000000000000: DBNotAllowed: nova-compute This issue was observed in devstack [1], and fixed [2] by removing database configuration from the compute service. This change takes the same approach, removing DB config from nova.conf in the nova-compute* containers. [1] https://bugs.launchpad.net/devstack/+bug/1812398 [2]8253787137
Change-Id: I18c99ff4213ce456868e64eab63a4257910b9b8e Closes-Bug: #1829705 (cherry picked from commit002eec951f
)
This commit is contained in:
@@ -153,6 +153,7 @@ project_name = service
|
||||
username = {{ neutron_keystone_user }}
|
||||
password = {{ neutron_keystone_password }}
|
||||
|
||||
{% if not service_name.startswith('nova-compute') %}
|
||||
[database]
|
||||
connection = mysql+pymysql://{{ nova_database_user }}:{{ nova_database_password }}@{{ nova_database_address }}/{{ nova_database_name }}
|
||||
max_pool_size = 50
|
||||
@@ -162,6 +163,7 @@ max_retries = -1
|
||||
[api_database]
|
||||
connection = mysql+pymysql://{{ nova_api_database_user }}:{{ nova_api_database_password }}@{{ nova_api_database_address }}/{{ nova_api_database_name }}
|
||||
max_retries = -1
|
||||
{% endif %}
|
||||
|
||||
[cache]
|
||||
backend = oslo_cache.memcache_pool
|
||||
|
Reference in New Issue
Block a user