db-lazy-load-error-encrypteddatum-kekdatum
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Barbican |
Fix Released
|
High
|
John Wood |
Bug Description
When trying to GET a decrypted secret from Barbican, the exception below is raised. This is due to the KEKDatum record associated with an EncryptedDatum record attempting to be lazy-loaded after the SQLAlchemy session is closed. SQLite does not raise this issue, but PostgreSQL does.
The fix is to change barbican/
kek_meta_tenant = orm.relationshi
to:
kek_meta_tenant = orm.relationshi
-----
2014-08-03 20:26:48.541 11 ERROR barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
2014-08-03 20:26:48.541 11 TRACE barbican.
Changed in barbican: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in barbican: | |
milestone: | juno-3 → 2014.2 |
Changed in barbican: | |
importance: | Undecided → High |
assignee: | nobody → John Wood (john-wood-w) |
Reviewed: https:/ /review. openstack. org/111601 /git.openstack. org/cgit/ openstack/ barbican/ commit/ ?id=6002bd54549 b23fbf0c12efa7a ac647a1ba5a341
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6002bd54549b23f bf0c12efa7aac64 7a1ba5a341
Author: jfwood <email address hidden>
Date: Sun Aug 3 17:27:26 2014 -0500
Eager load KEKDatum record when EncryptedDatum is retrieved
When trying to GET a decrypted secret from Barbican, an exception is
raised. This is due to the KEKDatum record associated with an
EncryptedDatum record attempting to be lazy-loaded after the SQLAlchemy
session is closed. SQLite does not raise an exception, but Postgres does.
Also, the lazy='joined' syntax did not make it obvious that an eager
load was called for, hence this syntax was changed to lazy=False with
a comment added.
Change-Id: I728e2052d8a916 da5c1023daf8137 774ac04f8f5
Closes-Bug: #1352020