tempest-RHOSP10-port create with non existent vn failed with wrong error message 'Server fault'

Bug #1684322 reported by shajuvk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
Medium
Sahil Sabharwal
R3.1
Fix Committed
Medium
Sahil Sabharwal
R3.2
Fix Committed
Medium
Sahil Sabharwal
Trunk
Fix Committed
Medium
Sahil Sabharwal

Bug Description

Tempest test case (https://github.com/openstack/tempest/blob/23aa354f178878ee4d5385db7ce51999726ef8b4/tempest/api/network/test_networks_negative.py) failed on RHOSP10 setup with an error "Server fault". Openstack expected error as per test case 'NotFound'

test case name: test_create_port_on_non_existent_network

./run_tempest.sh -N -d -C /etc/redhat-certification-openstack/tempest.conf --serial tempest.api.network.test_networks_negative.NetworksNegativeTestJSON.test_create_port_on_non_existent_network
====

Traceback (most recent call last):
  File "tempest/api/network/test_networks_negative.py", line 82, in test_create_port_on_non_existent_network
    network_id=non_exist_net_id)
  File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 422, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 433, in assertThat
    mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 483, in _matchHelper
    mismatch = matcher.match(matchee)
  File "/usr/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/usr/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
    mismatch = matcher.match(matchee)
  File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 414, in match
    reraise(*matchee)
  File "/usr/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
    result = matchee()
  File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 969, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "tempest/lib/services/network/ports_client.py", line 29, in create_port
    return self.create_resource(uri, post_data)
  File "tempest/lib/services/network/base.py", line 60, in create_resource
    resp, body = self.post(req_uri, req_post_data)
  File "tempest/lib/common/rest_client.py", line 276, in post
    return self.request('POST', url, extra_headers, headers, body, chunked)
  File "tempest/lib/common/rest_client.py", line 664, in request
    self._error_checker(resp, resp_body)
  File "tempest/lib/common/rest_client.py", line 827, in _error_checker
    message=message)
tempest.lib.exceptions.ServerFault: Got server fault
Details: An unknown exception occurred.

shajuvk (shajuvk)
tags: added: config
summary: tempest-RHOSP10-port create with non existent vn failed with wrong error
- message
+ message 'Server fault'
information type: Proprietary → Public
description: updated
Revision history for this message
Jeba Paulaiyan (jebap) wrote :

Redhat certification need this

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/30823
Submitter: <email address hidden> (<email address hidden>)

no longer affects: juniperopenstack/r3.1
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/30824
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/30825
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/30826
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/30826
Committed: http://github.com/Juniper/contrail-controller/commit/e159816e3059782cf596b714f4aeee3e78df3007
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit e159816e3059782cf596b714f4aeee3e78df3007
Author: Sahil <email address hidden>
Date: Thu Apr 27 18:28:29 2017 -0700

Added network read inside try & except block

Change-Id: I3d26e4031d12c4447280855d725a1516f6a32e8d
Closes-Bug: 1684322

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/30824
Committed: http://github.com/Juniper/contrail-controller/commit/67ae8e3591ae0b7eab2fe701ec55f449b7b48ace
Submitter: Zuul (<email address hidden>)
Branch: R3.1

commit 67ae8e3591ae0b7eab2fe701ec55f449b7b48ace
Author: Sahil <email address hidden>
Date: Thu Apr 27 18:28:29 2017 -0700

Added network read inside try & except block

Change-Id: I3d26e4031d12c4447280855d725a1516f6a32e8d
Closes-Bug: 1684322

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/30825
Committed: http://github.com/Juniper/contrail-controller/commit/08eb41017cbeca9e007216fa0b0b6a95849b7bc4
Submitter: Zuul (<email address hidden>)
Branch: R3.0

commit 08eb41017cbeca9e007216fa0b0b6a95849b7bc4
Author: Sahil <email address hidden>
Date: Thu Apr 27 18:28:29 2017 -0700

Added network read inside try & except block

Change-Id: I3d26e4031d12c4447280855d725a1516f6a32e8d
Closes-Bug: 1684322

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/30823
Committed: http://github.com/Juniper/contrail-controller/commit/8e0e7ceda8227c68cde8a3657e8ea1e467e33e16
Submitter: Zuul (<email address hidden>)
Branch: master

commit 8e0e7ceda8227c68cde8a3657e8ea1e467e33e16
Author: Sahil <email address hidden>
Date: Thu Apr 27 18:28:29 2017 -0700

Added network read inside try & except block

Change-Id: I3d26e4031d12c4447280855d725a1516f6a32e8d
Closes-Bug: 1684322

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.