[SRU] alembic database migrations missing from package
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
Undecided
|
Unassigned | |||
Caracal |
Fix Committed
|
High
|
Unassigned | |||
neutron-dynamic-routing (Ubuntu) | Status tracked in Plucky | |||||
Noble |
Fix Committed
|
High
|
Unassigned | |||
Oracular |
Fix Released
|
Undecided
|
Unassigned | |||
Plucky |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
DB schema is missing, extension driver is not functional.
[Test Case]
sudo apt install mysql-server neutron-server python3-
sudo mysql -u root << EOF
CREATE DATABASE neutron;
CREATE USER 'neutron'
CREATE USER 'neutron'@'%' IDENTIFIED BY 'changeme';
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%';
EOF
sudo sed -i -e 's!connection = sqlite.*!connection = mysql+pymysql:
sudo neutron-db-manage upgrade head
No DB migrations will be applied for neutron-
Running upgrade for neutron-
INFO [alembic.
INFO [alembic.
OK
this should look like:
Running upgrade for neutron-
INFO [alembic.
INFO [alembic.
INFO [alembic.
INFO [alembic.
INFO [alembic.
INFO [alembic.
INFO [alembic.
OK
Check that DB migrations are installed after upgrade:
dpkg -L python3-
[upgrade]
dpkg -L python3-
diff before.txt after.txt
35a36
> /usr/lib/
39a41,54
> /usr/lib/
> /usr/lib/
> /usr/lib/
> /usr/lib/
> /usr/lib/
> /usr/lib/
> /usr/lib/
> /usr/lib/
> /usr/lib/
> /usr/lib/
> /usr/lib/
> /usr/lib/
> /usr/lib/
> /usr/lib/
[What could go wrong]
This fix was applied for Oracular onwards; the fix simply ensures that python files that are not true python modules are included in the package.
[Original Bug Report]
This package is not shipping alembic database migrations
Changed in neutron-dynamic-routing (Ubuntu Oracular): | |
status: | New → Fix Released |
Changed in neutron-dynamic-routing (Ubuntu Plucky): | |
status: | New → Fix Released |
Changed in cloud-archive: | |
status: | New → Fix Released |
Changed in neutron-dynamic-routing (Ubuntu Noble): | |
status: | New → Triaged |
importance: | Undecided → High |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Hello James, or anyone else affected,
Accepted neutron- dynamic- routing into noble-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ neutron- dynamic- routing/ 2:24.0. 0-0ubuntu1. 1 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification- needed- noble to verification- done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed- noble. In either case, without details of your testing we will not be able to proceed.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance for helping!
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.