rkt / rkt

[Project ended] rkt is a pod-native container engine for Linux. It is composable, secure, and built on standards.
Apache License 2.0
8.82k stars 883 forks source link

"apt update" broken for QEMU stage 1 #3596

Open tjdett opened 7 years ago

tjdett commented 7 years ago

It appears #1917 is back in QEMU:

$ sudo build-rkt-1.25.0/target/bin/rkt --dns=8.8.8.8 run --interactive --insecure-options=image docker://debian:8 --exec /bin/sh -- -c "apt update"    
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
E: Unable to determine file size for fd 9 - fstat (2: No such file or directory)

Environment Built with ./configure --with-stage1-flavors=kvm --with-stage1-default-flavor=kvm --with-stage1-kvm-hypervisors=qemu.

rkt Version: 1.25.0
appc Version: 0.8.10
Go Version: go1.7.1
Go OS/Arch: linux/amd64
Features: +TPM +SDJOURNAL
--
Linux 4.8.12-300.fc25.x86_64 x86_64
--
NAME=Fedora
VERSION="25 (Twenty Five)"
ID=fedora
VERSION_ID=25
PRETTY_NAME="Fedora 25 (Twenty Five)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:25"
HOME_URL="https://fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=25
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=25
PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy
--
systemd 231
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN
grahamwhaley commented 7 years ago

Thanks for the report @tjdett - I'll take a look...

grahamwhaley commented 7 years ago

Hi @tjdett I believe this is because we have not merged #3475 yet... I reproduced the issue, and then took the current HEAD, merged that PR in and re-tried and the test worked (apart from I had to use the ubuntu image, as for some reason I could not download and convert debian:8 to an ACI...)

3475 is pending the status of patches being pushed towards/merged to upstream QEMU - and I've just chased that to see if we have some progress there and hopefully get that PR merged.