tempest-osp10:update floatingip test case with null body failed

Bug #1685314 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
Hampapur Ajay
R3.2.3.x
Fix Committed
Medium
Hampapur Ajay
Trunk
Fix Committed
Medium
Hampapur Ajay

Bug Description

Test case name : def test_blank_update_clears_association

git location: https://github.com/openstack/neutron/blob/6f01617fc5a8c9e33693459d50702e3506ad2cc4/neutron/tests/tempest/api/test_floating_ips.py

[root@overcloud-controller-0 heat-admin]# curl -X PUT -H "X-Auth-Token: 9449f6538f9d48c28d007ba5c8f24bd1" http://10.87.67.18:9696/v2.0/floatingips/5c4f6bb2-c886-46b8-9bac-819f38dfe573 -d '{"floatingip": {}}'

{"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}[root@overcloud-controller-0 heat-admin]#

[root@overcloud-controller-0 heat-admin]#
[root@overcloud-controller-0 heat-admin]# curl -X POST -H "X-Auth-Token: 9449f6538f9d48c28d007ba5c8f24bd1" http://10.87.67.18:9696/v2.0/floatingips/5c4f6bb2-c8
86-46b8-9bac-819f38dfe573 -d '{"floatingip": {}}'
{"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}[root@overcloud-controller-0 heat-admin]#
[root@overcloud-controller-0 heat-admin]# neutron floatingip-list
2017-04-21 16:45:28.576 135207 INFO neutron.wsgi [req-dd368dc4-64c5-42ec-adc4-8aba263cf3ba 63745b9a6fb049e3a81b0adf1032dfd5 e7849d28f2b54a54a6f5ff5d3fb23640 - - -] 10.0.0.22 - - [21/Apr/2017 16:45:28] "GET /v2.0/floatingips.json HTTP/1.1" 200 5566 1.367324
+--------------------------------------+------------------+---------------------+--------------------------------------+
| id | fixed_ip_address | floating_ip_address | port_id |
+--------------------------------------+------------------+---------------------+--------------------------------------+
| ab4de090-7f0b-4112-9625-da909c0ac822 | | 24.4.4.6 | |
| 4393bdfe-d742-4d58-a208-20044b0d3490 | | 24.4.4.7 | |
| 61aef724-9e16-4921-98b3-4256972043ac | | 24.4.4.8 | |
| 9f78cde8-bec8-448f-bafe-defc0bda77c3 | | 24.4.4.12 | |
| 8d6b1a9f-815f-4f53-84e2-7522c68b08a2 | | 24.4.4.17 | |
| 5c4f6bb2-c886-46b8-9bac-819f38dfe573 | 10.100.0.3 | 26.2.2.6 | 305d9e28-263d-46bc-b3ca-84dcb00cf10e |
| db0eff66-f068-422b-8d98-66afde59b246 | | 24.4.4.19 | |
| ca56977b-538a-42c9-ae43-38a56b39222c | | 26.2.2.5 | |
| 89cd0813-e60c-47d7-8c27-e5c81c8ef1ea | | 24.4.4.14 | |
| 50417d07-80c4-4823-9b4c-be2439449b5b | | 24.4.4.15 | |
| 26512410-cd83-4245-b1d0-aeab46a4539a | | 24.4.4.4 | |
| 20f55f91-df93-4632-85c6-8101d4f25bc6 | | 24.4.4.9 | |
| fd2175de-d60d-4d7d-9ddf-62693161a92c | | 24.4.4.18 | |
| 4c9fc0a4-d4d4-4b9b-b08b-f481b378e3fc | | 24.4.4.11 | |
| e09884bf-cbc8-4774-a67d-f48d374a07bf | | 24.4.4.5 | |
| c9fd5db6-4aa8-4f23-9be3-c17af616408a | | 24.4.4.20 | |
| b48f584c-6423-413b-9b21-6a8201c8980d | | 24.4.4.13 | |
| c6ba5c08-f367-4a63-8e73-8d26e836a68f | | 24.4.4.10 | |
| 5c00b3ed-80c0-4b2d-a628-6d0531eacbac | | 26.2.2.4 | |
+--------------------------------------+------------------+---------------------+--------------------------------------+

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/30737
Submitter: Hampapur Ajay (<email address hidden>)

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

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

commit 4a2080d832f088e6377b30cc5c5ca98035a5cd8a
Author: Hampapur Ajay <email address hidden>
Date: Tue Apr 25 10:17:39 2017 -0700

If neutron sends empty body in floatingip-update, vnc_openstack
receives body without 'resource' key. Simulate one and ensure any
port association is cleared in such a case.

Change-Id: I7ab14cb45b4896ddd4039f1343178d1984a4ca13
Closes-Bug: 1685314

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

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

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

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

commit dab5498867321b1e1a8a54388cc44f381caed7bf
Author: Hampapur Ajay <email address hidden>
Date: Tue Apr 25 10:17:39 2017 -0700

If neutron sends empty body in floatingip-update, vnc_openstack
receives body without 'resource' key. Simulate one and ensure any
port association is cleared in such a case.

Change-Id: I7ab14cb45b4896ddd4039f1343178d1984a4ca13
Closes-Bug: 1685314
(cherry picked from commit 4a2080d832f088e6377b30cc5c5ca98035a5cd8a)

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/32564
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/32564
Committed: http://github.com/Juniper/contrail-controller/commit/a12133bade9d517e10a57a77199aad1076245768
Submitter: Zuul (<email address hidden>)
Branch: R3.2.3.x

commit a12133bade9d517e10a57a77199aad1076245768
Author: Hampapur Ajay <email address hidden>
Date: Tue Apr 25 10:17:39 2017 -0700

If neutron sends empty body in floatingip-update, vnc_openstack
receives body without 'resource' key. Simulate one and ensure any
port association is cleared in such a case.

Change-Id: I7ab14cb45b4896ddd4039f1343178d1984a4ca13
Closes-Bug: 1685314
(cherry picked from commit 4a2080d832f088e6377b30cc5c5ca98035a5cd8a)

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.