Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

name rabbitmq nodes with short hostnames (bz1119429) #313

Merged
merged 1 commit into from
Jul 15, 2014

Conversation

jeckersb
Copy link

RabbitMQ node names must be short names, not fqdn. For example,
'node1.example.org' is invalid, but 'node1' is valid. This strips off
the domain part of the hostname when creating the cluster node names.

RabbitMQ node names must be short names, not fqdn.  For example,
'node1.example.org' is invalid, but 'node1' is valid.  This strips off
the domain part of the hostname when creating the cluster node names.
@cwolferh
Copy link

+1
Works for me:

# grep node /etc/rabbitmq/*
/etc/rabbitmq/rabbitmq.config:    {cluster_nodes, {['rabbit@c1a1', 'rabbit@c1a2', 'rabbit@c1a3'], disc}},

@jguiditta
Copy link
Member

Will this work if lb_backend_server_names is already a short name? for instance if it started 'c1a1'?

@jeckersb
Copy link
Author

@jguiditta works -

$nodes = ['node1.example.org', 'node2.example.org']
$short = regsubst($nodes, '\..*', '')
notice ("short=${short}")
$even_shorter = regsubst($short, '\..*', '')
notice ("even_shorter=${even_shorter}")

=>

Notice: Scope(Class[main]): short=node1node2
Notice: Scope(Class[main]): even_shorter=node1node2

@jguiditta
Copy link
Member

Awesome, thanks for verifying that for me!

jguiditta added a commit that referenced this pull request Jul 15, 2014
name rabbitmq nodes with short hostnames (bz1119429)
@jguiditta jguiditta merged commit 870d01e into redhat-openstack:master Jul 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants