[ubuntu-havana-R1.06-38] creation of floating IP failed

Bug #1330051 reported by Prashant Shetty
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Invalid
Medium
Prashant Shetty

Bug Description

Creation of floating IP failed on R1.06 Ubuntu-Havana #38 with below trace. Can someone look into?.

Logs:

+++ write d92d5620-0ec3-4b10-8360-1220ab65482c admin=yes, mode=222 mask=770 admin/"KeystoneAdmin,admin,KeystoneServiceAdmin", perms=777 (admin/KeystoneAdmin)
+++ link 66afd533-38c5-45a6-b8d0-38f9e34b40a0 admin=yes, mode=111 mask=007 admin/"KeystoneAdmin,admin,KeystoneServiceAdmin", perms=777 (cloud-admin/_member_)
INFO:api-0:Sending request(xid=917): Create(path=u'/fq-name-to-uuid/floating_ip:default-domain:admin:public100:public-pool:fip', data='bf542e76-4d8f-475d-80b0-326859d945eb', acl=
[ACL(perms=31, acl_list=['ALL'], id=Id(scheme='world', id='anyone'))], flags=0)
INFO:api-0:Received response(xid=917): u'/fq-name-to-uuid/floating_ip:default-domain:admin:public100:public-pool:fip'
Traceback (most recent call last):
  File "/opt/contrail/api-venv/lib/python2.7/site-packages/bottle.py", line 766, in _handle
    return route.call(**args)
  File "/opt/contrail/api-venv/lib/python2.7/site-packages/bottle.py", line 1578, in wrapper
    rv = callback(*a, **ka)
  File "/opt/contrail/api-venv/lib/python2.7/site-packages/vnc_cfg_api_server/gen/vnc_api_server_gen.py", line 3587, in floating_ips_http_post
    (ok, result) = r_class.http_post_collection(tenant_name, obj_dict, db_conn)
  File "/opt/contrail/api-venv/lib/python2.7/site-packages/vnc_cfg_api_server/vnc_cfg_types.py", line 26, in http_post_collection
    proj_dict = obj_dict['project_refs'][0]
KeyError: 'project_refs'
10.204.216.30 - - [2014-06-14 12:23:48] "POST /floating-ips HTTP/1.1" 500 7687 0.024999
+++ read d92d5620-0ec3-4b10-8360-1220ab65482c admin=yes, mode=444 mask=770 admin/"KeystoneAdmin,admin,KeystoneServiceAdmin", perms=777 (admin/KeystoneAdmin)
10.204.216.30 - - [2014-06-14 12:23:48] "GET /floating-ip-pool/d92d5620-0ec3-4b10-8360-1220ab65482c?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 923 0.005679
+++ write 862f3d6a-80fe-4f0f-8602-3efb8dd4fa85 admin=yes, mode=222 mask=770 admin/"KeystoneAdmin,admin,KeystoneServiceAdmin", perms=777 (admin/KeystoneAdmin)
10.204.216.30 - - [2014-06-14 12:23:48] "PUT /project/862f3d6a-80fe-4f0f-8602-3efb8dd4fa85 HTTP/1.1" 200 252 0.010494
10.204.216.30 - - [2014-06-14 12:23:48] "POST /ref-update HTTP/1.1" 200 156 0.008341

Required logs: /cs-shared/test_runs/nodea35/2014_06_14_11_25_19

Tags: test
Changed in juniperopenstack:
assignee: nobody → Sachin Bansal (bansalsachin)
information type: Proprietary → Public
tags: added: blocker
Revision history for this message
Sachin Bansal (sbansal) wrote :

From Prakash:

This is a test case issue.

Can you pls set the project object on fip_obj before calling the floating_ip_create? (in https://github.com/Juniper/contrail-test/blob/master/scripts/mx_test.py:545)
fip_obj.set_project(proj_obj)
 # Read the project obj and set to the floating ip object.

This issue is exposed
 due to the Quota fixes that went in to R1.06. To update/validate quota, project object is fetched from floating ip post object. It fails due to missing proj_refs.

Let me know if it doesn’t
 fix the issue.

Changed in juniperopenstack:
assignee: Sachin Bansal (bansalsachin) → Prashant Shetty (shettyp)
Sachin Bansal (sbansal)
tags: added: test
removed: config
tags: removed: api blocker
Revision history for this message
Prashant Shetty (shettyp) wrote :

After script fix suggested by Prakash, we not seeing this issue anymore. Will close this PR.

Changed in juniperopenstack:
status: New → Invalid
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.