Creating more than 100 VMI objects throws Cassandra exception

Bug #1580805 reported by Ranjeet R
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Ranjeet R

Bug Description

It looks like the perms2 is undefined when the perms is validated.

/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_perms.py in validate_perms_rbac(self=<vnc_cfg_api_server.vnc_perms.VncPermissions object>, request=<LocalRequest: POST http://127.0.0.1:8082/virtual-machine-interfaces>, obj_uuid='ceaad8d8-9643-4b90-828f-77b0f96e1419', mode=2)
   82 try:
   83 config = self._server_mgr._db_conn.uuid_to_obj_dict(obj_uuid)
   84 perms2 = json.loads(config.get('prop:perms2'))
   85 obj_name = config.get("fq_name")
   86 obj_type = config.get("type")
perms2 undefined
global json = <module 'cfgm_common.jsonutils' from '/usr/lib/python2.7/dist-packages/cfgm_common/jsonutils.pyc'>
json.loads = <function loads>
config = OrderedDict([('children:security_group:ba000e61-...in", "group_access": 7}, "description": null}')])
config.get = <built-in method get of OrderedDict object>

Tags: config
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/20127
Submitter: Ranjeet R (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/20127
Committed: http://github.org/Juniper/contrail-controller/commit/63e262579e651f848f1ceadc447203b43dbf39fd
Submitter: Zuul
Branch: master

commit 63e262579e651f848f1ceadc447203b43dbf39fd
Author: Ranjeet R <email address hidden>
Date: Wed May 11 15:55:55 2016 -0700

Fixes: Creating more than 100 VMI objects throws Cassandra exception

A Cassandra get always defaults to 100 columns if the column count
is not specified. Specifying the MAX_CNT value in the get call.

Change-Id: Iefa13f96f6a2ef6d7dec024acc700839b60aa457
Closes-Bug: 1580805

Jeba Paulaiyan (jebap)
information type: Proprietary → Public
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.