-
Bug
-
Resolution: Duplicate
-
Critical
-
None
-
4.14
-
No
-
CNF RAN Sprint 238
-
1
-
False
-
-
Description of problem:
gitops policies apps fails to sync:
$ oc get apps -n openshift-gitops policies -o yaml apiVersion: argoproj.io/v1alpha1 kind: Application metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"argoproj.io/v1alpha1","kind":"Application","metadata":{"annotations":{},"name":"policies","namespace":"openshift-gitops"},"spec":{"destination":{"namespace":"policies-sub","server":"https://kubernetes.default.svc"},"project":"policy-app-project","source":{"path":"policygentemplates","repoURL":"http://registry.kni-qe-0.lab.eng.rdu2.redhat.com:3000/kni-qe/ztp-site-configs.git","targetRevision":"helix48-4.14"},"syncPolicy":{"automated":{"prune":true,"selfHeal":true},"syncOptions":["CreateNamespace=true"]}}} ... status: conditions: - lastTransitionTime: "2023-06-22T13:46:06Z" message: |- rpc error: code = Unknown desc = Manifest generation error (cached): `kustomize build .policygentemplates --enable-alpha-plugins` failed exit status 1: 2023/06/22 13:46:06 Could not build the entire policy defined by /tmp/kust-plugin-config-2751105849: DefaultCatsrc.yaml is not found both in Git path: .policygentemplates/source-crs/DefaultCatsrc.yaml and in the ztp container path: /.config/kustomize/plugin/ran.openshift.io/v1/policygentemplate/source-crs/DefaultCatsrc.yaml Error: failure in plugin configured via /tmp/kust-plugin-config-2751105849; exit status 1: exit status 1 type: ComparisonError
DefaultCatsrc.yaml: $ podman run registry-proxy.engineering.redhat.com/rh-osbs/openshift4-ztp-site-generate:v4.14.0 cat source-crs/DefaultCatsrc.yaml apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: default-cat-source namespace: openshift-marketplace annotations: target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}' ran.openshift.io/ztp-deploy-wave: "1" spec: displayName: default-cat-source image: $imageUrl publisher: Red Hat sourceType: grpc updateStrategy: registryPoll: interval: 1h status: connectionState: lastObservedState: READY [kni@registry.kni-qe-28 ~]$
Version-Release number of selected component (if applicable):
4.14
How reproducible:
100%
Steps to Reproduce:
1. Deploy RAN DU spoke cluster 2. gitops policies app does not sync, deployment fails: $ oc get apps -n openshift-gitops policies -o yaml apiVersion: argoproj.io/v1alpha1 kind: Application metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"argoproj.io/v1alpha1","kind":"Application","metadata":{"annotations":{},"name":"policies","namespace":"openshift-gitops"},"spec":{"destination":{"namespace":"policies-sub","server":"https://kubernetes.default.svc"},"project":"policy-app-project","source":{"path":"policygentemplates","repoURL":"http://registry.kni-qe-0.lab.eng.rdu2.redhat.com:3000/kni-qe/ztp-site-configs.git","targetRevision":"helix48-4.14"},"syncPolicy":{"automated":{"prune":true,"selfHeal":true},"syncOptions":["CreateNamespace=true"]}}} ... status: conditions: - lastTransitionTime: "2023-06-22T13:46:06Z" message: |- rpc error: code = Unknown desc = Manifest generation error (cached): `kustomize build .policygentemplates --enable-alpha-plugins` failed exit status 1: 2023/06/22 13:46:06 Could not build the entire policy defined by /tmp/kust-plugin-config-2751105849: DefaultCatsrc.yaml is not found both in Git path: .policygentemplates/source-crs/DefaultCatsrc.yaml and in the ztp container path: /.config/kustomize/plugin/ran.openshift.io/v1/policygentemplate/source-crs/DefaultCatsrc.yaml Error: failure in plugin configured via /tmp/kust-plugin-config-2751105849; exit status 1: exit status 1 type: ComparisonError
Actual results:
deployment fails
Expected results:
successful sync
Additional info: