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

Pass TestUserNamespaces of contaienrd #1277

Closed
utam0k opened this issue Oct 19, 2022 · 4 comments · Fixed by #1288
Closed

Pass TestUserNamespaces of contaienrd #1277

utam0k opened this issue Oct 19, 2022 · 4 comments · Fixed by #1288

Comments

@utam0k
Copy link
Member

utam0k commented Oct 19, 2022

https://github.com/containerd/containerd/blob/4bd8b5be444a8c381db7fa678def3bb6d416d0e1/integration/client/container_linux_test.go#L1123

Error message

root@ubuntu2204:~/go/src/github.com/containerd/containerd# make TEST_RUNTIME=io.containerd.runc.v2 TESTFLAGS="-timeout 120m -run TestUserNamespaces" integration                                                                                                                            
+ integration                                                                                                                                                                                                                                                                               
INFO[0000] running tests against containerd              revision=3df54a852345ae127d1fa3092b95168e4a88e2f8 runtime=io.containerd.runc.v2 snapshotter= version=v1.5.11                                                                                                                       
INFO[0000] start to pull seed image                      image="ghcr.io/containerd/busybox:1.32"                                                                                                                                                                                            
=== RUN   TestUserNamespaces                                                                                                                                                                                                                                                                
=== PAUSE TestUserNamespaces                                                                                                                                                                                                                                                                
=== CONT  TestUserNamespaces                                                                                                                                                                                                                                                                
=== RUN   TestUserNamespaces/WritableRootFS                                                                                                                                                                                                                                                 
    log_hook.go:40: time="2022-10-19T12:41:58.252170821Z" level=debug msg=resolving func="docker.(*dockerResolver).Resolve" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:279" host=ghcr.io                                                                
    log_hook.go:40: time="2022-10-19T12:41:58.252271294Z" level=debug msg="do request" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:549" host=ghcr.io request.header.accept="application/vnd.docker.distribution.manifest.v2+j
son, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=containerd/1.5.11+unknown request.method=HEAD url="https://ghcr.io/v2/containerd/alpine/manifests/3.14.0
"                                                                                                                                                                                                                                                                                           
    log_hook.go:40: time="2022-10-19T12:41:58.426467209Z" level=debug msg="fetch response received" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:571" host=ghcr.io response.header.content-length=73 response.header.content-t
ype=application/json response.header.date="Wed, 19 Oct 2022 12:41:59 GMT" response.header.www-authenticate="Bearer realm=\"https://ghcr.io/token\",service=\"ghcr.io\",scope=\"repository:containerd/alpine:pull\"" response.header.x-github-request-id="8F66:0A7A:151A1:2136E:634FF096" response.status="401 Unauthorized" url="https://ghcr.io/v2/containerd/alpine/manifests/3.14.0"                                                                                                                                                                                                     log_hook.go:40: time="2022-10-19T12:41:58.426747463Z" level=debug msg=Unauthorized func="docker.(*request).retryRequest" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:601" header="Bearer realm=\"https://ghcr.io/token\",service=\"ghcr.io\",scope=\"
repository:containerd/alpine:pull\"" host=ghcr.io                                                                                                                                                                                                                                           
    log_hook.go:40: time="2022-10-19T12:41:58.426859942Z" level=debug msg="do request" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:549" host=ghcr.io request.header.accept="application/vnd.docker.distribution.manifest.v2+j
son, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=containerd/1.5.11+unknown request.method=HEAD url="https://ghcr.io/v2/containerd/alpine/manifests/3.14.0
"                                                                                                                                                                                                                                                                                           
    log_hook.go:40: time="2022-10-19T12:41:59.062814270Z" level=debug msg="fetch response received" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:571" host=ghcr.io response.header.content-length=1638 response.header.content
-type=application/vnd.docker.distribution.manifest.list.v2+json response.header.date="Wed, 19 Oct 2022 12:41:59 GMT" response.header.docker-content-digest="sha256:adab3844f497ab9171f070d4cae4114b5aec565ac772e2f2579405b78be67c96" response.header.docker-distribution-api-version=registr
y/2.0 response.header.etag="\"sha256:adab3844f497ab9171f070d4cae4114b5aec565ac772e2f2579405b78be67c96\"" response.header.x-github-request-id="8F66:0A7A:151A4:21370:634FF097" response.status="200 OK" url="https://ghcr.io/v2/containerd/alpine/manifests/3.14.0"                          
    log_hook.go:40: time="2022-10-19T12:41:59.063138077Z" level=debug msg=resolved func="docker.(*dockerResolver).Resolve" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:381" desc.digest="sha256:adab3844f497ab9171f070d4cae4114b5aec565ac772e2f2579405b78
be67c96" host=ghcr.io                                                                                                                                                                                                                                                                       
    log_hook.go:40: time="2022-10-19T12:41:59.063482321Z" level=debug msg=fetch func=remotes.fetch file="/root/go/src/github.com/containerd/containerd/remotes/handlers.go:110" digest="sha256:adab3844f497ab9171f070d4cae4114b5aec565ac772e2f2579405b78be67c96" mediatype=application/vnd.d
ocker.distribution.manifest.list.v2+json size=1638                                                                                                                                                                                                                                          
    log_hook.go:40: time="2022-10-19T12:41:59.073751899Z" level=debug msg="do request" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:549" digest="sha256:adab3844f497ab9171f070d4cae4114b5aec565ac772e2f2579405b78be67c96" medi
atype=application/vnd.docker.distribution.manifest.list.v2+json request.header.accept="application/vnd.docker.distribution.manifest.list.v2+json, */*" request.header.user-agent=containerd/1.5.11+unknown request.method=GET size=1638 url="https://ghcr.io/v2/containerd/alpine/manifests/
sha256:adab3844f497ab9171f070d4cae4114b5aec565ac772e2f2579405b78be67c96"                                                                                                                                                                                                                    
    log_hook.go:40: time="2022-10-19T12:41:59.349278548Z" level=debug msg="fetch response received" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:571" digest="sha256:adab3844f497ab9171f070d4cae4114b5aec565ac772e2f2579405b78
be67c96" mediatype=application/vnd.docker.distribution.manifest.list.v2+json response.header.content-length=1638 response.header.content-type=application/vnd.docker.distribution.manifest.list.v2+json response.header.date="Wed, 19 Oct 2022 12:42:00 GMT" response.header.docker-content-
digest="sha256:adab3844f497ab9171f070d4cae4114b5aec565ac772e2f2579405b78be67c96" response.header.docker-distribution-api-version=registry/2.0 response.header.etag="\"sha256:adab3844f497ab9171f070d4cae4114b5aec565ac772e2f2579405b78be67c96\"" response.header.x-github-request-id="8F66:0
A7A:151A5:21372:634FF097" response.status="200 OK" size=1638 url="https://ghcr.io/v2/containerd/alpine/manifests/sha256:adab3844f497ab9171f070d4cae4114b5aec565ac772e2f2579405b78be67c96"                                                                                                   
    log_hook.go:40: time="2022-10-19T12:41:59.358795952Z" level=debug msg=fetch func=remotes.fetch file="/root/go/src/github.com/containerd/containerd/remotes/handlers.go:110" digest="sha256:1775bebec23e1f3ce486989bfc9ff3c4e951690df84aa9f926497d82f2ffca9d" mediatype=application/vnd.d
ocker.distribution.manifest.v2+json size=528                                                                                                                                                                                                                                                
    log_hook.go:40: time="2022-10-19T12:41:59.360938221Z" level=debug msg="do request" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:549" digest="sha256:1775bebec23e1f3ce486989bfc9ff3c4e951690df84aa9f926497d82f2ffca9d" medi
atype=application/vnd.docker.distribution.manifest.v2+json request.header.accept="application/vnd.docker.distribution.manifest.v2+json, */*" request.header.user-agent=containerd/1.5.11+unknown request.method=GET size=528 url="https://ghcr.io/v2/containerd/alpine/manifests/sha256:1775
bebec23e1f3ce486989bfc9ff3c4e951690df84aa9f926497d82f2ffca9d"                                                                                                                                                                                                                               
    log_hook.go:40: time="2022-10-19T12:41:59.618446961Z" level=debug msg="fetch response received" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:571" digest="sha256:1775bebec23e1f3ce486989bfc9ff3c4e951690df84aa9f926497d82f
