This is still an issue with latest yakkety-proposed juju-2.0 2.0~beta17-0ubuntu1.16.10.1.
$ lxc exec juju-68160d-0 -- sh -c 'ping `hostname`' ping: unknown host juju-68160d-0 This breaks e. g. the standard rabbitmq-server charm: 2016-09-07 20:08:24 INFO config-changed Traceback (most recent call last): 2016-09-07 20:08:24 INFO config-changed File "/var/lib/juju/agents/unit-rabbitmq-server-0/charm/hooks/config-changed", line 724, in <module> 2016-09-07 20:08:24 INFO config-changed hooks.execute(sys.argv) 2016-09-07 20:08:24 INFO config-changed File "/var/lib/juju/agents/unit-rabbitmq-server-0/charm/hooks/charmhelpers/core/hookenv.py", line 717, in execute 2016-09-07 20:08:24 INFO config-changed self._hooks[hook_name]() 2016-09-07 20:08:24 INFO config-changed File "/var/lib/juju/agents/unit-rabbitmq-server-0/charm/hooks/rabbit_utils.py", line 734, in wrapped_f 2016-09-07 20:08:24 INFO config-changed f(*args, **kwargs) 2016-09-07 20:08:24 INFO config-changed File "/var/lib/juju/agents/unit-rabbitmq-server-0/charm/hooks/config-changed", line 657, in config_changed 2016-09-07 20:08:24 INFO config-changed configure_nodename() 2016-09-07 20:08:24 INFO config-changed File "/var/lib/juju/agents/unit-rabbitmq-server-0/charm/hooks/config-changed", line 113, in configure_nodename 2016-09-07 20:08:24 INFO config-changed nodename = rabbit.get_local_nodename() 2016-09-07 20:08:24 INFO config-changed File "/var/lib/juju/agents/unit-rabbitmq-server-0/charm/hooks/rabbit_utils.py", line 672, in get_local_nodename 2016-09-07 20:08:24 INFO config-changed ip_addr = get_host_ip(unit_get('private-address')) 2016-09-07 20:08:24 INFO config-changed File "/var/lib/juju/agents/unit-rabbitmq-server-0/charm/hooks/charmhelpers/contrib/network/ip.py", line 417, in get_host_ip 2016-09-07 20:08:24 INFO config-changed ip_addr = ns_query(hostname) 2016-09-07 20:08:24 INFO config-changed File "/var/lib/juju/agents/unit-rabbitmq-server-0/charm/hooks/charmhelpers/contrib/network/ip.py", line 403, in ns_query 2016-09-07 20:08:24 INFO config-changed answers = dns.resolver.query(address, rtype) 2016-09-07 20:08:24 INFO config-changed File "/usr/lib/python2.7/dist-packages/dns/resolver.py", line 981, in query 2016-09-07 20:08:24 INFO config-changed raise_on_no_answer, source_port) 2016-09-07 20:08:24 INFO config-changed File "/usr/lib/python2.7/dist-packages/dns/resolver.py", line 910, in query 2016-09-07 20:08:24 INFO config-changed raise NXDOMAIN 2016-09-07 20:08:24 INFO config-changed dns.resolver.NXDOMAIN 2016-09-07 20:08:24 ERROR juju.worker.uniter.operation runhook.go:107 hook "config-changed" failed: exit status 1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1475260 Title: instances cannot resolve their own hostname To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/juju-core/+bug/1475260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs