Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-11927

TALM keeps spinning with the hub template error when unsupported hub template function is being used in the second policy

XMLWordPrintable

    • No
    • False
    • Hide

      None

      Show
      None

      This is a clone of issue OCPBUGS-11890. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-11380. The following is the description of the original issue:

      Description of problem:

      If unsupported hub side templating function is used in the second policy that is reconciled in the CGU, TALM rejects the policy and keeps spinning with the following error although the requeue interval is set to 60s.
      
      1.6806190070241933e+09    ERROR    controllers.ClusterGroupUpgrade    Failed to resolve hub template    {"error": "fromSecret: template function is not supported in TALM"}
      github.com/openshift-kni/cluster-group-upgrades-operator/controllers/utils.(*TemplateResolver).ResolveObjectHubTemplates
          /remote-source/app/controllers/utils/policy_template.go:38
      github.com/openshift-kni/cluster-group-upgrades-operator/controllers/utils.(*TemplateResolver).ResolveObjectHubTemplates
          /remote-source/app/controllers/utils/policy_template.go:38
      github.com/openshift-kni/cluster-group-upgrades-operator/controllers.(*ClusterGroupUpgradeReconciler).updateConfigurationPolicyHubTemplate
          /remote-source/app/controllers/clustergroupupgrade_controller.go:1142
      github.com/openshift-kni/cluster-group-upgrades-operator/controllers.(*ClusterGroupUpgradeReconciler).updateConfigurationPolicyForCopiedPolicy
          /remote-source/app/controllers/clustergroupupgrade_controller.go:1109
      github.com/openshift-kni/cluster-group-upgrades-operator/controllers.(*ClusterGroupUpgradeReconciler).copyManagedInformPolicy
          /remote-source/app/controllers/clustergroupupgrade_controller.go:1077
      github.com/openshift-kni/cluster-group-upgrades-operator/controllers.(*ClusterGroupUpgradeReconciler).reconcileResources
          /remote-source/app/controllers/clustergroupupgrade_controller.go:1515
      github.com/openshift-kni/cluster-group-upgrades-operator/controllers.(*ClusterGroupUpgradeReconciler).Reconcile
          /remote-source/app/controllers/clustergroupupgrade_controller.go:239
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
          /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:114
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
          /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:311
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
          /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
          /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227
      1.6806190070321722e+09    INFO    controllers.ClusterGroupUpgrade    Finish reconciling CGU    {"name": "default/test-hub-template", "requeueAfter": 60}

      Version-Release number of selected component (if applicable):

       

      How reproducible:

       

      Steps to Reproduce:

      1. Create two policies and one of the policy with hub template function fromSerect
      2. Create a CGU and put the templatized policy in the second one in the managedpolicies list.
      3.
      

      Actual results:

      TALM keeps spinning with the reconcilation error

      Expected results:

      TALM raises the reconcilation error every 60s

      Additional info:

       

              jche@redhat.com Jun Chen
              openshift-crt-jira-prow OpenShift Prow Bot
              Bonnie Block Bonnie Block
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: