Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

container image does not run in EL9 - «ModuleNotFoundError: No module named 'dbus'» #1228

Open
mailinglists35 opened this issue Oct 20, 2023 · 2 comments
Labels
triage Issue needs triaged.

Comments

@mailinglists35
Copy link

mailinglists35 commented Oct 20, 2023

What happened

[root@el9 ~]# podman image ls
REPOSITORY                   TAG         IMAGE ID      CREATED       SIZE
quay.io/firewalld/firewalld  latest      831dc0433a6f  24 hours ago  272 MB

[root@el9 ~]# podman run -d --network host --privileged --name my-firewalld quay.io/firewalld/firewalld
40b00b602e6e714052c645a9875b771b17c845cc4e0a3f0b7005604f04e27c1c

[root@el9 ~]# podman ps
CONTAINER ID  IMAGE       COMMAND     CREATED     STATUS      PORTS       NAMES

[root@el9 ~]# podman logs my-firewalld
Traceback (most recent call last):
  File "/usr/sbin/firewalld", line 29, in <module>
    import dbus
ModuleNotFoundError: No module named 'dbus'

What you expected to happen

to just work

How to reproduce it (as minimally and precisely as possible)

  • setup minimal install of EL9
  • dnf install podman
  • systemctl stop firewalld
  • podman run -d --network host --privileged --name my-firewalld quay.io/firewalld/firewalld

Anything else we need to know?

No response

Firewalld Version

No response

Firewalld Backend

No response

Linux distribution

PRETTY_NAME="Red Hat Enterprise Linux 9.2 (Plow)"

Linux kernel version

5.14.0-284.11.1.el9_2.x86_64

Other information

No response

@mailinglists35 mailinglists35 added the triage Issue needs triaged. label Oct 20, 2023
@mailinglists35
Copy link
Author

solved by mount the container and chroot into it, then dnf install python3-dbus

@mailinglists35
Copy link
Author

side question, is this because of containerization?

[root@el9 ~]# podman exec -it my-firewalld nft list ruleset > container
[root@el9 ~]# nft list ruleset > host
[root@el9 ~]# file host container
host: ASCII text
container: ASCII text, with CRLF line terminators

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issue needs triaged.
Projects
None yet
Development

No branches or pull requests

1 participant