Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1750807

Summary: Fedora/RHEL/CentOS JeOS kickstart files for unattended installation are broken
Product: Red Hat Enterprise Linux 7 Reporter: Katerina Koukiou <kkoukiou>
Component: osinfo-dbAssignee: Fabiano FidĂȘncio <fidencio>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.8CC: tpelka, vbudikov
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: osinfo-db-20190805-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1750788 Environment:
Last Closed: 2020-03-31 19:39:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Anaconda none

Description Katerina Koukiou 2019-09-10 13:56:43 UTC
Created attachment 1613602 [details]
Anaconda

Description of problem:
When trying to install a Fedora/RHEL/CentOS Server with unattended mode the installation fails because of broken kickstart files.

Steps to Reproduce:
1. virt-install --name centos-7-unattended --install centos7.0 --unattended admin-password-file=/tmp/root_password.txt,user-password-file=/tmp/user_password.txt,profile=jeo

Actual results:
Installation fails because of kickstart files validation. See screenshot in attachments.

Additional info:
Patch submitted upstream, just need to be backported.
https://gitlab.com/libosinfo/osinfo-db/merge_requests/33

Note: I noticed this regression when implementing this feature for Cockpit Virtual Machines so this regression is going to affect Cockpit as well.

Comment 2 Fabiano FidĂȘncio 2019-09-11 16:56:12 UTC
(In reply to Katerina Koukiou from comment #0)
> 1. virt-install --name centos-7-unattended --install centos7.0 --unattended
> admin-password-file=/tmp/root_password.txt,user-password-file=/tmp/
> user_password.txt,profile=jeo

The command line is missing one single letter, it should be:
virt-install --name centos-7-unattended --install centos7.0 --unattended admin-password-file=/tmp/root_password.txt,user-password-file=/tmp/user_password.txt,profile=jeos

Comment 5 Pavlin Georgiev 2019-09-23 10:25:50 UTC
PREPARATION
yum install -y\
  virt-install\
  pykickstart\
  kvm*


TEST SETUP 
Distro: RHEL-7.8-20190905.0 Server x86_64
Component version: osinfo-db-20190805-1.el7


TEST PROCEDURE
1. Issue command:
    osinfo-install-script rhel7.8 --profile=jeos
2. Issue command:
    ksvalidator -v RHEL7 rhel.ks
    The following problem occurred on line 32 of the kickstart file:

    Section %packages does not end with %end.

    
RESULT
The bug has been reproduced.

Comment 6 Pavlin Georgiev 2019-09-23 10:27:36 UTC
TEST PROCEDURE 2
1. Issue command:
    osinfo-install-script rhel7.8 --profile=jeos
2. Issue command:
    ksvalidator -v RHEL7 rhel.ks
    (No output)

    
RESULT 2
The bug does NOT appear.

Comment 7 Pavlin Georgiev 2019-09-23 10:28:13 UTC
OUTCOME
Upgrading component: osinfo-db
    from: 20190805-1.el7
      to: 20190805-2.el7
has fixed the bug.

Comment 9 errata-xmlrpc 2020-03-31 19:39:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1021