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

DAOS-16487 control: Require hostname for nvme set-faulty & replace #15074

Merged
merged 6 commits into from
Sep 18, 2024

Conversation

tanabarr
Copy link
Contributor

@tanabarr tanabarr commented Sep 5, 2024

Makes --host option mandatory for dmg storage set nvme-faulty, dmg
storage replace nvme and dmg telemetry metrics. These commands should
only be run on a single host which should be explicitly specified.

Also remove --no-reint flag from replace nvme command.

Features: control
Required-githooks: true

Before requesting gatekeeper:

  • Two review approvals and any prior change requests have been resolved.
  • Testing is complete and all tests passed or there is a reason documented in the PR why it should be force landed and forced-landing tag is set.
  • Features: (or Test-tag*) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.
  • Commit messages follows the guidelines outlined here.
  • Any tests skipped by the ticket being addressed have been run and passed in the PR.

Gatekeeper:

  • You are the appropriate gatekeeper to be landing the patch.
  • The PR has 2 reviews by people familiar with the code, including appropriate owners.
  • Githooks were used. If not, request that user install them and check copyright dates.
  • Checkpatch issues are resolved. Pay particular attention to ones that will show up on future PRs.
  • All builds have passed. Check non-required builds for any new compiler warnings.
  • Sufficient testing is done. Check feature pragmas and test tags and that tests skipped for the ticket are run and now pass with the changes.
  • If applicable, the PR has addressed any potential version compatibility issues.
  • Check the target branch. If it is master branch, should the PR go to a feature branch? If it is a release branch, does it have merge approval in the JIRA ticket.
  • Extra checks if forced landing is requested
    • Review comments are sufficiently resolved, particularly by prior reviewers that requested changes.
    • No new NLT or valgrind warnings. Check the classic view.
    • Quick-build or Quick-functional is not used.
  • Fix the commit message upon landing. Check the standard here. Edit it to create a single commit. If necessary, ask submitter for a new summary.

Copy link

github-actions bot commented Sep 5, 2024

Ticket title is 'dmg storage must precisely identify NVMe device(s)'
Status is 'In Review'
Labels: 'lrz,usability'
https://daosio.atlassian.net/browse/DAOS-16487

@daosbuild1
Copy link
Collaborator

Test stage Unit Test on EL 8.8 completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-15074/1/testReport/

Features: control
Required-githooks: true

Signed-off-by: Tom Nabarro <tom.nabarro@intel.com>
Features: control
Required-githooks: true

Signed-off-by: Tom Nabarro <tom.nabarro@intel.com>
@tanabarr tanabarr force-pushed the tanabarr/control-setfaulty-replace-hostopt branch from ea480b9 to 2f3ca2f Compare September 11, 2024 21:59
@tanabarr tanabarr marked this pull request as ready for review September 11, 2024 22:04
@tanabarr tanabarr requested review from a team as code owners September 11, 2024 22:04
@tanabarr tanabarr self-assigned this Sep 11, 2024
@tanabarr tanabarr added control-plane work on the management infrastructure of the DAOS Control Plane go Pull requests that update Go code usability Changes specific to user facing tools or behaviour. labels Sep 11, 2024
Copy link
Contributor

@kjacque kjacque left a comment

Choose a reason for hiding this comment

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

Overall looks good. Ftest dmg infrastructure updates may be needed for the telemetry commands now that the single host command has changed.

src/tests/ftest/util/dmg_utils_base.py Show resolved Hide resolved
@daosbuild1
Copy link
Collaborator

Test stage Functional on EL 8.8 completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-15074/2/testReport/

Copy link
Contributor

@knard38 knard38 left a comment

Choose a reason for hiding this comment

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

LGTM.
+1 with kris for adding the telemetry feature before approving.

Features: control telemetry
Required-githooks: true

Signed-off-by: Tom Nabarro <tom.nabarro@intel.com>
Features: pool telemetry
Required-githooks: true

Signed-off-by: Tom Nabarro <tom.nabarro@intel.com>
Copy link
Contributor

@daltonbohning daltonbohning left a comment

Choose a reason for hiding this comment

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

ftest LGTM

@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Medium completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-15074/4/display/redirect

@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Medium Verbs Provider completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-15074/4/display/redirect

@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Medium completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15074/5/execution/node/505/log

knard38
knard38 previously approved these changes Sep 16, 2024
@@ -44,7 +44,7 @@ def set_device_faulty(test, dmg, server, uuid, pool=None, has_sys_xs=False, **kw
Args:
test (Test): avocado test class
dmg (DmgCommand): a DmgCommand class instance
server (NodeSet): host on which to issue the dmg storage set nvme-faulty
server (str): host on which to issue the dmg storage set nvme-faulty
Copy link
Contributor

@phender phender Sep 16, 2024

Choose a reason for hiding this comment

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

Minor, but we should probably leave this as a NodeSet input type. This docstring change implies that the user will need to unnecessarily convert a NodeSet object into a string when this is not actually needed. Through the FormattedParameter object the DmgCommand.host.value NodeSet object will be converted into a string when creating the dmg command string. Ideally, we want to keep all host information as a NodeSet object in the test harness as it simplifies other operations we may need to perform.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@daltonbohning
Copy link
Contributor

deployment/disk_failure.py and vmd/fault_reintegration.py failures in
https://build.hpdd.intel.com/blue/organizations/jenkins/daos-stack%2Fdaos/detail/PR-15074/5/tests
are manual tests and not expected to pass in CI

Features: pool telemetry
Required-githooks: true

Signed-off-by: Tom Nabarro <tom.nabarro@intel.com>
…tfaulty-replace-hostopt

Features: pool telemetry
Signed-off-by: Tom Nabarro <tom.nabarro@intel.com>
Copy link
Contributor

@daltonbohning daltonbohning left a comment

Choose a reason for hiding this comment

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

ftest LGTM

@tanabarr
Copy link
Contributor Author

tanabarr commented Sep 17, 2024

https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-15074/6/artifact/Functional%20Hardware%20Medium/vmd/fault_reintegration.py/job.log/*view*/

Passed VMD tests because by chance functional hardware medium ran on VMD enabled cluster (PCI addresses begin with non-zero domain)
2024-09-17 07:36:58,816 fault_reintegrat L0068 DEBUG| Verifying: dev_state (NORMAL == NORMAL) and led_state (OFF == OFF)

Whereas https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-15074/5/artifact/Functional%20Hardware%20Medium/vmd/fault_reintegration.py/job.log/*view*/

Failed VMD tests because the same test ran on a non-VMD enabled cluster (PCI addresses begin with zero domain)
2024-09-15 02:58:30,848 fault_reintegrat L0068 DEBUG| Verifying: dev_state (NORMAL == NORMAL) and led_state (NA == OFF)

Copy link
Contributor

@mjmac mjmac left a comment

Choose a reason for hiding this comment

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

Changes look good to me, but I'll defer to those with more context into requirements for approvals.

Copy link
Contributor

@kjacque kjacque left a comment

Choose a reason for hiding this comment

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

Looks OK to me as long as telemetry tests pass.

@tanabarr tanabarr requested a review from a team September 18, 2024 08:40
@mjmac mjmac merged commit 049f710 into master Sep 18, 2024
60 checks passed
@mjmac mjmac deleted the tanabarr/control-setfaulty-replace-hostopt branch September 18, 2024 12:27
tanabarr added a commit that referenced this pull request Oct 7, 2024
…15074)

Makes --host option mandatory for dmg storage set nvme-faulty, dmg
storage replace nvme and dmg telemetry metrics. These commands should
only be run on a single host which should be explicitly specified.

Also remove --no-reint flag from replace nvme command.

Signed-off-by: Tom Nabarro <tom.nabarro@intel.com>
daltonbohning pushed a commit that referenced this pull request Oct 9, 2024
…15074) (#15260)

Makes --host option mandatory for dmg storage set nvme-faulty, dmg
storage replace nvme and dmg telemetry metrics. These commands should
only be run on a single host which should be explicitly specified.

Also remove --no-reint flag from replace nvme command.

Signed-off-by: Tom Nabarro <tom.nabarro@intel.com>
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 go Pull requests that update Go code usability Changes specific to user facing tools or behaviour.
Development

Successfully merging this pull request may close these issues.

7 participants