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
Can't seem to replicate. John, is it possible for you to provide the steps you took to replicate this issue?