galera_server : Create galera users fails on CentOS7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Confirmed
|
Critical
|
Major Hayden |
Bug Description
openstack-ansible bbf804f43363d9a
TASK [galera_server : Create galera users] fails at the second run of setup-infrastru
The first run of setup-infrastru
Entering the galera-container that failed the TASK shows mysqld is stopped.
[root@dev-
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111 "Connection refused")
[root@dev-
Redirecting to /bin/systemctl status mysqld.service
● mariadb.service - MariaDB 10.1.30 database server
Loaded: loaded (/usr/lib/
Drop-In: /etc/systemd/
Active: inactive (dead) since Thu 2018-01-25 02:36:22 UTC; 12min ago
Docs: man:mysqld(8)
https:/
Main PID: 2184 (code=exited, status=0/SUCCESS)
Status: "MariaDB server is down"
Jan 25 00:55:33 dev-os1-
Jan 25 00:57:28 dev-os1-
Jan 25 00:57:29 dev-os1-
Jan 25 00:57:30 dev-os1-
Jan 25 02:36:17 dev-os1-
Jan 25 02:36:22 dev-os1-
Attached the relevant ansible output.
Changed in openstack-ansible: | |
assignee: | nobody → Jean-Philippe Evrard (jean-philippe-evrard) |
Changed in openstack-ansible: | |
assignee: | Jean-Philippe Evrard (jean-philippe-evrard) → nobody |
status: | New → Confirmed |
assignee: | nobody → Major Hayden (rackerhacker) |
importance: | Undecided → High |
importance: | High → Critical |
The problem is still present on a fresh installation of the latest master
https:/ /github. com/openstack/ openstack- ansible/ commit/ e883d33630b06c9 21ec71b09169940 dc7a2c6914 /github. com/openstack/ openstack- ansible- galera_ server/ commit/ 486e565172ab8e1 496e64d524da4ba 5dfd0d1fac
https:/
The second run of ansible/ playbooks/ setup-infrastru cture.yml hci2-galera- container at the time when
ansible-playbook /opt/openstack-
fails since mysqld is not running on dev-os1-
TASK [galera_server : Create galera users]
is executing.
It seems that one of the openstack- ansble_ galera_ server tasks is stopping mysqld incorrectly. Even if I manually os1-hci2- galera- container- 8bd53def ~]# service mysqld start ansible/ playbooks/ setup-infrastru cture.yml hci2-galera- container.
[root@dev-
before running
ansible-playbook /opt/openstack-
when the
TASK [galera_server : Create galera users]
is executing the mysqld is stopped on dev-os1-
I can make this task to finish successfully if I quickly service mysqld start manually.
This is the same behavior as in the original report.