Bug 1914955 - [Regression] Cannot install system using DVD on USB when ignoredisk is specified in kickstart
Summary: [Regression] Cannot install system using DVD on USB when ignoredisk is specif...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: anaconda
Version: 8.3
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: 8.0
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
Alexandra Nikandrova
URL:
Whiteboard:
: 1920574 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-11 15:05 UTC by Renaud Métrich
Modified: 2021-09-06 16:30 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
.The USB CD-ROM drive is not available as an installation source in Anaconda Installation fails when the USB CD-ROM drive is the source for it and the Kickstart `ignoredisk --only-use=` command is specified. In this case, Anaconda cannot find and use this source disk. To work around this problem, use the `harddrive --partition=sdX --dir=/` command to install from USB CD-ROM drive. As a result, the installation does not fail.
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)
Logs of rh82 installation (success) and rh83 installation (failure) + kickstart (1.88 MB, application/x-tar)
2021-01-11 15:05 UTC, Renaud Métrich
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5783271 0 None None None 2021-02-08 08:07:24 UTC

Description Renaud Métrich 2021-01-11 15:05:44 UTC
Created attachment 1746296 [details]
Logs of rh82 installation (success) and rh83 installation (failure) + kickstart

Description of problem:

This is a regression compared to RHEL8.2 DVD.
When installing a system using the RHEL8.3 DVD connected to a USB port and a kickstart specifies "ignoredisk --only-use=sda" (where "sda" is the hard disk), the following error is seen and unattended installation is aborted:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
anaconda.log:14:30:23,312 WRN kickstart: Command cdrom will be parsed in DBus module.
[...]
anaconda.log:14:30:32,091 ERR payload.manager: PayloadError: Found no CD-ROM
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

This seems due to having the DVD seen as "/dev/sdX" (e.g. /dev/sdb) hence being ignored/blacklisted.

The issue doesn't happen with RHEL8.2. With RHEL8.2, the anaconda.log message about "cdrom" stanza is not present, there is this instead:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
anaconda.log:14:52:04,797 DBG payload: Setting up cdrom install device
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

Version-Release number of selected component (if applicable):

anaconda-33.16.3.26-1.el8


How reproducible:

ALWAYS

Steps to Reproduce:
1. Configure a VM to present the DVD as a USB CDROM

-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='[...]/rhel-8.3-x86_64-dvd.iso'/>
      <target dev='sdd' bus='usb'/>
      <readonly/>
      <boot order='1'/>
      <address type='usb' bus='0' port='4'/>
    </disk>
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

2. Boot on the DVD and load the kickstart in attachment (ks.cfg in logs archive)

ks.cfg excerpt:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
ignoredisk --only-use=sda
clearpart --initlabel --drives=sda
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------


Actual results:

Unattended installation doesn't happen


Expected results:

Unattended installation happens

Comment 2 Jan Stodola 2021-01-19 12:52:28 UTC
As a workaround you can comment out the "cdrom" kickstart command and use the "harddrive" command instead:

harddrive --partition=sdX --dir=/

(change sdX to the name of the USB device, for example sdb).

Can you please confirm this workaround works for you?

Comment 3 Renaud Métrich 2021-01-19 13:27:55 UTC
Perfect, that works!

Comment 8 Jan Stodola 2021-01-26 19:18:36 UTC
*** Bug 1920574 has been marked as a duplicate of this bug. ***


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