deb-cinder/cinder/objects
xing-yang ffe5a72f44 Pop "consistencygroup" from volume object
Got the following error during the groups tempest test:

DBAPIError exception wrapped from (psycopg2.ProgrammingError)
multiple assignments to same column "consistencygroup_id".

The solution is to pop "consistencygroup" from volume object
before saving to db. This is because consistencygroup is the
name of a relationship in the ORM Volume model, so SQLA tries
to do some kind of update of the foreign key based on the
provided updates if 'consistencygroup' is in updates.

Closes-bug: #1703706
Change-Id: I9489ebd20c0744d69431bc91634e1decffcb9ed9
2017-07-14 05:03:55 -07:00
..
__init__.py Add service dynamic log change/query 2017-05-16 13:37:35 +02:00
backup.py Fix some format error in docstrings 2017-03-30 10:01:18 +08:00
base.py Cinder volume revert to snapshot 2017-06-21 10:35:32 +08: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 Tiramisu: Add groups param to failover_host 2017-07-10 09:30:13 -07: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 Remove unused config.CONF 2016-08-30 10:01:46 +08:00
service.py Update is_up from Service OVO class to match ORM 2016-12-21 20:55:37 +01:00
snapshot.py Cinder volume revert to snapshot 2017-06-21 10:35:32 +08:00
volume.py Pop "consistencygroup" from volume object 2017-07-14 05:03:55 -07:00
volume_attachment.py Fix connection_info field in VolumeAttachment object 2017-06-20 16:31:21 +08:00
volume_type.py Add is_replicated() to Volume and VolumeType OVOs 2017-05-30 10:16:05 +02:00