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

all lvm builds fail

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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • rhel-9.6
    • None
    • No
    • Critical
    • 1
    • image-builder-2
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Image Builder 1
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Below is the simple toml blueprint:

       

      name = "BNY"
      description = "BNY RHEL Image Mode"
      version = "1.0.2"
      distro = "rhel-9.5"
      [customizations.disk]
      resize = true
      filesystem = "xfs"
      [[customizations.disk.partitions]]
      type = "plain"
      label = "boot"
      mountpoint = "/boot"
      minsize = "1 GiB"
      fs_type = "xfs"
      [[customizations.disk.partitions]]
      type = "lvm"
      name = "vgsys"
      minsize = "10 GiB"
      [[customizations.disk.partitions.logical_volumes]]
      name = "root"
      mountpoint = "/"
      label = "root"
      fs_type = "xfs"
      minsize = "4 GiB"
      

       

       

      Customer is getting below error:

       podman run --rm -it --privileged -v /var/lib/containers/storage:/var/lib/containers/storage -v ./output:/output -v $(pwd)/config.toml:/config.toml:ro --security-opt label=type:unconfined_t --authfile ~/auth-file --pull newer registry.redhat.io/rhel9/bootc-image-builder:9.5 --local --type vmdk --config /config.toml localhost/rhel-bootc-vmdk:latest
      Generating manifest manifest-vmdk.json
      DONE
      Building manifest-vmdk.json
      <stdin> has errors:
      .pipelines[1].stages[2]:
        could not find schema information for 'org.osbuild.lvm2.create'
      .pipelines[1].stages[5].devices.device:
        could not find schema information for 'org.osbuild.lvm2.lv'
      .pipelines[1].stages[6].devices.root:
        could not find schema information for 'org.osbuild.lvm2.lv'
      .pipelines[1].stages[7]:
        could not find schema information for 'org.osbuild.lvm2.metadata'
      .pipelines[1].stages[8].devices.root:
        could not find schema information for 'org.osbuild.lvm2.lv'
      2025/04/22 18:05:13 error: cannot run osbuild: running osbuild failed: exit status 2
      

       

      The root cause is that we don't install osbuild-lvm2 inside the bib container in RHEL, see https://gitlab.com/redhat/rhel/bifrost/bootc-image-builder/-/blob/rhel-9.6/Containerfile?ref_type=heads#L27

       

              rh-ee-mvogt Michael Vogt
              obudai@redhat.com Ondrej Budai
              Osbuilders Bot Account Osbuilders Bot Account
              Release Test Team Release Test Team
              Vidya Iyengar Vidya Iyengar
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: