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

More reliable unmount w/ SIGINT, particularly on kvm2 #3985

Merged
merged 4 commits into from
Mar 26, 2019

Conversation

tstromberg
Copy link
Contributor

@tstromberg tstromberg commented Mar 26, 2019

With kvm2, when using mount and hitting Ctrl-C, the unmount fails with:

read tcp 127.0.0.1:40862->127.0.0.1:37853: read: connection reset by peer

If you try again, it fails with:

connection is shut down

This is because the native Docker ssh implementation dies when SIGINT is encountered. This switches the implementation to use our CommandRunner over ssh, as well as adding a second attempt using "umount -f".

Additionally, I noticed that "findmnt -T /tmp/777" would show the tmpfs mount, so there is now a grep command added in.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 26, 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 size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 26, 2019
@tstromberg tstromberg changed the title Switch mount ssh impl from native to CommandRunner WIP: Switch mount ssh impl from native to CommandRunner Mar 26, 2019
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 26, 2019
@tstromberg tstromberg changed the title WIP: Switch mount ssh impl from native to CommandRunner Make unmount w/ SIGINT work more reliably, particularly on kvm2 Mar 26, 2019
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 26, 2019
@tstromberg tstromberg changed the title Make unmount w/ SIGINT work more reliably, particularly on kvm2 More reliable unmount w/ SIGINT, particularly on kvm2 Mar 26, 2019
@tstromberg tstromberg added this to the v1.0.0 milestone Mar 26, 2019
Copy link
Contributor

@balopat balopat left a comment

Choose a reason for hiding this comment

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

LGTM

@tstromberg tstromberg merged commit 950421d into kubernetes:master Mar 26, 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.

3 participants