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

cmd: gather the logs from bootstrap instead of printing commands #2840

Closed
wants to merge 6 commits into from

Conversation

wking
Copy link
Member

@wking wking commented Dec 18, 2019

Backporting #1822 and the subsequent 00307d1 (from #2023) and 2686d73 (from #2106). The commits from later PRs just bring the UX quality up to par with 4.2

Backporting this allows us to drop Terraform-state-poking logic from the release repository (e.g. openshift/release#6336), where it's currently tedious to maintain for no real benefit. I'm happy to file a backport-request bug to hang this on, but thought I'd file the PR first to see if there was any appetite, or if folks would rather keep dragging the release-side workaround along.

abhinavdahiya and others added 6 commits December 18, 2019 01:48
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.
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.

This had some trivial conflicts because e4bddc2 (gather: add
support for azure, 2019-05-28, openshift#1795) had landed in release-4.2 but
does not apply to 4.1, where we have no Azure support.
Error message displays when gather command failed and no ssh keys were passed. The message recommends ensuring ssh keys were in keyring or specifying the key in a flag.
This had some trivial conflicts in the CloudFormation templates
because e45521e (Text edits for the CloudFormation templates,
2019-05-28, openshift#1794) wasn't backported to 4.1.
@openshift-ci-robot
Copy link
Contributor

@wking: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

cmd: gather the logs from bootstrap instead of printing commands

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.

@openshift-ci-robot openshift-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Dec 18, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign wking
You can assign the PR to them by writing /assign @wking in a comment when ready.

The full list of commands accepted by this bot can be found 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

wking added a commit to wking/openshift-release that referenced this pull request Dec 18, 2019
…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
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Dec 18, 2019

@wking: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/govet 357cd7e link /test govet
ci/prow/e2e-aws-upgrade 357cd7e link /test e2e-aws-upgrade
ci/prow/e2e-aws 357cd7e link /test e2e-aws
ci/prow/e2e-aws-scaleup-rhel7 357cd7e link /test e2e-aws-scaleup-rhel7
ci/prow/images 357cd7e link /test images

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.

@abhinavdahiya
Copy link
Contributor

4.1 is now EOL

/close

@openshift-ci-robot
Copy link
Contributor

@abhinavdahiya: Closed this PR.

In response to this:

4.1 is now EOL

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants