Skip to content

Conversation

@alexlovelltroy
Copy link
Member

This pull request improves error handling and user feedback in the metadata handler and SMD client code. The changes focus on providing clearer error messages to clients and logging more informative errors for easier debugging.

Error handling and user feedback improvements:

  • Updated the MetaDataHandler in metadata_handlers.go to use http.Error with a descriptive message when failing to retrieve a node ID from an IP address, instead of just setting the status code.
  • Enhanced the getSMD method in SMDclient.go to log and return a detailed error if the response status code is not OK, improving visibility into SMD request failures.

Signed-off-by: Alex Lovell-Troy <alovelltroy@lanl.gov>
@alexlovelltroy alexlovelltroy linked an issue Sep 29, 2025 that may be closed by this pull request
@synackd
Copy link
Contributor

synackd commented Sep 29, 2025

This branch appears to have become stale. Could you rebase this onto the current main? The current one does not have the build-in-container.sh script.

Signed-off-by: Alex Lovell-Troy <alovelltroy@lanl.gov>
@alexlovelltroy
Copy link
Member Author

Merged main into branch and addressed merge conflict based on updates in this PR.

Copy link
Contributor

@synackd synackd left a comment

Choose a reason for hiding this comment

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

This is a small change and it LGTM. I'm okay to merge this.

@synackd synackd merged commit 43a2187 into main Oct 1, 2025
5 checks passed
@synackd synackd deleted the 67-bug-impersonating-non-existent-node-does-not-err branch October 1, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Impersonating non-existent node does not err

3 participants