The BROKER_URL sent to a cluster controller has its hostname set 'localhost'.

Bug #1065080 reported by Raphaël Badin on 2012-10-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas (Ubuntu)
Medium
Andres Rodriguez
Quantal
Medium
Andres Rodriguez

Bug Description

In debian/maas-region-controller.postinst:

[...]
configure_maas_workers_rabbitmq_user() {
        local workers_user="maas_workers"
        local workers_pass="$(pwgen -s 20)"
        local workers_vhost="/maas_workers"
        local amqp_host="localhost"
        local amqp_port="5672"
[...]

The host part of the BROKER_URL is 'localhost' meaning that it will work fine when a local cluster controller will use that to connect to rabbitMQ, but it won't work for cluster controllers installed on a different machine.

Related branches

Raphaël Badin (rvb) on 2012-10-10
affects: maas → maas (Ubuntu)
Dave Walker (davewalker) on 2012-10-10
Changed in maas (Ubuntu):
importance: Critical → Medium
milestone: none → ubuntu-12.10
Raphaël Badin (rvb) on 2012-10-10
Changed in maas:
assignee: nobody → Raphaël Badin (rvb)
importance: Undecided → Critical
status: New → In Progress
summary: - The host in BROKER_URL is hardcoded to 'localhost'.
+ The BROKER_URL sent to a cluster controller has its hostname set
+ 'localhost'.
Changed in maas:
milestone: none → 12.10
Raphaël Badin (rvb) wrote :

After a discussion with Julian, we decided that this should be fixed in the packaging: instead of using 'localhost' (in debian/maas-region-controller.postinst), the packaging script should use the IP address of the default route (just like what it does to populate DEFAULT_MAAS_URL).

no longer affects: maas
Changed in maas (Ubuntu Quantal):
assignee: nobody → Andres Rodriguez (andreserl)
Changed in maas (Ubuntu Quantal):
status: Triaged → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package maas - 0.1+bzr1264+dfsg-0ubuntu1

---------------
maas (0.1+bzr1264+dfsg-0ubuntu1) quantal; urgency=low

  * New upstream release.

  [ Raphaël Badin ]
  * debian/maas-region-controller.postinst: Enable proxy_http module.
  * debian/maas-cluster-controller.postinst: Create /var/lib/maas. (LP: #1065062)

  [ Andres Rodriguez ]
  * Install maas-provision with python-maas-provisioningserver (LP: #1065171):
    - debian/python-maas-provisioningserver.install: Install
    - debian/control: Add Conflicts/Replaces with maas-cluster-controller
      to handle upgrades.
  * debian/patches/04-fix-ipmi-enlistment.patch: Drop. Merged Upstream.
  * debian/control: Depends on maas-region-controller for maas-dns.
  * debian/maas-region-controller.postinst: Set the correct host for
    BROKER_URL (LP: #1065080)
  * Handle creation of user/group in maas-common.
  * debian/maas-region-controller.config: Always source dbconfig scripts.
 -- Andres Rodriguez <email address hidden> Wed, 10 Oct 2012 11:17:21 -0400

Changed in maas (Ubuntu Quantal):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers