Create stack failed due to bad request error

asked 2020-03-09 02:22:59 -0600

rawmain gravatar image

When I using ansible to create a stack by OpenStack Heat template, got this error:

FAILED! => {"changed": false, "msg": "BadRequestException: 400: Client Error for url: https://[IP]:8004/v1/27b50ef090b8a72f884a4203a40cf49bb/stacks/stack1/0233e96e-8e26-460e-8ef8-564a48c1597e, Updating a stack when it is deleting is not supported.", "response": {"code": 400, "error": {"message": "Updating a stack when it is deleting is not supported.", "traceback": null, "type": "NotSupported"}, "explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "title": "Bad Request"}}

Even I set the user to admin has the same error.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2020-03-09 09:24:18 -0600

zaneb gravatar image

This error indicates that it is not creating a stack but updating an existing stack. This is failing because the existing stack has already started deleting (i.e. it is in the DELETE_IN_PROGRESS or DELETE_FAILED state). You will have to complete the deletion of the existing stack before you can create a new one with the same name.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-03-09 02:22:59 -0600

Seen: 129 times

Last updated: Mar 09