rabbitmq cluster mistmatch hostname issue












-1















I have deployed openstack-ansible with 3 node rabbitmq cluster and it use lxc to run rabbitmq on top, I am seeing very strange error here when i did rabbitmqctl status command, if you notice its talking to wrong node ostack-controller-01 is host node and not a actual rabbitmq node..



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 ~]# rabbitmqctl status
Status of node 'rabbit@ostack-controller-01' ...
Error: unable to connect to node 'rabbit@ostack-controller-01': nodedown

DIAGNOSTICS
===========

attempted to contact: ['rabbit@ostack-controller-01']

rabbit@ostack-controller-01:
* unable to connect to epmd (port 4369) on ostack-controller-01: address (cannot connect to host/port)

current node details:
- node name: 'rabbitmq-cli-06@ostack-controller-01-rabbit-mq-container-1bf6ede2'
- home dir: /var/lib/rabbitmq
- cookie hash: SssFdXBI7wTevePuCt5d9w==


How do i fix this behavior and tell rabbitmq to talk to correct host which is ostack-controller-01-rabbit-mq-container-1bf6ede2



I have tried forget_cluster_node but no luck, still throwing same error.



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 ~]# rabbitmqctl forget_cluster_node rabbit@ostack-controller-01
Removing node 'rabbit@ostack-controller-01' from cluster ...
Error: unable to connect to node 'rabbit@ostack-controller-01': nodedown

DIAGNOSTICS
===========

attempted to contact: ['rabbit@ostack-controller-01']

rabbit@ostack-controller-01:
* unable to connect to epmd (port 4369) on ostack-controller-01: address (cannot connect to host/port)


current node details:
- node name: 'rabbitmq-cli-39@ostack-controller-01-rabbit-mq-container-1bf6ede2'
- home dir: /var/lib/rabbitmq
- cookie hash: SssFdXBI7wTevePuCt5d9w==


UPDATE: 1



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 rabbitmq]# rabbitmqctl -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 status
Status of node 'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2' ...
[{pid,8720},
{running_applications,
[{rabbitmq_management,"RabbitMQ Management Console","3.6.9"},
{amqp_client,"RabbitMQ AMQP Client","3.6.9"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","3.6.9"},
{rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.6.9"},
{rabbit,"RabbitMQ","3.6.9"},
{rabbit_common,
"Modules shared by rabbitmq-server and rabbitmq-erlang-client",
"3.6.9"},
{xmerl,"XML parser","1.3.14"},
{os_mon,"CPO CXC 138 46","2.4.2"},
{cowboy,"Small, fast, modular HTTP server.","1.0.4"},
{ranch,"Socket acceptor pool for TCP protocols.","1.3.0"},
{ssl,"Erlang/OTP SSL application","8.1.3.1.1"},
{public_key,"Public key infrastructure","1.4"},
{cowlib,"Support library for manipulating Web protocols.","1.0.2"},
{crypto,"CRYPTO","3.7.4"},
{inets,"INETS CXC 138 49","6.3.9"},
{compiler,"ERTS CXC 138 10","7.0.4.1"},
{asn1,"The Erlang ASN1 compiler version 4.0.4","4.0.4"},
{syntax_tools,"Syntax tools","2.1.1"},
{mnesia,"MNESIA CXC 138 12","4.14.3.1"},
{sasl,"SASL CXC 138 11","3.0.3"},
{stdlib,"ERTS CXC 138 10","3.3"},
{kernel,"ERTS CXC 138 10","5.2.0.1"}]},
{os,{unix,linux}},
{erlang_version,
"Erlang/OTP 19 [erts-8.3.5.4] [source] [64-bit] [smp:6:6] [async-threads:128] [hipe] [kernel-poll:true]n"},
{memory,
[{total,64189296},
{connection_readers,179280},
{connection_writers,26568},
{connection_channels,124504},
{connection_other,127440},
{queue_procs,2832},
{queue_slave_procs,0},
{plugins,406280},
{other_proc,21056136},
{mnesia,500680},
{metrics,205984},
{mgmt_db,127256},
{msg_index,47416},
{other_ets,2692192},
{binary,1591656},
{code,24765630},
{atom,1033401},
{other_system,11505193}]},
{alarms,},
{listeners,
[{clustering,25672,"::"},
{amqp,5672,"::"},
{'amqp/ssl',5671,"::"},
{http,15672,"::"}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,6662953369},
{disk_free_limit,50000000},
{disk_free,82822516736},
{file_descriptors,
[{total_limit,65436},
{total_used,5},
{sockets_limit,58890},
{sockets_used,3}]},
{processes,[{limit,1048576},{used,376}]},
{run_queue,0},
{uptime,14},
{kernel,{net_ticktime,60}}]


UPDATE - 2



This is interesting... why following command working but not rabbitmqctl cluster_status?



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 rabbitmq]# rabbitmqctl -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 cluster_status
Cluster status of node 'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2' ...
[{nodes,
[{disc,
['rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2',
'rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',
'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13']}]},
{running_nodes,
['rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',
'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13',
'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2']},
{cluster_name,<<"openstack">>},
{partitions,
[{'rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',
['rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2',
'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13']},
{'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13',
['rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc']}]},
{alarms,
[{'rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',},
{'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13',},
{'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2',}]}]









share|improve this question

























  • What is the output of rabbitmqctl -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 status?

    – Luke Bakken
    Nov 20 '18 at 18:34











  • I have updated my question with your query..

    – Satish
    Nov 20 '18 at 18:47











  • What is the output of hostname , hostname -f and echo $HOSTNAME?

    – Luke Bakken
    Nov 20 '18 at 18:55













  • ostack-controller-01-rabbit-mq-container-1bf6ede2.openstack.local

    – Satish
    Nov 20 '18 at 18:56











  • One more, echo $HOSTNAME

    – Luke Bakken
    Nov 20 '18 at 18:57
















-1















I have deployed openstack-ansible with 3 node rabbitmq cluster and it use lxc to run rabbitmq on top, I am seeing very strange error here when i did rabbitmqctl status command, if you notice its talking to wrong node ostack-controller-01 is host node and not a actual rabbitmq node..



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 ~]# rabbitmqctl status
Status of node 'rabbit@ostack-controller-01' ...
Error: unable to connect to node 'rabbit@ostack-controller-01': nodedown

DIAGNOSTICS
===========

attempted to contact: ['rabbit@ostack-controller-01']

rabbit@ostack-controller-01:
* unable to connect to epmd (port 4369) on ostack-controller-01: address (cannot connect to host/port)

current node details:
- node name: 'rabbitmq-cli-06@ostack-controller-01-rabbit-mq-container-1bf6ede2'
- home dir: /var/lib/rabbitmq
- cookie hash: SssFdXBI7wTevePuCt5d9w==


How do i fix this behavior and tell rabbitmq to talk to correct host which is ostack-controller-01-rabbit-mq-container-1bf6ede2



I have tried forget_cluster_node but no luck, still throwing same error.



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 ~]# rabbitmqctl forget_cluster_node rabbit@ostack-controller-01
Removing node 'rabbit@ostack-controller-01' from cluster ...
Error: unable to connect to node 'rabbit@ostack-controller-01': nodedown

DIAGNOSTICS
===========

attempted to contact: ['rabbit@ostack-controller-01']

rabbit@ostack-controller-01:
* unable to connect to epmd (port 4369) on ostack-controller-01: address (cannot connect to host/port)


current node details:
- node name: 'rabbitmq-cli-39@ostack-controller-01-rabbit-mq-container-1bf6ede2'
- home dir: /var/lib/rabbitmq
- cookie hash: SssFdXBI7wTevePuCt5d9w==


UPDATE: 1



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 rabbitmq]# rabbitmqctl -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 status
Status of node 'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2' ...
[{pid,8720},
{running_applications,
[{rabbitmq_management,"RabbitMQ Management Console","3.6.9"},
{amqp_client,"RabbitMQ AMQP Client","3.6.9"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","3.6.9"},
{rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.6.9"},
{rabbit,"RabbitMQ","3.6.9"},
{rabbit_common,
"Modules shared by rabbitmq-server and rabbitmq-erlang-client",
"3.6.9"},
{xmerl,"XML parser","1.3.14"},
{os_mon,"CPO CXC 138 46","2.4.2"},
{cowboy,"Small, fast, modular HTTP server.","1.0.4"},
{ranch,"Socket acceptor pool for TCP protocols.","1.3.0"},
{ssl,"Erlang/OTP SSL application","8.1.3.1.1"},
{public_key,"Public key infrastructure","1.4"},
{cowlib,"Support library for manipulating Web protocols.","1.0.2"},
{crypto,"CRYPTO","3.7.4"},
{inets,"INETS CXC 138 49","6.3.9"},
{compiler,"ERTS CXC 138 10","7.0.4.1"},
{asn1,"The Erlang ASN1 compiler version 4.0.4","4.0.4"},
{syntax_tools,"Syntax tools","2.1.1"},
{mnesia,"MNESIA CXC 138 12","4.14.3.1"},
{sasl,"SASL CXC 138 11","3.0.3"},
{stdlib,"ERTS CXC 138 10","3.3"},
{kernel,"ERTS CXC 138 10","5.2.0.1"}]},
{os,{unix,linux}},
{erlang_version,
"Erlang/OTP 19 [erts-8.3.5.4] [source] [64-bit] [smp:6:6] [async-threads:128] [hipe] [kernel-poll:true]n"},
{memory,
[{total,64189296},
{connection_readers,179280},
{connection_writers,26568},
{connection_channels,124504},
{connection_other,127440},
{queue_procs,2832},
{queue_slave_procs,0},
{plugins,406280},
{other_proc,21056136},
{mnesia,500680},
{metrics,205984},
{mgmt_db,127256},
{msg_index,47416},
{other_ets,2692192},
{binary,1591656},
{code,24765630},
{atom,1033401},
{other_system,11505193}]},
{alarms,},
{listeners,
[{clustering,25672,"::"},
{amqp,5672,"::"},
{'amqp/ssl',5671,"::"},
{http,15672,"::"}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,6662953369},
{disk_free_limit,50000000},
{disk_free,82822516736},
{file_descriptors,
[{total_limit,65436},
{total_used,5},
{sockets_limit,58890},
{sockets_used,3}]},
{processes,[{limit,1048576},{used,376}]},
{run_queue,0},
{uptime,14},
{kernel,{net_ticktime,60}}]


UPDATE - 2



This is interesting... why following command working but not rabbitmqctl cluster_status?



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 rabbitmq]# rabbitmqctl -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 cluster_status
Cluster status of node 'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2' ...
[{nodes,
[{disc,
['rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2',
'rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',
'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13']}]},
{running_nodes,
['rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',
'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13',
'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2']},
{cluster_name,<<"openstack">>},
{partitions,
[{'rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',
['rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2',
'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13']},
{'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13',
['rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc']}]},
{alarms,
[{'rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',},
{'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13',},
{'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2',}]}]









share|improve this question

























  • What is the output of rabbitmqctl -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 status?

    – Luke Bakken
    Nov 20 '18 at 18:34











  • I have updated my question with your query..

    – Satish
    Nov 20 '18 at 18:47











  • What is the output of hostname , hostname -f and echo $HOSTNAME?

    – Luke Bakken
    Nov 20 '18 at 18:55













  • ostack-controller-01-rabbit-mq-container-1bf6ede2.openstack.local

    – Satish
    Nov 20 '18 at 18:56











  • One more, echo $HOSTNAME

    – Luke Bakken
    Nov 20 '18 at 18:57














-1












-1








-1








I have deployed openstack-ansible with 3 node rabbitmq cluster and it use lxc to run rabbitmq on top, I am seeing very strange error here when i did rabbitmqctl status command, if you notice its talking to wrong node ostack-controller-01 is host node and not a actual rabbitmq node..



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 ~]# rabbitmqctl status
Status of node 'rabbit@ostack-controller-01' ...
Error: unable to connect to node 'rabbit@ostack-controller-01': nodedown

DIAGNOSTICS
===========

attempted to contact: ['rabbit@ostack-controller-01']

rabbit@ostack-controller-01:
* unable to connect to epmd (port 4369) on ostack-controller-01: address (cannot connect to host/port)

current node details:
- node name: 'rabbitmq-cli-06@ostack-controller-01-rabbit-mq-container-1bf6ede2'
- home dir: /var/lib/rabbitmq
- cookie hash: SssFdXBI7wTevePuCt5d9w==


How do i fix this behavior and tell rabbitmq to talk to correct host which is ostack-controller-01-rabbit-mq-container-1bf6ede2



I have tried forget_cluster_node but no luck, still throwing same error.



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 ~]# rabbitmqctl forget_cluster_node rabbit@ostack-controller-01
Removing node 'rabbit@ostack-controller-01' from cluster ...
Error: unable to connect to node 'rabbit@ostack-controller-01': nodedown

