Bifrost image's mysqldb module is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When this is ran from the bifrost bootstrap playbook:
/bifrost/
This error is produced:
TASK [bifrost-
task path: /bifrost-
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.
<127.0.0.1> PUT /tmp/tmpRiWG5Y TO /root/.
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.
<127.0.0.1> EXEC /bin/sh -c 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 http_proxy=
fatal: [127.0.0.1]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"collation": "", "config_file": "/root/.my.cnf", "connect_timeout": 30, "encoding": "utf8", "login_host": "localhost", "login_password": "", "login_port": 3306, "login_
This is resolved by re-installing the MySQL-python package (weirdly an attempt at downgrading this package from 1.2.5 to 1.2.4 results in a strange runtime/IO error see here http://
And a more isolated test:
()[root@
[WARNING]: Host file not found: /etc/ansible/hosts
[WARNING]: provided hosts list is empty, only localhost is available
localhost | FAILED! => {
"changed": false,
"failed": true,
"msg": "the python mysqldb module is required"
}
pip uninstall MySQL-python
pip install MySQL-python
And it is resolved
()[root@
localhost | FAILED! => {
"changed": false,
"failed": true,
"msg": "unable to find /root/.my.cnf. Exception message: (2002, \"Can't connect to local MySQL server through socket '/var/run/
}
Looks like a python egg/packaging issue. Can this be confirmed by others?
Changed in kolla: | |
status: | Confirmed → Invalid |
Image history:
IMAGE CREATED CREATED BY SIZE COMMENT syste.. . 0 B c206... 31 B env-setup. sh... 698 MB base-source/ * bif... 96.6 kB 887a... 88 B 2c78a.. . 585 kB lib/kolla. .. 0 B lib/kolla. .. 0 B base-source/ * /... 15.4 MB 1b81e.. . 409 kB /bootstrap. pypa.io/... 11.4 MB bin/kolla_ exte... 15.4 kB /github. com/Ye... 43.3 kB 8369... 154 B 70a9... 799 B f4f2... 699 B 6652... 13.9 kB
6504a0b85a0d 51 minutes ago /bin/sh -c #(nop) CMD ["/sbin/init"] 0 B
40b522a4e00e 51 minutes ago /bin/sh -c apt-get -y install --no-install... 0 B
b9fb39b10aed 52 minutes ago /bin/sh -c rm -f $(find /lib/systemd/
61ad3ed1370e 52 minutes ago /bin/sh -c #(nop) ENV container=docker 0 B
c0d7696b2e28 52 minutes ago /bin/sh -c #(nop) MAINTAINER Kolla Projec... 0 B
77be2364a256 52 minutes ago /bin/sh -c chmod 750 /etc/sudoers.d &&... 70 B
81a9d4c5b5ca 52 minutes ago /bin/sh -c #(nop) COPY file:af6825f1e9
7fa8255758c2 52 minutes ago /bin/sh -c bash -c './scripts/
3d2b2e6a0745 59 minutes ago /bin/sh -c sed -e "s/.*mariadb.*//Ig" -i /... 751 kB
a4e7d6345be2 59 minutes ago /bin/sh -c #(nop) WORKDIR /bifrost 0 B
2113e85fa5e7 59 minutes ago /bin/sh -c ln -s bifrost-
cc38b286889f 59 minutes ago /bin/sh -c #(nop) COPY file:6c7beb4546
cb9121081407 59 minutes ago /bin/sh -c #(nop) ADD file:d33442b620
de02eb0719d9 59 minutes ago /bin/sh -c #(nop) ENV VENV=/var/
f8bcc118f7b8 59 minutes ago /bin/sh -c usermod --append --home /var/li... 14.2 kB
c4134bcf8295 59 minutes ago /bin/sh -c #(nop) MAINTAINER Kolla Projec... 0 B
b5da2a7f0ea9 22 hours ago /bin/sh -c pip --no-cache-dir install --up... 145 MB
89dbf2be8c36 22 hours ago /bin/sh -c #(nop) ENV PATH=/var/
960bc7f0bbdb 22 hours ago /bin/sh -c ln -s openstack-
6f5e7f0a8e8b 22 hours ago /bin/sh -c #(nop) ADD file:fc7bf8880d
03c2c08ecc79 22 hours ago /bin/sh -c curl https:/
4844d35206ea 22 hours ago /bin/sh -c apt-get -y install --no-install... 300 MB
0320db143706 22 hours ago /bin/sh -c #(nop) MAINTAINER Kolla Projec... 0 B
f033550c4534 22 hours ago /bin/sh -c #(nop) CMD ["kolla_start"] 0 B
9780bf024878 22 hours ago /bin/sh -c touch /usr/local/
48052352c611 22 hours ago /bin/sh -c curl -sSL https:/
50d611b30d0e 22 hours ago /bin/sh -c #(nop) COPY file:7e421a8be6
512f39b040af 22 hours ago /bin/sh -c #(nop) COPY file:fc65d796db
74fb1f76d996 22 hours ago /bin/sh -c #(nop) COPY file:891f327524
48fbe07173f6 22 hours ago /bin/sh -c #(nop) COPY file:f28083ac68
6793d5929242 22 hours ago /bin/sh -c sed -i -e "s|\('purelib... 28 kB
16af0c0849c3 22 hours ago /bin/sh -c apt-get update && apt-get -... 92 MB
d66915619a07 22 hours ago /bin/sh -c apt-key adv --...