Rhosp10-3.2-tempest-expected Conflict error from api but received Bad request

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

Bug Description

tempest test case failed due to incorrect error.

test case: def test_create_port_with_precreated_floatingip_as_fixed_ip

location:

https://github.com/openstack/tempest/blob/23aa354f178878ee4d5385db7ce51999726ef8b4/tempest/api/network/admin/test_external_networks_negative.py

log :
====
(Pdb) self.assertRaises(lib_exc.Conflict, self.admin_ports_client.create_port,network_id=CONF.network.public_network_id, fixed_ips=fixed_ips)
*** BadRequest: Bad request

expected error is Conflict

Tags: tempest
shajuvk (shajuvk)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

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

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

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

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

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

commit bb3707296ac091174b1b82edcba26fd2e79343d9
Author: Sachin Bansal <email address hidden>
Date: Tue Aug 8 20:46:29 2017 -0700

Update permissions on external networks

Users outside the projet should be able to read/refer to External network.
This is how neutron treats external networks (even if they are not shared)

Also added check for ethertype conflict with prefix in SG rules

Closes-Bug: 1709196
Closes-Bug: 1709192
Change-Id: Id6a0c1a509d7663da8e5bc86f2c7c91c73d420a2

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

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

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

Reviewed: https://review.opencontrail.org/34408
Committed: http://github.com/Juniper/contrail-controller/commit/9ea2c0e1701fd2df585bfa0434f60f19e58cf76a
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 9ea2c0e1701fd2df585bfa0434f60f19e58cf76a
Author: Sachin Bansal <email address hidden>
Date: Tue Aug 8 20:46:29 2017 -0700

Update permissions on external networks

Users outside the projet should be able to read/refer to External network.
This is how neutron treats external networks (even if they are not shared)

Also added check for ethertype conflict with prefix in SG rules

Closes-Bug: 1709196
Closes-Bug: 1709192
Change-Id: Id6a0c1a509d7663da8e5bc86f2c7c91c73d420a2

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

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

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

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

commit 1ce8cd8bcb72d970d15e84e1c41f28a000571f4d
Author: Sachin Bansal <email address hidden>
Date: Tue Aug 8 20:46:29 2017 -0700

Update permissions on external networks

Users outside the projet should be able to read/refer to External network.
This is how neutron treats external networks (even if they are not shared)

Also added check for ethertype conflict with prefix in SG rules

Closes-Bug: 1709196
Closes-Bug: 1709192
Change-Id: Id6a0c1a509d7663da8e5bc86f2c7c91c73d420a2

Revision history for this message
Andrey Pavlov (apavlov-e) wrote :

still not fixed in R4.0 OSPD10 build CB-25 rhel7+newton

https://bugs.launchpad.net/juniperopenstack/+bug/1712761

Revision history for this message
Sachin Bansal (sbansal) wrote :

The issue of Conflict Vs BadRequest is fixed. There is another issue related to the test case, which is that floating ip cannot be used as a fixed ip. Lets open a new bug to track that issue.

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.