#66 policycoreutils/org-selinux-dbus-interfaces fails on Rawhide when it's run for setools package
Opened 4 years ago by plautrba. Modified 3 years ago

https://src.fedoraproject.org/rpms/setools/pull-request/13 ->

https://jenkins-continuous-infra.apps.ci.centos.org/job/fedora-rawhide-pr-pipeline/3079/artifact/package-tests/logs/ERROR-selinux-policycoreutils-org-selinux-dbus-interfaces.log

[   FAIL   ] :: Command 'gdbus introspect --system -d org.selinux -o /' (Expected 0, got 1)
...
[   FAIL   ] :: Command 'dbus-send --system --print-reply --dest=org.selinux /org/selinux/object org.selinux.semodule_list' (Expected 0, got 127)

After inspection of various error logs in https://jenkins-continuous-infra.apps.ci.centos.org/job/fedora-rawhide-pr-pipeline/3079/artifact/package-tests/logs/ I can tell that there are multiple problems:
* dbus-send: command not found
* rpmbuild: command not found
* sctp_test: command not found
* modprobe: FATAL: Module sctp not found in directory /lib/modules/5.6.0-0.rc5.git2.1.fc33.x86_64

All of them seem to be caused by missing requirements.

And I forgot to mention:
* Error: Timeout was reached

I've split test problems into different issues, this and https://src.fedoraproject.org/tests/selinux/issue/67

The problem in policycoreutils/sctp_test is being fixed in https://src.fedoraproject.org/tests/selinux/pull-request/65 therefore I haven't file a new issue for that

I run the test on Fedora Rawhide and all passed.

Please see https://src.fedoraproject.org/rpms/setools/pull-request/15 -> https://jenkins-continuous-infra.apps.ci.centos.org/blue/organizations/jenkins/fedora-rawhide-pr-pipeline/detail/fedora-rawhide-pr-pipeline/3544/pipeline/ -> https://jenkins-continuous-infra.apps.ci.centos.org/blue/organizations/jenkins/fedora-rawhide-pr-pipeline/detail/fedora-rawhide-pr-pipeline/3544/artifacts -> https://jenkins-continuous-infra.apps.ci.centos.org/job/fedora-rawhide-pr-pipeline/3544/artifact/package-tests/logs/ERROR-selinux-policycoreutils-org-selinux-dbus-interfaces.log

policycoreutils-3.0-2.fc32.x86_64
:: [ 10:54:27 ] :: [   PASS   ] :: Checking for the presence of policycoreutils rpm 
:: [ 10:54:27 ] :: [   LOG    ] :: Package versions:
:: [ 10:54:27 ] :: [   LOG    ] ::   policycoreutils-3.0-2.fc32.x86_64
policycoreutils-dbus-3.0-2.fc32.noarch
:: [ 10:54:27 ] :: [   PASS   ] :: Command 'rpm -q policycoreutils-dbus || rpm -q policycoreutils-gui' (Expected 0, got 0)
:: [ 10:54:27 ] :: [   INFO   ] :: using '/var/tmp/beakerlib-Hqs5CBG/backup' as backup destination
:: [ 10:54:30 ] :: [   FAIL   ] :: Command 'gdbus introspect --system -d org.selinux -o /' (Expected 0, got 1)
:: [ 10:54:33 ] :: [   FAIL   ] :: Command 'gdbus introspect --system -d org.selinux -o /org' (Expected 0, got 1)
:: [ 10:54:36 ] :: [   FAIL   ] :: Command 'gdbus introspect --system -d org.selinux -o /org/selinux' (Expected 0, got 1)
:: [ 10:54:39 ] :: [   FAIL   ] :: Command 'gdbus introspect --system -d org.selinux -o /org/selinux/object' (Expected 0, got 1)
:: [ 10:54:39 ] :: [   FAIL   ] :: Command 'ps -efZ | grep -v grep | grep ':semanage_t:.*selinux_server'' (Expected 0, got 1)

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   org.selinux.semodule_list
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 10:54:40 ] :: [   FAIL   ] :: Command 'dbus-send --system --print-reply --dest=org.selinux /org/selinux/object org.selinux.semodule_list' (Expected 0, got 127)
:: [ 10:54:40 ] :: [   FAIL   ] :: Command 'dbus-send --system --print-reply --dest=org.selinux /org/selinux/object org.selinux.semodule_list int64:0' (Expected 1, got 127)

...

https://jenkins-continuous-infra.apps.ci.centos.org/job/fedora-rawhide-pr-pipeline/3544/artifact/package-tests/logs/ERROR-selinux-policycoreutils-org-selinux-dbus-interfaces-err.log

:: [ 10:54:27 ] :: [   PASS   ] :: Checking for the presence of policycoreutils rpm 
:: [ 10:54:27 ] :: [   LOG    ] :: Package versions:
:: [ 10:54:27 ] :: [   LOG    ] ::   policycoreutils-3.0-2.fc32.x86_64
:: [ 10:54:27 ] :: [  BEGIN   ] :: Running 'rpm -q policycoreutils-dbus || rpm -q policycoreutils-gui'
:: [ 10:54:27 ] :: [   PASS   ] :: Command 'rpm -q policycoreutils-dbus || rpm -q policycoreutils-gui' (Expected 0, got 0)
:: [ 10:54:27 ] :: [   INFO   ] :: using '/var/tmp/beakerlib-Hqs5CBG/backup' as backup destination
:: [ 10:54:27 ] :: [  BEGIN   ] :: Running 'gdbus introspect --system -d org.selinux -o /'
Error: Timeout was reached
:: [ 10:54:30 ] :: [   FAIL   ] :: Command 'gdbus introspect --system -d org.selinux -o /' (Expected 0, got 1)
:: [ 10:54:30 ] :: [  BEGIN   ] :: Running 'gdbus introspect --system -d org.selinux -o /org'
Error: Timeout was reached
:: [ 10:54:33 ] :: [   FAIL   ] :: Command 'gdbus introspect --system -d org.selinux -o /org' (Expected 0, got 1)
:: [ 10:54:33 ] :: [  BEGIN   ] :: Running 'gdbus introspect --system -d org.selinux -o /org/selinux'
Error: Timeout was reached
:: [ 10:54:36 ] :: [   FAIL   ] :: Command 'gdbus introspect --system -d org.selinux -o /org/selinux' (Expected 0, got 1)
:: [ 10:54:36 ] :: [  BEGIN   ] :: Running 'gdbus introspect --system -d org.selinux -o /org/selinux/object'
Error: Timeout was reached
:: [ 10:54:39 ] :: [   FAIL   ] :: Command 'gdbus introspect --system -d org.selinux -o /org/selinux/object' (Expected 0, got 1)
:: [ 10:54:39 ] :: [  BEGIN   ] :: Running 'ps -efZ | grep -v grep | grep ':semanage_t:.*selinux_server''
:: [ 10:54:39 ] :: [   FAIL   ] :: Command 'ps -efZ | grep -v grep | grep ':semanage_t:.*selinux_server'' (Expected 0, got 1)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 12s
::   Assertions: 2 good, 5 bad
::   RESULT: WARN (Setup)


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   org.selinux.semodule_list
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 10:54:40 ] :: [  BEGIN   ] :: Running 'dbus-send --system --print-reply --dest=org.selinux /org/selinux/object org.selinux.semodule_list'
/usr/share/beakerlib/testing.sh: line 891: dbus-send: command not found
:: [ 10:54:40 ] :: [   FAIL   ] :: Command 'dbus-send --system --print-reply --dest=org.selinux /org/selinux/object org.selinux.semodule_list' (Expected 0, got 127)
:: [ 10:54:40 ] :: [  BEGIN   ] :: Running 'dbus-send --system --print-reply --dest=org.selinux /org/selinux/object org.selinux.semodule_list int64:0'
/usr/share/beakerlib/testing.sh: line 891: dbus-send: command not found
:: [ 10:54:40 ] :: [   FAIL   ] :: Command 'dbus-send --system --print-reply --dest=org.selinux /org/selinux/object org.selinux.semodule_list int64:0' (Expected 1, got 127)
...

It seems to be a problem with missing requirements.

There's another problem - missing requirements in policycoreutils-dbus:

May 20 13:33:12 fedora32 selinux_server.py[23731]: Traceback (most recent call last):
May 20 13:33:12 fedora32 selinux_server.py[23731]:   File "/usr/share/system-config-selinux/selinux_server.py", line 6, in <module>
May 20 13:33:12 fedora32 selinux_server.py[23731]:     from gi.repository import GObject
May 20 13:33:12 fedora32 selinux_server.py[23731]: ModuleNotFoundError: No module named 'gi'

Reproducer:

  • use Fedora cloud image
# dnf install policycoreutils-dbus

# gdbus introspect --system -d org.selinux -o /
Error: Timeout was reached

# dnf remove policycoreutils-dbus

# dnf install python3-gobject-base policycoreutils-dbus

# gdbus introspect --system -d org.selinux -o /
node / {
  node org {
  };
};

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #71 Merged 3 years ago
  • #16 Last updated 3 years ago