cinder/cinder/objects
Gorka Eguileor bc6585577e Expose volume_attachments in Volume OVO
In change-id Iabf9c3fab56ffef50695ce45745f193273822b39 we left the
`volume_attachment` out of the expected attributes of the Volume OVO
(even when te DB layer is providing that information) because it was
breaking some unit tests.

This means that in some cases we are unnecessarily loading the
attachments again (manually or via lazy loading) once we have the volume
OVO because that field is not set.

In this patch we populate the `volume_attachment` when we load the
Volume OVO from the DB.

Change-Id: I6576832b2c2722ab749cfe70bbc2058ead816c36
(cherry picked from commit e07bf3787a)
Conflicts:
	cinder/objects/volume.py
	cinder/tests/unit/objects/test_volume.py
(cherry picked from commit e85c22cef7)
(cherry picked from commit a5b67fd959)
Conflicts:
	cinder/tests/unit/volume/flows/test_create_volume_flow.py
2022-01-18 12:11:31 +01:00
..
__init__.py Add service dynamic log change/query 2017-05-16 13:37:35 +02:00
backup.py Fix cross-project incremental backups 2020-05-21 09:38:25 -03:00
base.py Raise hacking version to 2.0.0 2020-01-02 14:42:49 -06:00
cgsnapshot.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
cleanable.py Handle collections.abc deprecations 2019-05-14 14:45:17 -05:00
cleanup_request.py Add cleanable base object and cleanup request VO 2016-10-04 15:17:31 +02:00
cluster.py Add support for promoting a failed over backend 2018-05-09 12:19:33 -04:00
consistencygroup.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
dynamic_log.py Add service dynamic log change/query 2017-05-16 13:37:35 +02:00
fields.py Adding missing Volume states to VolumeStatus enum 2018-12-06 22:58:55 +05:30
group.py Rename volume/utils.py to volume/volume_utils.py 2019-09-09 15:00:07 -04:00
group_snapshot.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06: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 Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
request_spec.py Support availability-zone type 2018-05-17 12:09:12 +00:00
service.py OVO: support query for disabled services 2018-03-29 11:27:49 -04:00
snapshot.py Untyped to Default Volume Type 2019-09-20 05:37:54 +00:00
volume.py Expose volume_attachments in Volume OVO 2022-01-18 12:11:31 +01:00
volume_attachment.py Fix DetachedInstanceError for VolumeAttachment 2019-07-31 21:06:21 +02:00
volume_type.py Rename volume/utils.py to volume/volume_utils.py 2019-09-09 15:00:07 -04:00