-
Bug
-
Resolution: Not a Bug
-
Undefined
-
None
-
4.15
-
Quality / Stability / Reliability
-
False
-
-
None
-
Important
-
Yes
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
Environment:
Hub Cluster running:
OCP 4.16.1
ACM v2.11.0-140
MCE v2.6.0-148
ZTP v4.15.1-22
Spoke cluster running OCP 4.15 or earlier
When using ACM CRs to template a policy, PolicyGenerator fails with the error:
{ComparisonError Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = Manifest generation error (cached): `kustomize build <path to cached source>/policygentemplates/ztp-test/acm-crs --enable-alpha-plugins` failed exit status 1: /.config/kustomize/plugin/policy.open-cluster-management.io/v1/policygenerator/PolicyGenerator: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by /.config/kustomize/plugin/policy.open-cluster-management.io/v1/policygenerator/PolicyGenerator)
/.config/kustomize/plugin/policy.open-cluster-management.io/v1/policygenerator/PolicyGenerator: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /.config/kustomize/plugin/policy.open-cluster-management.io/v1/policygenerator/PolicyGenerator)
Version-Release number of selected component (if applicable):
See above
How reproducible:
always
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Policy is created and applied.
Additional info:
$ cat /home/kni/ztp-workdir/out/argocd/deployment/argocd-openshift-gitops-patch.json
{
"spec": {
"controller": {
"resources": {
"limits": {
"cpu": "16",
"memory": "32Gi"
},
"requests": {
"cpu": "1",
"memory": "2Gi"
}
}
},
"kustomizeBuildOptions": "--enable-alpha-plugins",
"repo": {
"volumes": [
{
"name": "kustomize",
"emptyDir": {}
}
],
"initContainers": [
{
"resources": {
},
"terminationMessagePath": "/dev/termination-log",
"name": "kustomize-plugin",
"command": [
"/exportkustomize.sh"
],
"args": [
"/.config"
],
"imagePullPolicy": "Always",
"volumeMounts": [
{
"name": "kustomize",
"mountPath": "/.config"
}
],
"terminationMessagePolicy": "File",
"image": "registry.kni-qe-16.lab.eng.rdu2.redhat.com:5000/ztp/ztp-site-generator:v4.15.1-22"
},
{
"args": [
"-c",
"mkdir -p /.config/kustomize/plugin/ && cp -r /etc/kustomize/plugin/policy.open-cluster-management.io /.config/kustomize/plugin/"
],
"command": [
"/bin/bash"
],
"image": "registry.redhat.io/rhacm2/multicluster-operators-subscription-rhel9@sha256:2a0145fe35feb6718cfc7efb443575c7b6f22ec3a3a28e6c2ab92864d1e3499d",
"name": "policy-generator-install",
"imagePullPolicy": "Always",
"volumeMounts": [
{
"mountPath": "/.config",
"name": "kustomize"
}
]
}
],
"volumeMounts": [
{
"name": "kustomize",
"mountPath": "/.config"
}
],
"env": [
{
"name": "ARGOCD_EXEC_TIMEOUT",
"value": "360s"
},
{
"name": "KUSTOMIZE_PLUGIN_HOME",
"value": "/.config/kustomize/plugin"
}
],
"resources": {
"limits": {
"cpu": "8",
"memory": "16Gi"
},
"requests": {
"cpu": "1",
"memory": "2Gi"
}
}
}
}
}