lxc-test-usernsexec in ubuntu_lxc failed with myuidgid

Bug #1900662 reported by Po-Hsu Lin
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Confirmed
Undecided
Unassigned

Bug Description

Issue found on 5.8.0-1008.8 GCP

Test failed with:
 FAIL: lxc-tests: lxc-test-usernsexec (1s)
 ---
 as test-userns executing /tmp/autopkgtest.8vKiat/build.1Mf/src/src/tests/lxc-test-usernsexec
 uid=1008 gid=1009 name=test-userns subuid=624288 subgid=624288 ver=1:4.0.4-0ubuntu3
 lxc-utils=1:4.0.4-0ubuntu3 kver=5.8.0-1008-gcp
 USERNSEXEC=lxc-usernsexec
 nouidgid: PASS
 myuidgid: FAIL - runtest failed 1
 $ lxc-usernsexec -mu:0:1008:1 -mg:0:1009:1 -- /tmp/autopkgtest.8vKiat/build.1Mf/src/src/tests/lxc-test-usernsexec inside f0
 lxc 20201016155824.477 ERROR utils - utils.c:lxc_setgroups:1363 - Operation not permitted - Failed to setgroups()
 kid 80842 is gone 1
 subuidgid: PASS
 bothsets: PASS
 mismatch: PASS
 ERRORS: myuidgid
 ---
 PASS: lxc-tests: lxc-test-utils (0s)

 SUMMARY: pass=43, fail=1, ignored=1

Revision history for this message
Sean Feole (sfeole) wrote :

linux-aws focal
11/18 01:31:05 DEBUG| utils:0153| [stdout] FAIL: lxc-tests: lxc-test-usernsexec (2s)
11/18 01:31:05 DEBUG| utils:0153| [stdout] ---
11/18 01:31:05 DEBUG| utils:0153| [stdout] as test-userns executing /tmp/autopkgtest.1Mn2pV/build.J3t/src/src/tests/lxc-test-usernsexec
11/18 01:31:05 DEBUG| utils:0153| [stdout] uid=1001 gid=1001 name=test-userns subuid=165536 subgid=165536 ver=1:4.0.4-0ubuntu3
11/18 01:31:05 DEBUG| utils:0153| [stdout] lxc-utils=1:4.0.4-0ubuntu3 kver=5.8.0-1014-aws
11/18 01:31:05 DEBUG| utils:0153| [stdout] USERNSEXEC=lxc-usernsexec
11/18 01:31:05 DEBUG| utils:0153| [stdout] nouidgid: PASS
11/18 01:31:05 DEBUG| utils:0153| [stdout] myuidgid: FAIL - runtest failed 1
11/18 01:31:05 DEBUG| utils:0153| [stdout] $ lxc-usernsexec -mu:0:1001:1 -mg:0:1001:1 -- /tmp/autopkgtest.1Mn2pV/build.J3t/src/src/tests/lxc-test-usernsexec inside f0
11/18 01:31:05 DEBUG| utils:0153| [stdout] lxc 20201118013103.948 ERROR utils - utils.c:lxc_setgroups:1363 - Operation not permitted - Failed to setgroups()
11/18 01:31:05 DEBUG| utils:0153| [stdout] kid 79906 is gone 1
11/18 01:31:05 DEBUG| utils:0153| [stdout] subuidgid: PASS
11/18 01:31:05 DEBUG| utils:0153| [stdout] bothsets: PASS
11/18 01:31:05 DEBUG| utils:0153| [stdout] mismatch: PASS
11/18 01:31:05 DEBUG| utils:0153| [stdout] ERRORS: myuidgid
11/18 01:31:05 DEBUG| utils:0153| [stdout] ---

