Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-2764

Webhooks are not created and in cicd app everything is not getting synced for 1.8.0 on ocp 4.11 on P

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 1.8.0
    • kam
    • False
    • None
    • False

      Description of problem:

      Webhooks are not created after performing DAY1 operation and in argocd ui cicd app is not getting synced for gitops 1.8.0 on OCP 4.11 on P.

      Prerequisites (if any, like setup, operators/versions):

      The operator is installed with latest version 1.8.0 and have to setup all the requirements for KAM validation.

      Steps to Reproduce

      1. kam bootstrap \
        --service-repo-url $SERVICE_REPO_URL \
        --gitops-repo-url $GITOPS_REPO_URL \
        --image-repo $IMAGE_REPO \
        --dockercfgjson $DOCKERCONFIGJSON_PATH \
        --git-host-access-token $GIT_ACCESS_TOKEN \
        --output bootstrapresources \
        --overwrite \
        --private-repo-driver gitlab
      2. cd bootstrapresource
        $ git init .
        $ git add .
        $ git commit -m 'Initial commit.'
        $ git remote add origin $GITOPS_REPO_URL
        $ git branch -M main
        $ git push -u origin main
        $ api_server=$(oc get routes -n openshift-gitops --field-selector metadata.name=openshift-gitops-server -o jsonpath=" {.items[*]['spec.host']}

        ")
        $ password=$(oc get secret openshift-gitops-cluster -n openshift-gitops -o jsonpath='{.data.admin\.password}' | base64 -d)
        $ argocd login $api_server --username admin --password $password --insecure
        $ argocd repo add $GITOPS_REPO_URL  --username <username> --password     $GIT_ACCESS_TOKEN 

      3. oc apply -k config/argocd/
      4. oc apply -f ../secrets
      5. kam webhook create --git-host-access-token $GIT_ACCESS_TOKEN --env-name dev --service-name taxi

      Actual results:

      ✗  unable to create webhook: failed to get event listener URL: routes.route.openshift.io "gitops-webhook-event-listener-route" not found

      Expected results:

       Webhook have to be created and in cicd app everything have to be synced.

      Reproducibility (Always/Intermittent/Only Once):

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):


              apsahu Apoorva Sahu
              apsahu Apoorva Sahu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: