Certificate order POST crashes on worker node

Bug #1373533 reported by John Wood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Invalid
Undecided
Unassigned

Bug Description

POST-ing to the orders resource an order of type 'certificate' results in the following stack trace from the worker process:

[567c0ecc-77de-45f5-b04b-c66f5f7d5da3 None] Could not perform processing for task 'Process TypeOrder'.
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources Traceback (most recent call last):
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources File "/Users/john.wood/projects/security/barbican/barbican/tasks/resources.py", line 71, in process
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources self.handle_processing(entity, *args, **kwargs)
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources File "/Users/john.wood/projects/security/barbican/barbican/tasks/resources.py", line 238, in handle_processing
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources self.handle_order(order)
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources File "/Users/john.wood/projects/security/barbican/barbican/tasks/resources.py", line 300, in handle_order
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources order, tenant, self.repos)
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources File "/Users/john.wood/projects/security/barbican/barbican/tasks/certificate_resources.py", line 73, in issue_certificate_request
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources plugin_meta = _get_plugin_meta(order_model)
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources File "/Users/john.wood/projects/security/barbican/barbican/tasks/certificate_resources.py", line 233, in _get_plugin_meta
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources order_model.order_plugin_metadata.items())
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources File "/Users/john.wood/.pyenv/versions/barbican27/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 233, in __get__
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources return self.impl.get(instance_state(instance), dict_)
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources File "/Users/john.wood/.pyenv/versions/barbican27/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 579, in get
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources value = self.callable_(state, passive)
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources File "/Users/john.wood/.pyenv/versions/barbican27/lib/python2.7/site-packages/sqlalchemy/orm/strategies.py", line 493, in _load_for_state
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources (orm_util.state_str(state), self.key)
2014-09-24 12:44:09.866 9696 TRACE barbican.tasks.resources DetachedInstanceError: Parent instance <Order at 0x102cf3610> is not bound to a Session; lazy load operation of attribute 'order_plugin_metadata' cannot proceed

Changed in barbican:
milestone: none → kilo-1
Changed in barbican:
milestone: kilo-1 → none
Revision history for this message
John Vrbanac (john.vrbanac) wrote :

Can't seem to replicate. John, is it possible for you to provide the steps you took to replicate this issue?

Changed in barbican:
status: New → Incomplete
Revision history for this message
Juan Antonio Osorio Robles (juan-osorio-robles) wrote :

John, are you still seeing this issue?

Revision history for this message
John Wood (john-wood-w) wrote :

I think this is invalid, will mark as such.

Changed in barbican:
status: Incomplete → Invalid
Revision history for this message
Juan Antonio Osorio Robles (juan-osorio-robles) wrote :

Thanks Mr.!

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.