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

[RHEL-9] Kickstart fails with "Tried to use undefined partition "pv.01" in Volume Group specification" when defining pv.01 as a Raid with device pattern "md_*"

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-9.7
    • rhel-9.5
    • pykickstart
    • None
    • pykickstart-3.32.15-1.el9
    • No
    • Low
    • image-builder-1
    • 12
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • None
    • Proposed Blocker
    • Unspecified Release Note Type - Unknown
    • None

      What were you trying to do that didn't work?

      When confirming a PV on a RAID device and specifying --device=md_something as its name, the installation fails after printing the following message:

      Tried to use undefined partition "pv.01" in Volume Group specification
      

      Apparently having a device name starting with "md_" fails, but only when creating a PV (creating a mount point works).
      There is no obvious error message in the Anaconda logs, making it difficult to understand the reason for failure.

      What is the impact of this issue to you?

      Cannot install the system automatically

      Please provide the package NVR for which the bug is seen:

      RHEL9.4 and RHEL9.5 installers at least

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Configure a VM with 2 disks that will be in Software RAID
      2. Install with a kickstart containing the following excerpt
        clearpart --all --initlabel
        
        part raid.01    --fstype="mdmember" --size=1024 --ondisk="/dev/vda"
        part raid.02    --fstype="mdmember" --size=1024 --ondisk="/dev/vdb"
        raid /boot      --level=1 --device=boot --label=boot --fstype="xfs" raid.01 raid.02
        
        part raid.03    --fstype="mdmember" --size=512 --ondisk="/dev/vda"
        part raid.04    --fstype="mdmember" --size=512 --ondisk="/dev/vdb"
        raid /boot/efi  --level=1 --device=efiboot --label=efiboot --fstype="efi" raid.03 raid.04
        
        part raid.05    --fstype="mdmember" --size=1 --ondisk="/dev/vda" --grow
        part raid.06    --fstype="mdmember" --size=1 --ondisk="/dev/vdb" --grow
        raid pv.01      --level=1 --device=md_os_pv raid.05 raid.06
        

      Here above md_os_pv was used, causing the issue.

      Expected results

      No error or human-friendly error message explaining what is the issue.

      Actual results

      .Failed to save storage configuration
      ..The following problem occurred on line 11 of the kickstart file:
      
      Tried to use undefined partition "pv.01" in Volume Group specification
      

        1. lvm_on_raid1.ks
          0.4 kB
        2. program.log
          5 kB
        3. anaconda.log
          18 kB
        4. storage.log
          151 kB
        5. lvm.log
          60 kB
        6. syslog
          597 kB

              brlane@redhat.com Brian Lane
              rhn-support-rmetrich Renaud Métrich
              Brian Lane Brian Lane
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: