-
Bug
-
Resolution: Unresolved
-
Undefined
-
4.18
-
Critical
-
None
-
Proposed
-
False
-
-
Description of problem:
Deploying a standard OCP 4.18 cluster (3 masters, 2 workers) with a ZTP profile using siteconfigv2 with hub-side templating fails to sync gitops policies. The gitops policies app shows the following stack trace: status: conditions: - lastTransitionTime: "2024-11-13T18:50:31Z" 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: Error: panic: interface conversion: interface {} is string, not []interface {}\n\ngoroutine 1 [running]:\ngithub.com/openshift-kni/cnf-features-deploy/ztp/policygenerator/policyGen.(*PolicyBuilder).setValues(0xc00009fdb8, 0xc0001113e0, 0xc000110b40)\n\t/go/src/cnf-features-deploy/ztp/policygenerator/policyGen/policyBuilder.go:333 +0x9eb\ngithub.com/openshift-kni/cnf-features-deploy/ztp/policygenerator/policyGen.(*PolicyBuilder).getCustomResource(0xc00009fdb8, {{0xc00014e3a8, 0x18}, {0xc000112e30, 0xd}, {0x53922c, 0xf}, {0x53922c, 0xf}, {0x0, ...}, ...}, ...)\n\t/go/src/cnf-features-deploy/ztp/policygenerator/policyGen/policyBuilder.go:284 +0x7ca\ngithub.com/openshift-kni/cnf-features-deploy/ztp/policygenerator/policyGen.(*PolicyBuilder).getCustomResources(0xc00009fdb8, {{0xc00014e3a8, 0x18}, {0xc000112e30, 0xd}, {0x53922c, 0xf}, {0x53922c, 0xf}, {0x0, ...}, ...}, ...)\n\t/go/src/cnf-features-deploy/ztp/policygenerator/policyGen/policyBuilder.go:222 +0x1f3\ngithub.com/openshift-kni/cnf-features-deploy/ztp/policygenerator/policyGen.(*PolicyBuilder).Build(0xc00009fdb8, {{0xc00014e348, 0x13}, {0xc00014e360, 0x11}, {0x0, 0x0, {0xc00014e378, 0x11}, {0xc000112da0, ...}}, ...})\n\t/go/src/cnf-features-deploy/ztp/policygenerator/policyGen/policyBuilder.go:48 +0x1ac\nmain.InitiatePolicyGen(0xc00009fef0, {0xc00011e010?, 0xc?, 0x539201?}, 0x1)\n\t/go/src/cnf-features-deploy/ztp/policygenerator/policyGenerator.go:74 +0x505\nmain.main()\n\t/go/src/cnf-features-deploy/ztp/policygenerator/policyGenerator.go:45 +0x318\n: failure in plugin configured via /tmp/kust-plugin-config-1137797815;
Version-Release number of selected component (if applicable):
Attempting to deploy OCP cluster 4.18.0-0.nightly-2024-11-13-092957 Hub OCP: 4.17.4 ZTP site generator: v4.18.0-17 Gitops: v1.14.0-16 ACM: v2.12.1-1 MCE: v2.7.1-5
How reproducible:
Always
Steps to Reproduce:
1. Create ZTP siteconfigv2 PGT with hub-side templating 2. Attempt to deploy node 3. Observe gitops policies app status
Actual results:
Stack trace above, and policy is not rendered.
Expected results:
ZTP container should generate a valid policy config.
Additional info:
must-gather, etc. will be added in a comment