Container cannot resolve hostname

Bug #1717733 reported by hongbin on 2017-09-16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kien Nguyen

Bug Description

Zun containers cannot resolve hostname (i.e. openstack.org)

$ zun run -i cirros sh
/ # ping openstack.org
ping: bad address 'openstack.org'

hongbin (hongbin034) on 2017-09-16
Changed in zun:
importance: Undecided → Critical
status: New → Triaged
Kien Nguyen (kiennt2609) on 2017-09-21
Changed in zun:
assignee: nobody → Kien Nguyen (kiennt2609)
cooldharma06 (cooldharma06) wrote :

i think recheck is needed for this bug, because in my environment its working fine.

Also check in your external network whether you are able to resolve the hostname.

In my devstack setup, /etc/neutron/dhcp_agent.ini:
dnsmasq_local_resolv = True

For more information:

My environment output:

Kien Nguyen (kiennt2609) wrote :

cooldharma06: Thanks for your feedback. I will try it in another testing environment to make sure.

Kien Nguyen (kiennt2609) wrote :

cooldharma06: I have re-checked, the same bug still happens. In my setup, /etc/neutron/dhcp_agent.ini: dnsmasq_local_resolv = True and even set dnsmasq_dns_servers =,, nothing change.

I follow this doc:

Could you provide some extra information (dhcp config, etc..)

cooldharma06 (cooldharma06) wrote :

@kien, my devstack crashed and i am trying to make up again. i ll share the information once it got up.

cooldharma06 (cooldharma06) wrote :

@kien, kindly check the following things in your environment:

1. check whether your DNS getting resolved from your host machine
  ping openstack.org
2. If it resolves, check the neutron configuration.

By default devstack configurations are enabled to resolve dns. So i think might be the problem with your host machine/network.

kindly refer the following link for neutron(my devstack env) related configuration.

If you want any further info. happy to help you.

hongbin (hongbin034) wrote :

It looks this bug disappear now. I will proceed to close this bug if there is no further reports.

hongbin (hongbin034) on 2018-02-23
Changed in zun:
status: Triaged → Incomplete
hongbin (hongbin034) on 2018-02-23
Changed in zun:
importance: Critical → Undecided
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers