Error 500 while updating QosConfig object
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.1 |
Fix Committed
|
Medium
|
Ranjeet R | |||
Trunk |
Fix Committed
|
Medium
|
Ranjeet R |
Bug Description
R3.1.0.0 Build 2738
Happens when dscp/dot1p/exp entries are set to None whiel updating
Below qos_fixture2.
(Pdb) qos_fixture2.
(Pdb) qos_fixture2.
*** HttpError: HTTP Status: 500 Content: <type 'exceptions.
Python 2.7.6: /usr/bin/python
Thu Jul 14 12:19:30 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/
742
743 try:
744 ok, result = stateful_update()
745 except Exception as e:
746 ok = False
ok = False
result = 'RWX'
stateful_update = <function stateful_update>
/usr/lib/
728 get_context(
729 (ok, result) = db_conn.
730 obj_dict)
731 if not ok:
732 return (ok, result)
obj_dict = {'mpls_
/usr/lib/
1757 obj_ids, obj_dict)
1758 try:
1759 ret = func(self, obj_type, obj_ids, obj_dict)
1760 trace_msg(trace, 'DBRequestTrace
1761 self._sandesh)
ret undefined
func = <function wrapper2>
self = <vnc_cfg_
obj_type = 'qos_config'
obj_ids = {'uuid': '2e1297b9-
obj_dict = {'mpls_
/usr/lib/
1789
1790 # don't build sharing indexes if operation (create/update) failed
1791 (ok, result) = func(self, obj_type, obj_ids, obj_dict)
1792 if not ok:
1793 return (ok, result)
ok undefined
result undefined
func = <function dbe_update>
self = <vnc_cfg_
obj_type = 'qos_config'
obj_ids = {'uuid': '2e1297b9-
obj_dict = {'mpls_
/usr/lib/
1903 def dbe_update(self, obj_type, obj_ids, new_obj_dict):
1904 (ok, cassandra_result) = self._cassandra
1905 obj_type, obj_ids['uuid'], new_obj_dict)
1906
1907 # publish to ifmap via message bus (rabbitmq)
obj_type = 'qos_config'
obj_ids = {'uuid': '2e1297b9-
new_obj_dict = {'mpls_
/usr/lib/
903 # wrapper on read
904 if obj_class.
905 wrapper_field = new_props[
906 map_coll = new_props[
907 else:
wrapper_field undefined
new_props = {u'mpls_
prop_name = u'mpls_exp_entries'
].keys undefined
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Attribute not found.'
__format__ = <built-in method __format__ of exceptions.
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.
__getslice__ = <method-wrapper '__getslice__' of exceptions.
__hash__ = <method-wrapper '__hash__' of exceptions.
__init__ = <method-wrapper '__init__' of exceptions.
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.
__repr__ = <method-wrapper '__repr__' of exceptions.
__setattr__ = <method-wrapper '__setattr__' of exceptions.
__setstate__ = <built-in method __setstate__ of exceptions.
__sizeof__ = <built-in method __sizeof__ of exceptions.
__str__ = <method-wrapper '__str__' of exceptions.
__subclassh
__unicode__ = <built-in method __unicode__ of exceptions.
args = ("'NoneType' object has no attribute 'keys'",)
message = "'NoneType' object has no attribute 'keys'"
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/
obj_dict)
File "/usr/lib/
ret = func(self, obj_type, obj_ids, obj_dict)
File "/usr/lib/
(ok, result) = func(self, obj_type, obj_ids, obj_dict)
File "/usr/lib/
obj_type, obj_ids['uuid'], new_obj_dict)
File "/usr/lib/
wrapper_field = new_props[
AttributeError: 'NoneType' object has no attribute 'keys'
summary: |
- InternalServerError while updating QosConfig object + Error 500 while updating QosConfig object |
Changed in juniperopenstack: | |
assignee: | Sachin Bansal (sbansal) → Ranjeet R (rranjeet-n) |
tags: | added: qos |
Review in progress for https:/ /review. opencontrail. org/22054
Submitter: Ranjeet R (<email address hidden>)