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

[Microshift 4.16] argocd-ssh-known-hosts-cm recreated upon microshift restart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 4.16
    • MicroShift
    • None
    • 2
    • uShift Sprint 261, uShift Sprint 262
    • 2
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Looks like when using argocd in microshift 4.16 the configmap in charge of holding the authorized hosts of git repos "argocd-ssh-known-hosts-cm" is recreated when microshift is restarted.

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

      microshift-4.16.13-202409171717.p0.g15ea7cd.assembly.4.16.13.el9.x86_64
      microshift-gitops-1.12.1-4.el9.x86_64

      How reproducible:

      Always

      Steps to Reproduce:

          1. edit cm: "oc -n openshift-gitops edit cm argocd-ssh-known-hosts-cm" and add new valid entry
          2. sudo systemctl restart microshift
          3. check again the cm: "oc -n openshift-gitops get cm argocd-ssh-known-hosts-cm -o yaml", new entry is gone
          

      Actual results:

      Checking again ArgoCD looks like the operator watches that the CM exists but not the content. This looks to be different with microshift reduced implementation, maybe this is not the way to set up this.

      Expected results:

      CM doesn't change upon microshift restart, or other method is specified to maintain this list.

      Additional info:

      It is pretty contradicting to read in the secrets of the file:
      
      # This file was automatically generated by hack/update-ssh-known-hosts.sh. DO NOT EDIT
      
      but also on the upstream doc we see that this is the way to add hosts:
      https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#ssh-known-host-public-keys
      
      Please clarify if that is not the way to do it, which is the correct way, or modify the message as it is misleading.

       

              pmatusza@redhat.com Patryk Matuszak
              rhn-support-mabajodu Mario Abajo Duran
              John George John George
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: