Galera user creation fails

Bug #1824987 reported by Kai Bojens
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Francois Deppierraz

Bug Description

- Ubuntu 18.04
- Container: lxc
- Stein

The playbook "setup-infrastructure.yml" fails at creating MariaDB/Galera Users:

2019-04-16 14:04:17,730 p=12579 u=root | failed: [infra1_galera_container-4ab78163] (item={u'priv': u'*.*:USAGE', u'state': u'present', u'password': u'', u'host': u'localhost', u'name': u'monitoring'}) => {"ansible_loop_var": "item", "attempts": 3, "changed": false, "item": {"host": "localhost", "name": "monitoring", "password": "", "priv": "*.*:USAGE", "state": "present"}, "msg": "The PyMySQL (Python 2.7 and Python 3.X) or MySQL-python (Python 2.X) module is required."}

Installing "python3-pymysql" within the galera containers solves the problem and the second run of the playbook works fine.

Kai Bojens (starborn)
summary: - Galer user creation fails
+ Galera user creation fails
description: updated
Revision history for this message
Rick Cano (canori01) wrote :

Also happens on Ubuntu 16.04. I was running a Rocky to Stein upgrade and ran into this. Had to install the python2 version in my case(python-pymysql) but otherwise same behavior.

Revision history for this message
Francois Deppierraz (francois-ctrlaltdel) wrote :

Working on it, it first needs to be fixed in the openstack-ansible-galera_server:

https://review.opendev.org/#/c/684550/

Changed in openstack-ansible:
assignee: nobody → Francois Deppierraz (francois-ctrlaltdel)
Revision history for this message
Dmitriy Rabotyagov (noonedeadpunk) wrote :

https://review.opendev.org/#/c/717381/1 also should cover that specific issue. Marking as resolved

Changed in openstack-ansible:
status: New → Fix Committed
Changed in openstack-ansible:
status: Fix Committed → Fix Released
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.