Public bug reported:

Issue found on Noble s390x 6.8.0-46-generic, this is the first time that
we test the updated qa-regression-testing repo.

The test will fail with:
  bwrap: execvp true: No such file or directory

Test log
ubuntu@kernel06:~/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts$
 sudo ./test-apparmor.py -v  ApparmorTest.test_unconfined_userns
Running test: './test-apparmor.py' distro: 'Ubuntu 24.04' kernel: '6.8.0-46.46 
(Ubuntu 6.8.0-46.46-generic 6.8.12)' arch: 's390x' init: 'systemd' uid: 0/0 
SUDO_USER: 'ubuntu')
Skipping private tests
test_unconfined_userns (__main__.ApparmorTest.test_unconfined_userns)
Test that unconfined userns restrictions are applied ... (disabling userns 
restrictions) (checking unshare works as normal) (checking unshare with uidmap 
works as normal) (checking bwrap works as normal) FAIL

======================================================================
FAIL: test_unconfined_userns (__main__.ApparmorTest.test_unconfined_userns)
Test that unconfined userns restrictions are applied
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 1521, in test_unconfined_userns
    self.assertShellExitSuccess(['sudo', '-u', self.user.login, 'bwrap', 
'--ro-bind', '/usr', '/usr', '--symlink', '/usr/lib64', '/lib64', 
'--unshare-net', '--', 'true'])
  File 
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/testlib.py",
 line 1340, in assertShellExitSuccess
    return self.assertShellExitEquals(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/testlib.py",
 line 1332, in assertShellExitEquals
    self.assertEqual(expected, rc, msg + result + report)
AssertionError: 0 != 1 : Got exit code 1, expected 0
Command: 'sudo', '-u', 'tfjazLFd', 'bwrap', '--ro-bind', '/usr', '/usr', 
'--symlink', '/usr/lib64', '/lib64', '--unshare-net', '--', 'true'
Output:
bwrap: execvp true: No such file or directory


----------------------------------------------------------------------
Ran 1 test in 0.181s

FAILED (failures=1)

** Affects: qa-regression-testing
     Importance: Undecided
         Status: New

** Affects: ubuntu-kernel-tests
     Importance: Undecided
         Status: New


** Tags: 6.8 noble s390x ubuntu-qrt-apparmor

** Also affects: qa-regression-testing
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/2081798

Title:
  test_unconfined_userns from ubuntu_qrt_apparmor failed "bwrap: execvp
  true: No such file or directory"

Status in QA Regression Testing:
  New
Status in ubuntu-kernel-tests:
  New

Bug description:
  Issue found on Noble s390x 6.8.0-46-generic, this is the first time
  that we test the updated qa-regression-testing repo.

  The test will fail with:
    bwrap: execvp true: No such file or directory

  Test log
  
ubuntu@kernel06:~/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts$
 sudo ./test-apparmor.py -v  ApparmorTest.test_unconfined_userns
  Running test: './test-apparmor.py' distro: 'Ubuntu 24.04' kernel: 
'6.8.0-46.46 (Ubuntu 6.8.0-46.46-generic 6.8.12)' arch: 's390x' init: 'systemd' 
uid: 0/0 SUDO_USER: 'ubuntu')
  Skipping private tests
  test_unconfined_userns (__main__.ApparmorTest.test_unconfined_userns)
  Test that unconfined userns restrictions are applied ... (disabling userns 
restrictions) (checking unshare works as normal) (checking unshare with uidmap 
works as normal) (checking bwrap works as normal) FAIL

  ======================================================================
  FAIL: test_unconfined_userns (__main__.ApparmorTest.test_unconfined_userns)
  Test that unconfined userns restrictions are applied
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File 
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 1521, in test_unconfined_userns
      self.assertShellExitSuccess(['sudo', '-u', self.user.login, 'bwrap', 
'--ro-bind', '/usr', '/usr', '--symlink', '/usr/lib64', '/lib64', 
'--unshare-net', '--', 'true'])
    File 
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/testlib.py",
 line 1340, in assertShellExitSuccess
      return self.assertShellExitEquals(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File 
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/testlib.py",
 line 1332, in assertShellExitEquals
      self.assertEqual(expected, rc, msg + result + report)
  AssertionError: 0 != 1 : Got exit code 1, expected 0
  Command: 'sudo', '-u', 'tfjazLFd', 'bwrap', '--ro-bind', '/usr', '/usr', 
'--symlink', '/usr/lib64', '/lib64', '--unshare-net', '--', 'true'
  Output:
  bwrap: execvp true: No such file or directory

  
  ----------------------------------------------------------------------
  Ran 1 test in 0.181s

  FAILED (failures=1)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qa-regression-testing/+bug/2081798/+subscriptions


-- 
Mailing list: https://launchpad.net/~canonical-ubuntu-qa
Post to     : canonical-ubuntu-qa@lists.launchpad.net
Unsubscribe : https://launchpad.net/~canonical-ubuntu-qa
More help   : https://help.launchpad.net/ListHelp

Reply via email to