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

Can't change the persistent field of MetricStorage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • rhos-18.0.3
    • rhos-18.0.3
    • telemetry-operator
    • None
    • 0
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • telemetry-operator-container-1.0.4-4
    • ?
    • ?
    • None
    • 1
    • CloudOps 2024 Sprint 21
    • Moderate

      Changing values under the "persistent" field of MetricStorage in openstackcontrolplane doesn't result in a change of those values in the MetricStorage CR.

      Here are the Telemetry CR and MetricStorage CR of the same RHOSO. Notice the difference in the values under the "persistent" field:

      
      
          [stack@osp-cloudops-03 architecture]$ oc get telemetry -oyaml
          apiVersion: v1
          items:
          - apiVersion: telemetry.openstack.org/v1beta1
            kind: Telemetry
            metadata:
              creationTimestamp: "2024-10-03T10:35:33Z"
              finalizers:
              - openstack.org/telemetry
              generation: 10
              name: telemetry
              namespace: openstack
              ownerReferences:
              - apiVersion: core.openstack.org/v1beta1
                blockOwnerDeletion: true
                controller: true
                kind: OpenStackControlPlane
                name: openstack-galera-network-isolation
                uid: b4cf7868-3abb-43e9-a2df-8f43b4a453b9
              resourceVersion: "7566810"
              uid: 1daab230-6102-4ad9-ad1d-4c85db33789a
            spec:
              autoscaling:
                aodh:
                  apiImage: quay.io/podified-master-centos9/openstack-aodh-api:current-podified
                  customServiceConfig: '# add your customization here'
                  databaseAccount: aodh
                  databaseInstance: openstack
                  evaluatorImage: quay.io/podified-master-centos9/openstack-aodh-evaluator:current-podified
                  listenerImage: quay.io/podified-master-centos9/openstack-aodh-listener:current-podified
                  memcachedInstance: memcached
                  notifierImage: quay.io/podified-master-centos9/openstack-aodh-notifier:current-podified
                  override:
                    service:
                      internal:
                        metadata:
                          labels:
                            osctlplane: ""
                            osctlplane-service: telemetry
                      public:
                        endpointURL: https://aodh-public-openstack.apps-crc.testing
                        metadata:
                          labels:
                            osctlplane: ""
                            osctlplane-service: telemetry
                  passwordSelector:
                    aodhService: AodhPassword
                    ceilometerService: CeilometerPassword
                  preserveJobs: false
                  rabbitMqClusterName: rabbitmq
                  secret: osp-secret
                  serviceUser: aodh
                  tls:
                    api:
                      internal:
                        secretName: cert-aodh-internal-svc
                      public:
                        secretName: cert-aodh-public-svc
                    caBundleSecretName: combined-ca-bundle
                enabled: true
                heatInstance: heat
              ceilometer:
                centralImage: quay.io/podified-antelope-centos9/openstack-ceilometer-central@sha256:f43bd425c34cbb739bfb4a058df2934e00e0df554f2fb2c74df517298c9aa01a
                computeImage: quay.io/podified-antelope-centos9/openstack-ceilometer-compute@sha256:d04b31f824706806c44a2243757a2b3218189150fe64d9e6e5b463844763dc19
                customServiceConfig: '# add your customization here'
                enabled: true
                ipmiImage: quay.io/podified-antelope-centos9/openstack-ceilometer-ipmi@sha256:3562cda2771ea72467b894c2b0874f9d4ed843498f6a877e376b2c089f138f4d
                ksmImage: ""
                ksmTls: {}
                notificationImage: quay.io/podified-antelope-centos9/openstack-ceilometer-notification@sha256:80236d3b69b8c5446d0ed559cf1d848889329d1e2573b1005080fe405eb3d653
                passwordSelector:
                  aodhService: AodhPassword
                  ceilometerService: CeilometerPassword
                proxyImage: registry.redhat.io/ubi9/httpd-24@sha256:4fc49334ef92b9b916ea6725307d302c2d8bb99d55a6a9f7bca5fc391833bfe0
                rabbitMqClusterName: rabbitmq
                secret: osp-secret
                serviceUser: ceilometer
                sgCoreImage: quay.io/infrawatch/sg-core@sha256:d7a45bd3a061269b5d9fed64c24d8c2bd7122d64f30a91d36d92f92197df3ca0
                tls:
                  caBundleSecretName: combined-ca-bundle
                  secretName: cert-ceilometer-internal-svc
              logging:
                annotations:
                  metallb.universe.tf/address-pool: internalapi
                  metallb.universe.tf/allow-shared-ip: internalapi
                  metallb.universe.tf/loadBalancerIPs: 172.17.0.80
                cloNamespace: openshift-logging
                enabled: false
                ipaddr: 172.17.0.80
                port: 10514
                rsyslogQueueSize: 10000
                rsyslogQueueType: linkedList
                rsyslogRetries: 100
                targetPort: 10514
              metricStorage:
                dashboardsEnabled: true
                dataplaneNetwork: ctlplane
                enabled: true
                monitoringStack:
                  alertingEnabled: false
                  scrapeInterval: 30s
                  storage:
                    persistent:
                      pvcStorageClass: local-storage
                      pvcStorageRequest: 40G
                      pvcStorageSelector: {}
                    retention: 20h
                    strategy: persistent
                prometheusTls:
                  caBundleSecretName: combined-ca-bundle
                  secretName: cert-metric-storage-prometheus-svc
            status:
              conditions:
              - lastTransitionTime: "2024-10-09T14:50:38Z"
                message: Setup complete
                reason: Ready
                status: "True"
                type: Ready
              - lastTransitionTime: "2024-10-03T16:05:37Z"
                message: Setup complete
                reason: Ready
                status: "True"
                type: AutoscalingReady
              - lastTransitionTime: "2024-10-03T15:41:35Z"
                message: Setup complete
                reason: Ready
                status: "True"
                type: CeilometerReady
              - lastTransitionTime: "2024-10-04T16:28:10Z"
                message: Setup complete
                reason: Ready
                status: "True"
                type: MetricStorageReady
              observedGeneration: 10
          kind: List
          metadata:
            resourceVersion: ""
          [stack@osp-cloudops-03 architecture]$ oc get metricstorage -oyaml
          apiVersion: v1
          items:
          - apiVersion: telemetry.openstack.org/v1beta1
            kind: MetricStorage
            metadata:
              creationTimestamp: "2024-10-03T15:39:18Z"
              finalizers:
              - openstack.org/metricstorage
              generation: 5
              name: metric-storage
              namespace: openstack
              ownerReferences:
              - apiVersion: telemetry.openstack.org/v1beta1
                blockOwnerDeletion: true
                controller: true
                kind: Telemetry
                name: telemetry
                uid: 1daab230-6102-4ad9-ad1d-4c85db33789a
              resourceVersion: "7566807"
              uid: 5c900218-7eae-4f1e-8532-8ff7503f22e7
            spec:
              dashboardsEnabled: true
              dataplaneNetwork: ctlplane
              monitoringStack:
                alertingEnabled: false
                scrapeInterval: 30s
                storage:
                  persistent:
                    pvcStorageRequest: 20G
                    pvcStorageSelector: {}
                  retention: 20h
                  strategy: persistent
              prometheusTls:
                caBundleSecretName: combined-ca-bundle
                secretName: cert-metric-storage-prometheus-svc
            status:
              conditions:
              - lastTransitionTime: "2024-10-04T16:28:10Z"
                message: Setup complete
                reason: Ready
                status: "True"
                type: Ready
              - lastTransitionTime: "2024-10-09T12:57:21Z"
                message: Setup complete
                reason: Ready
                status: "True"
                type: DashboardDatasourceReady
              - lastTransitionTime: "2024-10-09T12:57:21Z"
                message: Setup complete
                reason: Ready
                status: "True"
                type: DashboardDefinitionReady
              - lastTransitionTime: "2024-10-09T12:57:21Z"
                message: Setup complete
                reason: Ready
                status: "True"
                type: DashboardPluginReady
              - lastTransitionTime: "2024-10-09T12:57:21Z"
                message: Setup complete
                reason: Ready
                status: "True"
                type: DashboardPrometheusRuleReady
              - lastTransitionTime: "2024-10-04T16:28:10Z"
                message: Setup complete
                reason: Ready
                status: "True"
                type: MonitoringStackReady
              - lastTransitionTime: "2024-10-04T08:34:36Z"
                message: Setup complete
                reason: Ready
                status: "True"
                type: PrometheusReady
              - lastTransitionTime: "2024-10-04T08:34:36Z"
                message: Setup complete
                reason: Ready
                status: "True"
                type: ScrapeConfigReady
              - lastTransitionTime: "2024-10-04T08:34:36Z"
                message: Input data complete
                reason: Ready
                status: "True"
                type: TLSInputReady
              observedGeneration: 5
              prometheusTLSPatched: true
          kind: List
          metadata:
            resourceVersion: ""
      

              rh-ee-jwysogla Jaromir Wysoglad
              rh-ee-jwysogla Jaromir Wysoglad
              rhos-dfg-cloudops
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: