Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry validating token from vault till success #3957

Merged
merged 4 commits into from
Mar 9, 2018
Merged

Conversation

preetapan
Copy link
Member

Fixes #3786

Also consolidates error message definition into one place, and changes error handling logic to separate connection establishment from token validation errors

nomad/vault.go Outdated
retryTimer.Reset(v.config.ConnectionRetryIntv)
v.l.Lock()
v.connEstablished = true
v.connEstablishedErr = fmt.Errorf("Connection to Vault failed: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v.connEstablishedErr = fmt.Errorf("Nomad Server failed to establish connections to Vault: %v", err)

@preetapan preetapan merged commit 14afd04 into master Mar 9, 2018
@preetapan preetapan deleted the b-vault-retry branch July 16, 2018 21:07
@github-actions
Copy link

github-actions bot commented Mar 1, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants