tempest-osp10:Conflict error expected but vnc api reported MismatchError

Bug #1685339 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
Sahil Sabharwal
R4.0
Fix Committed
Medium
Sahil Sabharwal
Trunk
Fix Committed
Medium
Sahil Sabharwal

Bug Description

updating floationg ip test case:

git hub test case location: https://github.com/openstack/neutron/blob/6f01617fc5a8c9e33693459d50702e3506ad2cc4/neutron/tests/tempest/api/test_floating_ips_negative.py

test case name: def test_associate_floatingip_with_port_with_floatingip

 66 -> self.assertRaises(lib_exc.Conflict, self.client.update_floatingip,
 67 floating_ip2['id'], port_id=port['id'])
[EOF]
(Pdb) p floating_ip2['id']
u'98034831-8777-4371-9977-1ecb4cc1fea4'
(Pdb) port['id']
u'f6e5858d-1ba8-46ee-a5b7-47171c093533'
(Pdb) self.assertRaises(lib_exc.Conflict, self.client.update_floatingip, floating_ip2['id'], port_id=port['id'])
*** MismatchError: <function _update at 0x53beb18> returned {u'floatingip': {u'router_id': u'80984126-cfbf-4b68-bcc9-753469feaa89', u'status': u'ACTIVE', u'tenant_id': u'afb9dd81be364714b83e49303fc53548', u'floating_network_id': u'46c47b23-e7b2-4863-ab04-6dc2cfe6312a', u'fixed_ip_address': u'10.100.0.3', u'floating_ip_address': u'26.2.2.11', u'port_id': u'f6e5858d-1ba8-46ee-a5b7-47171c093533', u'id': u'98034831-8777-4371-9977-1ecb4cc1fea4'}}

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/31665
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/31665
Committed: http://github.com/Juniper/contrail-controller/commit/81d1d0f839378b98c40567a7637afbd8bee36171
Submitter: Zuul (<email address hidden>)
Branch: master

commit 81d1d0f839378b98c40567a7637afbd8bee36171
Author: Sahil <email address hidden>
Date: Tue May 16 14:27:06 2017 -0700

[vnc_openstack]: Added check for port-fip assoc.

These are the checks that are added in neutron plugin:
1. Check if fixed ip address of a port is already associated
with another floating ip.
2. When port has multiple fixed ip addresses and if fixed ip
address is not specified when creating floating ip with assoc.
with a internal port, neutron exception will be raised.

Closes-Bug: 1685339

Change-Id: I65cccb9290dfd0d19cf8992f62eab5075985eec6

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

Review in progress for https://review.opencontrail.org/31969
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/31971
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/31971
Committed: http://github.com/Juniper/contrail-controller/commit/487bf51dec54b896074ce3c432a91261ec8cf7e0
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 487bf51dec54b896074ce3c432a91261ec8cf7e0
Author: Sahil <email address hidden>
Date: Mon May 22 14:52:24 2017 -0700

[vnc_openstack]: Added check for port-fip assoc.

These are the checks that are added in neutron plugin:
1. Check if fixed ip address of a port is already associated
with another floating ip.
2. When port has multiple fixed ip addresses and if fixed ip
address is not specified when creating floating ip with assoc.
with a internal port, neutron exception will be raised.

Change-Id: Ie364ca876b674aa4955d0fb1bf165654abe1a4fd
Closes-Bug: 1685339

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

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

commit 9774e63745e9e53eafddc7c877b970618b2efea2
Author: Sahil <email address hidden>
Date: Tue May 16 14:27:06 2017 -0700

[vnc_openstack]: Added check for port-fip assoc.

These are the checks that are added in neutron plugin:
1. Check if fixed ip address of a port is already associated
with another floating ip.
2. When port has multiple fixed ip addresses and if fixed ip
address is not specified when creating floating ip with assoc.
with a internal port, neutron exception will be raised.

Closes-Bug: 1685339

Change-Id: I65cccb9290dfd0d19cf8992f62eab5075985eec6
(cherry picked from commit 81d1d0f839378b98c40567a7637afbd8bee36171)

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.