Skip to content

Don't use a container volume for /tmp in hack/env - #18242

Closed
stevekuznetsov wants to merge 1 commit into
openshift:masterfrom
stevekuznetsov:skuznets/hack-env-tmp-mnt
Closed

stevekuznetsov wants to merge 1 commit into
openshift:masterfrom
stevekuznetsov:skuznets/hack-env-tmp-mnt

Conversation

@stevekuznetsov

Copy link
Copy Markdown
Contributor

Don't use a container volume for /tmp in hack/env

Instead of creating a volume for temporary files in the hack/env
environment, we should just pass through the host's /tmp and keep
whatever special setup (like fstype) the host has for that mount.

Signed-off-by: Steve Kuznetsov [email protected]

/cc @deads2k @mfojtik @smarterclayton

@openshift-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: stevekuznetsov

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

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 23, 2018
@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 23, 2018
@stevekuznetsov

Copy link
Copy Markdown
Contributor Author

Fixes #18240

@deads2k

deads2k commented Jan 23, 2018

Copy link
Copy Markdown
Contributor

"no space left on device"? Maybe we really are using a lot of tmp

@stevekuznetsov

Copy link
Copy Markdown
Contributor Author

ugh

@stevekuznetsov
stevekuznetsov force-pushed the skuznets/hack-env-tmp-mnt branch from 6d7af72 to 238ac4f Compare January 23, 2018 22:09
@stevekuznetsov

Copy link
Copy Markdown
Contributor Author
[INFO] No compiled `gendocs` binary was found. Attempting to build one using:
[INFO]   $ hack/build-go.sh tools/gendocs
++ Building go targets for linux/amd64: tools/gendocs
# github.com/openshift/origin/tools/gendocs
/usr/local/go/pkg/tool/linux_amd64/link: flushing /tmp/go-link-432094308/go.o: write /tmp/go-link-432094308/go.o: no space left on device
[ERROR] PID 26605: hack/lib/build/binaries.sh:240: `GOOS=${platform%/*} GOARCH=${platform##*/} go install -pkgdir "${pkgdir}/${platform}" -tags "${OS_GOFLAGS_TAGS-} ${!platform_gotags_envvar:-}" -ldflags="${local_ldflags}" "${goflags[@]:+${goflags[@]}}" "${nonstatics[@]}"` exited with status 2.

@smarterclayton do we bump how much RAM these machines get so we can make the tmpfs larger?

@deads2k

deads2k commented Jan 24, 2018

Copy link
Copy Markdown
Contributor

@smarterclayton do we bump how much RAM these machines get so we can make the tmpfs larger?

I suspect he'll go with, "put etcd into a subdirectory and narrow the size of the tmpfs volume you're mounting"

@stevekuznetsov

Copy link
Copy Markdown
Contributor Author

Guess we need a general tmpfs mount option for hack/env then.

@stevekuznetsov

Copy link
Copy Markdown
Contributor Author

Going to try to solve with with a -v /tmp:/tmp/openshift raw options pass through instead of some generic $TMPDIR thing for hack/env. Complexity is too high for what we're actually trying to do here.

@stevekuznetsov
stevekuznetsov force-pushed the skuznets/hack-env-tmp-mnt branch from 238ac4f to a395914 Compare January 25, 2018 17:59
@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 25, 2018
@stevekuznetsov
stevekuznetsov force-pushed the skuznets/hack-env-tmp-mnt branch from a395914 to d2e5ba7 Compare January 25, 2018 21:05
Signed-off-by: Steve Kuznetsov <[email protected]>
@stevekuznetsov
stevekuznetsov force-pushed the skuznets/hack-env-tmp-mnt branch from d2e5ba7 to 803e726 Compare January 25, 2018 21:21
@openshift-ci-robot

openshift-ci-robot commented Jan 25, 2018 •

Copy link
Copy Markdown

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

Test name Commit Details Rerun command
ci/openshift-jenkins/extended_conformance_install 803e726 link /test extended_conformance_install
ci/openshift-jenkins/extended_networking_minimal 803e726 link /test extended_networking_minimal
ci/openshift-jenkins/end_to_end 803e726 link /test end_to_end
ci/openshift-jenkins/gcp 803e726 link /test gcp

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.

@stevekuznetsov

Copy link
Copy Markdown
Contributor Author

We have separate subtrees under /tmp/openshfit for each script ... this is nice for a million reasons. But it means we can't know ahead of time where $ETCD_DATA_DIR will be for the script we're going to run in hack/env. But I think we can still set it outside in the job def since we know which target we're going to run and we are not overwriting any other paths.

@stevekuznetsov

Copy link
Copy Markdown
Contributor Author

Superseded by openshift-eng/aos-cd-jobs#1037

/close

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. 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.

3 participants