Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2016004

Summary: [RFE] RHCOS: help determining whether a user-provided image was already booted (Ignition provisioning already performed)
Product: OpenShift Container Platform Reporter: Jonathan Lebon <jlebon>
Component: RHCOSAssignee: Jonathan Lebon <jlebon>
Status: CLOSED ERRATA QA Contact: HuijingHei <hhei>
Severity: low Docs Contact:
Priority: low    
Version: 4.6CC: aos-bugs, bfuru, cwawak, dornelas, hhei, jima, jlebon, jligon, lmurthy, lucab, mnguyen, mrussell, nstielau, sdudhgao
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
This enhancement adds information on the terminal console describing when the machine was provisioned via Ignition and whether a user Ignition config was provided. This allows users to verify that Ignition ran when they expected it to.
Story Points: ---
Clone Of: 1977949 Environment:
Last Closed: 2022-03-10 16:21:06 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: 2016008    
Bug Blocks: 1977949    

Comment 1 HuijingHei 2021-10-29 13:33:38 UTC
As the PR merged, pre-verify with rhcos-410.84.202110272040-0-qemu.x86_64.qcow2

1) Test with no config and reboot
Red Hat Enterprise Linux CoreOS 410.84.202110272040-0 (Ootpa) 4.10
Ignition: ran on 2021/10/29 08:24:29 UTC (at least 1 boot ago)
Ignition: no config provided by user
SSH host key: SHA256:arNM3nvmmg+KF3yeua1/N4A8zU7SQkVlAZKcKt/T45M (ED25519)
SSH host key: SHA256:Z86QviaA7aWbxA8aRLQfRu1XBjorXNznb4CZ4vxYNtQ (ECDSA)
SSH host key: SHA256:aXX8cFG3MQPk/XjWKbSgXMylF73qBzlm8wl5yujncuU (RSA)
ens2: 192.168.122.117 fe80::1d0a:b642:25c7:4cfe
localhost login:

2) Test with config and reboot
Red Hat Enterprise Linux CoreOS 410.84.202110272040-0 (Ootpa) 4.10
Ignition: ran on 2021/10/29 13:26:40 UTC (at least 1 boot ago)
Ignition: user-provided config was applied
SSH host key: SHA256:FEvnio3mKfJSHbsJjzExkirCxO0m0w3DR1R9O1e6+ik (ED25519)
SSH host key: SHA256:pa3GgzXScYfAtaFmL65am5gQC1bB3Qb5H+rLpQF0XGk (ECDSA)
SSH host key: SHA256:taaynDMDFOHjOZHm6ETt6APiSNM5N6aHlzc9iUzFtLM (RSA)
ens4: 10.0.2.15 fe80::17e2:f826:32c4:6e86
cosa-devsh login: core (automatic login)

@jlebon, is the result expected? Thanks!

Comment 2 Jonathan Lebon 2021-10-29 13:45:31 UTC
Yes, it looks good. Thanks Huijing!

Comment 3 HuijingHei 2021-10-29 14:07:17 UTC
Thanks Jonathan, change Verified status to tested

Comment 4 RHCOS Bug Bot 2021-11-15 03:33:58 UTC
This bug has been reported fixed in a new RHCOS build and is ready for QE verification.  To mark the bug verified, set the Verified field to Tested.  This bug will automatically move to MODIFIED once the fix has landed in a new bootimage.

Comment 5 RHCOS Bug Bot 2021-11-15 03:35:03 UTC
The fix for this bug has landed in a bootimage bump, as tracked in bug 2016008 (now in status ON_QA).  Moving this bug to MODIFIED.

Comment 7 HuijingHei 2021-11-15 13:20:18 UTC
Verify passed with RHCOS 410.84.202111111322-0 qcow2 image

1) Test with no config using libvirt
Red Hat Enterprise Linux CoreOS 410.84.202111111322-0 (Ootpa) 4.10
Ignition: ran on 2021/11/15 13:05:22 UTC (this boot)
Ignition: no config provided by user
SSH host key: SHA256:5jmMnBumWgRcujpYlI+QdYwDmHR3Fkzm5Hp8OpwCf8o (ED25519)
SSH host key: SHA256:96QuhwX//yfv6hzbfix1weDdevD0SNPFENzHb1OidRM (ECDSA)
SSH host key: SHA256:s9mTK02DkurdfS1RlGfK22Y9rDo89ShcjBvd2dc6Pv0 (RSA)
localhost login:

2) Test with config and reboot 2 times
Red Hat Enterprise Linux CoreOS 410.84.202111111322-0 (Ootpa) 4.10
Ignition: ran on 2021/11/15 12:56:59 UTC (at least 2 boots ago)
Ignition: user-provided config was applied
SSH host key: SHA256:/yu+zKnd8jOTjyTGLeAGUpNW2vFEiK8G2ZNDIkvLZFs (ECDSA)
SSH host key: SHA256:Ce0/IEq3vVhy9gDjd97eJmig0yEnVJD477qWhUWepUk (ED25519)
SSH host key: SHA256:zxqg0QHQwAU8AQY87f6yZNXMUWmoxO+yM4TZVw+3qfM (RSA)
ens4: 10.0.2.15 fe80::acb7:e8c3:5321:594e
cosa-devsh login: core (automatic login)

Comment 11 errata-xmlrpc 2022-03-10 16:21:06 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 (Moderate: OpenShift Container Platform 4.10.3 security 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/RHSA-2022:0056