2ffca9d" mediatype=application/vnd.docker.distribution.manifest.v2+json response.header.content-length=528 response.header.content-type=application/vnd.docker.distribution.manifest.v2+json response.header.date="Wed, 19 Oct 2022 12:42:00 GMT" response.header.docker-content-digest="sha
256:1775bebec23e1f3ce486989bfc9ff3c4e951690df84aa9f926497d82f2ffca9d" response.header.docker-distribution-api-version=registry/2.0 response.header.etag="\"sha256:1775bebec23e1f3ce486989bfc9ff3c4e951690df84aa9f926497d82f2ffca9d\"" response.header.x-github-request-id="8F66:0A7A:151A6:2
1374:634FF097" response.status="200 OK" size=528 url="https://ghcr.io/v2/containerd/alpine/manifests/sha256:1775bebec23e1f3ce486989bfc9ff3c4e951690df84aa9f926497d82f2ffca9d"                                                                                                               
    log_hook.go:40: time="2022-10-19T12:41:59.631116676Z" level=debug msg=fetch func=remotes.fetch file="/root/go/src/github.com/containerd/containerd/remotes/handlers.go:110" digest="sha256:d4ff818577bc193b309b355b02ebc9220427090057b54a59e73b79bdfe139b83" mediatype=application/vnd.d
ocker.container.image.v1+json size=1472                                                                                                                                                                                                                                                     
    log_hook.go:40: time="2022-10-19T12:41:59.633109576Z" level=debug msg="do request" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:549" digest="sha256:d4ff818577bc193b309b355b02ebc9220427090057b54a59e73b79bdfe139b83" medi
atype=application/vnd.docker.container.image.v1+json request.header.accept="application/vnd.docker.container.image.v1+json, */*" request.header.user-agent=containerd/1.5.11+unknown request.method=GET size=1472 url="https://ghcr.io/v2/containerd/alpine/blobs/sha256:d4ff818577bc193b309
b355b02ebc9220427090057b54a59e73b79bdfe139b83"                                                                                                                                                                                                                                              
    log_hook.go:40: time="2022-10-19T12:42:00.079429910Z" level=debug msg="fetch response received" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:571" digest="sha256:d4ff818577bc193b309b355b02ebc9220427090057b54a59e73b79bdf
e139b83" mediatype=application/vnd.docker.container.image.v1+json response.header.accept-ranges=bytes response.header.age=0 response.header.content-disposition= response.header.content-length=1472 response.header.content-type="text/plain; charset=utf-8" response.header.date="Wed, 19 Oct 2022 12:42:00 GMT" response.header.etag="\"0x8D934F756079E83\"" response.header.last-modified="Mon, 21 Jun 2021 20:58:35 GMT" response.header.server="Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0" response.header.strict-transport-security="max-age=31536000" response.header.via="1.1 varnish, 1.1 varnish" response.header.x-cache="MISS, MISS" response.header.x-cache-hits="0, 0" response.header.x-fastly-request-id=5b38da9cb75826e5e02ade9604cb0f665cbd7dcb response.header.x-ms-blob-type=BlockBlob response.header.x-ms-copy-completion-time="Mon, 21 Jun 2021 20:58:35 
GMT" response.header.x-ms-copy-id=d13e607e-e14d-498d-82a5-00336ef7b016 response.header.x-ms-copy-progress=1472/1472 response.header.x-ms-copy-status=success response.header.x-ms-creation-time="Mon, 21 Jun 2021 20:58:35 GMT" response.header.x-ms-lease-state=available response.header.x
-ms-lease-status=unlocked response.header.x-ms-request-id=113948e4-901e-00ed-43b8-e3c7f4000000 response.header.x-ms-server-encrypted=true response.header.x-ms-version=2019-12-12 response.header.x-served-by="cache-iad-kiad7000124-IAD, cache-nrt-rjtf7700075-NRT" response.status="200 OK
" size=1472 url="https://ghcr.io/v2/containerd/alpine/blobs/sha256:d4ff818577bc193b309b355b02ebc9220427090057b54a59e73b79bdfe139b83"                                                                                                                                                        
    log_hook.go:40: time="2022-10-19T12:42:00.095728715Z" level=debug msg=fetch func=remotes.fetch file="/root/go/src/github.com/containerd/containerd/remotes/handlers.go:110" digest="sha256:5843afab387455b37944e709ee8c78d7520df80f8d01cf7f861aae63beeddb6b" mediatype=application/vnd.d
