Comment 1 for bug 1551317

Revision history for this message
Andrey Setyaev (asetyaev-9) wrote : Re: [nsx]Security group rules don't work after removing adding it to same SG.

I have got on delete rule:

2016-02-29 22:03:56.411 27849 ERROR vmware_nsx.plugins.nsx_v.plugin
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource [req-3bba663a-b8af-4d49-8192-1b45ffb32a71 4c1af0d7451c43d89a94e2e5f0c2599d 3f0eaac9e5e84fbd965f2c976b4f98f8 - - -] delete failed
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource Traceback (most recent call last):
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 83, in resource
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource result = method(request=request, **args)
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 530, in delete
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource return self._delete(request, id, **kwargs)
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 146, in wrapper
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 136, in wrapper
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 552, in _delete
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource obj_deleter(request.context, id, **kwargs)
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/vmware_nsx/plugins/nsx_v/plugin.py", line 2030, in delete_security_group_rule
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource LOG.exception(_("Failed to delete security group rule"))
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/vmware_nsx/plugins/nsx_v/plugin.py", line 2024, in delete_security_group_rule
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource section_uri, nsx_rule_id)
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/vmware_nsx/plugins/nsx_v/vshield/vcns.py", line 572, in remove_rule_from_section
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource headers=headers)
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/vmware_nsx/plugins/nsx_v/vshield/vcns.py", line 113, in do_request
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource headers, encodeParams)
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/retrying.py", line 49, in wrapped_f
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource return Retrying(*dargs, **dkw).call(f, *args, **kw)
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/retrying.py", line 206, in call
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource return attempt.get(self._wrap_exception)
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/retrying.py", line 247, in get
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource six.reraise(self.value[0], self.value[1], self.value[2])
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/retrying.py", line 200, in call
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/vmware_nsx/plugins/nsx_v/vshield/vcns.py", line 99, in _client_request
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource return client(method, uri, params, headers, encodeParams)
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/vmware_nsx/plugins/nsx_v/vshield/common/VcnsApiClient.py", line 119, in request
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource raise cls(uri=uri, status=status, header=header, response=response)
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource RequestBad: Request https://172.16.0.249/api/4.0/firewall/globalroot-0/config/layer3sections/1012/rules/1060?autoSaveDraft=false is Bad, response <?xml version="1.0" encoding="UTF-8"?>
2016-02-29 22:03:56.415 27849 ERROR neutron.api.v2.resource <error><details>Unknown Error Occured. Please look into tech support logs.</details><errorCode>100046</errorCode><moduleName>vShield App</moduleName></error>