DIAGNOSTICS
===========

attempted to contact: ['rabbit@ostack-controller-01']

rabbit@ostack-controller-01:
* unable to connect to epmd (port 4369) on ostack-controller-01: address (cannot connect to host/port)


current node details:
- node name: 'rabbitmq-cli-39@ostack-controller-01-rabbit-mq-container-1bf6ede2'
- home dir: /var/lib/rabbitmq
- cookie hash: SssFdXBI7wTevePuCt5d9w==


UPDATE: 1



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 rabbitmq]# rabbitmqctl -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 status
Status of node 'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2' ...
[{pid,8720},
{running_applications,
[{rabbitmq_management,"RabbitMQ Management Console","3.6.9"},
{amqp_client,"RabbitMQ AMQP Client","3.6.9"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","3.6.9"},
{rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.6.9"},
{rabbit,"RabbitMQ","3.6.9"},
{rabbit_common,
"Modules shared by rabbitmq-server and rabbitmq-erlang-client",
"3.6.9"},
{xmerl,"XML parser","1.3.14"},
{os_mon,"CPO CXC 138 46","2.4.2"},
{cowboy,"Small, fast, modular HTTP server.","1.0.4"},
{ranch,"Socket acceptor pool for TCP protocols.","1.3.0"},
{ssl,"Erlang/OTP SSL application","8.1.3.1.1"},
{public_key,"Public key infrastructure","1.4"},
{cowlib,"Support library for manipulating Web protocols.","1.0.2"},
{crypto,"CRYPTO","3.7.4"},
{inets,"INETS CXC 138 49","6.3.9"},
{compiler,"ERTS CXC 138 10","7.0.4.1"},
{asn1,"The Erlang ASN1 compiler version 4.0.4","4.0.4"},
{syntax_tools,"Syntax tools","2.1.1"},
{mnesia,"MNESIA CXC 138 12","4.14.3.1"},
{sasl,"SASL CXC 138 11","3.0.3"},
{stdlib,"ERTS CXC 138 10","3.3"},
{kernel,"ERTS CXC 138 10","5.2.0.1"}]},
{os,{unix,linux}},
{erlang_version,
"Erlang/OTP 19 [erts-8.3.5.4] [source] [64-bit] [smp:6:6] [async-threads:128] [hipe] [kernel-poll:true]n"},
{memory,
[{total,64189296},
{connection_readers,179280},
{connection_writers,26568},
{connection_channels,124504},
{connection_other,127440},
{queue_procs,2832},
{queue_slave_procs,0},
{plugins,406280},
{other_proc,21056136},
{mnesia,500680},
{metrics,205984},
{mgmt_db,127256},
{msg_index,47416},
{other_ets,2692192},
{binary,1591656},
{code,24765630},
{atom,1033401},
{other_system,11505193}]},
{alarms,},
{listeners,
[{clustering,25672,"::"},
{amqp,5672,"::"},
{'amqp/ssl',5671,"::"},
{http,15672,"::"}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,6662953369},
{disk_free_limit,50000000},
{disk_free,82822516736},
{file_descriptors,
[{total_limit,65436},
{total_used,5},
{sockets_limit,58890},
{sockets_used,3}]},
{processes,[{limit,1048576},{used,376}]},
{run_queue,0},
{uptime,14},
{kernel,{net_ticktime,60}}]


UPDATE - 2



This is interesting... why following command working but not rabbitmqctl cluster_status?



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 rabbitmq]# rabbitmqctl -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 cluster_status
Cluster status of node 'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2' ...
[{nodes,
[{disc,
['rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2',
'rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',
'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13']}]},
{running_nodes,
['rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',
'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13',
'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2']},
{cluster_name,<<"openstack">>},
{partitions,
[{'rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',
['rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2',
'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13']},
{'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13',
['rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc']}]},
{alarms,
[{'rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',},
{'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13',},
{'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2',}]}]









share|improve this question
















I have deployed openstack-ansible with 3 node rabbitmq cluster and it use lxc to run rabbitmq on top, I am seeing very strange error here when i did rabbitmqctl status command, if you notice its talking to wrong node ostack-controller-01 is host node and not a actual rabbitmq node..



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 ~]# rabbitmqctl status
Status of node 'rabbit@ostack-controller-01' ...
Error: unable to connect to node 'rabbit@ostack-controller-01': nodedown

DIAGNOSTICS
===========

attempted to contact: ['rabbit@ostack-controller-01']

rabbit@ostack-controller-01:
* unable to connect to epmd (port 4369) on ostack-controller-01: address (cannot connect to host/port)

current node details:
- node name: 'rabbitmq-cli-06@ostack-controller-01-rabbit-mq-container-1bf6ede2'
- home dir: /var/lib/rabbitmq
- cookie hash: SssFdXBI7wTevePuCt5d9w==


How do i fix this behavior and tell rabbitmq to talk to correct host which is ostack-controller-01-rabbit-mq-container-1bf6ede2



I have tried forget_cluster_node but no luck, still throwing same error.



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 ~]# rabbitmqctl forget_cluster_node rabbit@ostack-controller-01
Removing node 'rabbit@ostack-controller-01' from cluster ...
Error: unable to connect to node 'rabbit@ostack-controller-01': nodedown

