Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

kernel: fix 9p fs unlink-ftruncate #110

Merged
merged 1 commit into from
Oct 9, 2017
Merged

Conversation

devimc
Copy link

@devimc devimc commented Sep 18, 2017

@mcastelino
Copy link

@devimc can you run a stress test on this. Create and delete a large number of containers. Last time we tried this change we periodically saw that the host side unmount issues... even after qemu was terminated.

@devimc
Copy link
Author

devimc commented Sep 18, 2017

@mcastelino sure, I can run the stress test

@mcastelino
Copy link

@devimc we also tried an alternative way to fix this
https://github.com/clearcontainers/agent/pull/93/files

But that resulted in hanging mounts.

@chavafg can we add this test to our CI. As we seemed to have missed this kind of test.

@devimc
Copy link
Author

devimc commented Sep 18, 2017

@chavafg @mcastelino would be nice to run all docker test twice but with different storage driver (devicemapper and overlay)

@devimc
Copy link
Author

devimc commented Sep 18, 2017

stress test results using default clear containers kernel (no 9p patch) clearcontainers/runtime#570

@chavafg
Copy link

chavafg commented Sep 19, 2017

@mcastelino: @grahamwhaley has opened clearcontainers/tests#491 which verifies that the CC components have ended successfully after deleting the containers, Graham, can you add a step there to check if there are mounted paths left behind?

@grahamwhaley
Copy link
Contributor

@chavafg That's a good idea. Hopefully we can do that in a way that caters for different storage drivers as well (if that makes a difference).
Let me add a note over on that PR, or I'll forget...

@chavafg
Copy link

chavafg commented Sep 19, 2017

Thanks @grahamwhaley

@devimc
Copy link
Author

devimc commented Sep 19, 2017

running the same test of clearcontainers/runtime#570 but using a kernel with this patch, I don't see any instance of qemu running and all rootfs have been unmounted

$ ps -ef | grep qemu
fedora   31233  1356  0 09:34 pts/1    00:00:00 grep --color=auto qemu
$ docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
$ mount  | grep "docker" 
/dev/mapper/fedora-root on /var/lib/docker/overlay type xfs (rw,relatime,attr2,inode64,noquota)

@grahamwhaley
Copy link
Contributor

@devimc would you be able to run the script from:
clearcontainers/tests#491
? It sanity checks iirc both during launch and post rm for all cc components.

@devimc
Copy link
Author

devimc commented Sep 19, 2017

@grahamwhaley :(

docker: Error response from daemon: service endpoint with name gifted_clarke already exists.
Checking 38 containers have all relevant components
Wrong number of shims running (38*2 != 74 - stopping

@grahamwhaley
Copy link
Contributor

Thanks @devimc.
This is an odd error though:
docker: Error response from daemon: service endpoint with name gifted_clarke already exists.
If that had said the container name was already in use then I would have thought we'd picked up some junk from a previous failed run - but - that gifted_clarke is one of dockers automated generated names by the look of it. That is very odd.
I think that would need somebody to dig into the runtime logs to see what happened maybe...

@gorozco1
Copy link

gorozco1 commented Oct 5, 2017

@devimc Please add a brief description in the PR and in the commit to know why this PR is needed.

@gorozco1 gorozco1 merged commit 0f0259e into clearcontainers:master Oct 9, 2017
gorozco1 added a commit to gorozco1/packaging that referenced this pull request Oct 10, 2017
This update includes patches added in clearcontainers#110 and clearcontainers#133

Fixes: clearcontainers#143

Signed-off-by: Geronimo Orozco <[email protected]>
gorozco1 added a commit to gorozco1/packaging that referenced this pull request Oct 10, 2017
This update includes patches added in clearcontainers#110 and clearcontainers#133

Fixes: clearcontainers#143

Signed-off-by: Geronimo Orozco <[email protected]>
gorozco1 added a commit to gorozco1/packaging that referenced this pull request Oct 10, 2017
This update includes patches added in clearcontainers#110 and clearcontainers#133

Fixes: clearcontainers#143

Signed-off-by: Geronimo Orozco <[email protected]>
gorozco1 added a commit to gorozco1/packaging that referenced this pull request Oct 10, 2017
This update includes patches added in clearcontainers#110 and clearcontainers#133

Fixes: clearcontainers#143

Signed-off-by: Geronimo Orozco <[email protected]>
gorozco1 added a commit to gorozco1/tests that referenced this pull request Oct 23, 2017
We need to update clear-containers rootfs image and the kernel that
is being used in testing.

  * Image:
    Updated agent with a fix for deadlock
    clearcontainers/packaging#158

  * Kernel:
    Add support for native hot plug
    clearcontainers/packaging#133

    Fix 9p fs unlink-ftruncate
    clearcontainers/packaging#110

Fixes clearcontainers#631

Signed-off-by: Geronimo Orozco <[email protected]>
egernst pushed a commit to egernst/cc-packaging that referenced this pull request Aug 14, 2018
build_image.sh: OPTIND prevent unwanted word-splitting
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants