Skip to content

Instantly share code, notes, and snippets.

@nati
Created January 22, 2014 22:03
Show Gist options
  • Select an option

  • Save nati/8568305 to your computer and use it in GitHub Desktop.

Select an option

Save nati/8568305 to your computer and use it in GitHub Desktop.
01/22/2014 02:01:18 PM [SandeshUVE]: Add uve <default-domain:demo:devstack-ServerOne-opzmlqr22tsp-FrontendNetwork-4rnfxdtic7ze, 91> in the [UveVirtualNetworkConfigTrace] map
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/schema_transformer/to_bgp.py", line 2856, in launch_arc
raise e
HttpError: HTTP Status: 500 Content: <class 'vnc_addr_mgmt.AddrMgmtSubnetUndefined'>
Python 2.7.4: /usr/bin/python
Wed Jan 22 14:01:19 2014
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/usr/local/lib/python2.7/dist-packages/vnc_cfg_api_server/bottle.py in _handle(self=<bottle.Bottle object>, environ={'CONTENT_LENGTH': '28', 'CONTENT_TYPE': 'application/json; charset="UTF-8"', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, compress', 'HTTP_HOST': '216.69.94.123:8082', 'HTTP_USER_AGENT': 'python-requests/1.1.0 CPython/2.7.4 Linux/3.8.0-35-generic', 'HTTP_X_TENANT_NAME': 'admin', 'PATH_INFO': '/virtual-network/637431ba-401f-41e0-abfe-154e01900ea8/ip-alloc', 'QUERY_STRING': '', ...})
764 environ['bottle.route'] = route
765 environ['route.url_args'] = args
766 return route.call(**args)
767 except HTTPResponse:
768 return _e()
route = <POST '/virtual-network/<id>/ip-alloc' <bound me...loc_http_post of <__main__.VncApiServer object>>>
route.call = <function vn_ip_alloc_http_post>
args = {'id': '637431ba-401f-41e0-abfe-154e01900ea8'}
/usr/local/lib/python2.7/dist-packages/vnc_cfg_api_server/bottle.py in wrapper(*a=(), **ka={'id': '637431ba-401f-41e0-abfe-154e01900ea8'})
1576 if not dumps: return callback
1577 def wrapper(*a, **ka):
1578 rv = callback(*a, **ka)
1579 if isinstance(rv, dict):
1580 #Attempt to serialize, raises exception on failure
rv undefined
callback = <bound method VncApiServer.vn_ip_alloc_http_post of <__main__.VncApiServer object>>
a = ()
ka = {'id': '637431ba-401f-41e0-abfe-154e01900ea8'}
/usr/local/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py in vn_ip_alloc_http_post(self=<__main__.VncApiServer object>, id='637431ba-401f-41e0-abfe-154e01900ea8')
1009 subnet = req_dict['subnet'] if 'subnet' in req_dict else None
1010 result = vnc_cfg_types.VirtualNetworkServer.ip_alloc(
1011 vn_fq_name, subnet, count)
1012 return result
1013 # end vn_ip_alloc_http_post
vn_fq_name = [u'default-domain', u'demo', u'devstack-ServerOne-opzmlqr22tsp-InternetNetwork-77m6sl474tbo']
subnet = None
count = 1
/usr/local/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_addr_mgmt.py in ip_alloc(self=<vnc_addr_mgmt.AddrMgmt object>, vn_fq_name=[u'default-domain', u'demo', u'devstack-ServerOne-opzmlqr22tsp-InternetNetwork-77m6sl474tbo'], sub=None, asked_ip_addr=None)
454 subnet_items = self._vninfo_subnet_getall(vn_fq_name_str)
455 if not subnet_items:
456 raise AddrMgmtSubnetUndefined(vn_fq_name_str)
457 458 for subnet_name, subnet_dict in subnet_items:global AddrMgmtSubnetUndefined = <class 'vnc_addr_mgmt.AddrMgmtSubnetUndefined'>
vn_fq_name_str = u'default-domain:demo:devstack-ServerOne-opzmlqr22tsp-InternetNetwork-77m6sl474tbo'
<class 'vnc_addr_mgmt.AddrMgmtSubnetUndefined'>: Virtual-Network(default-domain:demo:devstack-ServerOne-opzmlqr22tsp-InternetNetwork-77m6sl474tbo) has no defined subnet(s)
__class__ = <class 'vnc_addr_mgmt.AddrMgmtSubnetUndefined'>
__delattr__ = <method-wrapper '__delattr__' of AddrMgmtSubnetUndefined object>
__dict__ = {'vn_fq_name': u'default-domain:demo:devstack-ServerOne-opzmlqr22tsp-InternetNetwork-77m6sl474tbo'}
__doc__ = None
__format__ = <built-in method __format__ of AddrMgmtSubnetUndefined object>
__getattribute__ = <method-wrapper '__getattribute__' of AddrMgmtSubnetUndefined object>
__getitem__ = <method-wrapper '__getitem__' of AddrMgmtSubnetUndefined object>
__getslice__ = <method-wrapper '__getslice__' of AddrMgmtSubnetUndefined object>
__hash__ = <method-wrapper '__hash__' of AddrMgmtSubnetUndefined object>
__init__ = <bound method AddrMgmtSubnetUndefined.__init__ of AddrMgmtSubnetUndefined()>
__module__ = 'vnc_addr_mgmt'
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of AddrMgmtSubnetUndefined object>
__reduce_ex__ = <built-in method __reduce_ex__ of AddrMgmtSubnetUndefined object>
__repr__ = <method-wrapper '__repr__' of AddrMgmtSubnetUndefined object>
__setattr__ = <method-wrapper '__setattr__' of AddrMgmtSubnetUndefined object>
__setstate__ = <built-in method __setstate__ of AddrMgmtSubnetUndefined object>
__sizeof__ = <built-in method __sizeof__ of AddrMgmtSubnetUndefined object>
__str__ = <bound method AddrMgmtSubnetUndefined.__str__ of AddrMgmtSubnetUndefined()>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__unicode__ = <built-in method __unicode__ of AddrMgmtSubnetUndefined object>
__weakref__ = None
args = ()
message = ''
vn_fq_name = u'default-domain:demo:devstack-ServerOne-opzmlqr22tsp-InternetNetwork-77m6sl474tbo'
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/vnc_cfg_api_server/bottle.py", line 766, in _handle
return route.call(**args)
File "/usr/local/lib/python2.7/dist-packages/vnc_cfg_api_server/bottle.py", line 1578, in wrapper
rv = callback(*a, **ka)
File "/usr/local/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 1011, in vn_ip_alloc_http_post
vn_fq_name, subnet, count)
File "/usr/local/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_types.py", line 165, in ip_alloc
for i in range(count)]
File "/usr/local/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_addr_mgmt.py", line 456, in ip_alloc
raise AddrMgmtSubnetUndefined(vn_fq_name_str)
AddrMgmtSubnetUndefined: Virtual-Network(default-domain:demo:devstack-ServerOne-opzmlqr22tsp-InternetNetwork-77m6sl474tbo) has no defined subnet(s)
<Greenlet at 0x4143eb0: launch_arc(<__main__.SchemaTransformer object at 0x3e4fe90>, <cfgm_common.ifmap.client.client instance at 0x421)> failed with HttpError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment