Why does Imagebuilder fails with error "ManifestCreationFailed: failed to create osbuild manifest: OpenSCAP unsupported os version: 8.6/9.0 when adding openscap customization to the blueprint?

Solution Verified - Updated -

Issue

  • Image Builder fails when oscap customization are added along with distro field for value of <= 8.6 for RHEL 8 and 9.0 for RHEL 9 respectively.

    name = "rhel-86-base"
    description = "RHEL 8.6 image"
    version = "0.0.1"
    modules = []
    groups = []
    distro = "rhel-86"
    
    [customizations.openscap]
    datastream = "/usr/share/xml/scap/ssg/content/ssg-rhel8-ds-1.2.xml"
    profile_id = "xccdf_org.ssgproject.content_profile_cis"
    
  • Below RHEL 9 blueprint fails.

    name = "test-blueprint"
    description = "RHEL 9.0"
    version = "0.0.1"
    modules = []
    groups = []
    distro = "rhel-90"
    
    [customizations.openscap]
    datastream = "/usr/share/xml/scap/ssg/content/ssg-rhel9-ds.xml"
    profile_id = "xccdf_org.ssgproject.content_profile_cis"
    
  • The error indicates that the oscap version RHEL <= 8.6 or RHEL 9.0 is unsupported.

    On RHEL 8.6
    # composer-cli compose start rhel-8.6-base qcow2 
    ERROR: ManifestCreationFailed: failed to create osbuild manifest: OpenSCAP unsupported os version: 8.6
    
    ON RHEL 9.0
    # composer-cli compose start test-blueprint qcow2
    ERROR: ManifestCreationFailed: failed to initialize osbuild manifest: OpenSCAP unsupported os version: 9.0
    

Environment

  • Red Hat Enterprise Linux <= 8.6
  • Red Hat Enterprise Linux 9.0
  • osbuild-composer

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content