secret delete fails with empty secret_store_metadata

Bug #1354567 reported by Steve Heyman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
High
Steve Heyman

Bug Description

Doing a 2 step secret create with binary data. The secret gets created but the delete fails with http 500.

We get a secret_model in the secret DELETE controller but the secret_store_metadata is empty, so no plugin can be found.

Stack:

2014-08-08 14:59:30.248 63671 ERROR barbican.api.controllers [-] Secret deletion failure seen - please contact site administrator.
2014-08-08 14:59:30.248 63671 TRACE barbican.api.controllers Traceback (most recent call last):
2014-08-08 14:59:30.248 63671 TRACE barbican.api.controllers File "/Users/step6927/barbican/barbican/api/controllers/__init__.py", line 85, in handler
2014-08-08 14:59:30.248 63671 TRACE barbican.api.controllers return fn(inst, *args, **kwargs)
2014-08-08 14:59:30.248 63671 TRACE barbican.api.controllers File "/Users/step6927/barbican/barbican/api/controllers/__init__.py", line 71, in enforcer
2014-08-08 14:59:30.248 63671 TRACE barbican.api.controllers return fn(inst, *args, **kwargs)
2014-08-08 14:59:30.248 63671 TRACE barbican.api.controllers File "/Users/step6927/barbican/barbican/api/controllers/secrets.py", line 184, in on_delete
2014-08-08 14:59:30.248 63671 TRACE barbican.api.controllers plugin.delete_secret(secret_model, keystone_id, self.repos)
2014-08-08 14:59:30.248 63671 TRACE barbican.api.controllers File "/Users/step6927/barbican/barbican/plugin/resources.py", line 213, in delete_secret
2014-08-08 14:59:30.248 63671 TRACE barbican.api.controllers .get_plugin_retrieve_delete(secret_metadata.get('plugin_name'))
2014-08-08 14:59:30.248 63671 TRACE barbican.api.controllers File "/Users/step6927/barbican/barbican/plugin/interface/secret_store.py", line 425, in get_plugin_retrieve_delete
2014-08-08 14:59:30.248 63671 TRACE barbican.api.controllers raise SecretStoreSupportedPluginNotFound()
2014-08-08 14:59:30.248 63671 TRACE barbican.api.controllers SecretStoreSupportedPluginNotFound: Secret store plugin not found for requested operation.

Steve Heyman (sheyman)
Changed in barbican:
importance: Undecided → High
Steve Heyman (sheyman)
Changed in barbican:
status: New → Confirmed
assignee: nobody → Steve Heyman (sheyman)
status: Confirmed → Fix Committed
Changed in barbican:
milestone: none → juno-rc1
Thierry Carrez (ttx)
Changed in barbican:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in barbican:
milestone: juno-rc1 → 2014.2
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.