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
(cherry picked from commit 2e73bede80cc2acdb3527f06bc5c5f9c1a8463a7)
Reviewed: https:/ /review. opendev. org/675081 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=44a15be6a71 ebdaf0e5d1663fc 31011ff43ef37b
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit 44a15be6a71ebda f0e5d1663fc3101 1ff43ef37b
Author: Gorka Eguileor <email address hidden>
Date: Tue Jul 2 11:06:17 2019 +0200
Fix DetachedInstanc eError for VolumeAttachment
Patch I253123d5451b32 f0e3143916e41aa a1af75561c2 fixed the tanceError for VolumeAttachment OVOs but only partially, as
DetachedIns
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 cdb5c739ee0a879 49805282867 db3527f06bc5c5f 9c1a8463a7)
Change-Id: Iac785eef9be4b9
(cherry picked from commit 2e73bede80cc2ac