Bug 2208340 - rhsm kickstart command does not work with livemedia-creator
Summary: rhsm kickstart command does not work with livemedia-creator
Keywords:
Status: POST
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: lorax
Version: 9.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Brian Lane
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-18 16:06 UTC by Brian Lane
Modified: 2023-07-13 07:33 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-157660 0 None None None 2023-05-18 16:06:59 UTC
Red Hat Issue Tracker RTT-5330 0 None None None 2023-05-19 08:43:59 UTC
Red Hat Issue Tracker RTT-5331 0 None None None 2023-05-19 08:44:04 UTC

Description Brian Lane 2023-05-18 16:06:26 UTC
Description of problem:
When using the rhsm kickstart command with livemedia-creator on RHEL the installation is terminated before it installs the packages.

The problem is that Anaconda tries to mount the repositories from the cdrom/dvd before trying the CDN specified by the rhsm command. livemedia-creator sees the error and assumes the installation has failed so it kills the VM before Anaconda has fallen back to the CDN source.

Version-Release number of selected component (if applicable):
lorax-34.9.23-1
anaconda-38.23.4-2

How reproducible:
Always

Steps to Reproduce:
1. Make a kickstart using rhsm for the content
2. Run livemedia-creator with the kickstart
3. Observe that the installation fails after an error

    18:10:59,811 ERR anaconda:packaging: base repo (CDROM/file:///run/install/sources/mount-0000-cdrom) not valid -- removing it

Upstream patch for lorax to work around this:
https://github.com/weldr/lorax/pull/1325

(Anaconda should probably also be changed to more intelligently select the base repo when using kickstart and rhsm but this should work around it for now).


Note You need to log in before you can comment on or make changes to this bug.