intel / cc-oci-runtime

OCI (Open Containers Initiative) compatible runtime for Intel® Architecture
GNU General Public License v2.0
417 stars 59 forks source link

9p fs cannot handle unlinked files #47

Closed chavafg closed 8 years ago

chavafg commented 8 years ago

When trying to update a debian docker container, I got some errors which seem to be related to 9pfs. root@ede543359f58:/etc/apt# apt-get update Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB] Ign http://httpredir.debian.org jessie InRelease
Get:2 http://httpredir.debian.org jessie-updates InRelease [142 kB]
E: Unable to determine file size for fd 11 - fstat (2: No such file or directory)

Looking at google, found that this qemu issue is related: https://bugs.launchpad.net/qemu/+bug/1336794

gorozco1 commented 8 years ago

Yes this is an issue related to the bug in launchpad, I think this is an issue that also can be follow on the linux kernel mailing list.. .

Also there is an active mailing list regarding 9p

https://sourceforge.net/p/v9fs/mailman/?source=navbar

grahamwhaley commented 8 years ago

So we need to decide if this is 'our bug', or a qemu bug, that is probably already being handled. I think we discussed some already - let's try to make a decision and document/label here appropriately.

gorozco1 commented 8 years ago

I think we need to raise the priority on this bug... maybe @anthonyzxu might now something

When it happen on CC1.0 a clear container was not very usable basically because it interferes with install new packages on the container dnf/apt failed and it refuses to install anything.

devimc commented 8 years ago

fixed kernel and qemu-lite side

grahamwhaley commented 7 years ago

For future reference, the patch in qemu-lite is here: https://github.com/01org/qemu-lite/commit/01865cad24cee71f37a4da58a75cef3932d16c0c

And the relevant patch for the container kernel can be found in the SRPM here (linking to Clear Linux version as of day of posting): https://download.clearlinux.org/releases/11970/clear/source/SRPMS/linux-container-4.5-50.src.rpm

In the patch file 0100-fs-9p-fix-create-unlink-getattr-idiom.patch