Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1913962
Summary: | "dnf needs-restarting -r" work incorrectly inside systemd-nspawn containers | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Gena Makhomed <gmm> |
Component: | dnf-plugins-core | Assignee: | Nobody <nobody> |
Status: | VERIFIED --- | QA Contact: | Jan Blazek <jblazek> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 8.3 | CC: | gmm, james.antill |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | dnf-plugins-core-4.0.21-1.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | Type: | Bug | |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1951414 | ||
Bug Blocks: |
Description
Gena Makhomed
2021-01-07 21:06:02 UTC
Hello, thanks for the detailed explanation and solution proposed. I am trying to reproduce the bug, but I am getting an error $ machinectl start test Job for systemd-nspawn failed because the control process exited with error code. See "systemctl status systemd-nspawn" and "journalctl -xe" for details. The error is related to SELinux policies, so I have to set SELinux Permissive to get through this error. Then, the bug seems reproducible. Do you have any specific SELinux configuration? I would like to reproduce it with your configuration if possible. Thank you (In reply to nsella from comment #1) > I am trying to reproduce the bug, but I am getting an error > > $ machinectl start test > Job for systemd-nspawn failed because the control process > exited with error code. > See "systemctl status systemd-nspawn" and "journalctl -xe" for > details. > > The error is related to SELinux policies, so I have to set SELinux > Permissive to get through this error. Then, the bug seems reproducible. > Do you have any specific SELinux configuration? I would like to reproduce it > with your configuration if possible. Yes, sorry, I forgot to write about SELinux. I reproduce this bug with SELinux disabled: 1. Install RHEL 8.3 / CentOS 8.3 on host, install systemd-container package on host: dnf install systemd-container 1.1. disable SELinux in /etc/selinux/config, write SELINUX=disabled 1.2. reboot 2. Install RHEL 8.3 / CentOS 8.3 inside systemd-nspawn container: dnf --installroot=/var/lib/machines/test --releasever=8 install dnf python3-dnf-plugins-core systemd ... I added a PR with your patch https://github.com/rpm-software-management/dnf-plugins-core/pull/422 |