Ask Your Question
0

Devstack kilo installation on Ubuntu 15.04 fails due to rabbitmq

asked 2015-05-25 01:01:57 -0500

Veena gravatar image

updated 2015-05-25 04:35:27 -0500

Hi, I'm installing devstack kilo on Ubuntu 15.04. It fails while setting password for rabbitmq.

2015-05-24 21:42:00.407 | + is_ubuntu
2015-05-24 21:42:00.407 | + [[ -z deb ]]
2015-05-24 21:42:00.407 | + '[' deb = deb ']'
2015-05-24 21:42:00.407 | + sudo /usr/sbin/service rabbitmq-server restart
2015-05-24 21:42:02.293 | + rabbit_setuser stackrabbit password
2015-05-24 21:42:02.293 | + local user=stackrabbit pass=password found= out=
2015-05-24 21:42:02.294 | ++ sudo rabbitmqctl list_users
2015-05-24 21:42:02.683 | Error: rabbit application is not running on node rabbit@nfvo-dev-4.
2015-05-24 21:42:02.683 |  * Suggestion: start it with "rabbitmqctl start_app" and try again
2015-05-24 21:42:02.688 | + out=
2015-05-24 21:42:02.688 | + echo 'failed to list users'
2015-05-24 21:42:02.688 | failed to list users
2015-05-24 21:42:02.688 | + return 1
2015-05-24 21:42:02.688 | + rc=1
2015-05-24 21:42:02.688 | + '[' 1 -ne 0 ']'
2015-05-24 21:42:02.688 | + continue
2015-05-24 21:42:02.688 | + for i in '`seq 10`'
2015-05-24 21:42:02.688 | + local rc=0
2015-05-24 21:42:02.688 | + [[ 10 -eq 10 ]]
2015-05-24 21:42:02.688 | + die 201 'Failed to set rabbitmq password'
2015-05-24 21:42:02.688 | + local exitcode=0
2015-05-24 21:42:02.688 | [Call Trace]
2015-05-24 21:42:02.688 | ./stack.sh:904:restart_rpc_backend
2015-05-24 21:42:02.688 | /home/nfvo/devstack/lib/rpc_backend:201:die
2015-05-24 21:42:02.691 | [ERROR] /home/nfvo/devstack/lib/rpc_backend:201 Failed to set rabbitmq password
2015-05-24 21:42:03.694 | Error on exit

As per suggestions in google, I checked hostname in /etc/hosts and /etc/hostname, both are same. Also .erlang.cookie is same in /var/lib/rabbitmq and in the root directory. Using rabbitmqctl, I can see the status that it is running.

nfvo@nfvo-dev-4:~/devstack$ sudo rabbitmqctl status
Status of node 'rabbit@nfvo-dev-4' ...
[{pid,31754},
 {running_applications,[{rabbit,"RabbitMQ","3.4.3"},
                        {os_mon,"CPO  CXC 138 46","2.3"},
                        {mnesia,"MNESIA  CXC 138 12","4.12.3"},
                        {xmerl,"XML parser","1.3.7"},
                        {sasl,"SASL  CXC 138 11","2.4.1"},
                        {stdlib,"ERTS  CXC 138 10","2.2"},
                        {kernel,"ERTS  CXC 138 10","3.0.3"}]},
 {os,{unix,linux}},
 {erlang_version,"Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:24:24] [async-threads:30] [kernel-poll:true]\n"},
 {memory,[{total,44914192},
          {connection_readers,0},
          {connection_writers,0},
          {connection_channels,0},
          {connection_other,2704},
          {queue_procs,2704},
          {queue_slave_procs,0},
          {plugins,0},
          {other_proc,14968032},
          {mnesia,60176},
          {mgmt_db,0},
          {msg_index,46784},
          {other_ets,744600},
          {binary,14472},
          {code,16612392},
          {atom,602729},
          {other_system,11859599}]},
 {alarms,[]},
 {listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},
 {vm_memory_high_watermark,0.4},
 {vm_memory_limit,54067725926},
 {disk_free_limit,50000000},
 {disk_free,986120925184},
 {file_descriptors,[{total_limit,65436},
                    {total_used,3},
                    {sockets_limit,58890},
                    {sockets_used,1}]},
 {processes,[{limit,1048576},{used,144}]},
 {run_queue,0},
 {uptime,1179}]

/var/log/rabbitmq/startup_log is

nfvo@nfvo-dev-4:~/devstack$ tail /var/log/rabbitmq/startup_log

              RabbitMQ 3.4.3. Copyright (C) 2007-2014 GoPivotal, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: /var/log/rabbitmq/rabbit@nfvo-dev-4.log
  ######  ##        /var/log/rabbitmq/rabbit@nfvo-dev-4-sasl.log
  ##########
              Starting broker... completed with 0 plugins.

Any ... (more)

edit retag flag offensive close merge delete

Comments

1

This is the command run by stack.sh. Can you run this and check?

stack@ubuntuvm:~/devstack$ sudo rabbitmqctl change_password guest <password>
Changing password for user "guest" ...
...done.
uts9 gravatar imageuts9 ( 2015-05-25 03:45:55 -0500 )edit

yes, I could change the password using the above command. I can list_users and run all commands.

Veena gravatar imageVeena ( 2015-05-25 04:34:25 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-05-25 04:42:11 -0500

uts9 gravatar image

May be a bug. But DevStack requires Ubuntu 14.04.

You can skip the error by commenting the message in lib/rpc_backend

 # change the rabbit password since the default is "guest"
 sudo rabbitmqctl change_password guest $RABBIT_PASSWORD && break
 ###comment this  line#####   [[ $i -eq "10" ]] && die $LINENO "Failed to set rabbitmq password"
edit flag offensive delete link more
0

answered 2015-05-25 05:19:02 -0500

Veena gravatar image

I could solve this error. As per the patch https://review.openstack.org/#/c/168705/, the check for fedora and suse was removed assuming ubuntu should also restart rabbitmq. This was causing it to fail. I reverted the changes, so that it'll not try for restarting rabbitmq. It worked for me. Though it is not the correct way, since the change was merged already, I choose to proceed by reverting the change :)

edit flag offensive delete link more

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: 2015-05-25 01:01:57 -0500

Seen: 2,337 times

Last updated: May 25 '15