← Back to team overview

maas-devel team mailing list archive

Re: juju's private-address, DNS, MAAS and postgresql

 

>
>  There is no IP address in the relation data. "relation-get
>> private-address" returns a fqdn for some reason. I didn't check what
>> unit-get returns on the postgresql server.
>>
>
postgresql/0:db-relation-changed % unit-get public-address
kmkxr.maaslocal

postgresql/0:db-relation-changed % unit-get private-address
kmkxr.maaslocal

postgresql/0:db-relation-changed % relation-get
private-address: k8q9m.maaslocal

postgresql/0:db-relation-changed % cat /etc/hosts
127.0.0.1 localhost

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
# Added by cloud-init on Fri, 08 Nov 2013 13:55:05 +0000
127.0.1.1       kmkxr.maaslocal kmkxr

postgresql/0:db-relation-changed % hostname -f
kmkxr.maaslocal

postgresql/0:db-relation-changed % hostname
kmkxr

Follow ups

References