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

Move logs under artifacts #182

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

kishen-v
Copy link
Contributor

@kishen-v kishen-v commented Nov 7, 2024

Fixes:

  1. Empty log file for respective components.
  2. Creating directory under _artifacts for avoiding uploading the _rundir
I1107 00:41:55.457106  200060 dumplogs.go:45] About to run: [kubectl cluster-info dump]
I1107 00:42:00.025368  200060 dumplogs.go:64] Collecting node level information from PowerVS instance 150.240.145.228
I1107 00:42:00.025425  200060 dumplogs.go:75] Remotely executing command: [ssh -i /root/.ssh/kishen [email protected] dmesg]
I1107 00:42:01.277571  200060 dumplogs.go:75] Remotely executing command: [ssh -i /root/.ssh/kishen [email protected] sudo journalctl --no-pager --output=short-precise -k]
I1107 00:42:02.286427  200060 dumplogs.go:75] Remotely executing command: [ssh -i /root/.ssh/kishen [email protected] sudo systemctl list-units -t service --no-pager --no-legend --all]
I1107 00:42:03.196091  200060 dumplogs.go:75] Remotely executing command: [ssh -i /root/.ssh/kishen [email protected] journalctl -xeu containerd --no-pager]
I1107 00:42:04.202346  200060 dumplogs.go:64] Collecting node level information from PowerVS instance 150.240.145.227
I1107 00:42:04.202392  200060 dumplogs.go:75] Remotely executing command: [ssh -i /root/.ssh/kishen [email protected] dmesg]
I1107 00:42:05.485518  200060 dumplogs.go:75] Remotely executing command: [ssh -i /root/.ssh/kishen [email protected] sudo journalctl --no-pager --output=short-precise -k]
I1107 00:42:06.504498  200060 dumplogs.go:75] Remotely executing command: [ssh -i /root/.ssh/kishen [email protected] sudo systemctl list-units -t service --no-pager --no-legend --all]
I1107 00:42:07.444307  200060 dumplogs.go:75] Remotely executing command: [ssh -i /root/.ssh/kishen [email protected] journalctl -xeu containerd --no-pager]
I1107 00:42:08.499815  200060 dumplogs.go:98] Successfully collected cluster logs under /root/kubetest2-plugins/_artifacts/logs

Relevant logs with non-0 byte content

[root@kubetest21 logs]# ls -ltra
total 1280
drwxr-xr-x 3 root root     63 Nov  7 00:41 ..
-rw-r--r-- 1 root root 800641 Nov  7 00:42 cluster-info.log
-rw-r--r-- 1 root root  49398 Nov  7 00:42 150.240.145.228-dmesg.log
-rw-r--r-- 1 root root  67475 Nov  7 00:42 150.240.145.228-kernel.log
-rw-r--r-- 1 root root  12292 Nov  7 00:42 150.240.145.228-services.log
-rw-r--r-- 1 root root  70317 Nov  7 00:42 150.240.145.228-containerd.log
-rw-r--r-- 1 root root  49409 Nov  7 00:42 150.240.145.227-dmesg.log
-rw-r--r-- 1 root root  67562 Nov  7 00:42 150.240.145.227-kernel.log
-rw-r--r-- 1 root root  12292 Nov  7 00:42 150.240.145.227-services.log
-rw-r--r-- 1 root root 149452 Nov  7 00:42 150.240.145.227-containerd.log
drwxr-xr-x 2 root root   4096 Nov  7 00:42 .

Post merge - The following PR can be merged.
ppc64le-cloud/test-infra#498

@ppc64le-cloud-bot ppc64le-cloud-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 7, 2024
Copy link
Member

@mkumatag mkumatag left a comment

Choose a reason for hiding this comment

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

/lgtm

@ppc64le-cloud-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kishen-v, mkumatag

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ppc64le-cloud-bot ppc64le-cloud-bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 7, 2024
@ppc64le-cloud-bot ppc64le-cloud-bot merged commit 8f15e09 into ppc64le-cloud:master Nov 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants