test_apparmor failures on armhf-omap4

Bug #1057623 reported by C de-Avillez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QA Regression Testing
Fix Released
Undecided
Unassigned
ubuntu-kernel-tests
Fix Released
Undecided
Unassigned

Bug Description

Running Quantal Beta2 image, kernel 3.5.0-211.18-omap4 3.5.4

full run log is attached.

======================================================================
  FAIL: test_python (__main__.ApparmorBindings)
  Test python binding
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "./test-apparmor.py", line 2178, in test_python
      self.assertEquals(expected, rc, result + report)
  AssertionError: Got exit code 1, expected 0
  Traceback (most recent call last):
    File "/tmp/testlib0XcWj1/test-script", line 20, in <module>
      import LibAppArmor
  ImportError: No module named LibAppArmor

  ======================================================================
  FAIL: test_regression_testsuite (__main__.ApparmorTestsuites)
  Run kernel regression tests
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "./test-apparmor.py", line 1350, in test_regression_testsuite
      self.assertEquals(expected, rc, result + report)
  AssertionError: Got exit code 2, expected 0
  cc -Wall -Wstrict-prototypes access.c -lapparmor -o access
  cc -Wall -Wstrict-prototypes introspect.c -lapparmor -o introspect
  cc -Wall -Wstrict-prototypes changeprofile.c -lapparmor -o changeprofile
  cc -Wall -Wstrict-prototypes onexec.c -lapparmor -o onexec
  cc -Wall -Wstrict-prototypes changehat.c -lapparmor -o changehat
  cc -Wall -Wstrict-prototypes changehat_fork.c -lapparmor -o changehat_fork
  cc -Wall -Wstrict-prototypes changehat_misc.c -lapparmor -o changehat_misc
  cc -Wall -Wstrict-prototypes changehat_misc2.c -lapparmor -o changehat_misc2
  cc -Wall -Wstrict-prototypes changehat_twice.c -lapparmor -o changehat_twice
  cc -Wall -Wstrict-prototypes changehat_fail.c -lapparmor -o changehat_fail
  cc -Wall -Wstrict-prototypes changehat_wrapper.c -lapparmor -o changehat_wrapper
  cc -Wall -Wstrict-prototypes changehat_pthread.c -o changehat_pthread -lapparmor -pthread
  cc -Wall -Wstrict-prototypes chdir.c -lapparmor -o chdir
  cc -Wall -Wstrict-prototypes chgrp.c -lapparmor -o chgrp
  cc -Wall -Wstrict-prototypes chmod.c -lapparmor -o chmod
  cc -Wall -Wstrict-prototypes chown.c -lapparmor -o chown
  cc -Wall -Wstrict-prototypes clone.c -lapparmor -o clone
  clone.c: In function ‘main’:
  clone.c:62:19: error: ‘PAGE_SIZE’ undeclared (first use in this function)
  clone.c:62:19: note: each undeclared identifier is reported only once for each function it appears in
  make: *** [clone] Error 1

  ----------------------------------------------------------------------
  Ran 45 tests in 2147.218s

  FAILED (failures=2)
18:53:26 INFO | END ERROR qrt.test-apparmor.py qrt.test-apparmor.py timestamp=1348700006 localtime=Sep 26 18:53:26
18:53:26 INFO | END GOOD ---- ---- timestamp=1348700006 localtime=Sep 26 18:53:26
+ export TEST_NAME=qrt

Revision history for this message
C de-Avillez (hggdh2) wrote :
tags: added: quantal
Revision history for this message
John Johansen (jjohansen) wrote :

The apparmor_python binding failures are caused by not having all the correct dependencies installed.

you need to ensure both python_libapparmor and python3_libapparmor are installed

Revision history for this message
C de-Avillez (hggdh2) wrote :
Download full text (17.7 KiB)

python3_libapparmor was installed, python_libapparmor was not. I installed it, and re-run the test. The ImportErrors are gone, butI still see a make failure.

