horizon: Ensure mysqldb client is installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Expired
|
Undecided
|
Unassigned |
Bug Description
* OS : Ubuntu 22.04.03
* Kernel (e.g. `uname -a`): Linux checkout 5.15.0-86-generic #96-Ubuntu SMP Wed Sep 20 08:23:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
* Docker version if applicable (e.g. `docker version`): Client: Docker Engine - Community
Version: 24.0.6
* Kolla version (e.g. `git head or tag or stable branch` or pip package version if using release): kolla-ansible --version 15.2.1
This is in regard to the following issue: Horizon bootstrap fails when murano enabled due to missing MySQL-Python
"horizon: Ensure mysqldb client is installed
Impacts ubuntu-binary based built images.
Django has no way to change the driver for MySQL backed session
management in Horizon.
Ensure that the supported MySQLDB driver is installed for use.
Change-Id: If006a75b97b336
Closes-Bug: 1840903
changes/
This bug still persists in stable/zed release. I would appreciate your assistance in making the fix of kolla 14.9.0 available in stable/zed and 2023.1.
An update.
I have checked the alleged fix in yoga and found out that the issue was not fixed in kolla-ansible 14.9.1.
*OS : Ubuntu 20.04.03
* Kernel (e.g. `uname -a`): Linux checkout 5.4.0-164-generic #181-Ubuntu SMP Fri Sep 1 13:41:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
* Docker version if applicable (e.g. `docker version`): Docker version 24.0.6, build ed223bc
* Kolla version (e.g. `git head or tag or stable branch` or pip package version if using release): kolla-ansible --version
14.9.1
Below is the debug message(s) when the kolla-ansible -i all-in-one deploy failed.
You help will be greatly appreciated
TASK [horizon : Running Horizon bootstrap container] **** configs\ nINFO:_ _main__ :Loading config file at /var/lib/ kolla/config_ files/config. json\nINFO: __main_ _:Validating config file\nINFO: __main_ _:Kolla config strategy set to: COPY_ALWAYS\ nINFO:_ _main__ :Copying service configuration files\nINFO: __main_ _:Copying /var/lib/ kolla/config_ files/horizon. conf to /etc/apache2/ conf-enabled/ 000-default. conf\nINFO: __main_ _:Setting permission for /etc/apache2/ conf-enabled/ 000-default. conf\nINFO: __main_ _:Deleting /etc/openstack- dashboard/ local_settings\ nINFO:_ _main__ :Copying /var/lib/ kolla/config_ files/local_ settings to /etc/openstack- dashboard/ local_settings\ nINFO:_ _main__ :Setting permission for /etc/openstack- dashboard/ local_settings\ nINFO:_ _main__ :Copying /var/lib/ kolla/config_ files/custom_ local_settings to /etc/openstack- dashboard/ custom_ local_settings\ nINFO:_ _main__ :Setting permission for /etc/openstack- dashboard/ custom_ local_settings\ nINFO:_ _main__ :Writing out command to execute\n++ cat /run_command\n+ CMD='/usr/ sbin/apache2 -DFOREGROUND'\n+ ARGS=\n+ sudo kolla_copy_ cacerts\ n+ [[ ! -n '' ]]\n+ . kolla_extend_ start\n+ + set -o errexit\n++ FORCE_GENERATE= no\n++ HASH_PATH= /var/lib/ kolla/. settings. md5sum. txt\n++ [[ source == \\b\\i\\n\\a\\r\\y ]]\n++ [[ source == \\s\\o\\u\\r\\c\\e ]]\n++ SITE_PACKAGES= /var/lib/ kolla/venv/ lib/python3. 8/site- packages\ n++ [[ -f /var/lib/ kolla/venv/ bin/python ]]\n++ MANAGE_ PY='/var/ lib/kolla/ venv/bin/ python /var/lib/ kolla/venv/ bin/manage. py'\n++ [[ source == \\s\\o\\u\\r\\c\\e ]]\n++ [[ ! -f /var/lib/ kolla/venv/ lib/python3. 8/site- packages/ openstack_ dashboard/ local/local_ settings. py ]]\n++ ln -s /etc/openstack- dashboard/ local_settings /var/lib/ kolla/venv/ lib/python3. 8/site- packages/ openstack_ dashboard/ local/local_ settings. py\n++ [[ -f /etc/openstack- dashboard/ custom_ local_settings ]]\n++ CUSTOM_ SETTINGS_ FILE=/var/ lib/kolla/ venv/lib/ python3. 8/site- packages/ openstack_ dashboard/ local/custom_ local_settings. py\n++ [[ source == \\b\\i\\n\\a\\r\\y ]]\n++ [[ ! -L /var/lib/ kolla/venv/ lib/python3. 8/site- packages/ openstack_ dashboard/ local/custom_ local_settings. py ]]\n++ ln -s /etc/openstack- dashboard/ custom_ local_settings /var/lib/ kolla/venv/ lib/python3. 8/site- packages/ openstack_ dashboard/ local/custom_ local_settings. py\n++ [[ -n 0 ]]\n++ /var/lib/ kolla/venv/ bin/python /var/lib/ kolla/venv/ bin/manage. py migrate --noinput\ n/var/lib/ kolla/venv/ lib/python3. 8/site- packages/ openstack_ dashboa. ..
fatal: [localhost]: FAILED! => {"changed": true, "msg": "Container exited with non-zero return code 1", "rc": 1, "stderr": "+ sudo -E kolla_set_