RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1567151 - [RFE] Addon cannot load profile from kickstart when shortened form is used
Summary: [RFE] Addon cannot load profile from kickstart when shortened form is used
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: oscap-anaconda-addon
Version: 7.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Matěj Týč
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-13 13:44 UTC by Watson Yuuma Sato
Modified: 2019-02-26 17:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-26 17:13:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Watson Yuuma Sato 2018-04-13 13:44:14 UTC
Description of problem:

oscap-anaconda-addon cannot load profile from kickstart file when profile ID is short, e.g "ospp-rhel7".


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Use kickstart file for ospp-rhel7 to install machine
2. Addon cannot load ospp-rhel7 profile with error 
3.

Actual results:
Spoke in anaconda install shows error message:
"Error fetching and loading content"

And oscap-anaconda-addon plugin shows error message:
"Profile with ID 'ospp-rhel7' not defined in the content. Select a different profile, please"

Expected results:
Profile defined in kickstart is loaded.

Additional info:
Using full ID in kickstart file works.

Comment 2 Marek Haicman 2018-04-16 14:41:32 UTC
This is not a bug, as datastream profile is in the form 

xccdf_org.ssgproject.content_profile_stig-rhel7-disa

thus requiring full name is expected. Will track it further as a new feature.

Comment 4 Gabriel Gaspar Becker 2019-02-19 14:09:41 UTC
Additional info:

Kickstarts provided in scap-security-guide package for RHEL7 contains short version of profile name. (e.g. ospp or pci-dss)

--------------------------------------------------
$rpm -qa scap-security-guide
scap-security-guide-0.1.40-12.el7.noarch

$cat /usr/share/scap-security-guide/kickstart/ssg-rhel7-ospp-ks.cfg | grep "profile ="
        profile = ospp
--------------------------------------------------

That means OSCAP Anaconda Addon will not be able to use provided kickstart during graphical installation leading to error.

Oddly thing is if you install using Anaconda in text mode, no error will be raised because OSCAP Anaconda Addon does not provide text spokes, so profile will not be evaluated during RHEL installation, only
during %post section, where oscap (OpenSCAP) takes place and it is capable of handling short version of the profile name.

Short term solution would be to patch provided kickstart files to include full profile name.

Comment 5 Marek Haicman 2019-02-26 17:13:37 UTC
This issue was not selected to be included in Red Hat Enterprise Linux 7.7 because it is seen either as low or moderate impact to a small number of use-cases. The next release will be in Maintenance Support 1 Phase, which means that qualified Critical and Important Security errata advisories (RHSAs) and Urgent Priority Bug Fix errata advisories (RHBAs) may be released as they become available. We will now close this issue, but if you believe that it qualifies for the Maintenance Support 1 Phase, please re-open; otherwise, we recommend moving the request to Red Hat Enterprise Linux 8 if applicable.


Note You need to log in before you can comment on or make changes to this bug.