config: unable to edit perms2 via config-editor from UI
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.2 |
Fix Committed
|
Undecided
|
Suresh Vinapamula | |||
R4.0 |
Fix Committed
|
Undecided
|
Suresh Vinapamula | |||
R4.1 |
Fix Committed
|
Undecided
|
Suresh Vinapamula | |||
Trunk |
Fix Committed
|
Undecided
|
Suresh Vinapamula |
Bug Description
Was trying to set global_access for an object thru config-editor of ContrailUI and observe the below error from contrail-api server.
/usr/lib/
3402 db_obj_
3403 elif req_obj_dict:
3404 (ok, result) = db_conn.
3405 # Update quota counter
3406 if resource_type == 'project' and 'quota' in req_obj_dict:
ok = True
result = ''
db_conn = <vnc_cfg_
db_conn.dbe_update = <bound method VncDbClient.
obj_type = 'policy_management'
obj_uuid = 'd81d90a0-
req_obj_dict = {'perms2': {'global_access': 5, 'owner': 'cloud-admin', 'owner_access': 7}, 'uuid': 'd81d90a0-
/usr/lib/
obj_dict=
1156 obj_id, obj_dict)
1157 try:
1158 ret = func(self, obj_type, obj_id, obj_dict)
1159 trace_msg([trace], 'DBRequestTrace
1160 self._sandesh)
ret undefined
func = <function wrapper2>
self = <vnc_cfg_
obj_type = 'policy_management'
obj_id = 'd81d90a0-
obj_dict = {'perms2': {'global_access': 5, 'owner': 'cloud-admin', 'owner_access': 7}, 'uuid': 'd81d90a0-
/usr/lib/
obj_dict=
1190 return (ok, result)
1191
1192 share_perms = new_perms2['share']
1193 global_access = new_perms2[
1194
share_perms undefined
new_perms2 = {'global_access': 5, 'owner': 'cloud-admin', 'owner_access': 7}
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.KeyError object>
__dict__ = {}
__doc__ = 'Mapping key not found.'
__format__ = <built-in method __format__ of exceptions.KeyError object>
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.KeyError object>
__getslice__ = <method-wrapper '__getslice__' of exceptions.KeyError object>
__hash__ = <method-wrapper '__hash__' of exceptions.KeyError object>
__init__ = <method-wrapper '__init__' of exceptions.KeyError object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.KeyError object>
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.KeyError object>
__repr__ = <method-wrapper '__repr__' of exceptions.KeyError object>
__setattr__ = <method-wrapper '__setattr__' of exceptions.KeyError object>
__setstate__ = <built-in method __setstate__ of exceptions.KeyError object>
__sizeof__ = <built-in method __sizeof__ of exceptions.KeyError object>
__str__ = <method-wrapper '__str__' of exceptions.KeyError object>
__subclassh
__unicode__ = <built-in method __unicode__ of exceptions.KeyError object>
args = ('share',)
message = 'share'
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/usr/lib/
ok, result = stateful_update()
File "/usr/lib/
(ok, result) = db_conn.
File "/usr/lib/
ret = func(self, obj_type, obj_id, obj_dict)
File "/usr/lib/
share_perms = new_perms2['share']
KeyError: 'share'
information type: | Proprietary → Private |
information type: | Private → Public |
tags: | added: att-aic-contrail |
Review in progress for https:/ /review. opencontrail. org/37420
Submitter: Suresh Vinapamula (<email address hidden>)