<p dir="ltr">Maybe is the address on the debconf database.</p>
<div class="gmail_quote">On Jul 3, 2014 9:20 AM, "Gavin Panella" <<a href="mailto:gavin.panella@canonical.com">gavin.panella@canonical.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 3 July 2014 13:44, Andreas Hasenack <<a href="mailto:andreas@canonical.com">andreas@canonical.com</a>> wrote:<br>
...<br>
> The only odd thing in this upgrade, and happens everytime, is that the<br>
> rabbitmq and maas host ips get replaced by an IP (192.168.122.6) that I<br>
> don't have. I don't know where it comes from, so in the end the services are<br>
> not up and I have to fix it manually in these two files:<br>
><br>
> root@maas:/etc/maas# grep 192 *<br>
> maas_local_celeryconfig.py:BROKER_URL =<br>
> 'amqp://<a href="http://maas_workers:Pd8Lj1mvYqPW618XoIhZ@192.168.122.6:5672//maas_workers" target="_blank">maas_workers:Pd8Lj1mvYqPW618XoIhZ@192.168.122.6:5672//maas_workers</a>'<br>
> maas_local_settings.py:DEFAULT_MAAS_URL = "<a href="http://192.168.122.6/MAAS" target="_blank">http://192.168.122.6/MAAS</a>"<br>
<br>
The function that does it is in maas-region-controller.postinst:<br>
<br>
get_default_route_ip() {<br>
while read Iface Destination Gateway Flags RefCnt Use Metric Mask<br>
MTU Window IRTT; do<br>
[ "$Mask" = "00000000" ] && break<br>
done < /proc/net/route<br>
interface="$Iface"<br>
ipaddr=$(LC_ALL=C /sbin/ip -4 addr list dev "$interface" scope global)<br>
ipaddr=${ipaddr#* inet }<br>
ipaddr=${ipaddr%%/*}<br>
echo $ipaddr<br>
}<br>
<br>
Can you try running this in /bin/sh to see what it comes up with?<br>
<br>
--<br>
Mailing list: <a href="https://launchpad.net/~maas-devel" target="_blank">https://launchpad.net/~maas-devel</a><br>
Post to : <a href="mailto:maas-devel@lists.launchpad.net">maas-devel@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~maas-devel" target="_blank">https://launchpad.net/~maas-devel</a><br>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div>