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-13936 support: Collect the specific logs and Time range log for support #13325

Merged
merged 16 commits into from
Feb 28, 2024

Conversation

ravalsam
Copy link
Contributor

  • Adding feature to collect specific log only, Admin/Control/Engine.
  • Adding option to collect the engine log based on date and time range.
  • Fix the control log to add the date to be aligned with server engine/admin logs.

Test-tag: pr support

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 watchers.
  • 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.

…support purpose.

 - Adding feature to collect specific log only, Admin/Control/Engine.
 - Adding option to collect the engine log based on date and time range.
 - Fix the control log to add the date to be aligned with server engine/admin logs.

Test-tag: pr support

Required-githooks: true

Signed-off-by: Samir Raval <[email protected]>
@ravalsam ravalsam requested review from a team as code owners November 10, 2023 03:07
@ravalsam ravalsam requested review from mjmac and tanabarr and removed request for a team November 10, 2023 03:07
Copy link

github-actions bot commented Nov 10, 2023

Bug-tracker data:
Ticket title is 'Collect the specific logs and Time range log for support'
Status is 'In Review'
Errors are Unknown component
https://daosio.atlassian.net/browse/DAOS-13936

Copy link
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

LGTM. No errors found by checkpatch.

Test-tag: pr support

Required-githooks: true
Copy link
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

LGTM. No errors found by checkpatch.

@daosbuild1
Copy link
Collaborator

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

Test-tag: pr support

Required-githooks: true

Signed-off-by: Samir Raval <[email protected]>
@ravalsam ravalsam changed the title DAOS-13936 support: Collect the specific logs and Time range log for support purpose. DAOS-13936 support: Collect the specific logs and Time range log for support Nov 13, 2023
Copy link
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

LGTM. No errors found by checkpatch.

@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-13325/3/execution/node/1412/log

@ravalsam
Copy link
Contributor Author

One test failure is not related to this PR and existing defect is open for failure https://daosio.atlassian.net/browse/DAOS-14585.

@ravalsam ravalsam requested a review from kjacque November 14, 2023 17:31
Comment on lines 46 to 49
LogCollection[support.CopyServerConfigEnum] = []string{""}
LogCollection[support.CollectSystemCmdEnum] = support.SystemCmd
LogCollection[support.CollectDaosServerCmdEnum] = support.DaosServerCmd
LogCollection[support.CollectServerLogEnum] = support.ServerLog
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this be shared too? I wonder if it would be better to pass the cmd.LogType as a parameter to cmd.LogTypeValidate().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean populate this in function cmd.LogTypeValidate()?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, exactly.

tanabarr
tanabarr previously approved these changes Nov 23, 2023
Copy link
Contributor

@tanabarr tanabarr left a comment

Choose a reason for hiding this comment

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

Looks like Kris has done a thorough review which I agree with and I've just added a couple of extra comments

@tanabarr tanabarr self-requested a review November 23, 2023 11:51
Copy link
Contributor

@tanabarr tanabarr left a comment

Choose a reason for hiding this comment

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

Apologies I didn't mean to approve it yet.

@tanabarr tanabarr self-requested a review November 23, 2023 11:53
Test-tag: pr support

Required-githooks: true

Signed-off-by: Samir Raval <[email protected]>
Copy link
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

LGTM. No errors found by checkpatch.

Copy link
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

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

LGTM. No errors found by checkpatch.

@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Medium Verbs Provider completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-13325/5/testReport/

@ravalsam
Copy link
Contributor Author

Single test failure is not related to this PR and it's existing open issue https://daosio.atlassian.net/browse/DAOS-14353

@ravalsam ravalsam requested a review from kjacque December 12, 2023 10:19
@ravalsam ravalsam dismissed stale reviews from kjacque and tanabarr via b1a124d February 6, 2024 16:36
@ravalsam ravalsam requested review from a team as code owners February 6, 2024 16:36
@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-13325/19/execution/node/1510/log

@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-13325/20/execution/node/420/log

@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-13325/21/execution/node/1460/log

@ravalsam
Copy link
Contributor Author

ravalsam commented Feb 8, 2024

There are few test failure but it's not related to this PR and created new ticket DAOS-15165

@ravalsam ravalsam requested review from tanabarr and kjacque February 8, 2024 17:01
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 code changes LGTM

@ravalsam ravalsam requested a review from a team February 8, 2024 23:43
@mjmac
Copy link
Contributor

mjmac commented Feb 27, 2024

@ravalsam: Code changes look fine to me, but I can't force land. You'll either need to request a forced landing from other gatekeepers (by adding the forced-landing label), or merge master and re-run to try for clean test results.

@mchaarawi
Copy link
Contributor

please rerun with
Features: control
commit pragma

@mchaarawi mchaarawi removed the request for review from a team February 27, 2024 14:48
@ravalsam
Copy link
Contributor Author

@ravalsam: Code changes look fine to me, but I can't force land. You'll either need to request a forced landing from other gatekeepers (by adding the forced-landing label), or merge master and re-run to try for clean test results.

Thank you for the review. Merged the master and will wait for the test results.

Copy link

Ticket title is 'Collect the specific logs and Time range log for support'
Status is 'In Review'
Labels: 'usability'
Errors are Unknown component
https://daosio.atlassian.net/browse/DAOS-13936

@daosbuild1
Copy link
Collaborator

Test stage Functional on EL 8.8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-13325/22/execution/node/1173/log

@ravalsam
Copy link
Contributor Author

Single test failed because of other issue DAOS-15283 and not related to this PR.

@ravalsam ravalsam added the forced-landing The PR has known failures or has intentionally reduced testing, but should still be landed. label Feb 28, 2024
@mchaarawi mchaarawi merged commit 59b2f55 into master Feb 28, 2024
48 of 50 checks passed
@mchaarawi mchaarawi deleted the samirrav/support/DAOS-13936 branch February 28, 2024 15:52
cdavis28 added a commit that referenced this pull request May 20, 2024
Although this port copies the code from master to 2.4, there
are issues related to permissions making it non-functional.

This is a partial cherry-pick of the following PR's on master:
DAOS-10625 control: Create the tool to collect the logs/config for support purpose (#11094)
DAOS-13759 control: Update support collect-log tool. (#12906)
DAOS-13763 control: Fix daos_metrics collection for support collect-log. (#12555)
DAOS-13936 support: Collect the specific logs and Time range log for support (#13325)

Change-Id: I168c14e177a5003c4e315595b1bf154e84cef473
cdavis28 added a commit that referenced this pull request May 20, 2024
Although this port copies the code from master to 2.4, there
are issues related to permissions making it non-functional.

This is a partial cherry-pick of the following PR's on master:
DAOS-10625 control: Create the tool to collect the logs/config for support purpose (#11094)
DAOS-13759 control: Update support collect-log tool. (#12906)
DAOS-13763 control: Fix daos_metrics collection for support collect-log. (#12555)
DAOS-13936 support: Collect the specific logs and Time range log for support (#13325)

Change-Id: I168c14e177a5003c4e315595b1bf154e84cef473
cdavis28 added a commit that referenced this pull request May 20, 2024
Although this port copies the code from master to 2.4, there
are issues related to permissions making it non-functional.

This is a partial cherry-pick of the following PR's on master:
DAOS-10625 control: Create the tool to collect the logs/config for support purpose (#11094)
DAOS-13759 control: Update support collect-log tool. (#12906)
DAOS-13763 control: Fix daos_metrics collection for support collect-log. (#12555)
DAOS-13936 support: Collect the specific logs and Time range log for support (#13325)

Change-Id: I168c14e177a5003c4e315595b1bf154e84cef473
cdavis28 added a commit that referenced this pull request May 20, 2024
Although this port copies the code from master to 2.4, there
are issues related to permissions making it non-functional.

This is a partial cherry-pick of the following PR's on master:
DAOS-10625 control: Create the tool to collect the logs/config for support purpose (#11094)
DAOS-13759 control: Update support collect-log tool. (#12906)
DAOS-13763 control: Fix daos_metrics collection for support collect-log. (#12555)
DAOS-13936 support: Collect the specific logs and Time range log for support (#13325)

Signed-off-by: Chris Davis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forced-landing The PR has known failures or has intentionally reduced testing, but should still be landed.
Development

Successfully merging this pull request may close these issues.

7 participants