http 500 when creating secret

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

Bug Description

jenkins stackforge running test_create_secret_then_expire_then_check fails with http500 due to the following error:

2014-05-15 15:41:13.818 9103 ERROR barbican.api.controllers [-] Secret creation failure seen - please contact site administrator.
2014-05-15 15:41:13.818 9103 TRACE barbican.api.controllers Traceback (most recent call last):
2014-05-15 15:41:13.818 9103 TRACE barbican.api.controllers File "/Users/step6927/barbican-pecan/barbican/barbican/api/controllers/__init__.py", line 85, in handler
2014-05-15 15:41:13.818 9103 TRACE barbican.api.controllers return fn(inst, *args, **kwargs)
2014-05-15 15:41:13.818 9103 TRACE barbican.api.controllers File "/Users/step6927/barbican-pecan/barbican/barbican/api/controllers/__init__.py", line 71, in enforcer
2014-05-15 15:41:13.818 9103 TRACE barbican.api.controllers return fn(inst, *args, **kwargs)
2014-05-15 15:41:13.818 9103 TRACE barbican.api.controllers File "/Users/step6927/barbican-pecan/barbican/barbican/api/controllers/secrets.py", line 244, in on_post
2014-05-15 15:41:13.818 9103 TRACE barbican.api.controllers self.kek_repo)
2014-05-15 15:41:13.818 9103 TRACE barbican.api.controllers File "/Users/step6927/barbican-pecan/barbican/barbican/common/resources.py", line 69, in create_secret
2014-05-15 15:41:13.818 9103 TRACE barbican.api.controllers enforce_text_only=True)
2014-05-15 15:41:13.818 9103 TRACE barbican.api.controllers File "/Users/step6927/barbican-pecan/barbican/barbican/crypto/extension_manager.py", line 253, in encrypt
2014-05-15 15:41:13.818 9103 TRACE barbican.api.controllers encrypt_dto, kek_meta_dto, tenant.keystone_id
2014-05-15 15:41:13.818 9103 TRACE barbican.api.controllers TypeError: 'ResponseDTO' object is not iterable

Steve Heyman (sheyman)
Changed in barbican:
status: New → Confirmed
Changed in barbican:
milestone: none → juno-1
Steve Heyman (sheyman)
Changed in barbican:
assignee: nobody → Steve Heyman (sheyman)
Steve Heyman (sheyman)
Changed in barbican:
importance: Undecided → High
Changed in barbican:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to barbican (master)

Reviewed: https://review.openstack.org/94003
Committed: https://git.openstack.org/cgit/stackforge/barbican/commit/?id=2b1914a7305a708a33a68c324fef9bba98cc925a
Submitter: Jenkins
Branch: master

commit 2b1914a7305a708a33a68c324fef9bba98cc925a
Author: Steve Heyman <email address hidden>
Date: Fri May 16 21:21:50 2014 -0500

    Fixed http 500 due to mismatch between ResponseDTO and tuple from plugin encrypt

    Change-Id: Ib206c0cc17d71013ffb30af08b4cce4392171b08
    Closes-Bug: #1320001

Changed in barbican:
status: In Progress → Fix Committed
Revision history for this message
Juan Antonio Osorio Robles (juan-osorio-robles) wrote :

I am now getting this error with barbican main, even though this commit was already commited

Changed in barbican:
status: Fix Committed → Confirmed
status: Confirmed → Fix Committed
John Wood (john-wood-w)
Changed in barbican:
milestone: juno-1 → juno-2
Revision history for this message
Douglas Mendizábal (dougmendizabal) wrote :

Spoke to Juan Osorio on IRC. It seems the earlier fix does address this bug.

Changed in barbican:
milestone: juno-2 → juno-3
milestone: juno-3 → juno-2
Changed in barbican:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in barbican:
milestone: juno-2 → 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.