Opening a task for Ubuntu Kernel Tests on the missing package.

ubuntu@panda-1-es:~/autotest/client/tests/qrt/src/scripts$ sudo ./test-apparmor.py --help
Skipping private tests
test_aa_complain_and_aa_enforce (__main__.ApparmorTest)
Test enforce to complain and back with aa-complain/aa-enforce ... ok
test_aa_disable_and_aa_enforce (__main__.ApparmorTest)
Test aa-disable ... ok
test_aa_status (__main__.ApparmorTest)
Test aa-status ... ok
test_aa_unconfined (__main__.ApparmorTest)
Test aa-unconfined ... ok
test_abstractions (__main__.ApparmorTest)
Test abstractions ...
  abstractions/X
  abstractions/apache2-common
  abstractions/aspell
  abstractions/audio
  abstractions/authentication
  abstractions/bash
  abstractions/consoles
  abstractions/cups-client
  abstractions/dbus
  abstractions/dbus-session
  abstractions/enchant
  abstractions/fonts
  abstractions/freedesktop.org
  abstractions/gnome
  abstractions/gnupg
  abstractions/ibus
  abstractions/kde
  abstractions/kerberosclient
  abstractions/launchpad-integration
  abstractions/ldapclient
  abstractions/likewise
  abstractions/mdns
  abstractions/mysql
  abstractions/nameservice
  abstractions/nis
  abstractions/nvidia
  abstractions/openssl
  abstractions/orbit2
  abstractions/p11-kit
  abstractions/perl
  abstractions/php5
  abstractions/private-files
  abstractions/private-files-strict
  abstractions/python
  abstractions/ruby
  abstractions/samba
  abstractions/smbpass
  abstractions/ssl_certs
  abstractions/ssl_keys
  abstractions/svn-repositories
  abstractions/ubuntu-bittorrent-clients
  abstractions/ubuntu-browsers
  abstractions/ubuntu-browsers.d/chromium-browser
  abstractions/ubuntu-browsers.d/java
  abstractions/ubuntu-browsers.d/kde
  abstractions/ubuntu-browsers.d/mailto
  abstractions/ubuntu-browsers.d/multimedia
  abstractions/ubuntu-browsers.d/plugins-common
  abstractions/ubuntu-browsers.d/productivity
  abstractions/ubuntu-browsers.d/text-editors
  abstractions/ubuntu-browsers.d/ubuntu-integration
  abstractions/ubuntu-browsers.d/ubuntu-integration-xul
  abstractions/ubuntu-browsers.d/user-files
  abstractions/ubuntu-console-browsers
  abstractions/ubuntu-console-email
  abstractions/ubuntu-email
  abstractions/ubuntu-feed-readers
  abstractions/ubuntu-gnome-terminal
  abstractions/ubuntu-helpers
  abstractions/ubuntu-konsole
  abstractions/ubuntu-media-players
  abstractions/ubuntu-xterm
  abstractions/user-download
  abstractions/user-mail
  abstractions/user-manpages
  abstractions/user-tmp
  abstractions/user-write
  abstractions/video
  abstractions/web-data
  abstractions/winbind
  abstractions/wutmp
  abstractions/xad
  abstractions/xdg-desktop
ok
test_add_remove_profile (__main__.ApparmorTest)
Test add/remove profile ... ok
test_caching (__main__.ApparmorTest)
Test caching ... ok
test_caching_954469 (__main__.ApparmorTest)
Test recaching ... ok
test_complain (__main__.ApparmorTest)
Test complain profile ... ok
test_dac_override (__main__.ApparmorTest)
Test dac_override ... ok
test_easyprof (__main__.A...

Revision history for this message
Steve Beattie (sbeattie) wrote :

This was fixed in lp:qa-regression-testing commit 1841 with the inclusion of an upstream patch that does not depend on PAGE_SIZE being defined.

Changed in qa-regression-testing:
status: New → Fix Released
Changed in ubuntu-kernel-tests:
status: New → Fix Released
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.