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?
Issue
-
Image Builder fails when oscap customization are added along with
distrofield for value of<= 8.6forRHEL 8and9.0forRHEL 9respectively.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.6orRHEL 9.0is 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.