Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-52059

SSH key secret creation accepts invalid (for volume) name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • CNV v4.18.0
    • None
    • CNV User Interface
    • None
    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • CNV v4.18.0.rhel9-714
    • None

      Description of problem:

      When creating a new SSH key during the VM creation flow, a secret is created.  The name of that secret is then used to generate a volume name when the VM is started.  The plugin accepts a name that includes dots (.), which is fine for the name of the secret, but is not allowed in the name of a volume.  The result is an error message like this when attempting to start the VM.
      
      
      [spec.volumes[8].name: Invalid value: "pilcher-ian.penurio.us-access-cred": must not contain dots
      
      
      

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

          

      How reproducible:

      100%

      Steps to Reproduce:

          1. Create & customize VM.
          2. Choose to create a new SSH key secret.
          3. Provide secret name that contains dots (e.g. pilcher-ian.penurio.us).
          4. Attempt to start VM.
          

      Actual results:

          VM fails to start, with error about volume name that containts dots.

      Expected results:

          Secret name containing dots should not be accepted.

      Additional info:

          

              upalatuc@redhat.com Ugo Palatucci
              icpilcher Ian Pilcher
              Leon Kladnitsky Leon Kladnitsky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: