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 2177324

Summary: Update rust-coreos-installer to latest upstream version 0.17.0
Product: Red Hat Enterprise Linux 9 Reporter: Benjamin Gilbert <bgilbert>
Component: rust-coreos-installerAssignee: Benjamin Gilbert <bgilbert>
Status: CLOSED ERRATA QA Contact: HuijingHei <hhei>
Severity: medium Docs Contact:
Priority: high    
Version: 9.2CC: amurdaca, hhei, jwboyer, mnguyen, perobins, pvlasin, travier
Target Milestone: betaKeywords: Rebase, Triaged
Target Release: 9.2Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rust-coreos-installer-0.17.0-1.el9_2 Doc Type: Rebase: Bug Fixes and Enhancements
Doc Text:
Rebase package(s) to version: 0.17.0 Highlights, important fixes, or notable enhancements: - Support Ignition config spec 3.4.0 in `iso customize` and `pxe customize` - Support ISO Ignition embedding on s390x architecture - Avoid disabling ISO autologin in `iso customize` when only changing live kernel arguments - Avoid network fetch timeout when low-level formatting ECKD DASD
Story Points: ---
Clone Of:
: 2179028 (view as bug list) Environment:
Last Closed: 2023-05-09 07:46:33 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:
Bug Depends On:    
Bug Blocks: 2179028    
Deadline: 2023-03-14   

Comment 10 HuijingHei 2023-03-17 07:22:27 UTC
Pre-verify passed.

[root@localhost ~]# rpm -q coreos-installer
coreos-installer-0.17.0-1.el9_2.x86_64
[root@localhost ~]# lsblk
NAME  MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0   7:0    0   1.9G  0 loop /var
                                /etc
                                /run/ephemeral
loop1   7:1    0 936.6M  0 loop /usr
                                /boot
                                /
                                /sysroot
vda   252:0    0    16G  0 disk 

[root@localhost ~]# coreos-installer install /dev/vda \
--insecure-ignition \
--ignition-url http://192.168.100.1:8088/login.ign
Installing CentOS Stream CoreOS 413.92.202303170213-0 (Plow) x86_64 (512-byte sectors)
> Read disk 3.5 GiB/3.5 GiB (100%)    
Writing Ignition config
Install complete.

[root@localhost ~]# reboot
...
Red Hat Enterprise Linux CoreOS 413.92.202303170213-0
  Part of OpenShift 4.13, RHCOS is a Kubernetes native operating system
  managed by the Machine Config Operator (`clusteroperator/machine-config`).

WARNING: Direct SSH access to machines is not recommended; instead,
make configuration changes via `machineconfig` objects:
  https://docs.openshift.com/container-platform/4.13/architecture/architecture-rhcos.html

---
[core@localhost ~]$ rpm-ostree status
State: idle
Deployments:
● e30ad7664fdb1073d70ba1b27aa32832e80f9b12bf54fcc0d3baac847f3623be
                  Version: 413.92.202303170213-0 (2023-03-17T02:16:43Z)

Comment 11 HuijingHei 2023-03-17 07:59:48 UTC
Change status to MODIFIED as errata requires.

Comment 17 HuijingHei 2023-03-22 08:55:30 UTC
Thanks Benjamin for the confirmation.

Verify passed with coreos-installer-0.17.0-1.el9_2.x86_64 on RHEL 9.2.

Steps:
1) Start rhel9.2 VM and attach an empty disk
$ qemu-img create -f qcow2 test.qcow2 16G

$ virt-install --import --name rhel9 --ram 2048 --disk path=/home/fedora/data/rhel-guest-image-9.2-20230322.14.x86_64.qcow2,format=raw --disk path=/home/fedora/data/test.qcow2 --disk /home/fedora/data/cloudinitiso/ciiso.iso,device=cdrom --os-variant rhel9-unknown --graphics none --network bridge=virbr0 


2) Install coreos-installer
[root@citest-1 ~]# dnf install -y coreos-installer coreos-installer-bootinfra
[root@citest-1 ~]# rpm -qa | grep coreos-installer
coreos-installer-0.17.0-1.el9_2.x86_64
coreos-installer-bootinfra-0.17.0-1.el9_2.x86_64

[root@citest-1 ~]# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sr0     11:0    1  366K  0 rom  
vda    252:0    0   10G  0 disk 
├─vda1 252:1    0    1M  0 part 
├─vda2 252:2    0  200M  0 part /boot/efi
├─vda3 252:3    0  500M  0 part /boot
└─vda4 252:4    0  9.3G  0 part /
vdb    252:16   0   16G  0 disk

3) Install OS on the empty disk
[root@citest-1 ~]# coreos-installer install /dev/vdb \
--insecure-ignition \
--ignition-url http://192.168.122.1:8088/login.ign \
--insecure \
--image-url https://xxxx/rhcos-413.92.202303212039-0-metal.x86_64.raw.gz \
--console tty0 \
--console ttyS0,115200n8


4) Finally boot the installed disk
$ virt-install --import --name rhcos --ram 2048 --disk path=/home/fedora/data/test.qcow2 --check all=off --os-variant rhel9-unknown --graphics none --network bridge=virbr0

Red Hat Enterprise Linux CoreOS 413.92.202303212039-0
...
[core@localhost ~]$ rpm-ostree status
State: idle
Deployments:
● 1b59ead4b1904003e42bc98d8982fceafa8f7999069354ce14a269ef1e0675ec
                  Version: 413.92.202303212039-0 (2023-03-21T20:42:20Z)

Comment 19 errata-xmlrpc 2023-05-09 07:46:33 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 (rust-coreos-installer bug fix and enhancement update), 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/RHEA-2023:2329