R4.1-96-vnc -api project update failed

Bug #1749610 reported by shajuvk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
High
Ignatious Johnson Christopher
R4.1
Fix Committed
High
Ignatious Johnson Christopher
Trunk
Fix Committed
High
Ignatious Johnson Christopher

Bug Description

 /usr/lib/python2.7/site-packages/vnc_cfg_api_server/vnc_cfg_types.py in dbe_update_notification(cls=<class 'vnc_cfg_api_server.vnc_cfg_types.ProjectServer'>, obj_ids=u'1b596d00-4148-435a-ae95-14b20cb13416')
 4272 quota_counter = cls.server.quota_counter
 4273 db_conn = cls.server._db_conn
 4274 ok, proj_dict = QuotaHelper.get_project_dict_for_quota(obj_ids['uuid'], db_conn)
 4275 for obj_type, quota_limit in proj_dict['quota'].items():
 4276 path_prefix = _DEFAULT_ZK_COUNTER_PATH_PREFIX + obj_ids['uuid']
ok undefined
proj_dict undefined
global QuotaHelper = <class 'vnc_cfg_api_server.vnc_quota.QuotaHelper'>
QuotaHelper.get_project_dict_for_quota = <bound method type.get_project_dict_for_quota of <class 'vnc_cfg_api_server.vnc_quota.QuotaHelper'>>
obj_ids = u'1b596d00-4148-435a-ae95-14b20cb13416'
db_conn = <vnc_cfg_api_server.vnc_db.VncDbClient object>
<type 'exceptions.TypeError'>: string indices must be integers
    __class__ = <type 'exceptions.TypeError'>
    __delattr__ = <method-wrapper '__delattr__' of exceptions.TypeError object>
    __dict__ = {}
    __doc__ = 'Inappropriate argument type.'
    __format__ = <built-in method __format__ of exceptions.TypeError object>
    __getattribute__ = <method-wrapper '__getattribute__' of exceptions.TypeError object>
    __getitem__ = <method-wrapper '__getitem__' of exceptions.TypeError object>
    __getslice__ = <method-wrapper '__getslice__' of exceptions.TypeError object>
    __hash__ = <method-wrapper '__hash__' of exceptions.TypeError object>
    __init__ = <method-wrapper '__init__' of exceptions.TypeError object>
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of exceptions.TypeError object>
    __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.TypeError object>
    __repr__ = <method-wrapper '__repr__' of exceptions.TypeError object>
    __setattr__ = <method-wrapper '__setattr__' of exceptions.TypeError object>
    __setstate__ = <built-in method __setstate__ of exceptions.TypeError object>
    __sizeof__ = <built-in method __sizeof__ of exceptions.TypeError object>
    __str__ = <method-wrapper '__str__' of exceptions.TypeError object>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __unicode__ = <built-in method __unicode__ of exceptions.TypeError object>
    args = ('string indices must be integers',)
    message = 'string indices must be integers'

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/python2.7/site-packages/vnc_cfg_api_server/vnc_db.py", line 280, in _dbe_subscribe_callback
    self._dbe_update_notification(oper_info)
  File "/usr/lib/python2.7/site-packages/vnc_cfg_api_server/vnc_db.py", line 330, in _dbe_update_notification
    r_class.dbe_update_notification(obj_uuid)
  File "/usr/lib/python2.7/site-packages/vnc_cfg_api_server/vnc_cfg_types.py", line 4274, in dbe_update_notification
    ok, proj_dict = QuotaHelper.get_project_dict_for_quota(obj_ids['uuid'], db_conn)
TypeError: string indices must be integers

shajuvk (shajuvk)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/39728
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/39815
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/39867
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/39815
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/39867
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/39815
Committed: http://github.com/Juniper/contrail-controller/commit/032525c61bccbe20c1e0f9ae928ae8808e64fa2f
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 032525c61bccbe20c1e0f9ae928ae8808e64fa2f
Author: Ignatious Johnson Christopher <email address hidden>
Date: Thu Feb 15 22:07:22 2018 +0000

obj uuids is a string, so using it

as it is. in older releases it was a dict
cherrypick introduced this issue.

Closes-Bug: 1749610

Fix flaky unittests
- test_security_group_rule_global_quota

Closes-Bug: 1745257

Change-Id: Ib1e7a9aea7e943709a9d745eda3dad0039d76a6b

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/39728
Committed: http://github.com/Juniper/contrail-controller/commit/1fe095b421f38f6f25cba01387ae06bd0ea01c56
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 1fe095b421f38f6f25cba01387ae06bd0ea01c56
Author: Ignatious Johnson Christopher <email address hidden>
Date: Wed Feb 14 05:48:58 2018 +0000

method signature change for dbe update

notification.

Change-Id: I042a3e4cae5bd4356bb2e4c5bec572097555020b
Closes-Bug: 1749367
Closes-Bug: 1749610

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/39867
Committed: http://github.com/Juniper/contrail-controller/commit/b2778611d236b434108d8f79a97fb7ed1d56dd17
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit b2778611d236b434108d8f79a97fb7ed1d56dd17
Author: Ignatious Johnson Christopher <email address hidden>
Date: Thu Feb 15 22:07:22 2018 +0000

obj uuids is a string, so using it

as it is. in older releases it was a dict
cherrypick introduced this issue.

Closes-Bug: 1749610

Fix flaky unittests
- test_security_group_rule_global_quota

Closes-Bug: 1745257

Change-Id: Ib1e7a9aea7e943709a9d745eda3dad0039d76a6b

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.