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

Don't use shared bind mounts #155

Merged

Conversation

jhernand
Copy link
Contributor

@jhernand jhernand commented Sep 7, 2022

Currently podman is invoked with options to mount both the workspace directory and some of the files it contains. For example, if the workspace is /root:

-v /root/.netrc:/root/.netrc:ro
-v /root:/root:rw,shared

The workspace directory is mounted using the shared option. This results in leaking mount points at an exponential rate, as described in this podman issue (now closed, as it is the expected behaviour):

containers/podman#15671

This shared option is not really needed. This patch removes it.

@jhernand jhernand force-pushed the dont_use_shared_bind_mounts branch from 212f8c6 to 31e0778 Compare September 7, 2022 17:33
@tsorya
Copy link
Collaborator

tsorya commented Sep 8, 2022

/lgtm

Currently podman is invoked with options to mount both the workspace
directory and some of the files it contains. For example, if the
workspace is `/root`:

```
-v /root/.netrc:/root/.netrc:ro
-v /root:/root:rw,shared
```

The workspace directory is mounted using the _shared_ option. This
results in leaking mount points at an exponential rate, as descrived in
this _podman_ issue (no closed, as it is the expected behaviour):

  containers/podman#15671

This _shared_ option is not really needed. This patch removes it.

Signed-off-by: Juan Hernandez <[email protected]>
@jhernand jhernand force-pushed the dont_use_shared_bind_mounts branch from 31e0778 to 19662cf Compare September 8, 2022 08:07
@eranco74 eranco74 merged commit c04428a into Stratoscale:upstream Sep 8, 2022
jhernand added a commit to jhernand/assisted-test-infra that referenced this pull request Sep 8, 2022
The more relevant change in the new version of _skipper_ is a fix to
prevent leaking of mount points.

Related: Stratoscale/skipper#155
Related: containers/podman#15671
Signed-off-by: Juan Hernandez <[email protected]>
@jhernand jhernand deleted the dont_use_shared_bind_mounts branch September 8, 2022 08:41
openshift-merge-robot pushed a commit to openshift/assisted-test-infra that referenced this pull request Sep 8, 2022
The more relevant change in the new version of _skipper_ is a fix to
prevent leaking of mount points.

Related: Stratoscale/skipper#155
Related: containers/podman#15671
Signed-off-by: Juan Hernandez <[email protected]>

Signed-off-by: Juan Hernandez <[email protected]>
CrystalChun pushed a commit to CrystalChun/assisted-test-infra that referenced this pull request Sep 8, 2022
The more relevant change in the new version of _skipper_ is a fix to
prevent leaking of mount points.

Related: Stratoscale/skipper#155
Related: containers/podman#15671
Signed-off-by: Juan Hernandez <[email protected]>

Signed-off-by: Juan Hernandez <[email protected]>
CrystalChun pushed a commit to CrystalChun/assisted-test-infra that referenced this pull request Sep 8, 2022
The more relevant change in the new version of _skipper_ is a fix to
prevent leaking of mount points.

Related: Stratoscale/skipper#155
Related: containers/podman#15671
Signed-off-by: Juan Hernandez <[email protected]>

Signed-off-by: Juan Hernandez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants