Bug 1959426 - Limits on Length of MultiClusterObservability Resource Name
Summary: Limits on Length of MultiClusterObservability Resource Name
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: Core Services / Observability
Version: rhacm-2.2.z
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: rhacm-2.2.6
Assignee: Chunlin Yang
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-11 14:06 UTC by Chris Keller
Modified: 2021-08-12 14:23 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-16 19:28:23 UTC
Target Upstream Version:
Embargoed:
ming: rhacm-2.2.z+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github open-cluster-management backlog issues 12393 0 None None None 2021-05-11 16:08:24 UTC
Red Hat Product Errata RHSA-2021:2461 0 None None None 2021-06-16 19:29:04 UTC

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


Note You need to log in before you can comment on or make changes to this bug.