<div dir="ltr">From the [0], it appears dnspython is NOT installed properly.<div>I installed python-dnspython (not sure if its the same as dnspython) and still don't see *dns* or "base" under /lib/python2.7/site-packages/dns/rdtypes/ANY as [0] mentioned.</div><div><br></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">sh-4.2# pwd</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">/lib/python2.7/site-packages/dns/rdtypes/ANY</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">sh-4.2# ls -ail *dns*</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">ls: cannot access *dns*: No such file or directory</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">sh-4.2# ls -ail *base*</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">ls: cannot access *base*: No such file or directory</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">sh-4.2# ls -ail __init*</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">540159 -rw-r--r--. 1 root root 1169 Jun 13<span class="gmail-Apple-converted-space">  </span>2015 __init__.py</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">540248 -rw-r--r--. 2 root root<span class="gmail-Apple-converted-space">  </span>602 Aug<span class="gmail-Apple-converted-space">  </span>3<span class="gmail-Apple-converted-space">  </span>2017 __init__.pyc</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">540248 -rw-r--r--. 2 root root<span class="gmail-Apple-converted-space">  </span>602 Aug<span class="gmail-Apple-converted-space">  </span>3<span class="gmail-Apple-converted-space">  </span>2017 __init__.pyo</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">sh-4.2# yum list | grep dnspython</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">python-dnspython.noarch <span class="gmail-Apple-converted-space">              </span>1:1.10.0-1<span class="gmail-Apple-converted-space">                  </span>@ORB-extras<span class="gmail-Apple-converted-space">   </span></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">sfdc-python27-dnspython.noarch<span class="gmail-Apple-converted-space">        </span>1.15.0-2019.10.311854.7.el7 strata_sfdc-python</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">sfdc-python35-dnspython.noarch<span class="gmail-Apple-converted-space">        </span>1.15.0-2019.04.081624.7.el7 strata_sfdc-python</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">sfdc-python36-dnspython.noarch<span class="gmail-Apple-converted-space">        </span>1.15.0-2021.05.122008.34.el7</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">sh-4.2# yum list installed | grep dnspython</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">python-dnspython.noarch <span class="gmail-Apple-converted-space">          </span>1:1.10.0-1 <span class="gmail-Apple-converted-space">              </span>@ORB-extras <span class="gmail-Apple-converted-space">         </span></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">sh-4.2#<span class="gmail-Apple-converted-space"> </span></span></p></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 17, 2021 at 12:19 PM Clark Boylan <<a href="mailto:cboylan@sapwetik.org">cboylan@sapwetik.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Jun 17, 2021, at 11:58 AM, Pete Zhang wrote:<br>
> Clark,<br>
> <br>
> I  adjusted the version of greenlet/eventlet as required by other <br>
> modules. here is the output:<br>
> <br>
> ImportError: No module named dnskeybase<br>
> <br>
> sh-4.2# yum list installed | grep "greenlet\|eventlet\|gevent"<br>
> <br>
> python2-eventlet.noarch           0.25.1-1.el7             @local_openstack-tnrp<br>
> <br>
> python2-gevent.x86_64             1.1.2-2.el7              @local_openstack-tnrp<br>
> <br>
> python2-greenlet.x86_64           0.4.12-1.el7             @local_openstack-tnrp<br>
> <br>
> sh-4.2# python2<br>
> <br>
> Python 2.7.5 (default, Oct 30 2018, 23:45:53) <br>
> <br>
> [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2<br>
> <br>
> Type "help", "copyright", "credits" or "license" for more information.<br>
> <br>
> >>> from eventlet import greenpool<br>
> <br>
> Traceback (most recent call last):<br>
> <br>
>   File "<stdin>", line 1, in <module><br>
> <br>
>   File "/usr/lib/python2.7/site-packages/eventlet/__init__.py", line <br>
> 10, in <module><br>
> <br>
>     from eventlet import convenience<br>
> <br>
>   File "/usr/lib/python2.7/site-packages/eventlet/convenience.py", line <br>
> 7, in <module><br>
> <br>
>     from eventlet.green import socket<br>
> <br>
>   File "/usr/lib/python2.7/site-packages/eventlet/green/socket.py", <br>
> line 21, in <module><br>
> <br>
>     from eventlet.support import greendns<br>
> <br>
>   File "/usr/lib/python2.7/site-packages/eventlet/support/greendns.py", <br>
> line 67, in <module><br>
> <br>
>     setattr(dns.rdtypes, pkg, import_patched('dns.rdtypes.' + pkg))<br>
> <br>
>   File "/usr/lib/python2.7/site-packages/eventlet/support/greendns.py", <br>
> line 59, in import_patched<br>
> <br>
>     return patcher.import_patched(module_name, **modules)<br>
> <br>
>   File "/usr/lib/python2.7/site-packages/eventlet/patcher.py", line <br>
> 126, in import_patched<br>
> <br>
>     *additional_modules + tuple(kw_additional_modules.items()))<br>
> <br>
>   File "/usr/lib/python2.7/site-packages/eventlet/patcher.py", line <br>
> 100, in inject<br>
> <br>
>     module = __import__(module_name, {}, {}, module_name.split('.')[:-1])<br>
> <br>
> ImportError: No module named dnskeybase<br>
> <br>
> >>> <br>
<br>
The internet indicates [0] this is a problem with your dnspython installation. That post uses pip, but you are using distro packages so you may need to map things a bit to do further debugging. Hopefully, that helps get things sorted though.<br>
<br>
[0] <a href="https://stackoverflow.com/questions/55152733/eventlet-importerror-no-module-named-dnskeybase" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/55152733/eventlet-importerror-no-module-named-dnskeybase</a><br>
<br>
> <br>
> <br>
> On Thu, Jun 17, 2021 at 10:44 AM Clark Boylan <<a href="mailto:cboylan@sapwetik.org" target="_blank">cboylan@sapwetik.org</a>> wrote:<br>
> > On Thu, Jun 17, 2021, at 10:03 AM, Pete Zhang wrote:<br>
> > > Not sure if my previous email went through or not. Just resend it.<br>
> > > <br>
> > > We hit this error during "glance-manage db_sync":<br>
> > > *ImportError: cannot import name greenpool.*<br>
> > > Any idea what the root cause is and how to fix it?<br>
> > > We have the following rpms installed (thought related).<br>
> > > <br>
> > > `python2-greenlet-0.4.9-1.el7.x86_64.rpm`<br>
> > > `python2-eventlet-0.18.4-2.el7.noarch.rpm`<br>
> > > `python2-gevent-1.1.2-2.el7.x86_64.rpm`<br>
> > > <br>
> > > <br>
> > <br>
> > snip<br>
> > <br>
> > > Notice: /Stage[main]/Neutron::Db::Sync/Exec[neutron-db-sync]/returns:   <br>
> > >   from eventlet import greenpool<br>
> > > <br>
> > > Notice: /Stage[main]/Neutron::Db::Sync/Exec[neutron-db-sync]/returns: <br>
> > > ImportError: cannot import name greenpool<br>
> > <br>
> > I'm not familiar with the CentOS7 packaging, but as a sanity check I ran `pip install greenlet==0.4.9 eventlet==0.18.4` in a python2 virtualenv then in a python2 interpreter `from eventlet import greenpool` runs successfully. I would try running this import by hand on your system to see if you can get any more information. Could be a packaging issue or potentially some sort of name collision between script names?<br>
> > <br>
> > Clark<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><br><a href="https://smart.salesforce.com/sig/peiyong.zhang//us_mb/default/link.html" target="_blank"><img border="0" src="https://smart.salesforce.com/sig/peiyong.zhang//us_mb/default/logo.png"></a></div>