<div dir="auto"><div dir="auto">Hey Derek,<div dir="auto"><br></div><div dir="auto">Connection to MySQL by default happens from utility container. While running utility-install.yml playbook, it should install mysqlclient as well deploy my.cnf file to it.</div><div dir="auto"><br></div><div dir="auto">You should check if this file has been created and if it contains valid credentials for login.</div><div dir="auto">If it's not you should try rerunning this specific playbook.</div><div dir="auto">Also if it has failed during previous run, likely you also don't have proper virtualenv, so you should consider adding `-e venv_rebuild=true` to the playbook execution.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 26 апр. 2022 г., 12:21 Derek O keeffe <<a href="mailto:derekokeeffe85@yahoo.ie" target="_blank" rel="noreferrer">derekokeeffe85@yahoo.ie</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div dir="ltr">Hi all,</div><div dir="ltr"><br></div><div dir="ltr">We get the following error in the <span>openstack.osa.db_setup : Create database for service task:</span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span><span>failed: [infra1_keystone_container-e54c8ba5 -> infra1_utility_container-1a1eb7ce(xx.xx.xx.xxx)] (item={'name': 'keystone', 'users': [{'username': 'keystone', 'password': 'PASSWORD'}]}) => {"ansible_loop_var": "item", "changed": false, "item": {"name": "keystone", "users": [{"password": "PASSWORD", "username": "keystone"}]}, "msg": "unable to connect to database, check login_user and login_password are correct or /root/.my.cnf has the credentials. Exception message: (2003, \"Can't connect to MySQL server on 'xx.xx.xx.xxx' ([Errno 111] Connection refused)\")"}</span><br></span></div><div dir="ltr"><span><span><br></span></span></div><div dir="ltr"><span><div dir="ltr">Also, ansible galera_container -m shell -a "mysql -h localhost -e 'show status like \"%wsrep_cluster_%\";'" is different to the example output:</div><div dir="ltr"><br></div><div dir="ltr"><div><div>infra1_galera_container-90dd1571 | CHANGED | rc=0 >></div><div>Variable_name<span style="white-space:pre-wrap">      </span>Value</div><div>wsrep_cluster_weight<span style="white-space:pre-wrap">        </span>1</div><div>wsrep_cluster_capabilities<span style="white-space:pre-wrap">      </span></div><div>wsrep_cluster_conf_id<span style="white-space:pre-wrap">    </span>1</div><div>wsrep_cluster_size<span style="white-space:pre-wrap">      </span>1</div><div>wsrep_cluster_state_uuid<span style="white-space:pre-wrap">        </span>c06b8107-c53a-11ec-a54c-a20664362f6c</div><div>wsrep_cluster_status<span style="white-space:pre-wrap"> </span>Primary</div></div><br></div><div dir="ltr">We checked our infra node and all the containers are present and mysql is installed on the infra1-galera-container and port 3306 is open.</div><div dir="ltr"><br></div><div dir="ltr"><div><div>MariaDB [(none)]> show databases;</div><div>+--------------------+</div><div>| Database                    |</div><div>+--------------------+</div><div>| information_schema   |</div><div>| mysql                          |</div><div>| performance_schema |</div><div>| sys                              |</div><div>+--------------------+</div><div>4 rows in set (0.001 sec)</div></div><div><br></div><div><br></div><div dir="ltr">We are not sure what is causing this and it could possibly be that we have forgotten/skipped/missed a configuration step but we have gone over the process multiple times and cannot see what we may have missed. The previous playbooks did have a lot of "skipped" results </div><div dir="ltr"><br></div><div dir="ltr"><div><div>compute1                   : ok=120  changed=2    unreachable=0    failed=0    skipped=31   rescued=0    ignored=0   </div><div>compute2                   : ok=120  changed=2    unreachable=0    failed=0    skipped=31   rescued=0    ignored=0   </div><div>infra1                     : ok=156  changed=3    unreachable=0    failed=0    skipped=31   rescued=0    ignored=0   </div><div>infra1_aodh_container-7c703324 : ok=89   changed=36   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>infra1_ceilometer_central_container-7590db72 : ok=89   changed=36   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>infra1_cinder_api_container-91806531 : ok=89   changed=36   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>infra1_galera_container-90dd1571 : ok=89   changed=36   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>infra1_glance_container-fff39ac4 : ok=89   changed=36   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>infra1_gnocchi_container-ffd32a8b : ok=89   changed=36   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>infra1_heat_api_container-a4079838 : ok=89   changed=36   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>infra1_horizon_container-9c041ec0 : ok=89   changed=36   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>infra1_keystone_container-e54c8ba5 : ok=89   changed=36   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>infra1_memcached_container-dc50bcd8 : ok=89   changed=36   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>infra1_neutron_server_container-bfc4d0d2 : ok=92   changed=37   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>infra1_nova_api_container-f231bb13 : ok=89   changed=36   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>infra1_placement_container-108d79df : ok=89   changed=36   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>infra1_rabbit_mq_container-50ca98ed : ok=89   changed=36   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>infra1_repo_container-ccade01d : ok=89   changed=36   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>infra1_utility_container-1a1eb7ce : ok=89   changed=36   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   </div><div>localhost                  : ok=19   changed=0    unreachable=0    failed=0    skipped=14   rescued=0    ignored=0</div></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><div><div>compute1                   : ok=0    changed=0    unreachable=0    failed=0    skipped=10   rescued=0    ignored=0   </div><div>compute2                   : ok=0    changed=0    unreachable=0    failed=0    skipped=10   rescued=0    ignored=0   </div><div>infra1                     : ok=38   changed=0    unreachable=0    failed=0    skipped=35   rescued=0    ignored=0   </div><div>infra1_galera_container-90dd1571 : ok=69   changed=3    unreachable=0    failed=0    skipped=12   rescued=0    ignored=0   </div><div>infra1_memcached_container-dc50bcd8 : ok=16   changed=0    unreachable=0    failed=0    skipped=4    rescued=0    ignored=0   </div><div>infra1_rabbit_mq_container-50ca98ed : ok=69   changed=33   unreachable=0    failed=0    skipped=14   rescued=0    ignored=0   </div><div>infra1_utility_container-1a1eb7ce : ok=40   changed=18   unreachable=0    failed=0    skipped=11   rescued=0    ignored=0 </div></div><br></div><div dir="ltr"><br></div><div dir="ltr">A lot were around Galera tasks but we are not sure if they were skipped intentionally as the playbooks ran to completion.</div></div><div dir="ltr">Any help or troubleshooting steps would be appreciated. Thanks in advance.</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Regards,</div><div dir="ltr">Derek</div><br></div></span></div></div></div></blockquote></div></div>