Okd: Ability to use a image mirror is broken in Beta 6

Created on 1 Jul 2020  路  5Comments  路  Source: openshift/okd

If we use a image mirror on Beta 6, the bootstrap does not complete.

The bootstrap node is up and running, but the machine-config-server pod on the bootstrap node continuously throws the following error:

I0630 18:45:36.895271       1 api.go:111] Pool master requested by address:"10.0.0.10:46408" User-Agent:"Ignition/2.3.0"
I0630 18:45:36.895300       1 bootstrap_server.go:64] reading file "/etc/mcs/bootstrap/machine-pools/master.yaml"
I0630 18:45:36.897382       1 bootstrap_server.go:84] reading file "/etc/mcs/bootstrap/machine-configs/rendered-master-e9382f7f28911605dfe4d3383ea20eed.yaml"
E0630 18:45:36.907454       1 api.go:131] failed to translate {master} config: failed to convert Ignition config spec v2 to v3: unable to convert Ignition spec v2 config to v3: Config has conflicting inodes: "File: /etc/containers/registries.conf" and "File: /etc/containers/registries.conf".  All files, directories and links must specify a unique `path`.

This results in a HTTP 500 error on the machine config server.

root@jumphost01vt:~# curl https://api-int:22623/config/master -k -v
...
< HTTP/2 500 
< content-length: 0
< date: Wed, 01 Jul 2020 09:57:23 GMT
< 
* Connection #0 to host api-int left intact

I think we either need to remove the duplicate entry for the registries.conf or add overwrite: true to the ignition config.

Example install-config.yaml:

apiVersion: v1
baseDomain: 'example.com'
metadata:
  name: 'c04'
compute:
  - hyperthreading: Enabled
    name: worker
    replicas: 0
controlPlane:
  hyperthreading: Enabled
  name: master
  replicas: 3
networking:
  networkType: OpenShiftSDN
  clusterNetworks:
    - cidr: 10.128.0.0/14
      hostPrefix: 23
  serviceNetwork:
    - 172.31.0.0/16
  machineCIDR:
platform:
  vsphere:
    vcenter: '...'
    username: '...'
    password: '...'
    datacenter: '...'
    defaultDatastore: '...'
pullSecret: '{"auths": {"gitlab.example.com:5050": {"auth": "eW91OmZ1Y2tpbmctaGFja2VyCg=="}}}'
sshKey: ssh-rsa AAAbbb....
imageContentSources:
- mirrors:
  - gitlab.example.com:5050/openshift-release/okd
  source: quay.io/openshift/okd
- mirrors:
  - gitlab.example.com:5050/openshift-release/okd
  source: quay.io/openshift/okd-content

See also https://deck-ci.apps.ci.l2s4.p1.openshiftapps.com/view/gcs/origin-ci-test/logs/release-openshift-origin-installer-launch-aws/1278245417905033216

Most helpful comment

All 5 comments

MCO is not clearing duplicate files when converting from Ignition 2 to Ign3

Successfully tested a disconnected install with: OKD 4.5.0-0.okd-2020-07-03-185244

No issues with mirrored registry.

Also can confirm mirroring works again. Tested with 4.5.0-0.okd-2020-07-05-061321. Thank you!

@vrutkovs This can probably be unpinned soon, now that you've released the RC.

Was this page helpful?
0 / 5 - 0 ratings