Bug 2179028

Summary: Update rust-coreos-installer to latest upstream version 0.17.0 [rhel-9.3.0]
Product: Red Hat Enterprise Linux 9 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: rust-coreos-installerAssignee: RHCOS SST <rhcos-sst>
Status: CLOSED ERRATA QA Contact: HuijingHei <hhei>
Severity: medium Docs Contact:
Priority: high    
Version: 9.2CC: amurdaca, hhei, jwboyer, mnguyen, perobins, travier
Target Milestone: rcKeywords: Rebase, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rust-coreos-installer-0.17.0-1.el9 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: 2177324 Environment:
Last Closed: 2023-11-07 08:37:41 UTC Type: ---
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: 2177324    
Bug Blocks:    

Comment 4 HuijingHei 2023-03-17 10:10:03 UTC
Start rhel9.3 image, install coreos-installer-0.17.0-1.el9.x86_64, using coreos-installer to install on another disk, by default it will install Fedora CoreOS stable image, finally can boot the installed disk.

Steps:
1) Start rhel9.3 VM with empty disk
$ qemu-img create -f qcow2 test.qcow2 10G

$ virt-install --import --name rhel9 --ram 2048 --disk path=/home/fedora/data/rhel-guest-image-9.3-20230317.27.x86_64.qcow2,format=raw --disk path=/home/fedora/data/test.qcow2 --os-variant rhel9-unknown --graphics none --network bridge=virbr0 


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

[root@localhost ~]# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
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   10G  0 disk


3) By default it will install Fedora CoreOS stable image on the empty disk
[root@localhost ~]# coreos-installer install /dev/vdb \
--insecure-ignition \
--ignition-url http://192.168.122.1:8088/login.ign \
--console tty0 \
--console ttyS0,115200n8
Downloading Fedora CoreOS stable x86_64 metal image (raw.xz) and signature
> Read disk 628.7 MiB/628.7 MiB (100%)   
gpg: Signature made Mon Mar  6 16:56:30 2023 EST
gpg:                using RSA key ACB5EE4E831C74BB7C168D27F55AD3FB5323552A
gpg: Good signature from "Fedora (37) <fedora-37-primary>" [ultimate]
[  493.039296] GPT:Primary header thinks Alt. header is not at the end of the disk.
[  493.039299] GPT:4911103 != 20971519
[  493.039300] GPT:Alternate GPT header not at the end of the disk.
[  493.039301] GPT:4911103 != 20971519
[  493.039301] GPT: Use GNU Parted to correct GPT errors.
[  493.039307]  vdb: vdb1 vdb2 vdb3 vdb4
Writing Ignition config
[  493.393500] EXT4-fs (vdb3): mounted filesystem with ordered data mode. Quota mode: none.
[  493.448690] EXT4-fs (vdb3): unmounting filesystem.


Note: detected other devices with a filesystem labeled `boot`:
  - /dev/vda3
The installed OS may not work correctly if there are multiple boot filesystems.
Before rebooting, investigate whether these filesystems are needed and consider
wiping them with `wipefs -a`.

Install complete.


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

...
Fedora CoreOS 37.20230218.3.0
[core@localhost ~]$ rpm-ostree status
State: idle
AutomaticUpdatesDriver: Zincati
  DriverState: active; periodically polling for updates (last checked Fri 2023-03-17 09:55:55 UTC)
Deployments:
● fedora:fedora/x86_64/coreos/stable
                  Version: 37.20230218.3.0 (2023-03-06T20:02:24Z)
                   Commit: d34ff10be925c01aad7d088fa2dcc18aaa3e9d7ead12081a18fb6883a94385d7
             GPGSignature: Valid signature by ACB5EE4E831C74BB7C168D27F55AD3FB5323552A

Comment 5 HuijingHei 2023-03-17 10:14:28 UTC
> [root@localhost ~]# coreos-installer install /dev/vdb \
> --insecure-ignition \
> --ignition-url http://192.168.122.1:8088/login.ign \
> --console tty0 \
> --console ttyS0,115200n8
> Downloading Fedora CoreOS stable x86_64 metal image (raw.xz) and signature
...
> [  493.039296] GPT:Primary header thinks Alt. header is not at the end of the disk.
> [  493.039299] GPT:4911103 != 20971519

Just one minor question, when install Fedora CoreOS, get above logs, maybe it is harmless, but still want to confirm. Thanks!

Comment 6 Benjamin Gilbert 2023-03-17 10:15:41 UTC
Yes, those messages are normal and harmless.

Comment 7 HuijingHei 2023-04-03 05:26:06 UTC
(In reply to Benjamin Gilbert from comment #6)
> Yes, those messages are normal and harmless.

Thanks Benjamin for the confirmation. Change status to verified according to comment #4

Comment 13 errata-xmlrpc 2023-11-07 08:37:41 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/RHBA-2023:6579