← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2077707] Re: test_snapd_snap_with_vendored_apparmor from ubuntu_qrt_apparmor failed on F-5.4 PowerPC

 

** Also affects: ubuntu-power-systems
   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/2077707

Title:
  test_snapd_snap_with_vendored_apparmor from ubuntu_qrt_apparmor failed
  on F-5.4 PowerPC

Status in QA Regression Testing:
  New
Status in ubuntu-kernel-tests:
  New
Status in The Ubuntu-power-systems project:
  New
Status in snapd package in Ubuntu:
  New

Bug description:
  Issue found on F-5.4 Power8 bare-metal host "gulpin"

  The test failed with:
   Running 'python2 ./test-apparmor.py -v ApparmorTest.test_snapd_snap_with_vendored_apparmor'
   Running test: './test-apparmor.py' distro: 'Ubuntu 20.04' kernel: '5.4.0-195.215 (Ubuntu 5.4.0-195.215-generic 5.4.280)' arch: 'ppc64el' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu') 
   test_snapd_snap_with_vendored_apparmor (__main__.ApparmorTest)
   Test snapd snap ... FAIL
   Skipping private tests
   
   WARN: kernel rate limiting in effect
   Disabling ratelimiting until the next reboot. To renable, run:
   # sysctl -w kernel.printk_ratelimit=5
   
   
   ======================================================================
   FAIL: test_snapd_snap_with_vendored_apparmor (__main__.ApparmorTest)
   Test snapd snap
   ----------------------------------------------------------------------
   Traceback (most recent call last):
     File "./test-apparmor.py", line 334, in test_snapd_snap_with_vendored_apparmor
       self.refresh_snap("snapd", track=track)
     File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/testlib.py", line 1443, in refresh_snap
       (snapname, track, report))
   AssertionError: Failed to refresh snap snapd to track latest/beta
   Output:
   2024-08-07T22:36:02Z INFO Waiting for automatic snapd restart...
   2024-08-07T22:36:03Z INFO Waiting for automatic snapd restart...
   2024-08-07T22:36:04Z INFO Waiting for automatic snapd restart...
   2024-08-07T22:36:05Z INFO Waiting for automatic snapd restart...
   error: cannot perform the following tasks:
   - Automatically connect eligible plugs and slots of snap "snapd" (there was a snapd rollback across the restart)
   
   
   ----------------------------------------------------------------------
   Ran 1 test in 41.107s
   
   FAILED (failures=1)

  
  I tried to test this manually with Focal 5.4.0-193-generic, it looks like this is failing when trying to refresh with the latest/beta channel:
  $ sudo snap refresh snapd --channel=latest/beta
  2024-08-23T06:56:29Z INFO Waiting for automatic snapd restart...
  2024-08-23T06:56:30Z INFO Waiting for automatic snapd restart...
  2024-08-23T06:56:31Z INFO Waiting for automatic snapd restart...
  2024-08-23T06:56:32Z INFO Waiting for automatic snapd restart...
  error: cannot perform the following tasks:
  - Automatically connect eligible plugs and slots of snap "snapd" (there was a snapd rollback across the restart)
  '
  We don't have this failure on Openstack PowerPC VM:
   Running 'python2 ./test-apparmor.py -v ApparmorTest.test_snapd_snap_with_vendored_apparmor'
   Running test: './test-apparmor.py' distro: 'Ubuntu 20.04' kernel: '5.4.0-195.215 (Ubuntu 5.4.0-195.215-generic 5.4.280)' arch: 'ppc64el' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu') 
   test_snapd_snap_with_vendored_apparmor (__main__.ApparmorTest)
   Test snapd snap ... ok
   
   ----------------------------------------------------------------------
   Ran 1 test in 10.241s
   
   Skipping private tests
   
   WARN: kernel rate limiting in effect
   Disabling ratelimiting until the next reboot. To renable, run:
   # sysctl -w kernel.printk_ratelimit=5
   
   OK

  We didn't see this issue in cycle 2024.06.10 (5.4.0-189.209 on P8 node
  dryden). For cycle 2024.07.08 (5.4.0-192.212 on P8 node gulpin) the
  deployment has failed so we don't have a test result.

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



References