cinder/cinder/tests/unit/objects
John Griffith 7f69969345 Make attachment_update set status to attaching
The new attachment_update method in Cinder's API creates an attachment
object and populates it with the provided connector info. In addition,
we set the volumes status to in-use and update the attachment object
status to "attached".

This isn't really accurate though, because we don't know if the volume
is actually attached (connected) by the consumer or not.  Also a big
side effect here is that currently all of our tests and automation
use volume-status to determine if a volume is fully connected/ready
for use and that everything went well.  It's used as an ack in most
cases.

This change goes back to using multiple states to signify where a
an attachment is in it's life-cycle:
1. reserved
     We've created an empty attachment record but haven't done anything
     with it yet.
2. attaching
     We provided a connector and set up the TGT so that everything is
     ready for a consumer to connect/use it.
3. in-use
     An ACK back from the consumer letting us know that they connected
     it successfully and are doing their thing.

Some consumers don't need or care about this last step, and we're going
to provide a means to set it straight to attached/in-use, but for
this bug we don't need to introduce that particular *feature*.

Sadly, this requires a micro-version bump and a new API call to
toggle the state from the API, pushing us to 3.44.

closes-bug #1710295

Change-Id: I57631d3deddb2d7cd244584e82206ee17fe2dd78
2017-08-14 13:55:15 +00:00
..
__init__.py Make c-vol use workers table for cleanup 2016-11-03 10:17:38 +01:00
test_backup.py Support metadata for backup resource 2017-07-26 14:23:58 +08:00
test_base.py Enable some off-by-default checks 2017-06-22 02:17:54 +00:00
test_cgsnapshot.py Update OVO instance on destroy method call 2016-07-22 17:54:00 +02:00
test_cleanable.py Prevent claiming and updating races on worker 2017-01-19 10:42:24 +01:00
test_cleanup_request.py Add cleanable base object and cleanup request VO 2016-10-04 15:17:31 +02:00
test_cluster.py Remove duplicate key from dictionary 2017-03-09 17:19:57 +05:30
test_consistencygroup.py Remove cgsnapshot_id before snapshot.save 2016-12-03 16:23:43 -05:00
test_fields.py Add VolumeAttachStatus Enum 2016-11-09 17:10:27 -06:00
test_group.py Add group to cluster when init host 2017-07-12 14:08:43 +08:00
test_group_snapshot.py Use GroupSnapshotStatus enum field 2017-07-05 01:24:00 +00:00
test_group_type.py Add group type and group specs 2016-07-08 14:26:39 -04:00
test_manageable_volumes_snapshots.py Switch ManageableSnaphots & ManageableVolumes list to OVO 2017-01-25 00:41:30 +00:00
test_objects.py Support metadata for backup resource 2017-07-26 14:23:58 +08:00
test_qos.py Test: Fix assert_has_calls dict order bug (QoS) 2017-01-23 10:58:28 -05:00
test_service.py Add is_up property to service and cluster objects 2016-11-29 12:33:16 +02:00
test_snapshot.py Merge "Don't change volume's status when create backups from snapshots" 2017-03-28 14:09:24 +00:00
test_volume.py Pop "consistencygroup" from volume object 2017-07-14 05:03:55 -07:00
test_volume_attachment.py Make attachment_update set status to attaching 2017-08-14 13:55:15 +00:00
test_volume_type.py Add is_replicated() to Volume and VolumeType OVOs 2017-05-30 10:16:05 +02:00