]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Allow reset-state on attach and migration fields
authorjohn-griffith <john.griffith@solidfire.com>
Wed, 16 Apr 2014 21:03:18 +0000 (15:03 -0600)
committerJohn Griffith <john.griffith8@gmail.com>
Thu, 12 Jun 2014 19:02:18 +0000 (13:02 -0600)
commitaabb0fa1f68974e2fa4828cde1462dc47c429655
tree12897d203107f6c4e5e4b5bd97b287c212ea80ee
parentd7d2599de95d60380081964213c1e9e19926a23a
Allow reset-state on attach and migration fields

The reset-state API call only sets that main status
column on the volume object.  There's also a method
to set attach status, however it turns out that due
to the implementation of the status validation method
in the parent class, this was impossible to use because
it only checked and accepted "status" NOT "attach_status".

This patch fixes that attach_status problem, it also implements
the ability to update the migration status.  A cinderclient change
will be needed to expose these calls as well.

DocImpact

Change-Id: I59e1bb2522f033c944fa07acf4876ca71c8c3d3f
Closes-Bug: #1308253
cinder/api/contrib/admin_actions.py
cinder/tests/api/contrib/test_admin_actions.py