Creating haproxy mysql failed

Bug #1661965 reported by caoyuan
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
kolla-ansible
Invalid
Undecided
Taeha Kim

Bug Description

TASK [mariadb : Creating haproxy mysql user] ***********************************
FAILED - RETRYING: TASK: mariadb : Creating haproxy mysql user (10 retries left).
FAILED - RETRYING: TASK: mariadb : Creating haproxy mysql user (9 retries left).
FAILED - RETRYING: TASK: mariadb : Creating haproxy mysql user (8 retries left).
FAILED - RETRYING: TASK: mariadb : Creating haproxy mysql user (7 retries left).
FAILED - RETRYING: TASK: mariadb : Creating haproxy mysql user (6 retries left).
FAILED - RETRYING: TASK: mariadb : Creating haproxy mysql user (5 retries left).
FAILED - RETRYING: TASK: mariadb : Creating haproxy mysql user (4 retries left).
FAILED - RETRYING: TASK: mariadb : Creating haproxy mysql user (3 retries left).
FAILED - RETRYING: TASK: mariadb : Creating haproxy mysql user (2 retries left).
FAILED - RETRYING: TASK: mariadb : Creating haproxy mysql user (1 retries left).
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["docker", "exec", "-t", "kolla_toolbox", "/usr/bin/ansible", "localhost", "-m", "mysql_user", "-a", "login_host='172.16.130.120' login_port='3306' login_user='root' login_password='POyz3VRm9qk5VC91o7NbETLlfQiSAI2WlFgRdTGb' name='haproxy' password='' host='%' priv=*.*:USAGE"], "delta": "0:00:00.952583", "end": "2017-02-05 22:57:07.728533", "failed": true, "rc": 1, "start": "2017-02-05 22:57:06.775950", "stderr": "", "stdout": "localhost | FAILED! => {\r\n \"changed\": false, \r\n \"failed\": true, \r\n \"msg\": \"unable to connect to database, check login_user and login_password are correct or /home/ansible/.my.cnf has the credentials. Exception message: (1045, \\\"Access denied for user 'root'@'dnf' (using password: YES)\\\")\"\r\n}", "stdout_lines": ["localhost | FAILED! => {", " \"changed\": false, ", " \"failed\": true, ", " \"msg\": \"unable to connect to database, check login_user and login_password are correct or /home/ansible/.my.cnf has the credentials. Exception message: (1045, \\\"Access denied for user 'root'@'dnf' (using password: YES)\\\")\"", "}"], "warnings": []}

NO MORE HOSTS LEFT *************************************************************
 to retry, use: --limit @/usr/share/kolla/ansible/site.retry

PLAY RECAP *********************************************************************
localhost : ok=64 changed=0 unreachable=0 failed=1

caoyuan (cao-yuan)
Changed in kolla:
assignee: nobody → caoyuan (cao-yuan)
affects: kolla → kolla-ansible
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.openstack.org/429390

Changed in kolla-ansible:
status: New → In Progress
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

seems like your mariadb is not created successfully. could u make sure of that?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla-ansible (master)

Change abandoned by caoyuan (cao.yuan@99cloud.net) on branch: master
Review: https://review.openstack.org/429390

Revision history for this message
t.goto (t.goto) wrote :

I had exactly same issue, but after building image and refreshing configs(globals, passwords, kolla-build.conf), it worked.

caoyuan (cao-yuan)
Changed in kolla-ansible:
status: In Progress → Invalid
Revision history for this message
Taeha Kim (kthguru) wrote :

This issue has occurred on master branch. When the deployment VM deploys to other VM using all-in-one, it has been occurred as following logs.
In the mariadb container, we can use mysql console without password. For example,
# mysql
# mysql -u root
# mysql -u haproxy
These are all okay.

But the deployment VM cannot connectto the mariadb container's mysql.
I don't understand why this issue cannot be reproduced on your side.

TASK [mariadb : include] *********************************************************************************************************************************************************************
skipping: [192.168.122.112]

TASK [mariadb : include] *********************************************************************************************************************************************************************
skipping: [192.168.122.112]

TASK [mariadb : include] *********************************************************************************************************************************************************************
included: /usr/share/kolla-ansible/ansible/roles/mariadb/tasks/start.yml for 192.168.122.112

TASK [mariadb : Starting mariadb container] **************************************************************************************************************************************************
ok: [192.168.122.112]

TASK [mariadb : Waiting for MariaDB service to be ready] *************************************************************************************************************************************
ok: [192.168.122.112]

TASK [mariadb : include] *********************************************************************************************************************************************************************
included: /usr/share/kolla-ansible/ansible/roles/mariadb/tasks/register.yml for 192.168.122.112

TASK [mariadb : Creating haproxy mysql user] *************************************************************************************************************************************************
fatal: [192.168.122.112]: FAILED! => {"changed": false, "failed": true, "msg": "unable to connect to database, check login_user and login_password are correct or /var/lib/ansible/.my.cnf has the credentials. Exception message: (1045, \"Access denied for user 'root'@'nova2' (using password: YES)\")"}

NO MORE HOSTS LEFT ***************************************************************************************************************************************************************************
 to retry, use: --limit @/usr/share/kolla-ansible/ansible/site.retry

PLAY RECAP ***********************************************************************************************************************************************************************************
192.168.122.112 : ok=52 changed=0 unreachable=0 failed=1

Changed in kolla-ansible:
assignee: caoyuan (cao-yuan) → Taeha Kim (kthguru)
Taeha Kim (kthguru)
Changed in kolla-ansible:
status: Invalid → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.openstack.org/484717

Revision history for this message
Taeha Kim (kthguru) wrote :

We do not need login password for mariadb. So removed mariadb password for register.yml.
After that, the progress is ok.

TASK [mariadb : Cleaning up facts] ***********************************************************************************************************************************************************
ok: [192.168.122.112]

TASK [mariadb : include] *********************************************************************************************************************************************************************
included: /usr/share/kolla-ansible/ansible/roles/mariadb/tasks/start.yml for 192.168.122.112

TASK [mariadb : Starting mariadb container] **************************************************************************************************************************************************
ok: [192.168.122.112]

TASK [mariadb : Waiting for MariaDB service to be ready] *************************************************************************************************************************************
ok: [192.168.122.112]

TASK [mariadb : include] *********************************************************************************************************************************************************************
included: /usr/share/kolla-ansible/ansible/roles/mariadb/tasks/register.yml for 192.168.122.112

TASK [mariadb : Creating haproxy mysql user] *************************************************************************************************************************************************
ok: [192.168.122.112]

TASK [mariadb : Cleaning up facts] ***********************************************************************************************************************************************************
ok: [192.168.122.112]

TASK [mariadb : include] *********************************************************************************************************************************************************************
included: /usr/share/kolla-ansible/ansible/roles/mariadb/tasks/check.yml for 192.168.122.112

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla-ansible (master)

Change abandoned by Taeha Kim (<email address hidden>) on branch: master
Review: https://review.openstack.org/484717
Reason: useless patch

no longer affects: daisy
Changed in kolla-ansible:
status: In Progress → Invalid
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.