SG gets deleted but throws exception

Bug #1722937 reported by Senthilnathan Murugappan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Invalid
High
Ignatious Johnson Christopher
Trunk
Invalid
High
Ignatious Johnson Christopher

Bug Description

root@a2s18:~# neutron security-group-list | grep testsg
| 5340eec7-499c-4fa9-8e3c-8ed7d6df2715 | testsg | egress, IPv4, any, remote_ip_prefix: 0.0.0.0/0 |

root@a2s18:~# neutron security-group-delete testsg
An unknown exception occurred.
Neutron server returns request_ids: ['req-e92c8c16-b0d8-4908-9bd8-503dfc2d4d42']

root@a2s18:~# neutron security-group-list | grep testsg
root@a2s18:~#

ERROR:contrail-api:SANDESH: [DROP: QueueLevel] __default__ [SYS_INFO]: VncApiConfigLog: api_log = << identifier_uuid = eab1959c-0e75-483f-91e5-0435a1ec2576 object_type = security_group url = http://127.0.0.1:9100/security-group/eab1959c-0e75-483f-91e5-0435a1ec2576 operation = After DB Entry Delete useragent = a2s18:/usr/bin/contrail-api remote_ip = 127.0.0.1:9100 domain = default-domain project = user-tenant user = user1 error = security_group:<type 'exceptions.TypeError'>

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 1081, in http_resource_delete
    ok, result = stateful_delete()
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 1075, in stateful_delete
    self.config_log(err_msg, level=SandeshLevel.SYS_ERR)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 3361, in config_log
    sandesh=self._sandesh)
  File "/usr/lib/python2.7/dist-packages/pysandesh/sandesh_base.py", line 694, in send
    sandesh.drop_tx_sandesh(self, SandeshTxDropReason.QueueLevel)
  File "/usr/lib/python2.7/dist-packages/pysandesh/sandesh_base.py", line 414, in drop_tx_sandesh
    tx_sandesh.log()))
  File "/usr/lib/python2.7/dist-packages/cfgm_common/uve/vnc_api/ttypes.py", line 1612, in log
    log_str.write(self.api_msg)
TypeError: must be string or buffer, not tuple

 /usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py in http_resource_delete(self=<vnc_cfg_api_server.vnc_cfg_api_server.VncApiServer object>, obj_type='security_group', id='eab1959c
-0e75-483f-91e5-0435a1ec2576')
 1079
 1080 try:
 1081 ok, result = stateful_delete()
 1082 except NoIdError as e:
 1083 raise cfgm_common.exceptions.HttpError(
ok = False
result undefined
stateful_delete = <function stateful_delete>

 /usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py in stateful_delete()
 1073 if not ok:
 1074 # Delete is done, log to system, no point in informing user
 1075 self.config_log(err_msg, level=SandeshLevel.SYS_ERR)
 1076
 1077 return (True, '')
self = <vnc_cfg_api_server.vnc_cfg_api_server.VncApiServer object>
self.config_log = <bound method VncApiServer.config_log of <vnc_cf...i_server.vnc_cfg_api_server.VncApiServer object>>
err_msg = (404, 'No security_group: eab1959c-0e75-483f-91e5-0435a1ec2576')
level undefined
global SandeshLevel = <class 'pysandesh.gen_py.sandesh.ttypes.SandeshLevel'>
SandeshLevel.SYS_ERR = 3

 /usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py in config_log(self=<vnc_cfg_api_server.vnc_cfg_api_server.VncApiServer object>, msg_str=(404, 'No security_group: eab1959c-0e75-4
83f-91e5-0435a1ec2576'), level=3)
 3359 errcls.get(level, VncApiError)(
 3360 api_msg=msg_str, level=level, sandesh=self._sandesh).send(
 3361 sandesh=self._sandesh)
 3362 # end config_log
 3363
global sandesh = <module 'vnc_cfg_api_server.sandesh.discovery_cl...erver/sandesh/discovery_client_stats/ttypes.pyc'>
self = <vnc_cfg_api_server.vnc_cfg_api_server.VncApiServer object>
self._sandesh = <pysandesh.sandesh_base.Sandesh object>

 /usr/lib/python2.7/dist-packages/pysandesh/sandesh_base.py in send(self=VncApiError(_context='', _scope='', _category='_..._context='', _connect_to_collector=True, _role=0), sandesh=<pysandesh.sandesh_ba
se.Sandesh object>)
  692 return -1
  693 if self._level >= sandesh.send_level():
  694 sandesh.drop_tx_sandesh(self, SandeshTxDropReason.QueueLevel)
  695 return -1
  696 self._seqnum = self.next_seqnum()
sandesh = <pysandesh.sandesh_base.Sandesh object>
sandesh.drop_tx_sandesh = <bound method Sandesh.drop_tx_sandesh of <pysandesh.sandesh_base.Sandesh object>>
self = VncApiError(_context='', _scope='', _category='_..._context='', _connect_to_collector=True, _role=0)
global SandeshTxDropReason = <class 'pysandesh.gen_py.sandesh.ttypes.SandeshTxDropReason'>
SandeshTxDropReason.QueueLevel = 4

 /usr/lib/python2.7/dist-packages/pysandesh/sandesh_base.py in drop_tx_sandesh(self=<pysandesh.sandesh_base.Sandesh object>, tx_sandesh=VncApiError(_context='', _scope='', _category='_..._context='', _connect_to_collector=True, _role=0), drop_reason=4, level=None)
  412 self._logger.error('SANDESH: [DROP: %s] %s' % \
  413 (SandeshTxDropReason._VALUES_TO_NAMES[drop_reason],
  414 tx_sandesh.log()))
  415 # end drop_tx_sandesh
  416
tx_sandesh = VncApiError(_context='', _scope='', _category='_..._context='', _connect_to_collector=True, _role=0)
tx_sandesh.log = <bound method VncApiError.log of VncApiError(_co...context='', _connect_to_collector=True, _role=0)>

 /usr/lib/python2.7/dist-packages/cfgm_common/uve/vnc_api/ttypes.py in log(self=VncApiError(_context='', _scope='', _category='_..._context='', _connect_to_collector=True, _role=0), trace=False)
 1610 log_str.write(self.__class__.__name__ + ': ')
 1611 if self.api_msg is not None:
 1612 log_str.write(self.api_msg)
 1613 log_str.write(' ')
 1614 if self.file is not None:
log_str = <cStringIO.StringO object>
log_str.write = <built-in method write of cStringIO.StringO object>
self = VncApiError(_context='', _scope='', _category='_..._context='', _connect_to_collector=True, _role=0)
self.api_msg = (404, 'No security_group: eab1959c-0e75-483f-91e5-0435a1ec2576')

Tags: config
Revision history for this message
Senthilnathan Murugappan (msenthil) wrote :

dont observe the same on a R4.1 cluster

Revision history for this message
Sachin Bansal (sbansal) wrote :

Issue seen only in private build

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.