tags: added: aws focal sru-20201109
summary: - lxc-test-usernsexec in ubunut_lxc failed with myuidgid on G-5.8-GCP
+ lxc-test-usernsexec in ubunut_lxc failed with myuidgid
Changed in ubuntu-kernel-tests:
status: New → Triaged
Revision history for this message
Kelsey Steele (kelsey-steele) wrote : Re: lxc-test-usernsexec in ubunut_lxc failed with myuidgid

Found on Groovy/linux 5.8.0-31.33

tags: added: amd64
Po-Hsu Lin (cypressyew)
tags: added: hirsute
Po-Hsu Lin (cypressyew)
tags: added: sru-20201130
Po-Hsu Lin (cypressyew)
summary: - lxc-test-usernsexec in ubunut_lxc failed with myuidgid
+ lxc-test-usernsexec in ubuntu_lxc failed with myuidgid
tags: added: ubuntu-lxc
removed: ubuntu-k8s-unit-tests
Revision history for this message
Christian Brauner (cbrauner) wrote :

I fixed this quite a while ago, actually in September:

commit 3f6e5c831eebf46e4e755bbc1bfbf4c9e1fb0d91 (origin/2020-09-17/fixes_2, 2020-09-17/fixes_2)
Author: Christian Brauner <email address hidden>
Date: Thu Sep 17 17:44:26 2020 +0200

    lxc-usernsexec: setgroups() similar to other places shouldn't fail on EPERM

    FAIL: lxc-tests: lxc-test-usernsexec (1s)
    ---
    as test-userns executing /tmp/autopkgtest.waGEXj/build.Hm3/src/src/tests/lxc-test-usernsexec
    uid=1001 gid=1001 name=test-userns subuid=165536 subgid=165536 ver=1:4.0.4-0ubuntu3
    lxc-utils=1:4.0.4-0ubuntu3 kver=5.8.0-19-generic
    USERNSEXEC=lxc-usernsexec
    nouidgid: PASS
    myuidgid: FAIL - runtest failed 1
      $ lxc-usernsexec -mu:0:1001:1 -mg:0:1001:1 -- /tmp/autopkgtest.waGEXj/build.Hm3/src/src/tests/lxc-test-usernsexec inside f0
      lxc 20200914222824.562 ERROR utils - utils.c:lxc_setgroups:1363 - Operation not permitted - Failed to setgroups()
      kid 73112 is gone 1
    subuidgid: PASS
    bothsets: PASS
    mismatch: PASS
    ERRORS: myuidgid
    ---

    Reported-by: Seth Forshee <email address hidden>
    Signed-off-by: Christian Brauner <email address hidden>

Changed in ubuntu-kernel-tests:
status: Triaged → Fix Committed
Revision history for this message
Marcelo Cerri (mhcerri) wrote :
Revision history for this message
Marcelo Cerri (mhcerri) wrote :

Seen with linux-azure 5.8.0-1027.29 for cycle sru-20210315 but also for sru-20210222.

tags: added: azure sru-20210222 sru-20210315
Changed in ubuntu-kernel-tests:
status: Fix Committed → Confirmed
tags: added: sru-20210412
Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

Also on: groovy/oracle 5.8.0-1027.28

tags: added: oracle
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Also on : G/kvm 5.8.0-1026.28

Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Observed on G/KVM, cycle sru-20210510 .

tags: added: kvm linux-kvm sru-20210510
Revision history for this message
Ian May (ian-may) wrote :

groovy/linux-aws: 5.8.0-1034.36

tags: added: 5.11
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

@cbrauner, do you know the version in which your fix arrived? We are still seeing the same issue in out tests.

Thanks in advance!

Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Oh, seems that is fixed on 4.0.6, based on https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1917601 - right?

I'll mark this bug as duplicate of that one in order we track the progress there.
Groovy is soon EOL'ed, maybe 4.0.6 will never reach that release.

Cheers!

Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

Found on groovy/azure 5.8.0-1034.36

tags: added: sru-20210531
Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

Found on groovy/oracle 5.8.0-1032.33

Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

Found on groovy/aws 5.8.0-1036.38

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.