Hi! I have a bit of a n00b question. I'm trying the vmware_dvs mechanism driver. In my plugin.ini, I have:
[ml2_vmware] vsphere_login=admin network_maps=physnet2:OPENSTACK-DVS vsphere_hostname=10.48.58.109 vsphere_password=password That DVS does exist. No spelling error, I checked at least 53 times. Yet I keep hitting the same exception: 2016-09-01 19:47:54.195 938 ERROR neutron File "/usr/local/lib/python2.7/ dist-packages/mech_vmware_dvs/util.py", line 297, in _get_dvs 2016-09-01 19:47:54.195 938 ERROR neutron raise exceptions.DVSNotFound(dvs_name=dvs_name) 2016-09-01 19:47:54.195 938 ERROR neutron DVSNotFound: Distributed Virtual Switch OPENSTACK-DVS not found So I thought I'd add a bit of debugging to /usr/local/lib/python2.7/ dist-packages/mech_vmware_dvs/util.py, specifically line 291: 275 def _get_dvs(self, dvs_name, connection, datacenter): 276 """Get the dvs by name""" 277 LOG.debug('cpaggen debug - we are looking for %s' % dvs_name) 278 network_folder = connection.invoke_api( 279 vim_util, 'get_object_property', connection.vim, 280 datacenter, 'networkFolder') 281 results = connection.invoke_api( 282 vim_util, 'get_object_property', connection.vim, 283 network_folder, 'childEntity') 284 networks = results.ManagedObjectReference 285 dvswitches = self._get_object_by_type(networks, 286 ' VmwareDistributedVirtualSwitch') 287 for dvs in dvswitches: 288 name = connection.invoke_api( 289 vim_util, 'get_object_property', 290 connection.vim, dvs, 'name') 291 LOG.debug('my_debug - found DVS %s' % name) 292 if name == dvs_name: 293 dvs_ref = dvs 294 break 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. Anybody cares to help? As you can guess, I just want to display what the DVS names the vmware API is returning. Thanks, Chris.
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack