Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-8582

telemetry-operator must support empty template

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhos-18.0.3
    • rhos-18.0.0
    • telemetry-operator
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • telemetry-operator-container-1.0.4-4
    • ?
    • ?
    • None
    • 2
    • CloudOps 2024 Sprint 15
    • 1
    • Important

      Currently, the syntax:

      telemetry:     
        enabled: false
        template: {} 

      fails with:

      "The OpenStackControlPlane \"openstack\" is invalid: spec.telemetry.template.metricStorage.dataplaneNetwork: Invalid value: \"\": spec.telemetry.template.metricStorage.dataplaneNetwork in body should match '^[a-zA-Z0-9][a-zA-Z0-9\\-_]*[a-zA-Z0-9]$'"] 

      This was attempted to be solved by making dataplaneNetwork non-mandatory as per https://issues.redhat.com/browse/OSPRH-8535 with PR https://github.com/openstack-k8s-operators/telemetry-operator/pull/439 but this did not worked.

      The current solution was to remove the "template: {}" part from the yaml as seen in https://github.com/openstack-k8s-operators/data-plane-adoption/pull/525, but T-O should be supporting the other syntax.

      The solution might be to make the dataplaneNetwork a ptr.

       

       

              rhn-engineering-jlarriba Juan Larriba
              rhn-engineering-jlarriba Juan Larriba
              rhos-dfg-cloudops
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: