Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-58829

RHEL-10: [Regression] Cannot install system using DVD on USB when ignoredisk is specified in kickstart

    • sst_installer
    • ssg_front_door
    • 18
    • 1
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • None
    • None
    • Known Issue
    • Hide
      .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.
      Show
      .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.
    • Proposed
    • None

      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

            ppolawsk Paweł Poławski
            rhn-support-rmetrich Renaud Métrich
            anaconda-maint-list anaconda-maint-list
            Release Test Team Release Test Team
            Sagar Dubewar Sagar Dubewar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: