maas fails because rabbitmq does not update new MAAS address

Bug #1320724 reported by Tranhoangdainguyen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
New
Undecided
Unassigned

Bug Description

so by some mistake, when I install maas from cd, i enter the wrong static ip (connect to internet) on the eth0,
thus I cannot connect to the MAAS GUI, it shows internal error page

something like this:
correct: 163.180.117.47
wrong enter: 163.180.177.47 (so it should be 117)

after the os installation, i quickly go and use to fix the correct ip
1 - sudo dpkg-reconfigure maas-cluster-controller (http://192.168.117.47/MAAS)
2 - sudo dpkg-reconfigure maas-region-controller (http://192.168.117.47 )

When I issue command 1, it shows apach2 restart normally
But when I issue command 2, it shows rabbit mq error, and rabbitmq still using the wrong ip address.

here is the log from celery-region.log
[2014-05-18 18:06:54,488: ERROR/MainProcess] consumer: Cannot connect to amqp://maas_workers@163.180.177.47:5672//maas_workers: [Errno 113] No route to host.
Trying again in 32.00 seconds...

[2014-05-18 18:07:26,526: ERROR/MainProcess] consumer: Cannot connect to amqp://maas_workers@163.180.177.47:5672//maas_workers: [Errno 113] No route to host.
Trying again in 32.00 seconds...

[2014-05-18 18:07:58,563: ERROR/MainProcess] consumer: Cannot connect to amqp://maas_workers@163.180.177.47:5672//maas_workers: [Errno 113] No route to host.
Trying again in 32.00 seconds...

[2014-05-18 18:08:30,602: ERROR/MainProcess] consumer: Cannot connect to amqp://maas_workers@163.180.177.47:5672//maas_workers: [Errno 113] No route to host.
Trying again in 32.00 seconds...

[2014-05-18 18:09:02,640: ERROR/MainProcess] consumer: Cannot connect to amqp://maas_workers@163.180.177.47:5672//maas_workers: [Errno 113] No route to host.
Trying again in 32.00 seconds...

[2014-05-18 18:09:34,679: ERROR/MainProcess] consumer: Cannot connect to amqp://maas_workers@163.180.177.47:5672//maas_workers: [Errno 113] No route to host.
Trying again in 32.00 seconds...

[2014-05-18 18:10:06,718: ERROR/MainProcess] consumer: Cannot connect to amqp://maas_workers@163.180.177.47:5672//maas_workers: [Errno 113] No route to host.
Trying again in 32.00 seconds...

[2014-05-18 18:10:38,756: ERROR/MainProcess] consumer: Cannot connect to amqp://maas_workers@163.180.177.47:5672//maas_workers: [Errno 113] No route to host.
Trying again in 32.00 seconds...

[2014-05-18 18:11:10,796: ERROR/MainProcess] consumer: Cannot connect to amqp://maas_workers@163.180.177.47:5672//maas_workers: [Errno 113] No route to host.
Trying again in 32.00 seconds...

[2014-05-18 18:11:42,836: ERROR/MainProcess] consumer: Cannot connect to amqp://maas_workers@163.180.177.47:5672//maas_workers: [Errno 113] No route to host.
Trying again in 32.00 seconds...

[2014-05-18 18:12:14,875: ERROR/MainProcess] consumer: Cannot connect to amqp://maas_workers@163.180.177.47:5672//maas_workers: [Errno 113] No route to host.
Trying again in 32.00 seconds...

[2014-05-18 18:12:28,576: INFO/MainProcess] beat: Shutting down...

Revision history for this message
Tranhoangdainguyen (tranhoangdainguyen) wrote :
Revision history for this message
Tranhoangdainguyen (tranhoangdainguyen) wrote :
Download full text (3.4 KiB)

here is other errors i see:

icns@ubuntu-maas:/etc/maas$ sudo maas-region-admin runserver
Traceback (most recent call last):
  File "/usr/bin/django-admin", line 5, in <module>
    management.execute_from_command_line()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/django/core/management/commands/runserver.py", line 79, in handle
    self.run(*args, **options)
  File "/usr/lib/python2.7/dist-packages/maasserver/management/commands/runserver.py", line 74, in run
    start_up()
  File "/usr/lib/python2.7/dist-packages/maasserver/start_up.py", line 59, in start_up
    post_start_up()
  File "/usr/lib/python2.7/dist-packages/maasserver/start_up.py", line 96, in post_start_up
    NodeGroup.objects.refresh_workers()
  File "/usr/lib/python2.7/dist-packages/maasserver/models/nodegroup.py", line 123, in refresh_workers
    refresh_worker(nodegroup)
  File "/usr/lib/python2.7/dist-packages/maasserver/refresh_worker.py", line 41, in refresh_worker
    refresh_secrets.apply_async(queue=nodegroup.work_queue, kwargs=items)
  File "/usr/lib/python2.7/dist-packages/celery/app/task.py", line 554, in apply_async
    **dict(self._get_exec_options(), **options)
  File "/usr/lib/python2.7/dist-packages/celery/app/base.py", line 320, in send_task
    reply_to=reply_to or self.oid, **options
  File "/usr/lib/python2.7/dist-packages/celery/app/amqp.py", line 299, in publish_task
    **kwargs
  File "/usr/lib/python2.7/dist-packages/kombu/messaging.py", line 166, in publish
    routing_key, mandatory, immediate, exchange, declare)
  File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 461, in _ensured
    interval_max)
  File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 373, in ensure_connection
    interval_start, interval_step, interval_max, callback)
  File "/usr/lib/python2.7/dist-packages/kombu/utils/__init__.py", line 228, in retry_over_time
    return fun(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 244, in connect
    return self.connection
  File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 751, in connection
    self._connection = self._establish_connection()
  File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 710, in _establish_connection
    conn = self.transport.establish_connection()
  File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqp.py", line 111, in establish_connection
    conn = self.Connection(**opts)
  File "/usr/lib/python2.7/dist-packages/amqp/connection.py", line 148, in __init__
    self.transport = create_transport(host, connect_timeout, ssl)
  File "/usr/lib/pytho...

Read more...

Revision history for this message
gcc (chris+ubuntu-qwirx) wrote :

This is NOT a duplicate of bug #1300507. It has nothing to do with changing the RabbitMQ password!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.