vcenter-only: create VN failing with exception
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.2 |
Fix Committed
|
Critical
|
Hampapur Ajay | |||
Trunk |
Fix Committed
|
Critical
|
Hampapur Ajay |
Bug Description
create VN failing with exception API server on mainline#2746
Ajay debugged and know the problem
Traceback (most recent call last):
File "/usr/lib/
ok, result = stateful_create()
File "/usr/lib/
db_conn)
File "/usr/lib/
vn_uuid)
File "/usr/lib/
obj_
File "/usr/lib/
ret_
File "/usr/lib/
timestamp=True)
File "/usr/lib/
column_
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
packed_keys = map(self._pack_key, keys)
File "/usr/lib/
return self._key_
File "/usr/lib/
% (v.__class_
TypeError: A str or unicode value was expected, but NoneType was received instead (None)
Details from log file with cgitb detailed info
[2016-10-21 06:05:02,038] [INFO ] [Thread- 3:ApiConnectorI mpl@228] [] [>> Request: POST, /virtual-networks, {"virtual- network" :{"router_ external" :false, "is_shared" :false, "external_ ipam":true, "flood_ unknown_ unicast" :false, "multi_ policy_ service_ chains_ enabled" :false, "id_perms" :{"enable" :true," user_visible" :false, "creator" :"vcenter- plugin" },"display_ name":" ctest-vn- 58650667" ,"network_ ipam_refs" :[{"to" :["default- domain" ,"vCenter" ,"vCenter- ipam"], "attr": {"ipam_ subnets" :[{"subnet" :{"ip_prefix" :"12.11. 10.0"," ip_prefix_ len":24} ,"subnet_ uuid":" f704a3ba- 0217-48e8- b0ab-804cb36115 48","enable_ dhcp":true, "addr_from_ start": true,"subnet_ name":" ctest-vn- 58650667- subnet" ,"alloc_ unit":1} ]},"href" :null," uuid":null} ],"name" :"ctest- vn-58650667" ,"uuid" :"1d7baeea- 861c-313f- a132-0b23a474d1 89","fq_ name":[ "default- domain" ,"vCenter" ,"ctest- vn-58650667" ],"parent_ type":" project" }}] 3:ApiConnectorI mpl@263] [] [<< Response Status: HTTP/1.1 500 Internal Server Error] 3:ApiConnectorI mpl@354] [] [create api request failed: Internal Server Error] 3:ApiConnectorI mpl@356] [] [Failure message: <type 'exceptions. TypeError' >
[2016-10-21 06:05:02,083] [INFO ] [Thread-
[2016-10-21 06:05:02,084] [ERROR] [Thread-
[2016-10-21 06:05:02,084] [ERROR] [Thread-
Python 2.7.6: /usr/bin/python
Fri Oct 21 06:05:02 2016
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/lib/ python2. 7/dist- packages/ vnc_cfg_ api_server/ vnc_cfg_ api_server. py in http_resource_ create( self=<vnc_ cfg_api_ server. vnc_cfg_ api_server. VncApiServer object>, obj_type= 'virtual_ network' ) 861c-313f- a132-0b23a474d1 89'
576
577 try:
578 ok, result = stateful_create()
579 except Exception as e:
580 ok = False
ok = False
result = u'1d7baeea-
stateful_create = <function stateful_create>
/usr/lib/ python2. 7/dist- packages/ vnc_cfg_ api_server/ vnc_cfg_ api_server. py in stateful_create() pre_dbe_ create( tenant_ name, obj_dict, api_server. vnc_cfg_ ifmap.VncDbClie nt object>
517 # type-specific hook
518 (ok, result) = r_class.
519 db_conn)
520 if not ok:
521 return (ok, result)
db_conn = <vnc_cfg_
/usr/lib/ python2. 7/dist- packages/ vnc_cfg_ api_server/ vnc_cfg_ types.py in pre_dbe_ create( cls=<class 'vnc_cfg_ api_server. vnc_cfg_ types.VirtualNe tworkServer' >, tenant_ name='default- project' , obj_dict= {u'display_ name': u'ctest- vn-58650667' , u'external_ipam': True, u'flood_ unknown_ unicast' : False, u'fq_name': [u'default-domain', u'vCenter', u'ctest- vn-58650667' ], u'id_perms': {u'created': None, u'creator': u'vcenter-plugin', u'description': None, u'enable': True, u'last_modified': None, u'permissions': {u'group': u'cloud- admin-group' , u'group_access': 7, u'other_access': 7, u'owner': u'cloud-admin', u'owner_access': 7}, u'user_visible': False, u'uuid': {'uuid_lslong': 116153586366528 10633L, 'uuid_mslong': 212448397153089 5679L}} , u'is_shared': False, u'multi_ policy_ service_ chains_ enabled' : False, u'name': u'ctest- vn-58650667' , u'network_ ipam_refs' : [{u'attr': {u'ipam_subnets': [{...