cinder/cinder/objects
Sofia Enriquez 6dfbec7f74 Cinder backup export broken
Incremental patch I516b7c82b05b26e81195f7f106d43a9e0804082d
introduced a regression, breaking the volume backup export
functionality.

Apparently, the newly introduced "parent" db field isn't
serialized properly.

This is the traceback from the launchpad bug:
oslo_versionedobjects.exception.ObjectActionError:
Object action obj_load_attr failed because: attribute
parent not lazy-loadable

Looking at the traceback, and the Backup OVO code it seems
like we have 2 problems:

- We don't support lazy loading the parent
- We try to serialize the parent

Co-Authored-By: Gorka Eguileor <geguileo@redhat.com>
Change-Id: I017602353e96cf9f0922074f94276002b17d1359
Closes-Bug: #1862635
(cherry picked from commit a98969380a)
modified:
cinder/tests/unit/objects/test_backup.py - pyflake issue #202
2020-02-25 09:42:28 -05:00
..
__init__.py Add service dynamic log change/query 2017-05-16 13:37:35 +02:00
backup.py Cinder backup export broken 2020-02-25 09:42:28 -05:00
base.py Merge "Support Incremental Backup Completion In RBD" 2019-09-06 16:25:51 +00:00
cgsnapshot.py Fix replication freeze mechanism 2017-01-19 10:42:24 +01: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 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 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 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 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 Untyped to Default Volume Type 2019-09-20 05:37:54 +00: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