-
Notifications
You must be signed in to change notification settings - Fork 309
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
b/340244046 initial port collect command from master to 2.4 #14409
Conversation
Could you add a list of backport titles to the description e.g. backports the following PRs DAOS-XYZ blah: ..... (# PR number) That would help understanding the patch |
src/control/lib/support/README.md
Outdated
for debugging purpose.This options is available for `daos_server`, `dmg` and `daos_agent` binaries. | ||
It will collect the specific logs, config and other DAOS related metrics and system information. | ||
|
||
`dmg support collect-log` is the single command, which will initiate the log collection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for debugging purpose.This options is available for `daos_server`, `dmg` and `daos_agent` binaries. | |
It will collect the specific logs, config and other DAOS related metrics and system information. | |
`dmg support collect-log` is the single command, which will initiate the log collection | |
for debugging purpose.This options is available for `daos_server`, `dmg` and `daos_agent` binaries. | |
It will collect the specific logs, config and other DAOS related metrics and system information. | |
`dmg support collect-log` is the single command, which will initiate the log collection |
src/proto/Makefile
Outdated
# go get -u $(PROTOC_GEN_GO_IMP) &&\ | ||
# cd $(GOPATH)/src/$(PROTOC_GEN_GO_IMP) &&\ | ||
# git checkout $(PROTOC_GEN_GO_TAG) &&\ | ||
go install $(PROTOC_GEN_GO_IMP)@$(PROTOC_GEN_GO_TAG) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go install $(PROTOC_GEN_GO_IMP)@$(PROTOC_GEN_GO_TAG) | |
go install $(PROTOC_GEN_GO_IMP)@$(PROTOC_GEN_GO_TAG) |
src/tests/ftest/util/server_utils.py
Outdated
self.log.info("Support collect-log on servers: %s", str(cmd)) | ||
cmd.set_command(("support", "collect-log"), **kwargs) | ||
return run_remote( | ||
self.log, self._hosts, cmd.with_exports, timeout=self.collect_log_timeout.value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.log, self._hosts, cmd.with_exports, timeout=self.collect_log_timeout.value) | |
self.log, self._hosts, cmd.with_exports, timeout=self.collect_log_timeout.value) |
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14409/1/execution/node/204/log |
Bug-tracker data: |
cfb5da6
to
ced5905
Compare
And if you didn't bring in the whole PR, "partial cherry-pick of ...." |
src/control/lib/support/README.md
Outdated
for debugging purpose.This options is available for `daos_server`, `dmg` and `daos_agent` binaries. | ||
It will collect the specific logs, config and other DAOS related metrics and system information. | ||
|
||
`dmg support collect-log` is the single command, which will initiate the log collection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`dmg support collect-log` is the single command, which will initiate the log collection | |
`dmg support collect-log` is the single command, which will initiate the log collection |
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14409/2/execution/node/205/log |
ced5905
to
fe6a957
Compare
src/control/lib/support/README.md
Outdated
for debugging purpose.This options is available for `daos_server`, `dmg` and `daos_agent` binaries. | ||
It will collect the specific logs, config and other DAOS related metrics and system information. | ||
|
||
`dmg support collect-log` is the single command, which will initiate the log collection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`dmg support collect-log` is the single command, which will initiate the log collection | |
`dmg support collect-log` is the single command, which will initiate the log collection |
self.archive = FormattedParameter("--archive", False) | ||
self.extra_logs_dir = FormattedParameter("--extra-logs-dir={}") | ||
self.target_host = FormattedParameter("--target-host={}") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14409/3/execution/node/170/log |
fe6a957
to
2913a20
Compare
src/control/lib/support/README.md
Outdated
for debugging purpose.This options is available for `daos_server`, `dmg` and `daos_agent` binaries. | ||
It will collect the specific logs, config and other DAOS related metrics and system information. | ||
|
||
`dmg support collect-log` is the single command, which will initiate the log collection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`dmg support collect-log` is the single command, which will initiate the log collection | |
`dmg support collect-log` is the single command, which will initiate the log collection |
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14409/4/execution/node/148/log |
2913a20
to
746ce35
Compare
There was a problem hiding this 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 daos_agent support collect-log command completes successfully. | ||
|
||
:avocado: tags=all,full_regression | ||
:avocado: tags=hw,medium |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if these tests actually need hw to pass...
Anyway, with google/2.4 we explicitely disable hardware testing but for a one off run of these tests, you can do this
Test-tag: support pr
Skip-func-hw-test-medium: false
in the last commit. If you want to do this but not making any changes, I suggest
git commit --allow-empty
Also the DCO check wants commits to have Signed-off-by so git commit -s will do that.
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]>
746ce35
to
b9bdc26
Compare
There was a problem hiding this 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.
Manual cherry-pick of code from master for the "collect-log" command.