Ask Your Question
0

galera_cluster_name

asked 2019-10-21 09:01:39 -0600

tomislak gravatar image

Hi,

I'm trying to set up production example ( https://docs.openstack.org/openstack-ansible/stein/user/prod/example.html (https://docs.openstack.org/openstack-...) ) of OpenStack Ansible. I setup this environment on Ubuntu 16.04 LTS and follow https://docs.openstack.org/project-deploy-guide/openstack-ansible/stein/index.html (https://docs.openstack.org/project-de...). First ansible script went ok ( setup-hosts.yml ). But second one ( setup-infrastructure.yml ) stopped three times. First it couldn's perform pip upgrade in infra utility containers ( I performed manually " pip install --upgrade pip" on all three infra nodes, and rerun script ). Second time script stopped because it didn't have python-openstackclient in utility containers ( I installed it manualy "pip install python-openstackclient" ). But third time it stopped on adding second node in galera cluster with:

TASK [galera_server : Fail if galera_cluster_name doesnt match provided value] ************ fatal: [infra2_galera_container-78fba6fe]: FAILED! => {"changed": false, "msg": "The galera_cluster_name variable does not match what is set in mysql. Check your galera_cluster_name setting in your user_.yml files in \"/etc/openstack_deploy\" and compare to the current value in \"/etc/mysql/conf.d/cluster.cnf\" on the host, and the \"wsrep_cluster_name\" value set in your running galera cluster. To ignore the cluster state set '-e galera_ignore_cluster_state=true'.\n"}

/etc/mysql/conf.d/cluster.cnf is present on galera container on infra1 and infra2, not on infra3. on both we have same value for galera_cluster_name.

I do not have any idea how to go beyond that.

Any suggestions?

Regards

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-10-21 11:00:04 -0600

Error message has something useful . "Check your galera_cluster_name setting in your user_.yml files in \"/etc/openstack_deploy\" and compare to the current value in \"/etc/mysql/conf.d/cluster.cnf\" on the host, and the \"wsrep_cluster_name\" value set in your running galera cluster"

can you start mysql on each node if so log in and run "show status like '%wsrep%' and review this information.

edit flag offensive delete link more

Comments

I couldn't place all in a comment, so I write in answer box...

tomislak gravatar imagetomislak ( 2019-10-22 01:44:28 -0600 )edit

I had to manually start mariadb on all nodes ( one by one ) with "systemctl start mariadb". Playbook went to the end with this.

tomislak gravatar imagetomislak ( 2019-10-28 04:20:34 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-10-21 09:01:39 -0600

Seen: 33 times

Last updated: Oct 21