Tempest-RHOSP10-test case:test_allow_address_pairs failed with an unexpected error

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

Bug Description

Tempest test case failed with an error *** MismatchError, actual expected error is Conflict

test case: neutron.tests.tempest.api.test_extension_driver_port_security.PortSecTest.test_allow_address_pairs

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

test_allow_address_pairs

148 -> self.assertRaises(lib_exc.Conflict,
149 self.update_port, port,
150 allowed_address_pairs=allowed_address_pairs)
[EOF]
(Pdb) p allowed_address_pairs
[{'ip_address': '10.0.0.1', 'mac_address': '00:25:64:e8:19:dd'}]
(Pdb) self.assertRaises(lib_exc.Conflict,self.update_port, port,allowed_address_pairs=allowed_address_pairs)
*** MismatchError: <bound method type.update_port of <class 'neutron.tests.tempest.api.test_extension_driver_port_security.PortSecTest'>> returned {u'status': u'DOWN', u'binding:host_id': None, u'name': u'675cb153-4fbc-4436-ac64-53c16e7c4901', u'allowed_address_pairs': [{u'ip_address': u'10.0.0.1', u'mac_address': u'00:25:64:e8:19:dd'}], u'admin_state_up': True, u'network_id': u'6764a6c7-f0a1-44f5-b07c-8f81a6e29bf5', u'tenant_id': u'228432282bc8447eae7bc6b38defc786', u'binding:vif_details': {u'port_filter': True}, u'binding:vnic_type': u'normal', u'binding:vif_type': u'vrouter', u'device_owner': u'', u'mac_address': u'02:67:5c:b1:53:4f', u'port_security_enabled': False, u'fixed_ips': [{u'subnet_id': u'dddc0f7d-a490-4d44-961f-06ef8f24659a', u'ip_address': u'10.100.0.3'}], u'id': u'675cb153-4fbc-4436-ac64-53c16e7c4901', u'security_groups': [], u'device_id': u''}

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/30874
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/30905
Submitter: <email address hidden> (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/30906
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/30874
Committed: http://github.com/Juniper/contrail-controller/commit/6b8ba2b12899457a2f6d1cd07fca618ab355052f
Submitter: Zuul (<email address hidden>)
Branch: master

commit 6b8ba2b12899457a2f6d1cd07fca618ab355052f
Author: Sahil <email address hidden>
Date: Fri Apr 28 17:50:09 2017 -0700

Address pairs not allowed with no port security

Config: Address pairs should not be allowed when port security
is not enabled

Change-Id: I9e0069f5679d8efe211ce95ccf9302054eecff53
Closes-Bug: 1685030

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

Review in progress for https://review.opencontrail.org/30906
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/30905
Submitter: <email address hidden> (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/30906
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/30905
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/30951
Submitter: <email address hidden> (<email address hidden>)

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

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

commit b5d109d371b29ca9febc715a09be485a3ea3b627
Author: Sahil <email address hidden>
Date: Mon May 1 13:59:45 2017 -0700

Address pairs not allowed with no port security

Config: Address pairs should not be allowed when port security
is not enabled

Change-Id: I211bd7e89d82633bb6701ddb55d1527633ea246d
Closes-Bug: 1685030

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

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

commit acdfc901b433571cc15c2ef6bb1a523b0b1f8f7b
Author: Sahil <email address hidden>
Date: Mon May 1 13:59:45 2017 -0700

Address pairs not allowed with no port security

Config: Address pairs should not be allowed when port security
is not enabled

Change-Id: I211bd7e89d82633bb6701ddb55d1527633ea246d
Closes-Bug: 1685030

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

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

commit 44093923f917302e7181b393fb20459c5a07e646
Author: Sahil <email address hidden>
Date: Fri Apr 28 17:50:09 2017 -0700

Address pairs not allowed with no port security

Config: Address pairs should not be allowed when port security
is not enabled
Fix: raising 400 error from cfg_api and catching it in vnc_openstack
to raise 'AddressPairAndPortSecurityRequired' neutron exception.

Change-Id: I230779b93225ed5279b789b7a0d169bc2535d33c
Closes-Bug: 1685030

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

Review in progress for https://review.opencontrail.org/32567
Submitter: Vinay Vithal Mahuli (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/32567
Committed: http://github.com/Juniper/contrail-controller/commit/5c8b5684189b87aa1e082330a38174c23a16fee2
Submitter: Zuul (<email address hidden>)
Branch: R3.2.3.x

commit 5c8b5684189b87aa1e082330a38174c23a16fee2
Author: Sahil <email address hidden>
Date: Mon May 1 13:59:45 2017 -0700

Address pairs not allowed with no port security

Config: Address pairs should not be allowed when port security
is not enabled

Change-Id: I211bd7e89d82633bb6701ddb55d1527633ea246d
Closes-Bug: 1685030

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.