Project

General

Profile

Actions

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.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
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

Related issues 2 (1 open1 closed)

Related to Bug #198: redwrap-dnf segfaults when /var/lib/rpm doesn't exist and/or is read-onlyNewStephane Desneux [IoT.bzh]01/28/2025

Actions
Related to Bug #191: improve redmicrodnf plugin for rpm directoriesClosedJosé Bollo12/20/2024

Actions
Actions #1

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
Actions #2

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
Actions #3

Updated by José Bollo 26 days ago

The issue was coming from configuration files that mounted /var/lib/rpm and /var/lib/rpm as read only.

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

Actions #4

Updated by José Bollo 26 days ago

  • Status changed from New to In Progress
Actions #5

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
Actions #6

Updated by José Bollo 26 days ago

  • Related to Bug #191: improve redmicrodnf plugin for rpm directories added
Actions #7

Updated by José Bollo 18 days ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF