Skip to content

Conversation

@wking
Copy link
Member

@wking wking commented Jun 9, 2019

Support running multiple gather commands without cluster-side collisions. For example:

  1. Alice runs gather bootstrap, her command writes a tarball on the bootstrap machine and starts downloading it.
  2. Bob runs gather bootstrap, his command starts writing to the same tarball on the bootstrap machine.
  3. Alice's download croaks on the truncated file.

But maybe Alice's download already has an open file descriptor, so Bob's clobber doesn't break the download? I guess it depends on the specifics of how installer-gather.sh's > ~/log-bundle.tar.gz worked. With this pull request, we avoid potential issues by passing in an optional gather ID which the cluster-side scripts use to uniquify their collection directories. We still race if multiple gathers are launched in the same second, but that's at least a narrower window, and we can close it later by using a better source of random characters.

@openshift-ci-robot openshift-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 9, 2019
…lisions

Support running multiple gather commands without cluster-side
collisions.  For example:

1. Alice runs gather bootstrap, her command writes a tarball on the
   bootstrap machine and starts downloading it.
2. Bob runs gather bootstrap, his command starts writing to the same
   tarball on the bootstrap machine.
3. Alice's download croaks on the truncated file.

But maybe Alice's download already has an open file descriptor, so
Bob's clobber doesn't break the download?  I guess it depends on the
specifics of how installer-gather.sh's > ~/log-bundle.tar.gz worked.
With this commit, we avoid potential issues by passing in an optional
gather ID which the cluster-side scripts use to uniquify their
collection directories.  We still race if multiple gathers are
launched in the same second, but that's at least a narrower window,
and we can close it later by using a better source of random
characters.
@wking wking force-pushed the bootstrap-side-gather-collisions branch from 3d84d15 to 2f5a74e Compare June 10, 2019 03:58
@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jun 10, 2019
@openshift-ci-robot
Copy link
Contributor

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

Test name Commit Details Rerun command
ci/prow/e2e-openstack 2f5a74e link /test e2e-openstack
ci/prow/e2e-aws-scaleup-rhel7 2f5a74e link /test e2e-aws-scaleup-rhel7
ci/prow/e2e-aws-disruptive 2f5a74e link /test e2e-aws-disruptive

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.

Details

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 11, 2019
@openshift-ci-robot
Copy link
Contributor

[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

Details Needs approval from an approver in each of these files:
  • OWNERS [abhinavdahiya,wking]

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

@openshift-merge-robot openshift-merge-robot merged commit 37bc277 into openshift:master Oct 11, 2019
@wking wking deleted the bootstrap-side-gather-collisions branch October 11, 2019 23:11
sdodson added a commit to sdodson/release that referenced this pull request Jan 16, 2020
We use some tolerant SSH options that the installer wouldn't specify if
we were to run `openshift-install bootstrap gather` directly, but now
that means we're not setting --id as expected after
openshift/installer#1836
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants