NotFoundException sometimes in Cassandra.py while deleting a port
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Fix Committed
|
Medium
|
Hampapur Ajay |
Bug Description
Build 1.10 2261
I have a script which creates port with varying arguments and deletes them.
For one of such ports, a create was immediately followed by a delete. While the port does get deleted, the below traceback is seen in contrail-api-0.log. Looks like this exception was thrown during the add of the port ?
10.204.217.7 - - [2014-07-21 12:10:09] "PUT /virtual-
10.204.217.7 - - [2014-07-21 12:10:09] "GET /virtual-
INFO:api-0:Sending request(xid=2052): Delete(
ERROR:vnc_
<class 'pycassa.
Python 2.7.3: /usr/bin/python
Mon Jul 21 12:10:09 2014
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/
413 def handler_
414 try:
415 return handler(*args, **kwargs)
416 except Exception as e:
417 string_buf = StringIO()
handler = <bound method VncApiServer.
args = ()
kwargs = {}
/usr/lib/
517 obj_type = obj_type.
518 try:
519 id = self._db_
520 except NoIdError:
521 bottle.abort(404, 'uuid ' + obj_uuid + ' not found')
builtinid = <built-in function id>
self = <vnc_cfg_
self._db_conn = <vnc_cfg_
self._db_
obj_type = u'virtual_
obj_uuid = u'714b1fcc-
ref_type = u'routing_instance'
ref_uuid = u'b2f55ed1-
attr = {u'direction': u'both', u'dst_mac': None, u'mpls_label': None, u'protocol': None, u'service_
operation = u'ADD'
/usr/lib/
1513 else:
1514 pass
1515 self._cassandra
1516 bch.send()
1517 self._msgbus.
self = <vnc_cfg_
self._cassandra_db = <vnc_cfg_
self._cassandra
bch = <pycassa.
obj_uuid = u'714b1fcc-
/usr/lib/
712 def update_
713 if id_perms is None:
714 id_perms = json.loads(
715 id_perms[
716 self._update_
id_perms = None
global json = <module 'json' from '/usr/lib/
json.loads = <function loads>
self = <vnc_cfg_
self._obj_uuid_cf = <pycassa.
self._obj_
obj_uuid = u'714b1fcc-
/usr/lib/
650 cp = self._column_
651 col_or_super = self.pool.
652 read_consistenc
653 return self._cosc_
654 else:
read_consistenc
self = <pycassa.
self.read_
/usr/lib/
575 try:
576 conn = self.get()
577 return getattr(conn, f)(*args, **kwargs)
578 finally:
579 if conn:
builtingetattr = <built-in function getattr>
conn = <pycassa.
f = 'get'
args = (u'714b1fcc-
kwargs = {}
/usr/lib/
125 self._pool.
126 self._replace(
127 result = f(self, *args, **kwargs)
128 self._retry_count = 0 # reset the count after a success
129 return result
result undefined
f = <unbound method Connection.get>
self = <pycassa.
args = (u'714b1fcc-
kwargs = {}
/usr/lib/
532 """
533 self.send_get(key, column_path, consistency_level)
534 return self.recv_get()
535
536 def send_get(self, key, column_path, consistency_level):
self = <pycassa.
self.recv_get = <bound method ConnectionWrapp
/usr/lib/
559 raise result.ire
560 if result.nfe is not None:
561 raise result.nfe
562 if result.ue is not None:
563 raise result.ue
result = get_result(ue=None, nfe=NotFoundExc
result.nfe = NotFoundExcepti
<class 'pycassa.
__class__ = <class 'pycassa.
__delattr__ = <method-wrapper '__delattr__' of NotFoundException object>
__dict__ = {'_message': None}
__doc__ = '\n A specific column was requested that does not exist.\n '
__eq__ = <bound method NotFoundExcepti
__format__ = <built-in method __format__ of NotFoundException object>
__getattrib
__getitem__ = <method-wrapper '__getitem__' of NotFoundException object>
__getslice__ = <method-wrapper '__getslice__' of NotFoundException object>
__hash__ = <method-wrapper '__hash__' of NotFoundException object>
__init__ = <bound method NotFoundExcepti
__module__ = 'pycassa.
__ne__ = <bound method NotFoundExcepti
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of NotFoundException object>
__reduce_ex__ = <built-in method __reduce_ex__ of NotFoundException object>
__repr__ = <bound method NotFoundExcepti
__setattr__ = <method-wrapper '__setattr__' of NotFoundException object>
__setstate__ = <built-in method __setstate__ of NotFoundException object>
__sizeof__ = <built-in method __sizeof__ of NotFoundException object>
__str__ = <bound method NotFoundExcepti
__subclassh
__unicode__ = <built-in method __unicode__ of NotFoundException object>
__weakref__ = None
_get_message = <bound method NotFoundExcepti
_message = None
_set_message = <bound method NotFoundExcepti
args = (None,)
message = None
read = <bound method NotFoundExcepti
thrift_spec = ()
validate = <bound method NotFoundExcepti
write = <bound method NotFoundExcepti
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/
return handler(*args, **kwargs)
File "/usr/lib/
id = self._db_
File "/usr/lib/
self.
File "/usr/lib/
id_perms = json.loads(
File "/usr/lib/
read_
File "/usr/lib/
return getattr(conn, f)(*args, **kwargs)
File "/usr/lib/
result = f(self, *args, **kwargs)
File "/usr/lib/
return self.recv_get()
File "/usr/lib/
raise result.nfe
NotFoundException: NotFoundExcepti
Traceback (most recent call last):
File "/usr/lib/
return route.call(**args)
File "/usr/lib/
rv = callback(*a, **ka)
File "/usr/lib/
raise e
NotFoundException: NotFoundExcepti
10.204.217.7 - - [2014-07-21 12:10:09] "POST /ref-update HTTP/1.1" 500 156 0.007659
INFO:api-0:Received response(xid=2051): u'/api-
INFO:api-0:Received error(xid=2052) NoNodeError((), {})
127.0.0.1 - - [2014-07-21 12:10:09] "DELETE /virtual-
10.204.217.7 - - [2014-07-21 12:10:09] "POST /neutron/port HTTP/1.1" 200 115 0.221766
10.204.217.108 - - [2014-07-21 12:10:09] "GET / HTTP/1.1" 200 9987 0.000937
INFO:api-0:Sending request(xid=2053): Delete(
INFO:api-0:Received response(xid=2053): True
u'oper': u'CREATE',
u'parent_imid': u'contrail:
u'type': u'instance-ip',
u'uuid': u'362c1ae0-
Notification Message: {u'imid': u'contrail:
u'obj_dict': {u'fq_name': [u'362c1ae0-
u'oper': u'DELETE',
u'type': u'instance-ip',
u'uuid': u'362c1ae0-
Notification Message: {u'oper': u'UPDATE',
u'type': u'virtual-
u'uuid': u'714b1fcc-
Exception in _dbe_oper_
Notification Message: {u'imid': u'contrail:
u'obj_dict': {u'fq_name': [u'default-domain',
10.204.217.108 - - [2014-07-21 12:10:09] "GET /virtual-
looks like Ajay fixed it and is not seen in recent builds.