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

Print csi plugin logs at end of e2e test #789

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

wongma7
Copy link
Contributor

@wongma7 wongma7 commented Mar 12, 2021

Is this a bug fix or adding new feature? new

What is this PR about? / Why do we need it? Hard to debug CSI driver issues without CSI driver logs. Fixes #788

What testing is done?
lolcally , didnt actually run tests just wanted to see if it prints the pods' logs.

###
## TEST_PASSED: 0
#
###
## Printing pod ebs-csi-controller-6f4cc5c474-94c2s ebs-plugin container logs
#
I0312 00:23:39.970276       1 driver.go:68] Driver: ebs.csi.aws.com Version: v0.9.0
W0312 00:23:43.218861       1 metadata.go:136] Failed to parse the outpost arn: 
I0312 00:23:43.219139       1 driver.go:138] Listening for connections on address: &net.UnixAddr{Name:"/var/lib/csi/sockets/pluginproxy/csi.sock", Net:"unix"}
I0312 00:23:43.299546       1 controller.go:352] ControllerGetCapabilities: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
I0312 00:23:43.404837       1 controller.go:352] ControllerGetCapabilities: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
I0312 00:23:43.405473       1 controller.go:352] ControllerGetCapabilities: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
I0312 00:23:45.879717       1 controller.go:352] ControllerGetCapabilities: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
I0312 00:23:48.088489       1 controller.go:352] ControllerGetCapabilities: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
###
## Printing pod ebs-csi-controller-6f4cc5c474-gzpwz ebs-plugin container logs
#
I0312 00:23:39.938896       1 driver.go:68] Driver: ebs.csi.aws.com Version: v0.9.0
W0312 00:23:43.218816       1 metadata.go:136] Failed to parse the outpost arn: 
I0312 00:23:43.219252       1 driver.go:138] Listening for connections on address: &net.UnixAddr{Name:"/var/lib/csi/sockets/pluginproxy/csi.sock", Net:"unix"}
I0312 00:23:44.083674       1 controller.go:352] ControllerGetCapabilities: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
I0312 00:23:45.187900       1 controller.go:352] ControllerGetCapabilities: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
I0312 00:23:45.188475       1 controller.go:352] ControllerGetCapabilities: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
I0312 00:23:47.836657       1 controller.go:352] ControllerGetCapabilities: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
I0312 00:23:50.035843       1 controller.go:352] ControllerGetCapabilities: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
###
## Printing pod ebs-csi-node-bnl5f ebs-plugin container logs
#
I0312 00:23:40.664932       1 driver.go:68] Driver: ebs.csi.aws.com Version: v0.9.0
W0312 00:23:40.788583       1 metadata.go:136] Failed to parse the outpost arn: 
I0312 00:23:40.788740       1 mount_linux.go:153] Detected OS without systemd
I0312 00:23:40.788933       1 driver.go:138] Listening for connections on address: &net.UnixAddr{Name:"/csi/csi.sock", Net:"unix"}
I0312 00:23:43.415834       1 node.go:491] NodeGetInfo: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
###
## Printing pod ebs-csi-node-cl79j ebs-plugin container logs
#
I0312 00:23:39.955114       1 driver.go:68] Driver: ebs.csi.aws.com Version: v0.9.0
W0312 00:23:40.088301       1 metadata.go:136] Failed to parse the outpost arn: 
I0312 00:23:40.088490       1 mount_linux.go:153] Detected OS without systemd
I0312 00:23:40.088767       1 driver.go:138] Listening for connections on address: &net.UnixAddr{Name:"/csi/csi.sock", Net:"unix"}
I0312 00:23:43.564354       1 node.go:491] NodeGetInfo: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
###
## Printing pod ebs-csi-node-drqvr ebs-plugin container logs
#
I0312 00:23:39.188927       1 driver.go:68] Driver: ebs.csi.aws.com Version: v0.9.0
W0312 00:23:39.363917       1 metadata.go:136] Failed to parse the outpost arn: 
I0312 00:23:39.364156       1 mount_linux.go:153] Detected OS without systemd
I0312 00:23:39.364411       1 driver.go:138] Listening for connections on address: &net.UnixAddr{Name:"/csi/csi.sock", Net:"unix"}
I0312 00:23:41.418897       1 node.go:491] NodeGetInfo: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
###
## Printing pod ebs-csi-node-n4tr9 ebs-plugin container logs
#
I0312 00:23:39.958019       1 driver.go:68] Driver: ebs.csi.aws.com Version: v0.9.0
W0312 00:23:40.121867       1 metadata.go:136] Failed to parse the outpost arn: 
I0312 00:23:40.122032       1 mount_linux.go:153] Detected OS without systemd
I0312 00:23:40.122233       1 driver.go:138] Listening for connections on address: &net.UnixAddr{Name:"/csi/csi.sock", Net:"unix"}
I0312 00:23:42.034037       1 node.go:491] NodeGetInfo: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
###
## Printing pod ebs-snapshot-controller-0 ebs-plugin container logs
#
error: container ebs-plugin is not valid for pod ebs-snapshot-controller-0

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 12, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wongma7

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

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 12, 2021
@ayberk
Copy link
Contributor

ayberk commented Mar 12, 2021

Niiice! I wish we could only print the failed ones but this is still great!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 12, 2021
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1713

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 81.695%

Totals Coverage Status
Change from base Build 1712: 0.0%
Covered Lines: 1745
Relevant Lines: 2136

💛 - Coveralls

@k8s-ci-robot k8s-ci-robot merged commit 91eb881 into kubernetes-sigs:master Mar 12, 2021
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Print driver logs at end of test
4 participants