Neutron-api stuck in config-changed hook failed with sqlalchemy error during functional testing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Neutron API Charm |
In Progress
|
Undecided
|
Pedro Guimarães |
Bug Description
When running charm-designate dev-basic-
Ran same scenario on bionic-queens one time and it worked with no errors.
Environment:
charm-designate -> running functional tests checked from git.openstack.org directly
Juju version -> 2.5-beta1-
Here is the error log --> https:/
The error at the end is: sqlalchemy.
It looks like my neutron-api is using sqlite instead of percona-cluster, as assigned for this test scenario. In fact, my functional test log gets stuck on application deployment phase and fails as neutron-api failed, and did not execute the relationship phase (which happens just after)
Tried to set manually the relationship between percona-cluster and neutron-api and got:
https:/
/etc/neutron/
https:/
Still got connection database set to sqlite, although relationship with percona-cluster was set.
/etc/neutron/
https:/
Re-running neutron-db-manage command by hand leads to:
https:/
On Bionic-Queens scenario, neutron.conf was correctly set to connect with mysql database.
The bug is similar to: https:/
Changed in charm-neutron-api: | |
assignee: | nobody → Pedro Guimarães (pguimaraes) |
Changed in charm-neutron-api: | |
status: | New → In Progress |
Thanks for reporting this bug Pedro. The problem is that the neutron.conf template hasn't been rendered yet, as can be seen by the database connection config:
[database] ////var/ lib/neutron/ neutron. sqlite
connection = sqlite:
We'll need to dig into this some more to understand why neutron-db-manage is being executed prior to neutron.conf being rendered.