Skip to content

[4.0] nova: Don't retry creating existing flavors#2144

Merged
dirkmueller merged 1 commit into
crowbar:stable/4.0from
skazi0:nova-flavor-existing-7
Jul 2, 2019
Merged

[4.0] nova: Don't retry creating existing flavors#2144
dirkmueller merged 1 commit into
crowbar:stable/4.0from
skazi0:nova-flavor-existing-7

Conversation

@skazi0

@skazi0 skazi0 commented May 30, 2019

Copy link
Copy Markdown
Member

In some cases the flavor create call succeeds but client still returns
non-zero status. Retries of the create call fail with "Flavor already
exists" and the retry loop never succeeds. Added check is executed in
every loop turn and will stop reytring if the flavor already exists.

Example scenario where flavor might be correctly created but client
doesn't return zero is when one of HA nodes executes flavor create
commands while others perform delayed restart of nova API after config
files are modified. If the "create" request hits the API just before
restart it could be accepted but the client might not get the correct
response back.

port of #2142

nicolasbock
nicolasbock previously approved these changes May 30, 2019
@nicolasbock

Copy link
Copy Markdown
Contributor

The HA failures are already in Keystone and don't seem to be related to the PR.

In some cases the flavor create call succeeds but client still returns
non-zero status. Retries of the create call fail with "Flavor already
exists" and the retry loop never succeeds. Added check is executed in
every loop turn and will stop reytring if the flavor already exists.

Example scenario where flavor might be correctly created but client
doesn't return zero is when one of HA nodes executes flavor create
commands while others perform delayed restart of nova API after config
files are modified. If the "create" request hits the API just before
restart it could be accepted but the client might not get the correct
response back.

(cherry picked from commit 8085fb9)
@skazi0

skazi0 commented Jun 6, 2019

Copy link
Copy Markdown
Member Author

rebased to get the gating fixes included

@skazi0 skazi0 requested a review from nicolasbock June 10, 2019 14:04
@skazi0 skazi0 requested a review from stefannica June 17, 2019 09:28
@dirkmueller dirkmueller merged commit 91038bc into crowbar:stable/4.0 Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants