Bug 1959426

Summary: Limits on Length of MultiClusterObservability Resource Name
Product: Red Hat Advanced Cluster Management for Kubernetes Reporter: Chris Keller <ckeller>
Component: Core Services / ObservabilityAssignee: Chunlin Yang <chuyang>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhacm-2.2.zFlags: ming: rhacm-2.2.z+
Target Milestone: ---   
Target Release: rhacm-2.2.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-16 19:28:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Keller 2021-05-11 14:06:09 UTC
Description of problem:

When deploying a MultiClusterObservability resource, it appears the name of the MultiClusterObservability CR cannot exceed 15 characters. This is due to the 63 character label limit in DNS.

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

2.2.3

How reproducible:

Always

Steps to Reproduce:
1. Deploy a MultiClusterObservability resource with a name greater than 15 characters.

Actual results:

Partial roll out of the observability stack. Some StatefuleSets fail to deploy because of the DNS issue.

Expected results:

Operator prevents partial rollout of stack.

Additional info:

multiclusterobservability-cr.yaml:

apiVersion: observability.open-cluster-management.io/v1beta1
kind: MultiClusterObservability
metadata:
  name: umbrella-observability
spec:
  availabilityConfig: High
  imagePullPolicy: Always
  imagePullSecret: multiclusterhub-operator-pull-secret
  observabilityAddonSpec:
    enableMetrics: true
    interval: 60
  retentionResolution1h: 30d
  retentionResolution5m: 14d
  retentionResolutionRaw: 5d
  storageConfigObject:
    metricObjectStorage:
      key: thanos.yaml
      name: thanos-object-storage
    statefulSetSize: 10Gi
    statefulSetStorageClass: thin

Error:

$ oc describe statefulset umbrella-observability-observatorium-thanos-receive-default
...
Events:
  Type     Reason        Age                   From                    Message
  ----     ------        ----                  ----                    -------
  Warning  FailedCreate  6m54s (x20 over 23m)  statefulset-controller  create Pod umbrella-observability-observatorium-thanos-receive-default-0 in StatefulSet umbrella-observability-observatorium-thanos-receive-default failed error: Pod "umbrella-observability-observatorium-thanos-receive-default-0" is invalid: metadata.labels: Invalid value: "umbrella-observability-observatorium-thanos-receive-default-5f478dbb5": must be no more than 63 characters

Comment 7 errata-xmlrpc 2021-06-16 19:28:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Advanced Cluster Management 2.2.4 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:2461