Ask Your Question

failed to resize server using curl comand

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

xuananh gravatar image

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

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

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

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-01-24 02:03:13 -0500

Seen: 50 times

Last updated: Jan 24 '17