-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
4.15
This is a clone of issue OCPBUGS-27893. The following is the description of the original issue:
—
Description of problem:
gitops deployment fails - Policies are not syncing because OperatorHub.yaml is missing from the ztp source-crs.
[kni@registry.kni-qe-27 ~]$ oc get apps -A
NAMESPACE NAME SYNC STATUS HEALTH STATUS
openshift-gitops clusters Synced Healthy
openshift-gitops policies Unknown Healthy
[kni@registry.kni-qe-27 ~]$ oc get apps -n openshift-gitops policies -o yaml
[...]
status:
conditions:
- lastTransitionTime: "2024-01-24T15:08:10Z"
message: |-
Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = `kustomize build <path to cached source>/policygentemplates --enable-alpha-plugins` failed exit status 1: 2024/01/24 15:08:10 Could not build the entire policy defined by /tmp/kust-plugin-config-673779590: OperatorHub.yaml is not found both in Git path: <path to cached source>/policygentemplates/source-crs/OperatorHub.yaml and in the ztp container path: /.config/kustomize/plugin/ran.openshift.io/v1/policygentemplate/source-crs/OperatorHub.yaml
Error: failure in plugin configured via /tmp/kust-plugin-config-673779590; exit status 1: exit status 1
type: ComparisonError
Version-Release number of selected component (if applicable):
OCP version: 4.15 ztp-site-generator:v4.15.0-30
How reproducible:
100%
Steps to Reproduce:
1. Deploy 4.15 SNO 2. Deploy gitops-ztp 3. Check apps [kni@registry.kni-qe-27 ~]$ oc get apps -A NAMESPACE NAME SYNC STATUS HEALTH STATUS openshift-gitops clusters Synced Healthy openshift-gitops policies Unknown Healthy [kni@registry.kni-qe-27 ~]$ oc get apps -n openshift-gitops policies -o yaml [...] status: conditions: - lastTransitionTime: "2024-01-24T15:08:10Z" message: |- Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = `kustomize build <path to cached source>/policygentemplates --enable-alpha-plugins` failed exit status 1: 2024/01/24 15:08:10 Could not build the entire policy defined by /tmp/kust-plugin-config-673779590: OperatorHub.yaml is not found both in Git path: <path to cached source>/policygentemplates/source-crs/OperatorHub.yaml and in the ztp container path: /.config/kustomize/plugin/ran.openshift.io/v1/policygentemplate/source-crs/OperatorHub.yaml Error: failure in plugin configured via /tmp/kust-plugin-config-673779590; exit status 1: exit status 1 type: ComparisonError
Actual results:
openshift-gitops policies Unknown Healthy message: |- Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = `kustomize build <path to cached source>/policygentemplates --enable-alpha-plugins` failed exit status 1: 2024/01/24 15:08:10 Could not build the entire policy defined by /tmp/kust-plugin-config-673779590: OperatorHub.yaml is not found both in Git path: <path to cached source>/policygentemplates/source-crs/OperatorHub.yaml and in the ztp container path: /.config/kustomize/plugin/ran.openshift.io/v1/policygentemplate/source-crs/OperatorHub.yaml
Expected results:
openshift-gitops policies sync
Additional info:
- clones
-
OCPBUGS-27893 OperatorHub.yaml is missing from the ztp source-crs
- Closed
- is blocked by
-
OCPBUGS-27893 OperatorHub.yaml is missing from the ztp source-crs
- Closed
- links to
-
RHEA-2024:128510 OpenShift Container Platform 4.15.1 CNF vRAN extras update