Neutron test cases create,list,update port failed
while running test case over neutron plugin(contrail) with dpdk/sriov
computes, host_id in "binding:host_id" should be compute node name.so
that port can be allocated to a given compute host.
Here we are using "cls.host_id = socket.hostname()" which return
hostname of tempest host.Vrouter will looking for compute node
with tempest hostname to bind port there but didn't found any compute
node with tempest hostname.So raised an exception.
Details: {u'message': u'bad virtual_machine_interface request:
internal error: virtual router default-global-system-config:openstack
not found', u'type': u'badrequest', u'detail': u''}
To get test case running host_id should be compute node name.
Hyper_list = cls.hyper_client.list_hypervisors()
cls.host_id = hyper_list['hypervisors'][0]['hypervisor_hostname']
closes-bug: #1742096
Change-Id: I943150845fa05f24566ea0cd282306136688039b
1 file changed