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

[NEX-15262] Returns failure reason that matches the format required by MM #598

Merged
merged 7 commits into from
Dec 6, 2024

Conversation

yengliong93
Copy link
Contributor

PULL DESCRIPTION

This PR refines the failure_reason in the granular log to match the mapping required by MM. It detects keywords in the error message and maps the error message to the corresponding Enum of the failure_reason.

This PR also fixes an issue where the granular log handler didn't record the command's error when run_commands failed to run the cmd_list.

Impact Analysis

Info Please fill out this column
Root Cause Specifically for bugs, empty in case of no variants
Jira ticket Add the name to the Jira ticket eg: "NEXMANAGE-622". Automation will do the linking to Jira

CODE MAINTAINABILITY

  • Added required new tests relevant to the changes
  • Updated Documentation as relevant to the changes
  • PR change contains code related to security
  • PR introduces changes that break compatibility with other modules/services (If YES, please provide description)
  • Run go fmt or format-python.sh as applicable
  • Update Changelog
  • Integration tests are passing
  • If Cloudadapter changes, check Azure connectivity manually

Code must act as a teacher for future developers

MM

This PR refines the failure_reason in the granular log to match the
mapping required by MM. It detects keywords in the error message and
maps the error message to the corresponding Enum of the failure_reason.

This PR also fixes an issue where the granular log handler didn't record
the command's error when run_commands failed to run the cmd_list.

Signed-off-by: yengliong <[email protected]>
@yengliong93 yengliong93 marked this pull request as draft November 21, 2024 08:03
@yengliong93 yengliong93 marked this pull request as ready for review December 6, 2024 05:37
@yengliong93
Copy link
Contributor Author

@gblewis1 Could you please review the PR?

@gblewis1 gblewis1 merged commit 6188878 into develop Dec 6, 2024
7 checks passed
@gblewis1 gblewis1 deleted the map-failure-reason-as-required-by-MM branch December 6, 2024 18:01
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.

2 participants