DIAGNOSTICS
===========

attempted to contact: ['rabbit@ostack-controller-01']

rabbit@ostack-controller-01:
* unable to connect to epmd (port 4369) on ostack-controller-01: address (cannot connect to host/port)


current node details:
- node name: 'rabbitmq-cli-39@ostack-controller-01-rabbit-mq-container-1bf6ede2'
- home dir: /var/lib/rabbitmq
- cookie hash: SssFdXBI7wTevePuCt5d9w==


UPDATE: 1



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 rabbitmq]# rabbitmqctl -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 status
Status of node 'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2' ...
[{pid,8720},
{running_applications,
[{rabbitmq_management,"RabbitMQ Management Console","3.6.9"},
{amqp_client,"RabbitMQ AMQP Client","3.6.9"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","3.6.9"},
{rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.6.9"},
{rabbit,"RabbitMQ","3.6.9"},
{rabbit_common,
"Modules shared by rabbitmq-server and rabbitmq-erlang-client",
"3.6.9"},
{xmerl,"XML parser","1.3.14"},
{os_mon,"CPO CXC 138 46","2.4.2"},
{cowboy,"Small, fast, modular HTTP server.","1.0.4"},
{ranch,"Socket acceptor pool for TCP protocols.","1.3.0"},
{ssl,"Erlang/OTP SSL application","8.1.3.1.1"},
{public_key,"Public key infrastructure","1.4"},
{cowlib,"Support library for manipulating Web protocols.","1.0.2"},
{crypto,"CRYPTO","3.7.4"},
{inets,"INETS CXC 138 49","6.3.9"},
{compiler,"ERTS CXC 138 10","7.0.4.1"},
{asn1,"The Erlang ASN1 compiler version 4.0.4","4.0.4"},
{syntax_tools,"Syntax tools","2.1.1"},
{mnesia,"MNESIA CXC 138 12","4.14.3.1"},
{sasl,"SASL CXC 138 11","3.0.3"},
{stdlib,"ERTS CXC 138 10","3.3"},
{kernel,"ERTS CXC 138 10","5.2.0.1"}]},
{os,{unix,linux}},
{erlang_version,
"Erlang/OTP 19 [erts-8.3.5.4] [source] [64-bit] [smp:6:6] [async-threads:128] [hipe] [kernel-poll:true]n"},
{memory,
[{total,64189296},
{connection_readers,179280},
{connection_writers,26568},
{connection_channels,124504},
{connection_other,127440},
{queue_procs,2832},
{queue_slave_procs,0},
{plugins,406280},
{other_proc,21056136},
{mnesia,500680},
{metrics,205984},
{mgmt_db,127256},
{msg_index,47416},
{other_ets,2692192},
{binary,1591656},
{code,24765630},
{atom,1033401},
{other_system,11505193}]},
{alarms,},
{listeners,
[{clustering,25672,"::"},
{amqp,5672,"::"},
{'amqp/ssl',5671,"::"},
{http,15672,"::"}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,6662953369},
{disk_free_limit,50000000},
{disk_free,82822516736},
{file_descriptors,
[{total_limit,65436},
{total_used,5},
{sockets_limit,58890},
{sockets_used,3}]},
{processes,[{limit,1048576},{used,376}]},
{run_queue,0},
{uptime,14},
{kernel,{net_ticktime,60}}]


UPDATE - 2



This is interesting... why following command working but not rabbitmqctl cluster_status?



[root@ostack-controller-01-rabbit-mq-container-1bf6ede2 rabbitmq]# rabbitmqctl -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 cluster_status
Cluster status of node 'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2' ...
[{nodes,
[{disc,
['rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2',
'rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',
'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13']}]},
{running_nodes,
['rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',
'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13',
'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2']},
{cluster_name,<<"openstack">>},
{partitions,
[{'rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',
['rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2',
'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13']},
{'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13',
['rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc']}]},
{alarms,
[{'rabbit@ostack-controller-02-rabbit-mq-container-d510bdfc',},
{'rabbit@ostack-controller-03-rabbit-mq-container-c482ee13',},
{'rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2',}]}]






linux rabbitmq openstack






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 '18 at 18:47







Satish

















asked Nov 20 '18 at 18:25









SatishSatish

7,7132066113




7,7132066113













  • What is the output of rabbitmqctl -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 status?

    – Luke Bakken
    Nov 20 '18 at 18:34











  • I have updated my question with your query..

    – Satish
    Nov 20 '18 at 18:47











  • What is the output of hostname , hostname -f and echo $HOSTNAME?

    – Luke Bakken
    Nov 20 '18 at 18:55













  • ostack-controller-01-rabbit-mq-container-1bf6ede2.openstack.local

    – Satish
    Nov 20 '18 at 18:56











  • One more, echo $HOSTNAME

    – Luke Bakken
    Nov 20 '18 at 18:57



















  • What is the output of rabbitmqctl -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 status?

    – Luke Bakken
    Nov 20 '18 at 18:34











  • I have updated my question with your query..

    – Satish
    Nov 20 '18 at 18:47











  • What is the output of hostname , hostname -f and echo $HOSTNAME?

    – Luke Bakken
    Nov 20 '18 at 18:55













  • ostack-controller-01-rabbit-mq-container-1bf6ede2.openstack.local

    – Satish
    Nov 20 '18 at 18:56











  • One more, echo $HOSTNAME

    – Luke Bakken
    Nov 20 '18 at 18:57

















What is the output of rabbitmqctl -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 status?

– Luke Bakken
Nov 20 '18 at 18:34





What is the output of rabbitmqctl -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 status?

– Luke Bakken
Nov 20 '18 at 18:34













I have updated my question with your query..

– Satish
Nov 20 '18 at 18:47





I have updated my question with your query..

– Satish
Nov 20 '18 at 18:47













What is the output of hostname , hostname -f and echo $HOSTNAME?

– Luke Bakken
Nov 20 '18 at 18:55







What is the output of hostname , hostname -f and echo $HOSTNAME?

– Luke Bakken
Nov 20 '18 at 18:55















ostack-controller-01-rabbit-mq-container-1bf6ede2.openstack.local

– Satish
Nov 20 '18 at 18:56





ostack-controller-01-rabbit-mq-container-1bf6ede2.openstack.local

– Satish
Nov 20 '18 at 18:56













One more, echo $HOSTNAME

– Luke Bakken
Nov 20 '18 at 18:57





One more, echo $HOSTNAME

– Luke Bakken
Nov 20 '18 at 18:57












1 Answer
1






active

oldest

votes


















0














First things first, RabbitMQ 3.6.9 is old and you should be using the latest version.



Having said that, that's not the issue. The output of echo $HOSTNAME is this:



ostack-controller-01.foo.example.com


So, when rabbitmqctl status runs, it uses this code to determine the node name to which to connect to. Since the HOSTNAME variable is set, that is used to determine the node name, and rabbitmqctl tries to use rabbit@ostack-controller-01, which fails.



You can continue to use the -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 argument to rabbitmqctl to work around this. Or, you can create the /etc/rabbitmq/rabbitmq-env.conf file with this content:



NODENAME=rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2


Then, rabbitmqctl status and other rabbitmqctl commands should work. You would then repeat this process on every node, using that node's correct name in /etc/rabbitmq/rabbitmq-env.conf





NOTE: the RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53399257%2frabbitmq-cluster-mistmatch-hostname-issue%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    First things first, RabbitMQ 3.6.9 is old and you should be using the latest version.



    Having said that, that's not the issue. The output of echo $HOSTNAME is this:



    ostack-controller-01.foo.example.com


    So, when rabbitmqctl status runs, it uses this code to determine the node name to which to connect to. Since the HOSTNAME variable is set, that is used to determine the node name, and rabbitmqctl tries to use rabbit@ostack-controller-01, which fails.



    You can continue to use the -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 argument to rabbitmqctl to work around this. Or, you can create the /etc/rabbitmq/rabbitmq-env.conf file with this content:



    NODENAME=rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2


    Then, rabbitmqctl status and other rabbitmqctl commands should work. You would then repeat this process on every node, using that node's correct name in /etc/rabbitmq/rabbitmq-env.conf





    NOTE: the RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow.






    share|improve this answer




























      0














      First things first, RabbitMQ 3.6.9 is old and you should be using the latest version.



      Having said that, that's not the issue. The output of echo $HOSTNAME is this:



      ostack-controller-01.foo.example.com


      So, when rabbitmqctl status runs, it uses this code to determine the node name to which to connect to. Since the HOSTNAME variable is set, that is used to determine the node name, and rabbitmqctl tries to use rabbit@ostack-controller-01, which fails.



      You can continue to use the -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 argument to rabbitmqctl to work around this. Or, you can create the /etc/rabbitmq/rabbitmq-env.conf file with this content:



      NODENAME=rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2


      Then, rabbitmqctl status and other rabbitmqctl commands should work. You would then repeat this process on every node, using that node's correct name in /etc/rabbitmq/rabbitmq-env.conf





      NOTE: the RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow.






      share|improve this answer


























        0












        0








        0







        First things first, RabbitMQ 3.6.9 is old and you should be using the latest version.



        Having said that, that's not the issue. The output of echo $HOSTNAME is this:



        ostack-controller-01.foo.example.com


        So, when rabbitmqctl status runs, it uses this code to determine the node name to which to connect to. Since the HOSTNAME variable is set, that is used to determine the node name, and rabbitmqctl tries to use rabbit@ostack-controller-01, which fails.



        You can continue to use the -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 argument to rabbitmqctl to work around this. Or, you can create the /etc/rabbitmq/rabbitmq-env.conf file with this content:



        NODENAME=rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2


        Then, rabbitmqctl status and other rabbitmqctl commands should work. You would then repeat this process on every node, using that node's correct name in /etc/rabbitmq/rabbitmq-env.conf





        NOTE: the RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow.






        share|improve this answer













        First things first, RabbitMQ 3.6.9 is old and you should be using the latest version.



        Having said that, that's not the issue. The output of echo $HOSTNAME is this:



        ostack-controller-01.foo.example.com


        So, when rabbitmqctl status runs, it uses this code to determine the node name to which to connect to. Since the HOSTNAME variable is set, that is used to determine the node name, and rabbitmqctl tries to use rabbit@ostack-controller-01, which fails.



        You can continue to use the -n rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2 argument to rabbitmqctl to work around this. Or, you can create the /etc/rabbitmq/rabbitmq-env.conf file with this content:



        NODENAME=rabbit@ostack-controller-01-rabbit-mq-container-1bf6ede2


        Then, rabbitmqctl status and other rabbitmqctl commands should work. You would then repeat this process on every node, using that node's correct name in /etc/rabbitmq/rabbitmq-env.conf





        NOTE: the RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 20 '18 at 19:12









        Luke BakkenLuke Bakken

        2,8672814




        2,8672814






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53399257%2frabbitmq-cluster-mistmatch-hostname-issue%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown