Ask Your Question
1

API - Unable to perform Resume action on Paused instance

asked 2014-09-08 04:53:11 -0600

vickchak gravatar image

Hi,

When we try to perform a Resume action on a paused instance through Horizon, it succeeds. But when we try to perform the same action through Openstack API, it fails with the following message "Cannot 'resume' while instance is in vm_state paused".

Rest of the actions performed through API are synchronous with that in horizon, can some one throw some light on why this happens, we are stuck with this issue for more than a week without any clue.

Thanks.

edit retag flag offensive close merge delete

Comments

maybe showing your code and adding more details about the SDK (if any) you're using will help.

smaffulli gravatar imagesmaffulli ( 2014-09-08 15:17:48 -0600 )edit

We are using REST services for the API call using JSON objects. No SDK used.

The URL we used is "http://10.236.220.222:8774/v2/77.../servers/<server-id>/action"

Method is post, input json used is {"resume":null}

rest is as usual http connection request

vickchak gravatar imagevickchak ( 2014-09-09 08:08:21 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-09-20 00:14:54 -0600

In case this problem still exists: There is the notion of pausing and unpausing an instance, which keeps the instance in its current state but "freezes" it. There is a separate concept of suspending/resuming an instance, which seems to be analogous to hibernating it. In your case, you will have to unpause, not resume your instance.

Perhaps Horizon confuses the terminology somewhat.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-09-08 04:53:11 -0600

Seen: 821 times

Last updated: Sep 20 '14