Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dns.resolver.NoResolverConfiguration on importing eventlet #736

Closed
dtantsur opened this issue Nov 16, 2021 · 1 comment · Fixed by #737
Closed

dns.resolver.NoResolverConfiguration on importing eventlet #736

dtantsur opened this issue Nov 16, 2021 · 1 comment · Fixed by #737

Comments

@dtantsur
Copy link
Contributor

Hi! We have an environment which is inside a service ramdisk, so working DNS is not assumed. Starting with presumably 0.32.0 eventlet cannot be imported:

Traceback (most recent call last):
  File "/usr/local/bin/ironic-python-agent", line 5, in <module>
    from ironic_python_agent.cmd.agent import run
  File "/usr/local/lib/python3.6/site-packages/ironic_python_agent/__init__.py", line 15, in <module>
    import eventlet
  File "/usr/local/lib/python3.6/site-packages/eventlet/__init__.py", line 17, in <module>
    from eventlet import convenience
  File "/usr/local/lib/python3.6/site-packages/eventlet/convenience.py", line 7, in <module>
    from eventlet.green import socket
  File "/usr/local/lib/python3.6/site-packages/eventlet/green/socket.py", line 21, in <module>
    from eventlet.support import greendns
  File "/usr/local/lib/python3.6/site-packages/eventlet/support/greendns.py", line 411, in <module>
    resolver = ResolverProxy(hosts_resolver=HostsResolver())
  File "/usr/local/lib/python3.6/site-packages/eventlet/support/greendns.py", line 325, in __init__
    self.clear()
  File "/usr/local/lib/python3.6/site-packages/eventlet/support/greendns.py", line 328, in clear
    self._resolver = dns.resolver.Resolver(filename=self._filename)
  File "/usr/local/lib/python3.6/site-packages/dns/resolver.py", line 734, in __init__
    self.read_resolv_conf(filename)
  File "/usr/local/lib/python3.6/site-packages/dns/resolver.py", line 826, in read_resolv_conf
    raise NoResolverConfiguration
dns.resolver.NoResolverConfiguration: Resolver configuration could not be read or specified no nameservers.

This issue has initially surfaces in #462, but it's a feature request, while this problem is a serious blocker for us in OpenStack Ironic.

@dtantsur
Copy link
Contributor Author

The same issue reported in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=2017933

@temoto temoto closed this as completed in c870876 Nov 16, 2021
openstack-mirroring pushed a commit to openstack/requirements that referenced this issue Nov 17, 2021
The new eventlet breaks, among other things, the Ironic ramdisk:
eventlet/eventlet#736

Change-Id: I8f4c2244ae93f0e7626f8ef88a7dfed1c943ba08
openstack-mirroring pushed a commit to openstack/openstack that referenced this issue Nov 17, 2021
* Update requirements from branch 'master'
  to 89b81d2466ae270e5f9f30dc97150843e73427ba
  - Merge "Blacklist eventlet 0.32.0, jump to 0.33.0"
  - Blacklist eventlet 0.32.0, jump to 0.33.0
    
    The new eventlet breaks, among other things, the Ironic ramdisk:
    eventlet/eventlet#736
    
    Change-Id: I8f4c2244ae93f0e7626f8ef88a7dfed1c943ba08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants