delete endpoint policy returns HTTP 500

Bug #1399857 reported by Adam Young
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Henry Nash

Bug Description

When activating the endpoint_policy extension, and then deleting a policy file, get the following error:

keystoneclient.openstack.common.apiclient.exceptions.InternalServerError: An unexpected error prevented the server from fulfilling your request: 'EndpointPolicy' object has no attribute 'delete_association_by_polcy' (Disable debug mode to suppress these details.) (HTTP 500)

There is a typo in the controller that can be fixed by this change.

diff --git a/keystone/contrib/endpoint_policy/controllers.py b/keystone/contrib/endpoint_policy/controllers.py
index c1533f7..569fe9b 100644
--- a/keystone/contrib/endpoint_policy/controllers.py
+++ b/keystone/contrib/endpoint_policy/controllers.py
@@ -46,7 +46,7 @@ class EndpointPolicyV3Controller(controller.V3Controller):
             payload['resource_info'])

     def _on_policy_delete(self, service, resource_type, operation, payload):
- self.endpoint_policy_api.delete_association_by_polcy(
+ self.endpoint_policy_api.delete_association_by_policy(
             payload['resource_info'])

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/139780

Changed in keystone:
assignee: nobody → Adam Young (ayoung)
status: New → In Progress
Changed in keystone:
assignee: Adam Young (ayoung) → Henry Nash (henry-nash)
Dolph Mathews (dolph)
summary: - endpoint_policy has typo in delete
+ delete endpoint policy returns HTTP 500
Changed in keystone:
importance: Undecided → Medium
tags: added: juno-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/139780
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=b22b85837673e1cdeb082755585877ff5b322798
Submitter: Jenkins
Branch: master

commit b22b85837673e1cdeb082755585877ff5b322798
Author: Adam Young <email address hidden>
Date: Fri Dec 5 23:16:57 2014 -0500

    Typo in policy call

    The callback notification to endpoint-policy upon deletion of a policy
    had a typo in it. This patch fixes this, and adds a test to ensure this
    notification is working as designed. The other three notifications
    already have tests, for some reason this one had been missed out.

    Closes-Bug: 1399857

    Change-Id: I5060c30cd03b3154838db9e6f8fee94110751745

Changed in keystone:
status: In Progress → Fix Committed
Changed in keystone:
milestone: none → kilo-1
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: kilo-1 → 2015.1.0
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.