TypeError @ dbe_delete_notification in contrail-api

Bug #1769959 reported by Vinoth Kannan Ganapathy on 2018-05-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Committed
High
Édouard Thuleau
Trunk
Fix Committed
High
Édouard Thuleau

Bug Description

  360 msg = "Failure in dbe_delete_notification: " + str(e)
r_class = <class 'vnc_cfg_api_server.vnc_cfg_types.ProjectServer'>
r_class.dbe_delete_notification = <bound method __metaclass__.dbe_delete_notificat...vnc_cfg_api_server.vnc_cfg_types.ProjectServer'>>
obj_uuid = u'43d7425b-4f67-4647-aed1-054d308f3c20'
obj_dict = {u'application_policy_set_refs': [{u'attr': None, u'to': [u'default-domain', u'tempest-QuotasNegativeTest-371688725', u'default-application-policy-set'], u'uuid': u'c6382fcf-0a06-4ffd-a98e-1783945e44da'}], u'application_policy_sets': [{u'to': [u'default-domain', u'tempest-QuotasNegativeTest-371688725', u'default-application-policy-set'], u'uuid': u'c6382fcf-0a06-4ffd-a98e-1783945e44da'}], u'display_name': u'tempest-QuotasNegativeTest-371688725', u'fq_name': [u'default-domain', u'tempest-QuotasNegativeTest-371688725'], u'id_perms': {u'created': u'2018-05-08T10:50:09.019463', u'creator': None, u'description': None, u'enable': True, u'last_modified': u'2018-05-08T10:50:35.647713', 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': True, u'uuid': {u'uuid_lslong': 12596855461817302048L, u'uuid_mslong': 4888448880475588167}}, u'parent_type': u'domain', u'parent_uuid': u'1657bb47-39de-46dd-bb07-3bc61911008d', u'perms2': {u'global_access': 0, u'owner': u'43d7425b4f674647aed1054d308f3c20', u'owner_access': 7, u'share': []}, u'quota': {u'access_control_list': None, u'bgp_router': None, u'defaults': None, u'floating_ip': None, u'floating_ip_pool': None, u'global_vrouter_config': None, u'instance_ip': None, u'loadbalancer_healthmonitor': None, u'loadbalancer_member': None, u'loadbalancer_pool': None, ...}, u'uuid': u'43d7425b-4f67-4647-aed1-054d308f3c20'}

 /usr/lib/python2.7/site-packages/vnc_cfg_api_server/vnc_cfg_types.py in dbe_delete_notification(cls=<class 'vnc_cfg_api_server.vnc_cfg_types.ProjectServer'>, obj_ids=u'43d7425b-4f67-4647-aed1-054d308f3c20', obj_dict={u'application_policy_set_refs': [{u'attr': None, u'to': [u'default-domain', u'tempest-QuotasNegativeTest-371688725', u'default-application-policy-set'], u'uuid': u'c6382fcf-0a06-4ffd-a98e-1783945e44da'}], u'application_policy_sets': [{u'to': [u'default-domain', u'tempest-QuotasNegativeTest-371688725', u'default-application-policy-set'], u'uuid': u'c6382fcf-0a06-4ffd-a98e-1783945e44da'}], u'display_name': u'tempest-QuotasNegativeTest-371688725', u'fq_name': [u'default-domain', u'tempest-QuotasNegativeTest-371688725'], u'id_perms': {u'created': u'2018-05-08T10:50:09.019463', u'creator': None, u'description': None, u'enable': True, u'last_modified': u'2018-05-08T10:50:35.647713', 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': True, u'uuid': {u'uuid_lslong': 12596855461817302048L, u'uuid_mslong': 4888448880475588167}}, u'parent_type': u'domain', u'parent_uuid': u'1657bb47-39de-46dd-bb07-3bc61911008d', u'perms2': {u'global_access': 0, u'owner': u'43d7425b4f674647aed1054d308f3c20', u'owner_access': 7, u'share': []}, u'quota': {u'access_control_list': None, u'bgp_router': None, u'defaults': None, u'floating_ip': None, u'floating_ip_pool': None, u'global_vrouter_config': None, u'instance_ip': None, u'loadbalancer_healthmonitor': None, u'loadbalancer_member': None, u'loadbalancer_pool': None, ...}, u'uuid': u'43d7425b-4f67-4647-aed1-054d308f3c20'})
 5025 quota_counter = cls.server.quota_counter
 5026 for obj_type in obj_dict.get('quota', {}).keys():
 5027 path_prefix = _DEFAULT_ZK_COUNTER_PATH_PREFIX + obj_ids['uuid']
 5028 path = path_prefix + "/" + obj_type
 5029 if quota_counter.get(path):
path_prefix undefined
global _DEFAULT_ZK_COUNTER_PATH_PREFIX = '/vnc_api_server_obj_create/'
obj_ids = u'43d7425b-4f67-4647-aed1-054d308f3c20'
<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 287, in _dbe_subscribe_callback
    self._dbe_delete_notification(oper_info)
  File "/usr/lib/python2.7/site-packages/vnc_cfg_api_server/vnc_db.py", line 358, in _dbe_delete_notification
    r_class.dbe_delete_notification(obj_uuid, obj_dict)
  File "/usr/lib/python2.7/site-packages/vnc_cfg_api_server/vnc_cfg_types.py", line 5027, in dbe_delete_notification
    path_prefix = _DEFAULT_ZK_COUNTER_PATH_PREFIX + obj_ids['uuid']
TypeError: string indices must be integers

Jeba Paulaiyan (jebap) on 2018-05-10
tags: added: config

Review in progress for https://review.opencontrail.org/44175
Submitter: Édouard Thuleau (<email address hidden>)

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

commit b2469a50b1847758fe43b86efc1b69f823002010
Author: Édouard Thuleau <email address hidden>
Date: Wed Jun 27 18:18:56 2018 +0200

[config] fix notify hooks

Fix attribute type in notify hook methods in vnc_cfg_types and improve
retruned error in that methods.

Change-Id: I65eab626f9a8aeff361c9a02bc7416a7793de1e3
Closes-Bug: #1769959

Review in progress for https://review.opencontrail.org/44954
Submitter: Édouard Thuleau (<email address hidden>)

Reviewed: https://review.opencontrail.org/44954
Committed: http://github.com/Juniper/contrail-controller/commit/1848f661053df36848735201b7e0e93c3f0978cb
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit 1848f661053df36848735201b7e0e93c3f0978cb
Author: Édouard Thuleau <email address hidden>
Date: Wed Jun 27 18:18:56 2018 +0200

[config] fix notify hooks

Fix attribute type in notify hook methods in vnc_cfg_types and improve
retruned error in that methods.

Change-Id: I65eab626f9a8aeff361c9a02bc7416a7793de1e3
Closes-Bug: #1769959
(cherry picked from commit b2469a50b1847758fe43b86efc1b69f823002010)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers