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

Bug in Infrastructure CRD where REGEX forces path in values that doesn't exist.

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 4.20.z
    • Unknown
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      Inspected the YAML for the Infrastructure CRD. Identified REGEX in YAML where values are being statically added to pathing values that doesn't exist in my VMWare environment.
      
       - One Example below. There are others. This keeps configurators from being able to commit entries into the Graphical for  "Home" -> "Overview" -> "vSphere connection".
      
      For the datastore YAML structure below:
      Real Path: /Management/spcsocmcx01-fs5kgen-ansb
      OCP Path Entry Path Required: /Management/datastore/spcsocmcx01-fs5kgen-ansb
      
                                    datastore:
                                          description: |-
                                            datastore is the absolute path of the datastore in which the
                                            virtual machine is located.
                                            The absolute path is of the form /<datacenter>/datastore/<datastore>
                                            The maximum length of the path is 2048 characters.
                                          type: string
                                          maxLength: 2048
                                          pattern: ^/.*?/datastore/.*?
      
      

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

          

      How reproducible:

          

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          datastore value is forced

      Expected results:

          datastore value should not be forced

      Additional info:

          

              Unassigned Unassigned
              rhn-support-shupadhy Shivam Upadhyay
              None
              None
              Shang Gao Shang Gao
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: