-
Notifications
You must be signed in to change notification settings - Fork 1.4k
cmd: gather the logs from bootstrap instead of printing commands #1822
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
cmd: gather the logs from bootstrap instead of printing commands #1822
Conversation
@abhinavdahiya: GitHub didn't allow me to request PR reviews from the following users: jhixson74. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cc @jhixson74 |
@abhinavdahiya: GitHub didn't allow me to request PR reviews from the following users: jhixson74. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
30af121
to
e747b85
Compare
/retest |
e747b85
to
e87bb07
Compare
/cc @openshift/openshift-team-installer |
Awesome. Can we invoke gather in the e2e tear down trap? |
We already gather in CI's |
The package allows users to create a new SSH client that - Uses an SSH agent to provide authentication - Either uses the keys from paths explicity provided, or loads all the keys from `~/.ssh` to use for authentication The package also provides a way to Run a command using an SSH client. The client must be configured to allow SSH agent forwarding. The package also provides a way to pull a file from remote server to a file on the local host using a SSH client.
…ogs on bootstrap failure With installer PR [1], the installer will automatically gather the logs from bootstrap in case of bootstrap failure. It uses the `~/.ssh` directlory to load the private SSH keys for authentication, when not specifically invoked using `gather bootstrap --key <>` [1]: openshift/installer#1822
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinavdahiya, wking 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@abhinavdahiya: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Since openshift/installer@cad7f02a8b (cmd: gather the logs from bootstrap instead of printing commands, 2019-06-05, openshift/installer#1822). This functionality is new in 4.2.z; you still need to SSH in 4.1.z.
Since openshift/installer@cad7f02a8b (cmd: gather the logs from bootstrap instead of printing commands, 2019-06-05, openshift/installer#1822). This functionality is new in 4.2.z; you still need to SSH in 4.1.z.
Since openshift/installer@cad7f02a8b (cmd: gather the logs from bootstrap instead of printing commands, 2019-06-05, openshift/installer#1822). This functionality is new in 4.2.z; you still need to SSH in 4.1.z.
/cherrypick release-4.1 |
@wking: #1822 failed to apply on top of branch "release-4.1":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
…ather The installer does this automatically since openshift/installer@cad7f02a8b (cmd: gather the logs from bootstrap instead of printing commands, 2019-06-05, openshift/installer#1822). You'd still need to SSH in to gather manually in 4.1.z, but if we think that's important we should backport the gather logic to the installer's 4.1 branch [1]. [1]: openshift/installer#2840
xref: https://jira.coreos.com/browse/CORS-1071
This changes the gather bootstrap to establish an SSH connection to bootstrap host to gather the logs, rather than printing the commands for
the user to execute.
/cc @jhixson74 @patrickdillon @wking