[Maas-devel] Proposed release 1.6.0

Gavin Panella gavin.panella at canonical.com
Thu Jul 3 13:19:38 UTC 2014


On 3 July 2014 13:44, Andreas Hasenack <andreas at canonical.com> wrote:
...
> The only odd thing in this upgrade, and happens everytime, is that the
> rabbitmq and maas host ips get replaced by an IP (192.168.122.6) that I
> don't have. I don't know where it comes from, so in the end the services are
> not up and I have to fix it manually in these two files:
>
> root at maas:/etc/maas# grep 192 *
> maas_local_celeryconfig.py:BROKER_URL =
> 'amqp://maas_workers:Pd8Lj1mvYqPW618XoIhZ@192.168.122.6:5672//maas_workers'
> maas_local_settings.py:DEFAULT_MAAS_URL = "http://192.168.122.6/MAAS"

The function that does it is in maas-region-controller.postinst:

get_default_route_ip() {
  while read Iface Destination Gateway Flags RefCnt Use Metric Mask
MTU Window IRTT; do
    [ "$Mask" = "00000000" ] && break
  done < /proc/net/route
  interface="$Iface"
  ipaddr=$(LC_ALL=C /sbin/ip -4 addr list dev "$interface" scope global)
  ipaddr=${ipaddr#* inet }
  ipaddr=${ipaddr%%/*}
  echo $ipaddr
}

Can you try running this in /bin/sh to see what it comes up with?




More information about the Maas-devel mailing list