[yoga] nova-api-bootstrap fails due to missing MySQLdb

Bug #2020750 reported by Crazik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
New
Undecided
Unassigned

Bug Description

Env:
Kolla-ansible 14.8.0 in a process of upgrading from Xena to Yoga
Images used: ubuntu-source from quay.io

In the process of doing upgrade, I've met this case:
Task "Running Nova API bootstrap container" fails with final error:

Error: No module named 'MySQLdb'

image used: quay.io/openstack.kolla/ubuntu-source-nova-api:yoga
hash: 2c3ada1c3d86

As pip3 module installation fails (requirements missing), solution is to install python3-mysqldb with apt.

steps to fix:
1. docker run -it --name tmp quay.io/openstack.kolla/ubuntu-source-nova-api:yoga bash
2. apt-get update && apt-get install python3-mysqldb
3. docker commit <container_id> TMP_TAG
4. docker tag TMP_TAG quay.io/openstack.kolla/ubuntu-source-nova-api:yoga
5. re-run kolla-ansible process.

note: that may happen only if there is a cell with "mysql://" connection scheme.

Tags: nova yoga
Crazik (crazik)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.