on project deletion, vnc_cfg_api_server.py fails on http 404

Bug #1728167 reported by wenqing liang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.1
Fix Committed
High
Édouard Thuleau
Trunk
Fix Committed
High
Édouard Thuleau

Bug Description

r5.0.0.0-13 ocata, traceback on project deletion...

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 971, 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 926, in stateful_delete
    (ok, del_result) = r_class.pre_dbe_delete(id, read_result, db_conn)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_types.py", line 3744, in pre_dbe_delete
    ApplicationPolicySetServer.resource_type, default_aps_uuid)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 1133, in internal_request_delete
    self.http_resource_delete(object_type, obj_uuid)
  File "/usr/lib/python2.7/dist-packages/cfgm_common/vnc_api_stats.py", line 17, in wrapper
    response = func(api_server_obj, resource_type, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 982, in http_resource_delete
    raise cfgm_common.exceptions.HttpError(code, msg)
HttpError: HTTP Status: 404 Content: No application_policy_set: 3e8d0d48-4829-452c-b16e-05b623560669

Tags: config sanity
Jeba Paulaiyan (jebap)
tags: added: config sanity
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/37097
Submitter: ?douard Thuleau (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/37110
Submitter: ?douard Thuleau (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/37110
Committed: http://github.com/Juniper/contrail-controller/commit/06946b3f6b467f96c23bfe42bec0116f29cc5b3b
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 06946b3f6b467f96c23bfe42bec0116f29cc5b3b
Author: Édouard Thuleau <email address hidden>
Date: Thu Nov 2 12:31:13 2017 +0100

[config] Don't fail on project delete

If for any reason, the default scoped application policy set was
deleted, catch not found application policy set exception during
project delete and continuing.

Closes-Bug: #1728167
Change-Id: I1f16a2c36106d8fa118602c7c8c586d0d520e476

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/37097
Committed: http://github.com/Juniper/contrail-controller/commit/62f4596768dc281664a5bce291ad48c7aa102465
Submitter: Zuul (<email address hidden>)
Branch: master

commit 62f4596768dc281664a5bce291ad48c7aa102465
Author: Édouard Thuleau <email address hidden>
Date: Thu Nov 2 12:31:13 2017 +0100

[config] Don't fail on project delete

If for any reason, the default scoped application policy set was
deleted, catch not found application policy set exception during
project delete and continuing.

Closes-Bug: #1728167
Change-Id: I1f16a2c36106d8fa118602c7c8c586d0d520e476

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.