Zun

Container cannot resolve hostname

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

Bug Description

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

Reproduce
=========
$ 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:
https://ask.openstack.org/en/question/82095/instances-cant-ping-servers-by-their-domain-name/

My environment output:
http://paste.openstack.org/show/621587/

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 = 8.8.8.8, 8.8.4.4, nothing change.

I follow this doc:
https://docs.openstack.org/newton/networking-guide/config-dns-res.html

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.
http://paste.openstack.org/show/622290/

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