nova-common upgrade fails with "CantStartEngineError: No sql_connection parameter is established"
Bug #1699769 reported by
György Szombathelyi
This bug report is a duplicate of:
Bug #1713059: drop db sync commands from OpenStack packages.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
New
|
Undecided
|
Unassigned |
Bug Description
In nova-common 2:16.0.0-b2 when nova.conf doesn't have any sql connection parameter (it is normal for a compute), then the nova-manage api_db sync command in nova-common.
The problem is with the conditional:
if ! grep -qE "^(sql_
grep -qE "^(sql_
then
su -s /bin/sh -c 'nova-manage api_db sync' nova
su -s /bin/sh -c 'nova-manage db sync' nova
fi
The first grep checks if the sql_connection is not in nova.conf, which is a wrong condition to execute api_db sync. I think it should be deleted.
To post a comment you must log in.
Thank you very much for reporting this. We have another bug with patches being worked on for this problem. Let's track this issue there.