The default cloud-init configuration for MaaS uses 'manage_etc_hosts: localhost'; this causes a line such as:
# Added by cloud-init
127.0.1.1 test-12.os.magners.qa.lexington test-12
To be added to /etc/hosts; this is problematic for a few reasons when using Juju with MaaS as:
unit-get private-address
returns 'test-12.os.magners.qa.lexington'; and if I then try to bind services or connect to services running locally using this hostname I get connected/bound to '127.0.1.1'. And then other services connecting to `hostname` using relation-get private-address (which resolves to the external IP address) can't actually connect to the service as its running on 127.0.0.1.
This part of the configuration is coming from MaaS rather than Juju and it makes the maas provider for Juju function in a different way to other providers which I don't believe use this configuration option.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: maas (not installed)
ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
Uname: Linux 3.5.0-17-generic x86_64
ApportVersion: 2.6.1-0ubuntu4
Architecture: amd64
Date: Thu Dec 6 04:31:58 2012
InstallationMedia: Ubuntu-Server 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: maas
UpgradeStatus: Upgraded to quantal on 2012-05-01 (218 days ago)
I thought this was enabled to resolve an issue of using avahi with maas/juju?