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

install opensuse rpm failed #1169

Closed
3 tasks done
aspfate opened this issue Apr 1, 2024 · 2 comments · Fixed by #1170
Closed
3 tasks done

install opensuse rpm failed #1169

aspfate opened this issue Apr 1, 2024 · 2 comments · Fixed by #1170
Assignees
Labels
confirmed Bug is confirmed
Milestone

Comments

@aspfate
Copy link
Contributor

aspfate commented Apr 1, 2024

Steps to reproduce

wget https://github.com/warewulf/warewulf/releases/download/v4.5.0/warewulf-4.5.0-1.suse.lp155.x86_64.rpm -O /tmp/warewulf.rpm && rpm -i --nodeps /tmp/warewulf.rpm

Error message

2fc55eb71c9f:/ # rpm -i --nodeps /tmp/warewulf.rpm
/var/tmp/rpm-tmp.fRKUdj: line 3: yq: command not found
error: %prein(warewulf-4.5.0-1.suse.lp155.x86_64) scriptlet failed, exit status 127
error: warewulf-4.5.0-1.suse.lp155.x86_64: install failed


2fc55eb71c9f:/tmp # rpm -qp --scripts warewulf.rpm | head -n 9
preinstall scriptlet (using /bin/sh):
getent group warewulf >/dev/null || groupadd -r warewulf
# use ipxe images from the distribution
yq e '
  .tftp.ipxe."00:00" = "undionly.kpxe" |
  .tftp.ipxe."00:07" = "ipxe-x86_64.efi" |
  .tftp.ipxe."00:09" = "ipxe-x86_64.efi" |
  .tftp.ipxe."00:0B" = "snp-arm64.efi" ' \
  -i /builddir/build/BUILDROOT/warewulf-4.5.0-1.suse.lp155.x86_64/etc/warewulf/warewulf.conf
  1. yq is not in dep list
2fc55eb71c9f:/tmp # rpm -i warewulf.rpm 
error: Failed dependencies:
        dhcp-server is needed by warewulf-4.5.0-1.suse.lp155.x86_64
        firewalld is needed by warewulf-4.5.0-1.suse.lp155.x86_64
        ipxe-bootimgs is needed by warewulf-4.5.0-1.suse.lp155.x86_64
        nfs-kernel-server is needed by warewulf-4.5.0-1.suse.lp155.x86_64
        tftp is needed by warewulf-4.5.0-1.suse.lp155.x86_64
  1. /builddir/build/BUILDROOT/warewulf-4.5.0-1.suse.lp155.x86_64/etc/warewulf/warewulf.conf is build stage path

Information on your system

2fc55eb71c9f:/tmp # cat /etc/os-release
NAME="openSUSE Leap"
VERSION="15.5"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.5"
PRETTY_NAME="openSUSE Leap 15.5"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.5"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Leap"
LOGO="distributor-logo-Leap"

General information

  • I have run wwctl version and reported the contents of /etc/os-release
  • I have searched the issues of this repo and believe this is not a duplicate
  • I have captured and reported relevant error messages and logs
@aspfate aspfate added the bug label Apr 1, 2024
@anderbubble anderbubble added this to the v4.5.1 milestone Apr 2, 2024
@anderbubble
Copy link
Collaborator

@mslacken can you confirm?

@mslacken mslacken added the confirmed Bug is confirmed label Apr 2, 2024
@mslacken
Copy link
Member

mslacken commented Apr 2, 2024

I can confirm this bug.

There are two solutions for this issue:

  1. For openSUSE based distributions I generally advise to use the warewulf4 package from the distribution itself. Backports and up to date versions are also provided in the cluster:network project.
    With following steps you can install warewulf4 from this project
zypper ar https://download.opensuse.org/repositories/network:/cluster/15.5/network:cluster.repo
zypper ref
zypper in warewulf4
  1. Download the package via curl/wget. Install it with zypper in yq warewulf-4.5.0-1.suse.lp155.x86_64.rpm which will install all the dependencies, but will fail to install the package itself. After that you can install the package with rpm -i --noscripts warewulf-4.5.0-1.suse.lp155.x86_64.rpm. Now you will have to replace the ipxe binary paths in warewulf.conf with
yq e '
  .tftp.ipxe."00:00" = "undionly.kpxe" |
  .tftp.ipxe."00:07" = "ipxe-x86_64.efi" |
  .tftp.ipxe."00:09" = "ipxe-x86_64.efi" |
  .tftp.ipxe."00:0B" = "snp-arm64.efi" ' -i /etc/warewulf/warewulf.conf

@anderbubble anderbubble changed the title install opensuse rpm faild install opensuse rpm failed Apr 4, 2024
@anderbubble anderbubble modified the milestones: v4.5.1, v4.6.0 Apr 4, 2024
@anderbubble anderbubble modified the milestones: v4.6.0, v4.5.1 Apr 6, 2024
@anderbubble anderbubble added backported:4.5.x backported to 4.5.x and removed backported:4.5.x backported to 4.5.x labels Apr 17, 2024
@anderbubble anderbubble removed the bug label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed Bug is confirmed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants