cinder/cinder/objects
Gorka Eguileor 2abd8a68bb 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
(cherry picked from commit 2e73bede80)
(cherry picked from commit 44a15be6a7)
Conflicts:
    cinder/tests/unit/volume/drivers/test_lvm_driver.py
(cherry picked from commit eabf648b7a)
2019-10-03 07:36:03 -07:00
..
__init__.py Add service dynamic log change/query 2017-05-16 13:37:35 +02:00
backup.py Handle migrating encryption key IDs in Backup table 2018-04-04 19:34:16 +00:00
base.py Fix leftovers after backup abort 2018-03-13 12:39:06 +01:00
cgsnapshot.py Fix replication freeze mechanism 2017-01-19 10:42:24 +01:00
cleanable.py Trivial fix PEP 8 coding style violation and typo 2017-05-03 19:47:22 +07:00
cleanup_request.py Add cleanable base object and cleanup request VO 2016-10-04 15:17:31 +02:00
cluster.py Make Replication support Active-Active 2017-01-19 10:42:18 +01:00
consistencygroup.py CG API changes for migrating CGs 2016-11-22 19:08:20 -05:00
dynamic_log.py Add service dynamic log change/query 2017-05-16 13:37:35 +02:00
fields.py Merge "Fix connection_info field in VolumeAttachment object" 2017-06-27 10:27:50 +00:00
group.py Add group to cluster when init host 2017-07-12 14:08:43 +08:00
group_snapshot.py OVO: Remove child_versions from list classes 2017-05-25 13:00:13 +02:00
group_type.py OVO: Remove child_versions from list classes 2017-05-25 13:00:13 +02:00
manageableresources.py Switch ManageableSnaphots & ManageableVolumes list to OVO 2017-01-25 00:41:30 +00:00
qos_specs.py OVO: Remove child_versions from list classes 2017-05-25 13:00:13 +02:00
request_spec.py Support create volume from backup 2017-11-28 09:16:59 +08:00
service.py Make service object UUID not nullable 2017-10-26 10:17:50 -06:00
snapshot.py Fix Snapshot object metadata loading 2019-03-12 14:33:46 +00:00
volume.py Add shared_targets flag to Volumes 2017-11-28 13:55:23 -07:00
volume_attachment.py Fix DetachedInstanceError for VolumeAttachment 2019-10-03 07:36:03 -07:00
volume_type.py Add is_replicated() to Volume and VolumeType OVOs 2017-05-30 10:16:05 +02:00