Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-7755

DBaaS: Clusters with longer name not initializing

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Fixed
    • 2.15.1
    • 2.19.0
    • PMM UI

    Description

      STR:

      Open DBaaS page and add a new DB cluster

      1. MySQL cluster with nameĀ length > 22
      2. MongoDB cluster with name length > 45

      Actual result:

      [ec2-user@ip-10-178-2-224 ~]$ minikube kubectl -- get pods
      NAME                                                              READY   STATUS      RESTARTS   AGE
      a123456789012345678901-proxysql-0                                 3/3     Running     0          9m10s
      a123456789012345678901-pxc-0                                      1/1     Running     0          9m28s
      a1234567890123456789012345678901234567890123456-cfg-0             2/2     Running     5          11m
      a1234567890123456789012345678901234567890123456-cfg-1             2/2     Running     5          11m
      a1234567890123456789012345678901234567890123456-cfg-2             2/2     Running     5          11m
      a1234567890123456789012345678901234567890123456-mongos-7d68b7z7   0/1     Running     0          11m
      a1234567890123456789012345678901234567890123456-mongos-7d6qr57g   0/1     Running     0          11m
      a1234567890123456789012345678901234567890123456-mongos-7d6qwnhl   0/1     Running     0          11m
      a1234567890123456789012345678901234567890123456-rs0-0             2/2     Running     5          11m
      a1234567890123456789012345678901234567890123456-rs0-1             2/2     Running     5          11m
      a1234567890123456789012345678901234567890123456-rs0-2             2/2     Running     5          11m
      percona-server-mongodb-operator-6f866d7857-xzdpl                  1/1     Running     0          34m
      percona-xtradb-cluster-operator-5c5b6ddf7d-g9mn2                  1/1     Running     0          3h25m
      xb-cron-a234567890123456-pxc-backup-stora-20210315133015-36j64l   0/1     Completed   0          163m
      Error: update or create deployment a12345678901234567890123456789012345678901234567-mongos: create: Deployment.apps "a12345678901234567890123456789012345678901234567-mongos" is invalid: [spec.template.spec.volumes[0].name: Invalid value: "a12345678901234567890123456789012345678901234567-mongodb-keyfile": must be no more than 63 characters, spec.template.spec.containers[0].volumeMounts[1].name: Not found: "a12345678901234567890123456789012345678901234567-mongodb-keyfile"]

      Expected result:

      UI should have length restrictions

      Attachments

        Issue Links

          Activity

            People

              tiago.mota Tiago Mota (Inactive)
              tiago.mota Tiago Mota (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 day
                  1d

                  Smart Checklist