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

gvisor: Use chroot instead of LD_LIBRARY_PATH #5735

Merged
merged 5 commits into from
Oct 25, 2019

Conversation

tstromberg
Copy link
Contributor

Replaces brittle LD_LIBRARY_PATH hack with chroot to restart node services from the pod.

This was previously using the Ubuntu sudo binary with libraries from the ISO image, which was safe until we updated the ISO image to a new glibc.

Fixes #5724

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 25, 2019
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 25, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tstromberg

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 25, 2019
deploy/gvisor/Dockerfile Show resolved Hide resolved
@tstromberg tstromberg changed the title Use chroot instead of LD_LIBRARY_PATH for containerd restart gvisor: Use chroot instead of LD_LIBRARY_PATH Oct 25, 2019
Copy link

@priyawadhwa priyawadhwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! lgtm

deploy/gvisor/Dockerfile Show resolved Hide resolved
pkg/gvisor/enable.go Show resolved Hide resolved
cmd/gvisor/gvisor.go Outdated Show resolved Hide resolved
@codecov-io
Copy link

Codecov Report

Merging #5735 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #5735   +/-   ##
=======================================
  Coverage   37.83%   37.83%           
=======================================
  Files         106      106           
  Lines        7773     7773           
=======================================
  Hits         2941     2941           
  Misses       4452     4452           
  Partials      380      380

@tstromberg
Copy link
Contributor Author

@minikube-bot OK to test

Copy link

@priyawadhwa priyawadhwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! we probably just have to manually push gcr.io/k8s-minikube/gvisor:2

@tstromberg tstromberg merged commit d32431e into kubernetes:master Oct 25, 2019
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. 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.

TestGvisorAddon: "waiting to start: ContainerCreating"
5 participants