Skip to content

DAOS-19205 control: Improve dmg system rebuild-stop output (#18538)#18690

Open
tanabarr wants to merge 1 commit into
release/2.8from
tanabarr/control-rebuildstop-notexist-uxfix-rel2_8
Open

DAOS-19205 control: Improve dmg system rebuild-stop output (#18538)#18690
tanabarr wants to merge 1 commit into
release/2.8from
tanabarr/control-rebuildstop-notexist-uxfix-rel2_8

Conversation

@tanabarr

Copy link
Copy Markdown
Contributor

Enhance rebuild-stop command to distinguish between successful stops,
pools without active rebuilds (DER_NONEXIST), and actual errors.
Provide structured output showing counts for each category and only
fail on real errors, not when pools aren't rebuilding.

Steps for the author:

  • Commit message follows the guidelines.
  • Appropriate Features or Test-tag pragmas were used.
  • Appropriate Functional Test Stages were run.
  • At least two positive code reviews including at least one code owner from each category referenced in the PR.
  • Testing is complete. If necessary, forced-landing label added and a reason added in a comment.

After all prior steps are complete:

  • Gatekeeper requested (daos-gatekeeper added as a reviewer).

Enhance rebuild-stop command to distinguish between successful stops,
pools without active rebuilds (DER_NONEXIST), and actual errors.
Provide structured output showing counts for each category and only
fail on real errors, not when pools aren't rebuilding.

Signed-off-by: Tom Nabarro <thomas.nabarro@hpe.com>
@tanabarr tanabarr self-assigned this Jul 21, 2026
@tanabarr
tanabarr requested review from a team as code owners July 21, 2026 16:36
@github-actions

Copy link
Copy Markdown

Ticket title is 'dmg system rebuild stop command returns DER_NONEXIST error for pools which completed rebuild operation.'
Status is 'Awaiting backport'
Labels: 'request_for_2.8,request_for_2.8.1,test_2.8.0rc'
https://daosio.atlassian.net/browse/DAOS-19205

Comment on lines +28 to +33
// extractInfoMessages extracts INFO level messages from a log buffer, returning just
// the message content without timestamps or prefixes. Returns a single string with
// messages joined by newlines, terminated with a newline if any messages were found.
// Continuation lines (lines that don't contain log level markers) are appended to
// the previous INFO message.
func extractInfoMessages(logOutput string) string {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think the output checking is necessary at this level, since the output text is verified down in the pretty package now. Wouldn't be an issue if it was trivial to check, but this parsing logic looks pretty fragile.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As this is a back port is it okay if I revisit this in a follow-on when I next look at this area?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants