Skip to content

[bug-1770]: Return stderr in error response when failing NVMeTCPConnect#73

Merged
alikdell merged 1 commit into
mainfrom
usr/atye/bug-1770-verbose-error
Feb 24, 2025
Merged

[bug-1770]: Return stderr in error response when failing NVMeTCPConnect#73
alikdell merged 1 commit into
mainfrom
usr/atye/bug-1770-verbose-error

Conversation

@atye

@atye atye commented Feb 24, 2025

Copy link
Copy Markdown
Contributor

Description

Updates NVMeTCPConnect to return stderr in error responses for easier debugging.

Updates NVMeTCPConnect to use ExitError.ExitCode() to get the exit code instead of

if status, ok := exiterr.Sys().(syscall.WaitStatus); ok {
         nvmeConnectResult = status.ExitStatus()
}

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
https://github.com/dell/csm/issues/1770

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

Unit tests updated to verify content in error response.

@alikdell alikdell merged commit 582e756 into main Feb 24, 2025
@alikdell alikdell deleted the usr/atye/bug-1770-verbose-error branch February 24, 2025 19:04
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.

3 participants