I am using openstack ansible verison 18.1.6. During the deployment setup-infrastructure.yml file is failing. The rabbitmq join cluster task is failing due to hostname mismatch. Could you someone help me how to fix this issue.
fatal: [controller02_rabbit_mq_container-cc0158f6]: FAILED! => {"attempts": 5, "changed": true, "cmd": ["rabbitmqctl", "join_cluster", "rabbit@controller01-rabbit-mq-container-d01ff938"], "delta": "0:00:03.891195", "end": "2019-04-15 21:31:28.844595", "msg": "non-zero return code", "rc": 69, "start": "2019-04-15 21:31:24.953400", "stderr": "Error: unable to connect to nodes ['rabbit@controller01-rabbit-mq-container-d01ff938']: nodedown\n\nDIAGNOSTICS\n===========\n\nattempted to contact: ['rabbit@controller01-rabbit-mq-container-d01ff938']\n\nrabbit@controller01-rabbit-mq-container-d01ff938:\n * unable to connect to epmd (port 4369) on controller01-rabbit-mq-container-d01ff938: address (cannot connect to host/port)\n\n\ncurrent node details:\n- node name: 'rabbitmq-cli-62@controller02-rabbit-mq-container-cc0158f6'\n- home dir: /var/lib/rabbitmq\n- cookie hash: rM9slGzmpwUR5dxWDb+W3Q==", "stderr_lines": ["Error: unable to connect to nodes ['rabbit@controller01-rabbit-mq-container-d01ff938']: nodedown"
I have the same issue with an ubuntu-based deployment and OSA 22.0.0.
###
fatal: [infra3_ rabbit_ mq_container- b0997ccc] : FAILED! => {"attempts": 5, "changed": true, "cmd": ["rabbitmqctl", "join_cluster", "rabbit@ infra1- rabbit- mq-container- 6164a74a" ], "delta": "0:00:07.033895", "end": "2021-01-26 09:44:50.831131", "msg": "non-zero return code", "rc": 69, "start": "2021-01-26 09:44:43.797236", "stderr": "Error: unable to perform an operation on node 'rabbit@ infra1- rabbit- mq-container- 6164a74a' . Please see diagnostics information and suggestions below.\n\nMost common reasons for this are:\n\n * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)\n * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)\n * Target node is not running\n\nIn addition to the diagnostics info below:\n\n * See the CLI, clustering and networking guides on https:/ /rabbitmq. com/documentati on.html to learn more\n * Consult server logs on node rabbit@ infra1- rabbit- mq-container- 6164a74a\ n * If target node is configured to use long node names, don't forget to use --longnames with CLI tools\n\ nDIAGNOSTICS\ n====== =====\n\ nattempted to contact: ['rabbit@ infra1- rabbit- mq-container- 6164a74a' ]\n\nrabbit@ infra1- rabbit- mq-container- 6164a74a: \n * unable to connect to epmd (port 4369) on infra1- rabbit- mq-container- 6164a74a: address (cannot connect to host/port) \n\n\nCurrent node details:\n * node name: 'rabbitmqcli- 6827-rabbit@ infra3- rabbit- mq-container- b0997ccc' \n * effective user's home directory: /var/lib/rabbitmq\n * Erlang cookie hash: dhlrREdv0veNngH ERjALlQ= =", "stderr_lines": ["Error: unable to perform an operation on node 'rabbit@ infra1- rabbit- mq-container- 6164a74a' . Please see diagnostics information and suggestions below.", "", "Most common reasons for this are:", "", " * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)", " * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)", " * Target node is not running", "", "In addition to the diagnostics info below:", "", " * See the CLI, clustering and networking guides on https:/ /rabbitmq. com/documentati on.html to learn more", " * Consult server logs on node rabbit@ infra1- rabbit- mq-container- 6164a74a" , " * If target node is configured to use long node names, don't forget to use --longnames with CLI tools", "", "DIAGNOSTICS", "===========", "", "attempted to contact: ['rabbit@ infra1- rabbit- mq-container- 6164a74a' ]", "", "rabbit@ infra1- rabbit- mq-container- 6164a74a: ", " * unable to connect to epmd (port 4369) on infra1- rabbit- mq-container- 6164a74a: address (cannot connect to host/port)", "", "", "Current node details:", " * node name: 'rabbitmqcli- 6827-rabbit@ infra3- rabbit- mq-container- b0997ccc' ", " * effective user's home directory: /var/lib/rabbitmq", " * Erlang cookie hash: dhlrREdv0veNngH ERjALlQ= ="], "stdout": "Clustering node rabbit@ infra3- rabbit- mq-container- b0997ccc with rabbit@ infra1- rabbit- mq-container- 6164a74a" , "stdout_lines": ["Clustering node rabbit@ infra3- rabbit- mq-container- b0997ccc with rabbit@infra...