Tempest Neutron test cases for create_port, list_ports and update_port are falied

Bug #1742096 reported by Somesh Yadav
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Undecided
Somesh Yadav

Bug Description

Error while running neutron tempest test cases for create_port, list_ports and update_port with multi node setup.

neutron_plugin_contrail.plugins.opencontrail.contrail_plugin [req-c3d10e2d-642b-4391-b15e-5a4472a1dfb3 ] get_port_count(): {u'count': 0} _count_resource /usr/lib/python2.7/dist-packages/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin.py:392
controller1/neutron-server.log:59984:2017-11-28T15:14:05.610781+00:00 err: 2017-11-28 15:14:05.608 30930 ERROR neutron_plugin_contrail.plugins.opencontrail.contrail_plugin_base [req-c3d10e2d-642b-4391-b15e-5a4472a1dfb3 ] BadRequest{u'msg': u'Internal error : virtual router default-global-system-config:localhost not found', u'exception': u'BadRequest', u'resource': u'virtual_machine_interface'}port
controller1/neutron-server.log:59990:2017-11-28T15:14:05.612218+00:00 info: 2017-11-28 15:14:05.609 30930 INFO neutron.api.v2.resource [req-c3d10e2d-642b-4391-b15e-5a4472a1dfb3 ] create failed (client error): Bad virtual_machine_interface request: Internal error : virtual router default-global-system-config:localhost not found
controller1/neutron-server.log:59991:2017-11-28T15:14:05.612218+00:00 info: 2017-11-28 15:14:05.610 30930 INFO neutron.wsgi [req-c3d10e2d-642b-4391-b15e-5a4472a1dfb3 ] 135.21.61.149 - - [28/Nov/2017 15:14:05] "POST /v2.0/ports HTTP/1.1" 400 408 0.538490

Somesh Yadav (yadavsms)
Changed in tempest:
assignee: nobody → Somesh Yadav (yadavsms)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/532242

Changed in tempest:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/532242
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=0787a7cd6f9e72a9d3831bc9d10f5d9e4efd3a14
Submitter: Zuul
Branch: master

commit 0787a7cd6f9e72a9d3831bc9d10f5d9e4efd3a14
Author: Somesh Yadav <email address hidden>
Date: Tue Jan 9 21:44:14 2018 +0530

    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

Changed in tempest:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tempest 18.0.0

This issue was fixed in the openstack/tempest 18.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.