Using the sql_connection option in the default section appears to
cause CONF.api_database.connection to be populated with the
connection uri. This in turn causes nova to think this is an
api cell and to do an api lookup *1 which fails. This change moves
the database connection string into its own section as per *2
Reviewed: https:/ /review. opendev. org/c/openstack /charm- nova-cell- controller/ +/850466 /opendev. org/openstack/ charm-nova- cell-controller /commit/ c097dc38234e097 2b7082a539730c0 04b6c86b13
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit c097dc38234e097 2b7082a539730c0 04b6c86b13
Author: Liam Young <email address hidden>
Date: Tue Jul 19 06:30:46 2022 +0000
Fix database connection section
Using the sql_connection option in the default section appears to database. connection to be populated with the
cause CONF.api_
connection uri. This in turn causes nova to think this is an
api cell and to do an api lookup *1 which fails. This change moves
the database connection string into its own section as per *2
*1 https:/ /opendev. org/openstack/ nova/src/ branch/ master/ nova/utils. py#L1060 /docs.openstack .org/nova/ latest/ admin/cells. html
*2 https:/
Closes-Bug: #1982071 8535173c8bb87ce 65f66fb3ca8 2015d817f3272df 43a955a1ff)
Change-Id: I49859235d40859
(cherry picked from commit d668de8aa5bba64