cinder/releasenotes/notes/detachedinstanceerror-64be35894c624eae.yaml
Gorka Eguileor 2e73bede80 Fix DetachedInstanceError for VolumeAttachment
Patch I253123d5451b32f0e3143916e41aaa1af75561c2 fixed the
DetachedInstanceError for VolumeAttachment OVOs but only partially, as
apparently it was dependent on the SQLAlchemy version due to the use os
"hasattr".

This patch replaces "hasattr" with a check on the object's dictionary,
which will never trigger a Lazy Load.

Closes-Bug: #1834845
Change-Id: Iac785eef9be4b9cdb5c739ee0a87949805282867
2019-07-31 21:06:21 +02:00

7 lines
211 B
YAML

---
fixes:
- |
Fix DetachedInstanceError is not bound to a Session for VolumeAttachments.
This affected VolumeList.get_all, and could make a service fail on startup
and make it stay in down state.