Actions
Bug #188
closedinstallation in rednodes using redwrap-dnf (or redmicrodnf in nodes) seems broken in redpak 2.4
Start date:
12/20/2024
Due date:
% Done:
0%
Estimated time:
Hardware platform:
Other
OS Affects Version/s:
OS Fix Version/s:
Labels:
Description
As says the title, previous use of "redwrap-dnf install ..." looks broken.
After investigation, the issue may come from:
- a change in the order of mounting given to bwrap
- a missconfiguration of "var/lib/rpm" mounting that are not writable
- a bug in the redmicrodnf plugin leading to a sigsegv in libsolv
Updated by tlorand2 tlorand2 27 days ago · Edited
Expected behaviour:
- Creation of one root node (from template full-normal and admin) and one child node (from template leaf-normal and admin) of this root node
- copy RPM in etc/yum.repos.d of child node
- install it with redwrap-dnf --redpath /path/to/child/node --admin install /path/to/RPM => the RPM is correctly installed inside rednode
Actual behaviour:
- The command redwrap-dnf doesn't execute anything and doesn't return anything (no error) => the RPM is not installed
Workaround:
- The command redmicrodnf can be used to install the RPM but launched outside the node => from the host launch redmicrodnf --redpath /path/to/child/node install /path/to/RPM
Investigation:
- Launch bash inside child node : redwrap --redpath /path/to/child/node --admin -- bash
- Launch redmicrodnf command inside rednode : redmicrodnf --redpath /path/to/child/node install /path/to/RPM
- redmicrodnf return 'Aborted (core dumped)' => might be the error encountered with redwrap-dnf but not displayed
Updated by José Bollo 26 days ago
Reproducing steps:
ulimit -c unlimited
redconf create -f /tmp/redroot
redconf create -l /tmp/redroot/leaf
find /tmp/redroot
redwrap -a -r /tmp/redroot/leaf -- bash
cp socat-1.7.4.1-5.apps.rpbatz_1.2.aarch64.rpm /tmp/redroot/leaf/etc/yum.repos.d/
redwrap-dnf -a -r /tmp/redroot/leaf install /tmp/redroot/leaf/etc/yum.repos.d/socat-1.7.4.1-5.apps.rpbatz_1.2.aarch64.rpm
Updated by José Bollo 26 days ago
The issue was coming from configuration files that mounted /var/lib/rpm and
The commit https://github.com/redpesk-labs/red-pak/commit/eef436d25d61ce285ed8cde4b89a4b44ed93e587 changed the mounts to be writable in administrative mode.
Available in 2.4.3
Updated by José Bollo 26 days ago
- Related to Bug #198: redwrap-dnf segfaults when /var/lib/rpm doesn't exist and/or is read-only added
Updated by José Bollo 26 days ago
- Related to Bug #191: improve redmicrodnf plugin for rpm directories added
Actions