Ask Your Question
0

Reset state of server(VM) using REST API

asked 2018-06-21 11:58:30 -0600

selvaraj.chennappan gravatar image

When Server(VM) status is in ERROR How to reset the status back to Active using REST API .

CLI For .e.g nova reset-state --active <vm resourceid="">

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2018-07-06 17:16:21 -0600

tze gravatar image

updated 2018-07-06 17:16:56 -0600

In my case i need two command to restore the server in correct state, 1) reset state to active (openstack server set --state active {server_id} ) 2) to stop server (openstack server stop {server_id} ) So in rest api you need: 1) POST on /servers/{server_id}/action with payload {"os-resetState": {"state": "active"}} 2) POST on /servers/{server_id}/action with payload {"os-stop" : null }

edit flag offensive delete link more
0

answered 2018-06-22 12:34:55 -0600

Aref gravatar image

use POST: /servers/{server_id}/action

edit flag offensive delete link more
0

answered 2018-06-21 16:55:33 -0600

updated 2018-06-21 16:55:46 -0600

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: 2018-06-21 11:58:30 -0600

Seen: 142 times

Last updated: Jul 06