Bug 2115144 - Ignition override v3.2.0 renders as v3.1 in day2 flow
Summary: Ignition override v3.2.0 renders as v3.1 in day2 flow
Keywords:
Status: ON_QA
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: Infrastructure Operator
Version: rhacm-2.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: rhacm-2.5
Assignee: Mat Kowalski
QA Contact: Chad Crum
URL:
Whiteboard:
Depends On: 2115145
Blocks: 2099929
TreeView+ depends on / blocked
 
Reported: 2022-08-03 23:33 UTC by OpenShift BugZilla Robot
Modified: 2023-05-15 18:50 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift assisted-service pull 4239 0 None open [release-ocm-2.5] Bug 2115144: Fix order when merging ignitions 2022-08-07 10:28:43 UTC
Github stolostron backlog issues 24831 0 None None None 2022-08-04 01:24:04 UTC
Red Hat Issue Tracker MGMTBUGSM-503 0 None None None 2022-08-03 23:36:26 UTC

Description OpenShift BugZilla Robot 2022-08-03 23:33:24 UTC
+++ This bug was initially created as a clone of Bug #2113954 +++

*Description of the problem:*

 It has been observed that the ignition override like

{code}
{"ignition": \{"version": "3.2.0"}, "storage": \{"disks":[{"device":"/dev/sdb","partitions":[{"label":"root","number":4,"resize":true,"sizeMiB":204800}],"wipeTable":false}],"files": [\{"path": "/tmp/example", "contents": {"source": "data:text/plain;base64,aGVscGltdHJhcHBlZGluYXN3YWdnZXJzcGVj"}}]}}
{code}

results in a rendered day2 worker ignition as

{code}
{"ignition":\{"config":{"merge":[{"source":"http://10.50.0.98:22624/config/worker","verification":{}}],"replace":\{"verification":{}}},"proxy":{},"security":\{"tls":{"certificateAuthorities":[{"source":"data:text/plain;charset=utf-8;base64,LS0[...]URS0tLS0tCg==","verification":{}}]}},"timeouts":{},"version":"3.1.0"},"passwd":{},"storage":\{"disks":[{"device":"/dev/sdb","partitions":[{"label":"root","number":4,"sizeMiB":204800},\{"label":"lso_20G_1","sizeMiB":20000},\{"label":"lso_20G_2","sizeMiB":20000},\{"label":"lso_20G_3","sizeMiB":20000}],"wipeTable":false}],"files":[\{"group":{},"overwrite":true,"path":"/etc/hostname","user":\{"name":"root"},"contents":\{"source":"data:,cu2","verification":{}},"mode":420}]},"systemd":{}}
{code}

Please note explicit v3.2.0 in the override and v3.1.0 in the rendered file.

*How reproducible:*

 CI job `edge-e2e-ai-operator-ztp-sno-day2-workers-ignitionoverride` is now a stable reproducer of the issue. The job uses the following ignition

{code}
BAREMETALHOSTS_IGNITION_OVERRIDE='\{"ignition":{"version":"3.2.0"},"storage":\{"disks":[{"device":"/dev/sda","partitions":[{"label":"root","number":4,"resize":true,"sizeMiB":61440},\{"label":"lso_1G_1","sizeMiB":1024},\{"label":"lso_1G_2","sizeMiB":1024},\{"label":"lso_1G_3","sizeMiB":1024}],"wipeTable":false}]}}'
{code}

and results in the ignition v3.1.0 with missing `resize: true`.

*When introduced:*

https://issues.redhat.com/browse/MGMT-9064

*Related issues:*

https://bugzilla.redhat.com/show_bug.cgi?id=2099929
https://issues.redhat.com/browse/MGMTBUGSM-447


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