-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.19.z
-
Quality / Stability / Reliability
-
False
-
-
None
-
Low
-
Yes
-
x86_64
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
The appliance builder does not mirror all required content to complete a disconnected installation of OpenShift
Version-Release number: 4.19.16
How reproducible: Always
Steps to Reproduce:
1. Follow instructions in: https://access.redhat.com/articles/7065136
2. Attempt to install OpenShift on disconnected system
Actual results: Installation fails with:
Oct 24 13:36:45 node0.14.16.172.in-addr.arpa node-image-pull.sh[9031]: error: Creating importer: failed to invoke method OpenImage: failed to invoke method OpenImage: (Mirrors also failed: [registry.appliance.com:5000/openshift/release@sha256:2e259d832599369529bb9c284999f0d6865a871817402908429fa52d2e40683a: reading manifest sha256:2e259d832599369529bb9c284999f0d6865a871817402908429fa52d2e40683a in registry.appliance.com:5000/openshift/release: manifest unknown]): quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:2e259d832599369529bb9c284999f0d6865a871817402908429fa52d2e40683a: reading manifest sha256:2e259d832599369529bb9c284999f0d6865a871817402908429fa52d2e40683a in quay.io/openshift-release-dev/ocp-v4.0-art-dev: unauthorized: access to the requested resource is not authorized
Oct 24 13:36:45 node0.14.16.172.in-addr.arpa node-image-pull.sh[8244]: Failed to fetch release image; retrying...
Expected results: Installation should complete successfully
Additional info:
Appliance and installer hard-coded to 4.19.16, using the following configs:
--- apiVersion: v1beta1 kind: ApplianceConfig ocpRelease: version: 4.19.16 channel: stable cpuArchitecture: x86_64 # diskSizeGB: 250 pullSecret: 'redacted' sshKey: 'redacted' userCorePass: 'redacted' imageRegistry: uri: docker.io/library/registry:2 port: 5005 enableDefaultSources: true stopLocalRegistry: false # additionalImages: # - name: image-url operators: - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.19 packages: - name: ansible-automation-platform-operator channels: - name: stable-2.6 - name: kubernetes-nmstate-operator channels: - name: stable - name: kubevirt-hyperconverged channels: - name: stable - name: lvms-operator channels: - name: stable-4.19 - name: ocs-client-operator channels: - name: stable-4.19 - name: ocs-operator channels: - name: stable-4.19 - name: odf-csi-addons-operator channels: - name: stable-4.19 - name: odf-dependencies channels: - name: stable-4.19 - name: odf-operator channels: - name: stable-4.19 - name: openshift-gitops-operator channels: - name: latest
agent-config.yaml:
---
---
apiVersion: v1alpha1
kind: AgentConfig
rendezvousIP: 172.16.14.3
metadata:
name: acp1
hosts:
- hostname: node0
interfaces:
- name: eno8303
macAddress: c8:4b:d6:ab:bd:91
networkConfig:
interfaces:
- name: eno8303
type: ethernet
state: up
mac-address: c8:4b:d6:ab:bd:91
ipv4:
enabled: true
address:
- ip: 172.16.14.3
prefix-length: 24
dhcp: false
dns-resolver:
config:
server:
- 172.16.2.12
routes:
config:
- destination: 0.0.0.0/0
next-hop-address: 172.16.14.1
next-hop-interface: eno8303
table-id: 254
install-config.yaml:
---
apiVersion: v1
metadata:
name: acp1
baseDomain: dev.houston.redhatedgelabs.com
controlPlane:
name: master
replicas: 1
compute:
- name: worker
replicas: 0
networking:
networkType: OVNKubernetes
machineNetwork:
- cidr: 172.16.14.0/24
platform:
none: {}
pullSecret: 'dummy-pull-secret'
sshKey: 'redacted'
Creation of appliance and ISO:
export APPLIANCE_IMAGE=registry.redhat.io/assisted/agent-preinstall-image-builder-rhel9:1.0-1714506949 && export APPLIANCE_ASSETS="/home/jswanson/ocp-appliance-testing"
sudo podman run --rm -it --pull newer --privileged --net=host -v $APPLIANCE_ASSETS:/assets:Z $APPLIANCE_IMAGE build
sudo podman run --rm -it --privileged -v $APPLIANCE_ASSETS:/assets:Z $APPLIANCE_IMAGE build iso --target-device /dev/nvme3n1
Creation of agentconfig:
wget https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/4.19.16/openshift-install-linux.tar.gz
tar -xzvf openshift-install-linux.tar.gz
./openshift-install agent create config-image --dir ./ --log-level debug
Confirmed appliance at 4.19.16, openshift-install at 4.19.16