Skip to content

[4.0] keystone: avoid race condition during admin password change#1670

Merged
rsalevsky merged 1 commit into
crowbar:stable/4.0from
stefannica:bsc#1091829
May 14, 2018
Merged

[4.0] keystone: avoid race condition during admin password change#1670
rsalevsky merged 1 commit into
crowbar:stable/4.0from
stefannica:bsc#1091829

Conversation

@stefannica

Copy link
Copy Markdown
Contributor

(backports #1668 to 4.0)

Workaround for: https://bugzilla.suse.com/show_bug.cgi?id=1091829

Calling the keystone_register 'wakeup' action immediately after
the admin password has been updated can sometimes result in timeout
errors on non-founder nodes, while the founder node is stuck doing
retry iterations with an expired token due to bsc#1091829.

As a workaround for bsc#1091829, a small time delay is inserted after
the admin password is changed, to give keystone time to expire all the
admin tokens already issued before creating new ones.

…829)

Issuing a new keystone token immediately after updating the
admin user password may sometimes return an invalid token.

In the context of crowbar, this issue can be triggered when calling
the keystone_register 'wakeup' action immediately after the admin
password has been updated. When triggered, it results in timeout errors
on non-founder nodes, while the founder node is stuck doing retry
iterations with an expired token.

As a workaround for bsc#1091829, the 'wakeup' action is updated with
an optional 'reissue_token_on_error' argument, which, when set, will
re-issue a token *before* checking the keystone API again, instead of
reusing the same token for subsequent attempts.

(cherry picked from commit 3d664ed)
@rsalevsky rsalevsky merged commit 89e59cd into crowbar:stable/4.0 May 14, 2018
@stefannica stefannica deleted the bsc#1091829 branch May 14, 2018 09:50
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