Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-18774

[enterprise-4.12] Issue in file scalability_and_performance/ztp_far_edge/ztp-preparing-the-hub-cluster.adoc

XMLWordPrintable

    • No
    • 1
    • T&PS 2023 #10
    • 1
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      https://docs.openshift.com/container-platform/4.12/scalability_and_performance/ztp_far_edge/ztp-preparing-the-hub-cluster.html#ztp-configuring-hub-cluster-with-argocd_ztp-preparing-the-hub-cluster

      An OCP 4.12 disconnected customer who is having some issues following this doc, after he runs:
      
      oc patch argocd openshift-gitops -n openshift-gitops --type=merge --patch-file out/argocd/deployment/argocd-openshift-gitops-patch.json 
      
      the pod openshift-gitops-repo-server-5945d48567-trkxd created contains an initContainer which references an image without hash:
      
      $ omc get po -l app.kubernetes.io/name=openshift-gitops-repo-server                                                         
      NAME                                            READY   STATUS                  RESTARTS   AGE
      openshift-gitops-repo-server-56d5b6f555-2qhvn   1/1     Running                 0          7h
      openshift-gitops-repo-server-6dbd478f97-c7glg   0/1     Init:ImagePullBackOff   0          5m
      
      $ omc get po -l app.kubernetes.io/name=openshift-gitops-repo-server -o json | jq '.items[1].spec.initContainers[1].image' -r
      registry.redhat.io/openshift4/ztp-site-generate-rhel8:v4.12
      
      In OCP 4.12 pulling images by tag is not allowed (in 4.13 we can use ImageTagMirrorSet for that purpose).

      Version-Release number of selected component (if applicable):

      4.12

      How to fix:

      The oc patch command needs to patch the json with the local image for disconnected installations.

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

              slovern@redhat.com Shane Lovern
              rhn-support-aireilly Aidan Reilly
              Nikita Kononov Nikita Kononov
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: