Ask Your Question
0

failed to resize server using curl comand

asked 2017-01-24 02:03:13 -0600

xuananh gravatar image

updated 2017-01-24 02:04:53 -0600

I used following command to resize server, but nothing print out and server is not resized

curl -s -H "X-Auth-Token: $OS_TOKEN" \
  -H "Content-type: application/json" \
  $OS_COMPUTE_API/servers/$SERVER_ID/action \
  --data '{"resize":{"flavorRef":"5","OS-DCF:diskConfig":"AUTO"}}'
  | python -m json.tool

Anybody know, where is my mistake? Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-01-24 04:37:41 -0600

Resizing is a two step process. After the resize API, you need to submit a resize-confirmation API. Or you set a config variable resize_confirm_window so that confirmation is implied after a certain time.

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: 2017-01-24 02:03:13 -0600

Seen: 29 times

Last updated: Jan 24 '17