<div dir="ltr"><span style="font-size:12.8px;color:rgb(0,0,0);font-family:consolas,"lucida console",monospace;background-color:rgb(240,247,255)">Hi! I have a bit of a n00b question. </span><div style="font-size:12.8px"><span style="color:rgb(0,0,0);font-family:consolas,"lucida console",monospace;font-size:12.8px;background-color:rgb(240,247,255)"><br></span></div><div style="font-size:12.8px"><span style="color:rgb(0,0,0);font-family:consolas,"lucida console",monospace;font-size:12.8px;background-color:rgb(240,247,255)">I'm trying the vmware_dvs mechanism driver. In my plugin.ini, I have:</span></div><div style="font-size:12.8px"><span style="color:rgb(0,0,0);font-family:consolas,"lucida console",monospace;font-size:12.8px;background-color:rgb(240,247,255)"><br></span></div><div style="font-size:12.8px"><span style="background-color:rgb(240,247,255)"><div><font color="#000000" face="consolas, lucida console, monospace">[ml2_vmware]</font></div><div><font color="#000000" face="consolas, lucida console, monospace">vsphere_login=admin</font></div><div><font color="#000000" face="consolas, lucida console, monospace">network_maps=physnet2:<wbr>OPENSTACK-DVS</font></div><div><font color="#000000" face="consolas, lucida console, monospace">vsphere_hostname=10.48.58.109</font></div><div><font color="#000000" face="consolas, lucida console, monospace">vsphere_password=password</font></div><div style="color:rgb(0,0,0);font-family:consolas,"lucida console",monospace;font-size:12.8px"><br></div></span></div><div style="font-size:12.8px"><span style="color:rgb(0,0,0);font-family:consolas,"lucida console",monospace;font-size:12.8px;background-color:rgb(240,247,255)">That DVS does exist. No spelling error, I checked at least 53 times. Yet I keep hitting the same exception:</span></div><div style="font-size:12.8px"><span style="color:rgb(0,0,0);font-family:consolas,"lucida console",monospace;font-size:12.8px;background-color:rgb(240,247,255)"><br></span></div><div style="font-size:12.8px"><span style="background-color:rgb(240,247,255)"><div><font color="#000000" face="consolas, lucida console, monospace">2016-09-01 19:47:54.195 938 ERROR neutron   File "/usr/local/lib/python2.7/<wbr>dist-packages/mech_vmware_dvs/<wbr>util.py", line 297, in _get_dvs</font></div><div><font color="#000000" face="consolas, lucida console, monospace">2016-09-01 19:47:54.195 938 ERROR neutron     raise exceptions.DVSNotFound(dvs_<wbr>name=dvs_name)</font></div><div><font color="#000000" face="consolas, lucida console, monospace">2016-09-01 19:47:54.195 938 ERROR neutron DVSNotFound: Distributed Virtual Switch OPENSTACK-DVS not found</font></div><div style="color:rgb(0,0,0);font-family:consolas,"lucida console",monospace;font-size:12.8px"><br></div></span></div><div style="font-size:12.8px"><span style="color:rgb(0,0,0);font-family:consolas,"lucida console",monospace;font-size:12.8px;background-color:rgb(240,247,255)"><br></span></div><div style="font-size:12.8px"><span style="color:rgb(0,0,0);font-family:consolas,"lucida console",monospace;font-size:12.8px;background-color:rgb(240,247,255)">So I thought I'd add a bit of debugging to </span><span style="color:rgb(0,0,0);font-family:consolas,"lucida console",monospace;font-size:12.8px;background-color:rgb(240,247,255)">/usr/local/lib/python2.7/<wbr>dist-packages/mech_vmware_dvs/<wbr>util.py, specifically line 291:</span></div><div style="font-size:12.8px"><span style="color:rgb(0,0,0);font-family:consolas,"lucida console",monospace;font-size:12.8px;background-color:rgb(240,247,255)"><br></span></div><div style="font-size:12.8px"><div>275     def _get_dvs(self, dvs_name, connection, datacenter):</div><div>276         """Get the dvs by name"""</div><div>277         LOG.debug('cpaggen debug - we are looking for %s' % dvs_name)</div><div>278         network_folder = connection.invoke_api(</div><div>279             vim_util, 'get_object_property', connection.vim,</div><div>280             datacenter, 'networkFolder')</div><div>281         results = connection.invoke_api(</div><div>282             vim_util, 'get_object_property', connection.vim,</div><div>283             network_folder, 'childEntity')</div><div>284         networks = results.ManagedObjectReference</div><div>285         dvswitches = self._get_object_by_type(<wbr>networks,</div><div>286                                               '<wbr>VmwareDistributedVirtualSwitch<wbr>')</div><div>287         for dvs in dvswitches:</div><div>288             name = connection.invoke_api(</div><div>289                 vim_util, 'get_object_property',</div><div>290                 connection.vim, dvs, 'name')</div><div>291             LOG.debug('my_debug - found DVS %s' % name)</div><div>292             if name == dvs_name:</div><div>293                 dvs_ref = dvs</div><div>294                 break</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">That doesn't seem to work too well. Nothing in neutron.log or neutron-all.log or /var/log/neutron/server.log. I guess I'm not doing it right.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Anybody cares to help? As you can guess, I just want to display what the DVS names the vmware API is returning.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Chris.</div></div>