-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
VAULT-11830: Expand NodeStatusReporter with new fields #18302
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
vault/core.go
Outdated
} | ||
|
||
listeners := conf.(*server.Config).Listeners | ||
if lns == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am seeing a millions of GH warnings about an undefined lns
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ccapurso I think this still needs to be addressed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh shoot! I fixed that but apparently I didn't commit and push. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, it looks like I did and the build works locally. I'll dig in and try to figure that out.
Looks good! Just a couple of last minor comments. |
* expand NodeStatusReporter with new fields * only call IsRaftVoter if using raft storage * add changelog entry * fix listeners * return LogLevel as enum * update github.com/hashicorp/vault/vault/hcp_link/proto * add changelog entry * bump github.com/hashicorp/vault/vault/hcp_link/proto * go mod tidy
* expand NodeStatusReporter with new fields * only call IsRaftVoter if using raft storage * add changelog entry * fix listeners * return LogLevel as enum * update github.com/hashicorp/vault/vault/hcp_link/proto * add changelog entry * bump github.com/hashicorp/vault/vault/hcp_link/proto * go mod tidy
The associated PR #18203 introduces the following fields to
LinkedClusterNodeStatusResponse
:Hostname
ListenerAddresses
OperatingSystem
OperatingSystemVersion
LogLevel
ActiveTime
RaftStatus
with underlyingIsVoter
fieldThis PR modifies the
GetNodeStatus
handler ofNodeStatusReporter
to includes these fields in the response.Hostname
,OperatingSystem
, andOperatingSystemVersion
are all obtained viahost.InfoWithContext
which is also used by thesys/host-info
endpoint.A few new
Core
methods have been added for the purpose of de-coupling viaWrappedCoreNodeStatus
:ListenerAddresses
surfaces the configured listener addressesLogLevel
surfaces the underlyingCore.logLevel
to expose the configured log level.IsRaftVoter
usesCore.raftInfo
to determine if the node is a raft voterTODO:
go get github.com/hashicorp/vault/vault/hcp_link/proto
once VAULT-11827: Add new Link node level fields #18203 since the current version ingo.mod
is pointing to@vault-11827-node-level-fields