Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-16076

Validate cluster name when creating from CLI

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Normal
    • 4.14.0
    • 4.13.0, 4.14.0
    • HyperShift
    • Low
    • No
    • Hypershift Sprint 240, Hypershift Sprint 241, Hypershift Sprint 242
    • 3
    • False
    • Hide

      None

      Show
      None
    • Hide
      Before this update, invalid hosted cluster names were allowed to be created through the hosted control plane command line interface (`hcp`), which caused the hosted clusters to not meet the RFC 1123 standard. With this update, only hosted cluster names that meet the RFC 1123 standard can be created through `hcp`. (link:https://issues.redhat.com/browse/OCPBUGS-16076[*OCPBUGS-16076*])
      Show
      Before this update, invalid hosted cluster names were allowed to be created through the hosted control plane command line interface (`hcp`), which caused the hosted clusters to not meet the RFC 1123 standard. With this update, only hosted cluster names that meet the RFC 1123 standard can be created through `hcp`. (link: https://issues.redhat.com/browse/OCPBUGS-16076 [* OCPBUGS-16076 *])
    • Bug Fix
    • Done

    Description

      Description of problem:

      hypershift CLI tool allows any string for cluster name. But later when the cluster is to be imported, it needs to confirm to RFC1123.
      
      So the user needs to read the error, destroy the cluster and then try again with a proper name. This experience can be improved.

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

      4.13.4

      How reproducible:

      Always

      Steps to Reproduce:

      1. hypershift create cluster kubevirt --name virt-4.12 ...
      2. try to import it
      

      Actual results:

      cluster fails to import due to its name

      Expected results:

      validate the cluster name in the hypershift cli, fail early

      Additional info:

       

      Attachments

        Issue Links

          Activity

            People

              rh-ee-brcox Bryan Cox
              rhn-support-gveitmic Germano Veit Michel
              Jie Zhao Jie Zhao
              Laura Hinson Laura Hinson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: