Incorrect dependency at Stein
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Base Layer |
Fix Released
|
Critical
|
Frode Nordahl | ||
charms.openstack |
Invalid
|
Critical
|
Frode Nordahl | ||
octavia (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
# sudo octavia-db-manage upgrade head
2019-04-08 13:57:50.232 23647 CRITICAL octavia-db-manage [-] Unhandled error: ModuleNotFoundE
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage Traceback (most recent call last):
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage File "/usr/bin/
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage sys.exit(main())
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage File "/usr/lib/
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage CONF.command.
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage File "/usr/lib/
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage do_alembic_
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage File "/usr/lib/
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage getattr(
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage File "/usr/lib/
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage script.run_env()
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage File "/usr/lib/
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage util.load_
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage File "/usr/lib/
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage module = load_module_
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage File "/usr/lib/
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage spec.loader.
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage File "<frozen importlib.
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage File "<frozen importlib.
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage File "/usr/lib/
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage run_migrations_
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage File "/usr/lib/
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage poolclass=
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage File "/usr/lib/
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage return strategy.
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage File "/usr/lib/
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage dbapi = dialect_
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage File "/usr/lib/
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage return __import_
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage ModuleNotFoundE
2019-04-08 13:57:50.232 23647 ERROR octavia-db-manage
Installing ``python3-mysqldb`` resolves the issue.
# apt show python3-octavia
# apt show python3-octavia
Package: python3-octavia
Version: 4.0.0~rc1-
Priority: optional
Section: python
Source: octavia
Maintainer: Ubuntu Developers <email address hidden>
Original-
Installed-Size: 5,359 kB
Depends: alembic (>= 0.8.10), python3-alembic (>= 0.8.10), python3-babel (>= 2.3.4), python3-
Download-Size: 474 kB
APT-Manual-
APT-Sources: http://
Description: OpenStack Load Balancer as a Service - Python libraries
Changed in layer-openstack: | |
status: | New → Triaged |
importance: | Undecided → Critical |
assignee: | nobody → Frode Nordahl (fnordahl) |
Changed in charms.openstack: | |
assignee: | nobody → Frode Nordahl (fnordahl) |
Changed in layer-openstack: | |
status: | Triaged → In Progress |
Changed in charms.openstack: | |
status: | Triaged → In Progress |
Changed in charms.openstack: | |
status: | In Progress → Invalid |
Changed in layer-openstack: | |
status: | In Progress → Fix Released |
It appears the issue here is that we have been carrying a patch in UCA that adds ``+pymysql`` to the connection string.
That has been removed in UCA @ Stein, so we would have to add this back.
The connection string comes from here [0] and variables come from [1] and [2].
We would also need to version fence this given UCA prior to Stein has the above mentioned patch.
0: https:/ /github. com/openstack/ charm-layer- openstack/ blob/master/ templates/ parts/section- database /github. com/openstack/ charm-interface -mysql- shared/ blob/master/ requires. py /github. com/openstack/ charms. openstack/ blob/e57acaacdb df98813e905fecd 07e69ce5c86378a /charms_ openstack/ adapters. py#L449
1: https:/
2: https:/