Access denied for user 'root'@'localhost'/Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock errors during cluster deployment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
Critical
|
Sergii Golovatiuk |
Bug Description
Deployment fails with message: "Deployment has failed. Critical nodes failed: Node[1], Node[2], Node[4], Node[7], Node[9], Node[8]. Stopping the deployment process!"
Here is what I've found in the puppet logs
node-4 2016-02-
node-4 2016-02-
Steps To Reproduce:
1. Run bvt_2 SWARM tests:
python run_system_test.py run -q --nologcapture --with-xunit --group=bvt_2
Expected results:
All tests passed
Actual result:
Tests failed with the error:
node-4 2016-02-
node-4 2016-02-
Changed in fuel: | |
assignee: | nobody → Fuel Library Team (fuel-library) |
Changed in fuel: | |
assignee: | Fuel Library Team (fuel-library) → Sergii Golovatiuk (sgolovatiuk) |
status: | New → Confirmed |
tags: | added: area-library galera |
summary: |
- Access denied for user 'root'@'localhost' error during cluster + Access denied for user 'root'@'localhost'/Can't connect to local MySQL + server through socket '/var/run/mysqld/mysqld.sock errors during cluster deployment |
Changed in fuel: | |
assignee: | Sergii Golovatiuk (sgolovatiuk) → Alex Schultz (alex-schultz) |
status: | Confirmed → In Progress |
Changed in fuel: | |
importance: | High → Critical |
description: | updated |
Changed in fuel: | |
assignee: | Alex Schultz (alex-schultz) → Sergii Golovatiuk (sgolovatiuk) |
Changed in fuel: | |
assignee: | Sergii Golovatiuk (sgolovatiuk) → Alex Schultz (alex-schultz) |
Changed in fuel: | |
assignee: | Alex Schultz (alex-schultz) → Sergii Golovatiuk (sgolovatiuk) |
Reproduced on: 0-70-2016- 03-16_15- 05-59.iso
fuel-9.
Stop reset cluster in ha mode
Scenario:
1. Create cluster
2. Add 3 node with controller role
3. Deploy cluster
4. Stop deployment
5. Reset settings
6. Add 2 nodes with compute role
7. Re-deploy cluster
8. Run OSTF
Failed with similar error: extra-file= /root/. my.cnf -NBe SELECT CONCAT(User, '@',Host) AS User FROM mysql.user' returned 1: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/ mysqld/ mysqld. sock' (2) extra-file= /root/. my.cnf -NBe SELECT CONCAT(User, '@',Host) AS User FROM mysql.user' returned 1: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/ mysqld/ mysqld. sock' (2)
2016-03-16 23:29:46 ERR Could not prefetch mysql_user provider 'mysql': Execution of '/usr/bin/mysql --defaults-
2016-03-16 23:29:46 ERR Could not prefetch mysql_user provider 'mysql': Execution of '/usr/bin/mysql --defaults-