ocker.image.rootfs.diff.tar.gzip size=2811478                                                                                                                                                                                                                                               
    log_hook.go:40: time="2022-10-19T12:42:00.097453068Z" level=debug msg="do request" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:549" digest="sha256:5843afab387455b37944e709ee8c78d7520df80f8d01cf7f861aae63beeddb6b" medi
atype=application/vnd.docker.image.rootfs.diff.tar.gzip request.header.accept="application/vnd.docker.image.rootfs.diff.tar.gzip, */*" request.header.user-agent=containerd/1.5.11+unknown request.method=GET size=2811478 url="https://ghcr.io/v2/containerd/alpine/blobs/sha256:5843afab38
7455b37944e709ee8c78d7520df80f8d01cf7f861aae63beeddb6b"                                                                                                                                                                                                                                     
    log_hook.go:40: time="2022-10-19T12:42:00.557207883Z" level=debug msg="fetch response received" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:571" digest="sha256:5843afab387455b37944e709ee8c78d7520df80f8d01cf7f861aae63b
eeddb6b" mediatype=application/vnd.docker.image.rootfs.diff.tar.gzip response.header.accept-ranges=bytes response.header.age=0 response.header.content-disposition= response.header.content-length=2811478 response.header.content-type=application/x-gzip response.header.date="Wed, 19 Oct
 2022 12:42:01 GMT" response.header.etag="\"0x8D9304FC1A22990\"" response.header.last-modified="Tue, 15 Jun 2021 22:48:55 GMT" response.header.server="Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0" response.header.strict-transport-security="max-age=31536000" response.header.via="1.1 v
arnish, 1.1 varnish" response.header.x-cache="HIT, MISS" response.header.x-cache-hits="1, 0" response.header.x-fastly-request-id=991c2c39e3890df4adf05f03b0ea734bdc6a28df response.header.x-ms-blob-type=BlockBlob response.header.x-ms-copy-completion-time="Tue, 15 Jun 2021 22:48:55 GMT"
 response.header.x-ms-copy-id=20408b0d-a9fc-4436-ab86-73d219d4e314 response.header.x-ms-copy-progress=2811478/2811478 response.header.x-ms-copy-status=success response.header.x-ms-creation-time="Tue, 15 Jun 2021 22:48:55 GMT" response.header.x-ms-lease-state=available response.header
.x-ms-lease-status=unlocked response.header.x-ms-request-id=c8e389e5-901e-0085-10b8-e3ddc7000000 response.header.x-ms-server-encrypted=true response.header.x-ms-version=2019-12-12 response.header.x-served-by="cache-iad-kiad7000151-IAD, cache-nrt-rjtf7700075-NRT" response.status="200 
OK" size=2811478 url="https://ghcr.io/v2/containerd/alpine/blobs/sha256:5843afab387455b37944e709ee8c78d7520df80f8d01cf7f861aae63beeddb6b"                                                                                                                                                   
    log_hook.go:40: time="2022-10-19T12:42:01.028089482Z" level=debug msg="image unpacked" func="containerd.(*unpacker).unpack" file="/root/go/src/github.com/containerd/containerd/unpacker.go:258" chainID="sha256:72e830a4dff5f0d5225cdc0a320e85ab1ce06ea5673acfe8d83a7645cbd0e9cf" confi
g="sha256:d4ff818577bc193b309b355b02ebc9220427090057b54a59e73b79bdfe139b83"                                                                                                                                                                                                                 
    container_linux_test.go:1653: failed to create shim: OCI runtime create failed: runc did not terminate successfully: exit status 1: unknown    
=== RUN   TestUserNamespaces/ReadonlyRootFS                                                                                                                                                                                                                                                 
    log_hook.go:40: time="2022-10-19T12:42:01.147520242Z" level=debug msg=resolving func="docker.(*dockerResolver).Resolve" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:279" host=ghcr.io                                                                
    log_hook.go:40: time="2022-10-19T12:42:01.147667911Z" level=debug msg="do request" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:549" host=ghcr.io request.header.accept="application/vnd.docker.distribution.manifest.v2+j
son, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=containerd/1.5.11+unknown request.method=HEAD url="https://ghcr.io/v2/containerd/alpine/manifests/3.14.0
"                                                                                                                                                                                                                                                                                           
    log_hook.go:40: time="2022-10-19T12:42:01.323035080Z" level=debug msg="fetch response received" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:571" host=ghcr.io response.header.content-length=73 response.header.content-t
ype=application/json response.header.date="Wed, 19 Oct 2022 12:42:02 GMT" response.header.www-authenticate="Bearer realm=\"https://ghcr.io/token\",service=\"ghcr.io\",scope=\"repository:containerd/alpine:pull\"" response.header.x-github-request-id="8F66:0A7A:151AC:2137C:634FF098" res
ponse.status="401 Unauthorized" url="https://ghcr.io/v2/containerd/alpine/manifests/3.14.0"                                                                                                                                                                                                 
    log_hook.go:40: time="2022-10-19T12:42:01.323421402Z" level=debug msg=Unauthorized func="docker.(*request).retryRequest" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:601" header="Bearer realm=\"https://ghcr.io/token\",service=\"ghcr.io\",scope=\"
repository:containerd/alpine:pull\"" host=ghcr.io
    log_hook.go:40: time="2022-10-19T12:42:01.323610386Z" level=debug msg="do request" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:549" host=ghcr.io request.header.accept="application/vnd.docker.distribution.manifest.v2+j
son, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=containerd/1.5.11+unknown request.method=HEAD url="https://ghcr.io/v2/containerd/alpine/manifests/3.14.0
"
    log_hook.go:40: time="2022-10-19T12:42:01.789839291Z" level=debug msg="fetch response received" func="docker.(*request).do" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:571" host=ghcr.io response.header.content-length=1638 response.header.content
-type=application/vnd.docker.distribution.manifest.list.v2+json response.header.date="Wed, 19 Oct 2022 12:42:02 GMT" response.header.docker-content-digest="sha256:adab3844f497ab9171f070d4cae4114b5aec565ac772e2f2579405b78be67c96" response.header.docker-distribution-api-version=registr
y/2.0 response.header.etag="\"sha256:adab3844f497ab9171f070d4cae4114b5aec565ac772e2f2579405b78be67c96\"" response.header.x-github-request-id="8F66:0A7A:151AE:2137F:634FF09A" response.status="200 OK" url="https://ghcr.io/v2/containerd/alpine/manifests/3.14.0"
    log_hook.go:40: time="2022-10-19T12:42:01.790136301Z" level=debug msg=resolved func="docker.(*dockerResolver).Resolve" file="/root/go/src/github.com/containerd/containerd/remotes/docker/resolver.go:381" desc.digest="sha256:adab3844f497ab9171f070d4cae4114b5aec565ac772e2f2579405b78
be67c96" host=ghcr.io
    log_hook.go:40: time="2022-10-19T12:42:01.790379273Z" level=debug msg=fetch func=remotes.fetch file="/root/go/src/github.com/containerd/containerd/remotes/handlers.go:110" digest="sha256:adab3844f497ab9171f070d4cae4114b5aec565ac772e2f2579405b78be67c96" mediatype=application/vnd.d
ocker.distribution.manifest.list.v2+json size=1638
    log_hook.go:40: time="2022-10-19T12:42:01.799326755Z" level=debug msg=fetch func=remotes.fetch file="/root/go/src/github.com/containerd/containerd/remotes/handlers.go:110" digest="sha256:1775bebec23e1f3ce486989bfc9ff3c4e951690df84aa9f926497d82f2ffca9d" mediatype=application/vnd.d
ocker.distribution.manifest.v2+json size=528
    log_hook.go:40: time="2022-10-19T12:42:01.801780875Z" level=debug msg=fetch func=remotes.fetch file="/root/go/src/github.com/containerd/containerd/remotes/handlers.go:110" digest="sha256:d4ff818577bc193b309b355b02ebc9220427090057b54a59e73b79bdfe139b83" mediatype=application/vnd.d
ocker.container.image.v1+json size=1472
    log_hook.go:40: time="2022-10-19T12:42:01.803947589Z" level=debug msg="image unpacked" func="containerd.(*unpacker).unpack" file="/root/go/src/github.com/containerd/containerd/unpacker.go:258" chainID="sha256:72e830a4dff5f0d5225cdc0a320e85ab1ce06ea5673acfe8d83a7645cbd0e9cf" confi
g="sha256:d4ff818577bc193b309b355b02ebc9220427090057b54a59e73b79bdfe139b83"
    container_linux_test.go:1653: failed to create shim: OCI runtime create failed: runc did not terminate successfully: exit status 1: unknown
--- FAIL: TestUserNamespaces (3.65s)
    --- FAIL: TestUserNamespaces/WritableRootFS (2.89s)
    --- FAIL: TestUserNamespaces/ReadonlyRootFS (0.76s)
FAIL
@utam0k utam0k changed the title TestUserNamespaces Pass TestUserNamespaces of contaienrd Oct 19, 2022
@YJDoc2
Copy link
Collaborator

YJDoc2 commented Oct 20, 2022

The Youki Logs :

{"level":"DEBUG","message":"started by user 0 with ArgsOs { inner: [\"runc\", \"--root\", \"/run/containerd/runc/testing\", \"--log\", \"/run/containerd-test/io.containerd.runtime.v2.task/testing/TestUserNamespaces-WritableRootFS/log.json\", \"--log-format\", \"json\", \"create\", \"--bundle\", \"/run/containerd-test/io.containerd.runtime.v2.task/testing/TestUserNamespaces-WritableRootFS\", \"--pid-file\", \"/run/containerd-test/io.containerd.runtime.v2.task/testing/TestUserNamespaces-WritableRootFS/init.pid\", \"TestUserNamespaces-WritableRootFS\"] }","time":"2022-10-20T14:45:06.983100843+00:00"}
{"level":"DEBUG","message":"container directory will be \"/run/containerd/runc/testing/TestUserNamespaces-WritableRootFS\"","time":"2022-10-20T14:45:06.984316669+00:00"}
{"level":"DEBUG","message":"Save container status: Container { state: State { oci_version: \"v1.0.2\", id: \"TestUserNamespaces-WritableRootFS\", status: Creating, pid: None, bundle: \"/run/containerd-test/io.containerd.runtime.v2.task/testing/TestUserNamespaces-WritableRootFS\", annotations: Some({}), created: None, creator: None, use_systemd: None }, root: \"/run/containerd/runc/testing/TestUserNamespaces-WritableRootFS\" } in \"/run/containerd/runc/testing/TestUserNamespaces-WritableRootFS\"","time":"2022-10-20T14:45:06.984356693+00:00"}
{"level":"DEBUG","message":"rootless container should be created","time":"2022-10-20T14:45:06.984450485+00:00"}
{"level":"INFO","message":"systemd cgroup manager with system bus true will be used","time":"2022-10-20T14:45:06.984501506+00:00"}
{"level":"INFO","message":"systemd cgroup manager with system bus true will be used","time":"2022-10-20T14:45:06.984521272+00:00"}
{"level":"DEBUG","message":"started by user 0 with ArgsOs { inner: [\"runc\", \"--root\", \"/run/containerd/runc/testing\", \"--log\", \"/run/containerd-test/io.containerd.runtime.v2.task/testing/TestUserNamespaces-WritableRootFS/log.json\", \"--log-format\", \"json\", \"delete\", \"--force\", \"TestUserNamespaces-WritableRootFS\"] }","time":"2022-10-20T14:45:07.003393583+00:00"}
{"level":"DEBUG","message":"start deleting TestUserNamespaces-WritableRootFS","time":"2022-10-20T14:45:07.003503593+00:00"}
{"level":"DEBUG","message":"container status: Stopped","time":"2022-10-20T14:45:07.003569539+00:00"}
{"level":"DEBUG","message":"config: YoukiConfig { hooks: None, cgroup_path: \"/testing/TestUserNamespaces-WritableRootFS\" }","time":"2022-10-20T14:45:07.003617282+00:00"}
{"level":"DEBUG","message":"remove dir \"/run/containerd/runc/testing/TestUserNamespaces-WritableRootFS\"","time":"2022-10-20T14:45:07.003625141+00:00"}
{"level":"DEBUG","message":"started by user 0 with ArgsOs { inner: [\"runc\", \"--root\", \"/run/containerd/runc/testing\", \"--log\", \"/run/containerd-test/io.containerd.runtime.v2.task/testing/TestUserNamespaces-ReadonlyRootFS/log.json\", \"--log-format\", \"json\", \"create\", \"--bundle\", \"/run/containerd-test/io.containerd.runtime.v2.task/testing/TestUserNamespaces-ReadonlyRootFS\", \"--pid-file\", \"/run/containerd-test/io.containerd.runtime.v2.task/testing/TestUserNamespaces-ReadonlyRootFS/init.pid\", \"TestUserNamespaces-ReadonlyRootFS\"] }","time":"2022-10-20T14:45:08.557435269+00:00"}
{"level":"DEBUG","message":"container directory will be \"/run/containerd/runc/testing/TestUserNamespaces-ReadonlyRootFS\"","time":"2022-10-20T14:45:08.558725952+00:00"}
{"level":"DEBUG","message":"Save container status: Container { state: State { oci_version: \"v1.0.2\", id: \"TestUserNamespaces-ReadonlyRootFS\", status: Creating, pid: None, bundle: \"/run/containerd-test/io.containerd.runtime.v2.task/testing/TestUserNamespaces-ReadonlyRootFS\", annotations: Some({}), created: None, creator: None, use_systemd: None }, root: \"/run/containerd/runc/testing/TestUserNamespaces-ReadonlyRootFS\" } in \"/run/containerd/runc/testing/TestUserNamespaces-ReadonlyRootFS\"","time":"2022-10-20T14:45:08.558793582+00:00"}
{"level":"DEBUG","message":"rootless container should be created","time":"2022-10-20T14:45:08.559032206+00:00"}
{"level":"INFO","message":"systemd cgroup manager with system bus true will be used","time":"2022-10-20T14:45:08.559099796+00:00"}
{"level":"INFO","message":"systemd cgroup manager with system bus true will be used","time":"2022-10-20T14:45:08.559139670+00:00"}
{"level":"DEBUG","message":"started by user 0 with ArgsOs { inner: [\"runc\", \"--root\", \"/run/containerd/runc/testing\", \"--log\", \"/run/containerd-test/io.containerd.runtime.v2.task/testing/TestUserNamespaces-ReadonlyRootFS/log.json\", \"--log-format\", \"json\", \"delete\", \"--force\", \"TestUserNamespaces-ReadonlyRootFS\"] }","time":"2022-10-20T14:45:08.575193014+00:00"}
{"level":"DEBUG","message":"start deleting TestUserNamespaces-ReadonlyRootFS","time":"2022-10-20T14:45:08.575299165+00:00"}
{"level":"DEBUG","message":"container status: Stopped","time":"2022-10-20T14:45:08.575360951+00:00"}
{"level":"DEBUG","message":"config: YoukiConfig { hooks: None, cgroup_path: \"/testing/TestUserNamespaces-ReadonlyRootFS\" }","time":"2022-10-20T14:45:08.575410759+00:00"}
{"level":"DEBUG","message":"remove dir \"/run/containerd/runc/testing/TestUserNamespaces-ReadonlyRootFS\"","time":"2022-10-20T14:45:08.575418648+00:00"}

Somethings that I notice here are : use_systemd is None, it should probably be some(...) ? Also, this starts a rootless container? Should these two be the way they are? because in exec tests, the containers were not rootless, ans systemd was Some(false)

@YJDoc2
Copy link
Collaborator

YJDoc2 commented Oct 20, 2022

Also, this makes me question why do we have use_systemd in Option, if it is bool. It can be either to use it or not to use it, in which case we can se appropriate default value of it, rather than having to keep it None.
Is there any reason why it was of type Option, rather than just bool?

@YJDoc2
Copy link
Collaborator

YJDoc2 commented Oct 20, 2022

I did try making the use_systemd as bool, with default false ( as unless explicitly stated, we should not be using systemd) . That does not solve this issue, so the points I mentioned above might not be why the test is not passing

@YJDoc2
Copy link
Collaborator

YJDoc2 commented Oct 21, 2022

On doing more digging, this is possibly due to we setting the cgroups path incorrectly. Will update if find something concrete

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 a pull request may close this issue.

2 participants