Bug #188
closed
installation in rednodes using redwrap-dnf (or redmicrodnf in nodes) seems broken in redpak 2.4
Added by José Bollo 2 months ago.
Updated 18 days ago.
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
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
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
- Status changed from New to In Progress
- Related to Bug #198: redwrap-dnf segfaults when /var/lib/rpm doesn't exist and/or is read-only added
- Related to Bug #191: improve redmicrodnf plugin for rpm directories added
- Status changed from In Progress to Resolved
Also available in: Atom
PDF