rackspace / gophercloud

A Go SDK for OpenStack. IN FEATURE FREEZE. See Issue #592
http://gophercloud.io
Other
456 stars 181 forks source link

Add ResetState for compute instances #555

Open kars7e opened 8 years ago

kars7e commented 8 years ago

I'd like to add a ResetState method which allows resetting instance's state to either 'active' or 'error'. Python nova client exposes this feature via nova reset-state [--active].

It's often used to reset the state of instance which is in unknown state, or is stuck in certain state which for example does not allow to delete the instance.


This change is Reviewable

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.06%) to 80.113% when pulling 211ec39f37423309601f53275c02fb9ffeb9d206 on kars7e:add-resetstate-method into 231898eeeb3f1efabaf953757babcdb84298fbe8 on rackspace:master.