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

custom-metrics-autoscaler-rhel8-operator:2.12.1-394 is missing files in /usr/share/zoneinfo from tzdata causing cron triggers with timezone set to fail

XMLWordPrintable

    • Critical
    • No
    • 3
    • PODAUTO - Sprint 255, PODAUTO - Sprint 256
    • 2
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      With https://issues.redhat.com/browse/OCPBUGS-32395 tzdata have been added to make sure the cron scaler is working and customer can apply their desired timezone. With version 2.12.1-394 it seems that the logic added is failing, causing the timezone data to be missing again. While it's generally understood that cron scaler is not yet supported/maintained by Red Hat, it's considered a regression as tzdata used to be available in previous version and hence could be used.
      

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

      Custom Metrics Autoscaler Operator 2.12.1-394
      

      How reproducible:

      Always
      

      Steps to Reproduce:

      1. Install OpenShift Container Platform 4.15 and Custom Metrics Autoscaler as per documentation (does not matter platform and install method)
      2. Create a ScaledObject with a cron trigger with timezone applied
      
          apiVersion: keda.sh/v1alpha1
          kind: ScaledObject
          metadata:
            labels:
              scaledobject.keda.sh/name: cron-scaledobject
            name: cron-scaledobject
            namespace: project-2
          spec:
            scaleTargetRef:
              name: curl
            triggers:
            - metadata:
                desiredReplicas: "2"
                end: '*/10 * * * *'
                start: '*/5 * * * *'
                timezone: Europe/Zurich
              type: cron
      
      3. Check keda-operator logs in openshift-keda namespace
      

      Actual results:

      ERROR   scale_handler   error getting scale decision    {"scaledObject.Namespace": "project-2", "scaledObject.Name": "cron-scaledobject", "scaler": "cronScaler", "error": "unable to load timezone. Error: unknown time zone Europe/Zurich"}
      

      Expected results:

      INFO	Reconciling ScaledObject	{"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"cron-scaledobject","namespace":"project-2"}, "namespace": "project-2", "name": "cron-scaledobject", "reconcileID": "6d3ae923-d3d1-4a16-9061-4601d07a2061"}
      

      Additional info:

      A request to have the cron scaler supported was raised via https://issues.redhat.com/browse/RFE-4173
      

              joelsmith.redhat Joel Smith
              rhn-support-sreber Simon Reber
              Aditi Sahay Aditi Sahay
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: