Skip to content

DAOS-17832 control: Add dmg system rebuild start|stop cmds - #16664

Merged
daltonbohning merged 5 commits into
masterfrom
tanabarr/control-sysrbld-startstop
Sep 24, 2025
Merged

daltonbohning merged 5 commits into
masterfrom
tanabarr/control-sysrbld-startstop

Conversation

@tanabarr

@tanabarr tanabarr commented Jul 25, 2025 •

Copy link
Copy Markdown
Contributor

Add system interactive rebuild start and stop commands to dmg tool
which will send relevant requests for each pool in the system.

Features: control

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).

@github-actions

github-actions Bot commented Jul 25, 2025 •

Copy link
Copy Markdown

Ticket title is 'Add dmg system rebuild start|stop cmds'
Status is 'In Review'
Labels: '2.8pp,Rebuild,control-plane'
https://daosio.atlassian.net/browse/DAOS-17832

@tanabarr tanabarr self-assigned this Jul 25, 2025
@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

Test stage Build on Leap 15.5 with Intel-C and TARGET_PREFIX completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-16664/1/execution/node/420/log

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@tanabarr
tanabarr force-pushed the tanabarr/control-sysrbld-startstop branch from 7a507b9 to 892f1be Compare July 30, 2025 17:29
@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

Test stage Build on Leap 15.5 with Intel-C and TARGET_PREFIX completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-16664/2/execution/node/418/log

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@tanabarr
tanabarr force-pushed the tanabarr/control-sysrbld-startstop branch from 892f1be to 288580b Compare September 10, 2025 22:40
@daosbuild3

Copy link
Copy Markdown
Collaborator

@tanabarr
tanabarr force-pushed the tanabarr/control-sysrbld-startstop branch 2 times, most recently from 83249d4 to 6a7d150 Compare September 12, 2025 14:09
@tanabarr
tanabarr marked this pull request as ready for review September 12, 2025 14:10
@tanabarr
tanabarr requested review from a team as code owners September 12, 2025 14:10
@tanabarr
tanabarr changed the base branch from master to tanabarr/control-poolrbld-startstop September 12, 2025 14:11
@tanabarr
tanabarr requested a review from a team as a code owner September 12, 2025 14:11
@daosbuild3

Copy link
Copy Markdown
Collaborator

Test stage Unit Test with memcheck on EL 8.8 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-16664/9/testReport/

@daosbuild3

Copy link
Copy Markdown
Collaborator

Test stage Unit Test bdev with memcheck on EL 8.8 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-16664/9/testReport/

Features: control
Allow-unstable-test: true
Signed-off-by: Tom Nabarro <thomas.nabarro@hpe.com>
Features: control
Allow-unstable-test: true
Signed-off-by: Tom Nabarro <thomas.nabarro@hpe.com>
@tanabarr
tanabarr force-pushed the tanabarr/control-sysrbld-startstop branch from 1b5052b to 1fe4cd9 Compare September 17, 2025 09:57
@tanabarr tanabarr added control-plane work on the management infrastructure of the DAOS Control Plane CR Catastrophic Recovery Feature go Pull requests that update Go code labels Sep 17, 2025
@tanabarr

Copy link
Copy Markdown
Contributor Author

Apologies for force push, rebased on master after parent branch was merged. No code changes made on rebase.

Remaining question from @liw : should no pools result in a noop success So rather than error? Happy to make the change if the consensus is yes.

@daosbuild3

Copy link
Copy Markdown
Collaborator

kccain
kccain previously approved these changes Sep 17, 2025
Features: control
Signed-off-by: Tom Nabarro <thomas.nabarro@hpe.com>
…srbld-startstop

Features: control
Allow-unstable-test: true
Priority: 2
Signed-off-by: Tom Nabarro <thomas.nabarro@hpe.com>
@daosbuild3

Copy link
Copy Markdown
Collaborator

msg := fmt.Sprintf("System-rebuild %s request succeeded", opCode)
pStr := common.Pluralise("pool", len(respPoolsSuccess))
if cmd.Verbose {
cmd.Infof("%s on %s %v", msg, pStr, respPoolsSuccess)

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.

minor suggestion (change only if need to change something else in the PR I suppose): Suggest still printing out the number of pools in addition to the list of pool identifiers. Useful to the admin reading the output if the system has many 10s of pools and doesn't want to manually count or otherwise process the command output to derive the number.

Suggested change
cmd.Infof("%s on %s %v", msg, pStr, respPoolsSuccess)
cmd.Infof("%s on %d %s %v", msg, len(respPoolsSuccess), pStr, respPoolsSuccess)

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.

will address either on repush or on subsequent PR

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.

fix applied in #16875

},
},
},
expErr: errors.New("failed on pool foo: failed, pool-rebuild stop failed on pool bar"),

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.

no change requested, just not understanding why the ": failed" (Msg) would not be expected to be seen for the failure associated with pool 'bar'. And not sure where "pool-rebuild stop" comes from for the pool 'bar' but does not show up for the pool 'foo' portion of the expected errors.

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.

this is just a subset of the Error string expected, validates that the substring is contained in the error message

@tanabarr

Copy link
Copy Markdown
Contributor Author

Functional VM test failure in DynamicServerPool due to intermittent unrelated issue https://daosio.atlassian.net/browse/DAOS-17994.

@knard38 knard38 left a comment

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.

Last update looks good to me.

Features: control
Allow-unstable-test: true
@daosbuild3

Copy link
Copy Markdown
Collaborator

@tanabarr
tanabarr requested a review from a team September 24, 2025 15:45
@tanabarr tanabarr added the forced-landing The PR has known failures or has intentionally reduced testing, but should still be landed. label Sep 24, 2025
@tanabarr

Copy link
Copy Markdown
Contributor Author

One known failure in CI results ready to land

@daltonbohning
daltonbohning merged commit a1e3b20 into master Sep 24, 2025
41 of 44 checks passed
@daltonbohning
daltonbohning deleted the tanabarr/control-sysrbld-startstop branch September 24, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

control-plane work on the management infrastructure of the DAOS Control Plane CR Catastrophic Recovery Feature forced-landing The PR has known failures or has intentionally reduced testing, but should still be landed. go Pull requests that update Go code

Development

Successfully merging this pull request may close these issues.

7 participants