HTTPError in contrail-api logs while creating subnets/ports etc. in a VN

Bug #1346459 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Medium
Prakash Bailkeri

Bug Description

Build 1.10 2261

I create a VN and a subnet in it. Things go fine.
But on creating the subnet, in the contrail-api log, we see this :

ERROR:vnc_cfg_api_server.vnc_cfg_api_server:Exception in REST api handler:
<pre>Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 415, in handler_trap_exception
    return handler(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 533, in fq_name_to_id_http_post
    bottle.abort(404, 'Name ' + pformat(fq_name) + ' not found')
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 2041, in abort
    raise HTTPError(code, text)
HTTPError
</pre>

-----------

root@nodec22:/var/log/contrail# neutron net-create net30
Created a new network:
+-----------------+--------------------------------------+
| Field | Value |
+-----------------+--------------------------------------+
| admin_state_up | True |
| id | 5ff630fb-62f1-4d95-b78b-f47803806c31 |
| name | net30 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | d7573cca36ab40b88b3e5859924b5c58 |
+-----------------+--------------------------------------+
root@nodec22:/var/log/contrail# neutron subnet-create net30 10.1.1.0/24
Created a new subnet:
+------------------+---------------------------------------------------+
| Field | Value |
+------------------+---------------------------------------------------+
| allocation_pools | {"last_ip": "10.1.1.254", "first_ip": "10.1.1.2"} |
| cidr | 10.1.1.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 10.1.1.1 |
| id | e04315bb-789e-457d-b4a8-df5163d7333d |
| ip_version | 4 |
| name | |
| network_id | 5ff630fb-62f1-4d95-b78b-f47803806c31 |
| tenant_id | d7573cca36ab40b88b3e5859924b5c58 |
+------------------+---------------------------------------------------+
root@nodec22:/var/log/contrail#

contrail-api.log :
===============

(Pdb) 127.0.0.1 - - [2014-07-21 11:50:28] "GET / HTTP/1.1" 200 9385 0.000822
127.0.0.1 - - [2014-07-21 11:50:28] "GET /virtual-networks?count=False&detail=True HTTP/1.1" 200 8221 0.008397
10.204.217.7 - - [2014-07-21 11:50:28] "POST /neutron/network HTTP/1.1" 200 333 0.018494
127.0.0.1 - - [2014-07-21 11:50:28] "GET / HTTP/1.1" 200 9385 0.000783
127.0.0.1 - - [2014-07-21 11:50:28] "GET /virtual-networks?count=False&detail=True HTTP/1.1" 200 8221 0.007451
127.0.0.1 - - [2014-07-21 11:50:28] "GET /virtual-networks?count=False&detail=True HTTP/1.1" 200 8221 0.006554
127.0.0.1 - - [2014-07-21 11:50:28] "POST /useragent-kv HTTP/1.1" 200 157 0.006170
10.204.217.7 - - [2014-07-21 11:50:28] "POST /neutron/subnet HTTP/1.1" 200 120 0.035596
127.0.0.1 - - [2014-07-21 11:50:28] "GET / HTTP/1.1" 200 9385 0.000752
127.0.0.1 - - [2014-07-21 11:50:28] "GET /virtual-network/5ff630fb-62f1-4d95-b78b-f47803806c31?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1093 0.003837
ERROR:vnc_cfg_api_server.vnc_cfg_api_server:Exception in REST api handler:
<pre>Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 415, in handler_trap_exception
    return handler(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 533, in fq_name_to_id_http_post
    bottle.abort(404, 'Name ' + pformat(fq_name) + ' not found')
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 2041, in abort
    raise HTTPError(code, text)
HTTPError
</pre>

127.0.0.1 - - [2014-07-21 11:50:28] "POST /fqname-to-id HTTP/1.1" 404 192 0.004411
127.0.0.1 - - [2014-07-21 11:50:28] "PUT /virtual-network/5ff630fb-62f1-4d95-b78b-f47803806c31 HTTP/1.1" 200 262 0.005359
INFO:api-0:Sending request(xid=1889): GetChildren(path=u'/api-server/subnets/default-domain:admin:net30:10.1.1.0/24', watcher=None)
INFO:api-0:Received error(xid=1889) NoNodeError((), {})
INFO:api-0:Sending request(xid=1890): GetData(path=u'/api-server/subnets/default-domain:admin:net30:10.1.1.0/24/0167837952', watcher=None)
INFO:api-0:Received error(xid=1890) NoNodeError((), {})
INFO:api-0:Sending request(xid=1891): Create(path=u'/api-server/subnets/default-domain:admin:net30:10.1.1.0/24/0167837952', data='249aed5f-c2fc-41b7-9a55-1aa865600f15', acl=[ACL(perms=31, acl_list=['ALL'], id=Id(scheme='world', id='anyone'))], flags=0)
INFO:api-0:Received error(xid=1891) NoNodeError((), {})
INFO:api-0:Sending request(xid=1892): Exists(path=u'/api-server/subnets/default-domain:admin:net30:10.1.1.0/24', watcher=None)
INFO:api-0:Sending request(xid=1893): Exists(path=u'/api-server/subnets/default-domain:admin:net30:10.1.1.0', watcher=None)
INFO:api-0:Sending request(xid=1894): Exists(path=u'/api-server/subnets', watcher=None)
INFO:api-0:Received response(xid=1894): ZnodeStat(czxid=4294967394, mzxid=4294967394, ctime=1405942549422, mtime=1405942549422, version=0, cversion=149, aversion=0, ephemeralOwner=0, dataLength=0, numChildren=149, pzxid=4294969701)
INFO:api-0:Sending request(xid=1895): Create(path=u'/api-server/subnets/default-domain:admin:net30:10.1.1.0', data='', acl=[ACL(perms=31, acl_list=['ALL'], id=Id(scheme='world', id='anyone'))], flags=0)
INFO:api-0:Received response(xid=1895): u'/api-server/subnets/default-domain:admin:net30:10.1.1.0'
INFO:api-0:Sending request(xid=1896): Create(path=u'/api-server/subnets/default-domain:admin:net30:10.1.1.0/24', data='', acl=[ACL(perms=31, acl_list=['ALL'], id=Id(scheme='world', id='anyone'))], flags=0)
INFO:api-0:Received response(xid=1896): u'/api-server/subnets/default-domain:admin:net30:10.1.1.0/24'
INFO:api-0:Sending request(xid=1897): Create(path=u'/api-server/subnets/default-domain:admin:net30:10.1.1.0/24/0167837952', data='249aed5f-c2fc-41b7-9a55-1aa865600f15', acl=[ACL(perms=31, acl_list=['ALL'], id=Id(scheme='world', id='anyone'))], flags=0)
INFO:api-0:Received response(xid=1897): u'/api-server/subnets/default-domain:admin:net30:10.1.1.0/24/0167837952'
INFO:api-0:Sending request(xid=1898): GetData(path=u'/api-server/subnets/default-domain:admin:net30:10.1.1.0/24/0167838207', watcher=None)
INFO:api-0:Received error(xid=1898) NoNodeError((), {})
INFO:api-0:Sending request(xid=1899): GetData(path=u'/api-server/subnets/default-domain:admin:net30:10.1.1.0/24/0167837953', watcher=None)
INFO:api-0:Received error(xid=1899) NoNodeError((), {})
INFO:api-0:Sending request(xid=1900): Create(path=u'/api-server/subnets/default-domain:admin:net30:10.1.1.0/24/0167837953', data='28ca4e35-cc54-4a74-acbc-fc079bfee2c6', acl=[ACL(perms=31, acl_list=['ALL'], id=Id(scheme='world', id='anyone'))], flags=0)
INFO:api-0:Received response(xid=1900): u'/api-server/subnets/default-domain:admin:net30:10.1.1.0/24/0167837953'
127.0.0.1 - - [2014-07-21 11:50:28] "POST /ref-update HTTP/1.1" 200 156 0.210032
127.0.0.1 - - [2014-07-21 11:50:28] "POST /useragent-kv HTTP/1.1" 200 115 0.001593
127.0.0.1 - - [2014-07-21 11:50:28] "POST /useragent-kv HTTP/1.1" 200 115 0.002140
127.0.0.1 - - [2014-07-21 11:50:28] "GET /virtual-network/5ff630fb-62f1-4d95-b78b-f47803806c31?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1637 0.002870
127.0.0.1 - - [2014-07-21 11:50:28] "POST /useragent-kv HTTP/1.1" 200 157 0.001376
10.204.217.7 - - [2014-07-21 11:50:28] "POST /neutron/subnet HTTP/1.1" 200 533 0.262551
INFO:api-0:Sending request(xid=1901): GetData(path=u'/api-server/subnets/default-domain:admin:net30:10.1.1.0/24/0167837952', watcher=None)
INFO:api-0:Received response(xid=1901): ('249aed5f-c2fc-41b7-9a55-1aa865600f15', ZnodeStat(czxid=4294969717, mzxid=4294969717, ctime=1405968628569, mtime=1405968628569, version=0, cversion=0, aversion=0, ephemeralOwner=0, dataLength=36, numChildren=0, pzxid=4294969717))
INFO:api-0:Sending request(xid=1902): GetData(path=u'/api-server/subnets/default-domain:admin:net30:10.1.1.0/24/0167838207', watcher=None)
INFO:api-0:Received error(xid=1902) NoNodeError((), {})
INFO:api-0:Sending request(xid=1903): GetData(path=u'/api-server/subnets/default-domain:admin:net30:10.1.1.0/24/0167837953', watcher=None)
INFO:api-0:Received response(xid=1903): ('28ca4e35-cc54-4a74-acbc-fc079bfee2c6', ZnodeStat(czxid=4294969718, mzxid=4294969718, ctime=1405968628579, mtime=1405968628579, version=0, cversion=0, aversion=0, ephemeralOwner=0, dataLength=36, numChildren=0, pzxid=4294969718))

Tags: config
information type: Proprietary → Public
summary: - HTTPError in contrail-api logs while creating subnet in a VN
+ HTTPError in contrail-api logs while creating subnets/ports etc. in a VN
Revision history for this message
Hampapur Ajay (hajay) wrote :
Changed in juniperopenstack:
status: New → Fix Committed
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.