Bug 2105331 - install-config: Strict unmarshalling conflicts with new fields
Summary: install-config: Strict unmarshalling conflicts with new fields
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.11
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.11.z
Assignee: Aditya Narayanaswamy
QA Contact: Shaowen Zhang
URL:
Whiteboard:
Depends On: 2098299
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-08 14:54 UTC by OpenShift BugZilla Robot
Modified: 2022-11-28 20:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-28 20:48:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift installer pull 6102 0 None open [release-4.11] Bug 2105331: Switch to perform normal marshalling with unknown fields 2022-08-19 16:05:05 UTC
Red Hat Product Errata RHBA-2022:8627 0 None None None 2022-11-28 20:48:58 UTC

Comment 4 Shaowen Zhang 2022-11-17 14:40:36 UTC
Tested against serval unknown fields in install-config.yaml,the installation process can be successfully executed, and the cluster is successfully installed.

OCP Version 4.12.0-0.nightly-2022-07-27-133042

> tested with following config:

additionalTrustBundlePolicy: Proxyonly
apiVersion: v1
baseDomain: devcluster.openshift.com
compute:
- architecture: amd64
  hyperthreading: Enabled
  name: worker
  platform:
    aws:
      type1: aaa
      rootVolume:
        aaaa: 123
  replicas: 3
controlPlane:
  architecture: amd64
  hyperthreading: Enabled
  name: master
  platform:
    aws:
      type1: aaa
      rootVolume1:
        aaaa: 123
  replicas: 3
metadata:
  creationTimestamp: null
  name: shaozhant1117
networking:
  clusterNetwork:
  - cidr: 10.128.0.0/14
    hostPrefix: 23
  machineNetwork:
  - cidr: 10.0.0.0/16
  networkType: OpenShiftSDN
  a:
    b: 123
  serviceNetwork:
  - 172.30.0.0/16
platform:
  aws:
    region: us-east-1
publish: External
metadataService: {}

> output:

WARNING failed to parse first occurence of unknown field: failed to unmarshal install-config.yaml: error unmarshaling JSON: while decoding JSON: json: unknown field "additionalTrustBundlePolicy" 
INFO Attempting to unmarshal while ignoring unknown keys because strict unmarshaling failed 
INFO Credentials loaded from the "default" profile in file "/root/.aws/credentials" 
WARNING failed to find default instance type: no instance type found for the zone constraint 
WARNING failed to find default instance type: no instance type found for the zone constraint 
INFO Consuming Install Config from target directory 
INFO Creating infrastructure resources...

Comment 5 Shaowen Zhang 2022-11-17 14:55:12 UTC
(In reply to Shaowen Zhang from comment #4)
> Tested against serval unknown fields in install-config.yaml,the installation
> process can be successfully executed, and the cluster is successfully
> installed.
> 
> OCP Version 4.12.0-0.nightly-2022-07-27-133042
> 
> > tested with following config:
> 
> additionalTrustBundlePolicy: Proxyonly
> apiVersion: v1
> baseDomain: devcluster.openshift.com
> compute:
> - architecture: amd64
>   hyperthreading: Enabled
>   name: worker
>   platform:
>     aws:
>       type1: aaa
>       rootVolume:
>         aaaa: 123
>   replicas: 3
> controlPlane:
>   architecture: amd64
>   hyperthreading: Enabled
>   name: master
>   platform:
>     aws:
>       type1: aaa
>       rootVolume1:
>         aaaa: 123
>   replicas: 3
> metadata:
>   creationTimestamp: null
>   name: shaozhant1117
> networking:
>   clusterNetwork:
>   - cidr: 10.128.0.0/14
>     hostPrefix: 23
>   machineNetwork:
>   - cidr: 10.0.0.0/16
>   networkType: OpenShiftSDN
>   a:
>     b: 123
>   serviceNetwork:
>   - 172.30.0.0/16
> platform:
>   aws:
>     region: us-east-1
> publish: External
> metadataService: {}
> 
> > output:
> 
> WARNING failed to parse first occurence of unknown field: failed to
> unmarshal install-config.yaml: error unmarshaling JSON: while decoding JSON:
> json: unknown field "additionalTrustBundlePolicy" 
> INFO Attempting to unmarshal while ignoring unknown keys because strict
> unmarshaling failed 
> INFO Credentials loaded from the "default" profile in file
> "/root/.aws/credentials" 
> WARNING failed to find default instance type: no instance type found for the
> zone constraint 
> WARNING failed to find default instance type: no instance type found for the
> zone constraint 
> INFO Consuming Install Config from target directory 
> INFO Creating infrastructure resources...


The OCP version in the last comment is incorrectly. The correct OCP version that has been tested is 4.11.0-0.nightly-2022-11-15-121935.

Comment 7 Shaowen Zhang 2022-11-18 02:06:54 UTC
The status has been moved to VERIFIED.

Comment 10 errata-xmlrpc 2022-11-28 20:48:56 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 (OpenShift Container Platform 4.11.17 bug fix 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-2022:8627


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