delete_quota_counter() got an unexpected keyword argument 'recursive'

Bug #1769955 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
Won't Fix
High
Nagendra Prasath
Trunk
Incomplete
High
Vinoth Kannan Ganapathy

Bug Description

ok = False
result undefined
r_class = <class 'vnc_cfg_api_server.vnc_cfg_types.ProjectServer'>
r_class.post_dbe_delete = <bound method __metaclass__.post_dbe_delete of <...vnc_cfg_api_server.vnc_cfg_types.ProjectServer'>>
id = '43d7425b-4f67-4647-aed1-054d308f3c20'
read_result = {'application_policy_set_refs': [{'attr': None, 'to': ['default-domain', 'tempest-QuotasNegativeTest-371688725', 'default-application-policy-set'], 'uuid': 'c6382fcf-0a06-4ffd-a98e-1783945e44da'}], 'application_policy_sets': [{'to': ['default-domain', 'tempest-QuotasNegativeTest-371688725', 'default-application-policy-set'], 'uuid': 'c6382fcf-0a06-4ffd-a98e-1783945e44da'}], 'display_name': 'tempest-QuotasNegativeTest-371688725', 'fq_name': ['default-domain', 'tempest-QuotasNegativeTest-371688725'], 'id_perms': {'created': '2018-05-08T10:50:09.019463', 'creator': None, 'description': None, 'enable': True, 'last_modified': '2018-05-08T10:50:35.647713', 'permissions': {'group': 'cloud-admin-group', 'group_access': 7, 'other_access': 7, 'owner': 'cloud-admin', 'owner_access': 7}, 'user_visible': True, 'uuid': {'uuid_lslong': 12596855461817302048L, 'uuid_mslong': 4888448880475588167}}, 'parent_type': 'domain', 'parent_uuid': '1657bb47-39de-46dd-bb07-3bc61911008d', 'perms2': {'global_access': 0, 'owner': '43d7425b4f674647aed1054d308f3c20', 'owner_access': 7, 'share': []}, 'quota': {'access_control_list': None, 'bgp_router': None, 'defaults': None, 'floating_ip': None, 'floating_ip_pool': None, 'global_vrouter_config': None, 'instance_ip': None, 'loadbalancer_healthmonitor': None, 'loadbalancer_member': None, 'loadbalancer_pool': None, ...}, 'uuid': '43d7425b-4f67-4647-aed1-054d308f3c20'}
db_conn = <vnc_cfg_api_server.vnc_db.VncDbClient object>

 /usr/lib/python2.7/site-packages/vnc_cfg_api_server/vnc_cfg_types.py in post_dbe_delete(cls=<class 'vnc_cfg_api_server.vnc_cfg_types.ProjectServer'>, id='43d7425b-4f67-4647-aed1-054d308f3c20', obj_dict={'application_policy_set_refs': [{'attr': None, 'to': ['default-domain', 'tempest-QuotasNegativeTest-371688725', 'default-application-policy-set'], 'uuid': 'c6382fcf-0a06-4ffd-a98e-1783945e44da'}], 'application_policy_sets': [{'to': ['default-domain', 'tempest-QuotasNegativeTest-371688725', 'default-application-policy-set'], 'uuid': 'c6382fcf-0a06-4ffd-a98e-1783945e44da'}], 'display_name': 'tempest-QuotasNegativeTest-371688725', 'fq_name': ['default-domain', 'tempest-QuotasNegativeTest-371688725'], 'id_perms': {'created': '2018-05-08T10:50:09.019463', 'creator': None, 'description': None, 'enable': True, 'last_modified': '2018-05-08T10:50:35.647713', 'permissions': {'group': 'cloud-admin-group', 'group_access': 7, 'other_access': 7, 'owner': 'cloud-admin', 'owner_access': 7}, 'user_visible': True, 'uuid': {'uuid_lslong': 12596855461817302048L, 'uuid_mslong': 4888448880475588167}}, 'parent_type': 'domain', 'parent_uuid': '1657bb47-39de-46dd-bb07-3bc61911008d', 'perms2': {'global_access': 0, 'owner': '43d7425b4f674647aed1054d308f3c20', 'owner_access': 7, 'share': []}, 'quota': {'access_control_list': None, 'bgp_router': None, 'defaults': None, 'floating_ip': None, 'floating_ip_pool': None, 'global_vrouter_config': None, 'instance_ip': None, 'loadbalancer_healthmonitor': None, 'loadbalancer_member': None, 'loadbalancer_pool': None, ...}, 'uuid': '43d7425b-4f67-4647-aed1-054d308f3c20'}, db_conn=<vnc_cfg_api_server.vnc_db.VncDbClient object>)
 4996 path = _DEFAULT_ZK_COUNTER_PATH_PREFIX + id
 4997 if db_conn._zk_db.quota_counter_exists(path):
 4998 db_conn._zk_db.delete_quota_counter(path, recursive=True)
 4999 return True, ""
 5000 # end post_dbe_delete
db_conn = <vnc_cfg_api_server.vnc_db.VncDbClient object>
db_conn._zk_db = <vnc_cfg_api_server.vnc_db.VncZkClient object>
db_conn._zk_db.delete_quota_counter = <bound method VncZkClient.delete_quota_counter of <vnc_cfg_api_server.vnc_db.VncZkClient object>>
path = '/vnc_api_server_obj_create/43d7425b-4f67-4647-aed1-054d308f3c20'
recursive undefined
builtinTrue = True
<type 'exceptions.TypeError'>: delete_quota_counter() got an unexpected keyword argument 'recursive'
    __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 = ("delete_quota_counter() got an unexpected keyword argument 'recursive'",)
    message = "delete_quota_counter() got an unexpected keyword argument 'recursive'"

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_cfg_api_server.py", line 1259, in stateful_delete
    ok, result = r_class.post_dbe_delete(id, read_result, db_conn)
  File "/usr/lib/python2.7/site-packages/vnc_cfg_api_server/vnc_cfg_types.py", line 4998, in post_dbe_delete
    db_conn._zk_db.delete_quota_counter(path, recursive=True)
TypeError: delete_quota_counter() got an unexpected keyword argument 'recursive'

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

Other bug subscribers