resource creation shouldn't retry in all cases of ResourceInError
Bug #1410083 reported by
huangtianhua
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Triaged
|
Medium
|
huangtianhua |
Bug Description
1. create a stack with a nova server, but the flavor is too small for the specified image
2. nova will raise the exception such as:
"Build of instance a1b57836-
3. now heat will retry 5 times(default) to re-create a server
4. but there is no need to retry in this situation, IMO the retry conditions should be more specific.
Changed in heat: | |
assignee: | nobody → huangtianhua (huangtianhua) |
Changed in heat: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in heat: | |
milestone: | none → no-priority-tag-bugs |
To post a comment you must log in.
This is tricky - when the retry logic was added, some folks were arguing that even 500 can't be treated as a persistent error and that we should always retry, as internal errors might somehow be transient.
IMHO 500 should always be treated as a hard failure, as it's always the wrong response.
What are our options to fix this? IMO we don't want to start string matching the error description as that will probably end up fragile and hard to maintain.