Skip to content

Vault-2257: don't log token error on DR Secondary#13137

Merged
swayne275 merged 8 commits intomainfrom
vault-2257
Nov 17, 2021
Merged

Vault-2257: don't log token error on DR Secondary#13137
swayne275 merged 8 commits intomainfrom
vault-2257

Conversation

@swayne275
Copy link
Copy Markdown
Contributor

@swayne275 swayne275 commented Nov 12, 2021

  • Stop gauge collector "expiration manager is nil" errors on DR Secondaries
  • update log messages to be identifiable (two paths no longer yield the same message)

It looked like at least one of the two updated error messages was being hit on DR Secondaries, but after extensive testing I haven't found any evidence for that. Updating messages to identify if it does happen in the future.

@vercel vercel bot temporarily deployed to Preview – vault-storybook November 12, 2021 21:29 Inactive
@vercel vercel bot temporarily deployed to Preview – vault November 12, 2021 21:29 Inactive
Copy link
Copy Markdown
Contributor

@HridoyRoy HridoyRoy left a comment

Choose a reason for hiding this comment

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

Suppressing the log messages looks good to me, but I had a quick follow-up question on the IsDRSecondary checks.

Comment thread vault/dynamic_system_view.go Outdated
Comment thread vault/request_handling.go Outdated
Comment thread vault/core_metrics.go
@vercel vercel bot temporarily deployed to Preview – vault-storybook November 16, 2021 19:43 Inactive
@vercel vercel bot temporarily deployed to Preview – vault November 16, 2021 19:43 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook November 16, 2021 20:38 Inactive
@vercel vercel bot temporarily deployed to Preview – vault November 16, 2021 20:38 Inactive
@vercel vercel bot temporarily deployed to Preview – vault November 16, 2021 22:08 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook November 16, 2021 22:08 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook November 16, 2021 22:09 Inactive
@vercel vercel bot temporarily deployed to Preview – vault November 16, 2021 22:09 Inactive
@vercel vercel bot temporarily deployed to Preview – vault November 16, 2021 22:09 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook November 16, 2021 22:09 Inactive
@vercel vercel bot temporarily deployed to Preview – vault November 16, 2021 23:30 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook November 16, 2021 23:30 Inactive
@swayne275 swayne275 requested a review from HridoyRoy November 16, 2021 23:32
Copy link
Copy Markdown
Contributor

@HridoyRoy HridoyRoy left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

@swayne275 swayne275 merged commit 0aa3f10 into main Nov 17, 2021
@swayne275 swayne275 deleted the vault-2257 branch November 17, 2021 16:21
@swayne275 swayne275 added this to the 1.7.7 milestone Nov 17, 2021
swayne275 added a commit that referenced this pull request Nov 17, 2021
* don't log token error on DR Secondary

* stop gauge collector expiration errors on dr secondary

* don't check dr secondary for token create

* see if CI hits panic

* Revert "don't check dr secondary for token create"

This reverts commit c036a1a.

* don't check dr secondary for token create

* Revert "see if CI hits panic"

This reverts commit 1e15aa5.

* remove condition on log
swayne275 added a commit that referenced this pull request Nov 17, 2021
* don't log token error on DR Secondary

* stop gauge collector expiration errors on dr secondary

* don't check dr secondary for token create

* see if CI hits panic

* Revert "don't check dr secondary for token create"

This reverts commit c036a1a.

* don't check dr secondary for token create

* Revert "see if CI hits panic"

This reverts commit 1e15aa5.

* remove condition on log
swayne275 added a commit that referenced this pull request Nov 17, 2021
* don't log token error on DR Secondary

* stop gauge collector expiration errors on dr secondary

* don't check dr secondary for token create

* see if CI hits panic

* Revert "don't check dr secondary for token create"

This reverts commit c036a1a.

* don't check dr secondary for token create

* Revert "see if CI hits panic"

This reverts commit 1e15aa5.

* remove condition on log
swayne275 added a commit that referenced this pull request Nov 17, 2021
* don't log token error on DR Secondary

* stop gauge collector expiration errors on dr secondary

* don't check dr secondary for token create

* see if CI hits panic

* Revert "don't check dr secondary for token create"

This reverts commit c036a1a.

* don't check dr secondary for token create

* Revert "see if CI hits panic"

This reverts commit 1e15aa5.

* remove condition on log
swayne275 added a commit that referenced this pull request Nov 17, 2021
* don't log token error on DR Secondary

* stop gauge collector expiration errors on dr secondary

* don't check dr secondary for token create

* see if CI hits panic

* Revert "don't check dr secondary for token create"

This reverts commit c036a1a.

* don't check dr secondary for token create

* Revert "see if CI hits panic"

This reverts commit 1e15aa5.

* remove condition on log
swayne275 added a commit that referenced this pull request Nov 17, 2021
* don't log token error on DR Secondary

* stop gauge collector expiration errors on dr secondary

* don't check dr secondary for token create

* see if CI hits panic

* Revert "don't check dr secondary for token create"

This reverts commit c036a1a.

* don't check dr secondary for token create

* Revert "see if CI hits panic"

This reverts commit 1e15aa5.

* remove condition on log
eualin pushed a commit to eualin/vault that referenced this pull request Mar 19, 2026
…) (hashicorp#13170)

* updating transition for unsupported engines to route to config, code cleanup

* test updates

* updated tests to assert route & path are called with transition

* fix assertions

Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants