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

Cannot create PTP BC HA configuration if profile has a dash in a name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • None
    • 4.16
    • Networking / ptp
    • None
    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress
    • 5/09: validation need to be updated

      Description of problem:

          If PTP profile contains a dash in a name, then creating PTP HA configuration fails

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

      OCP: 4.16.0-0.nightly-2024-04-29-222758
      PTP: ptp-operator.v4.16.0-202405020546    

      How reproducible:

      100%

      Steps to Reproduce:

          1. Create first PTP config with a profile name slave-bc1
          2. Create second PTP config with a profile name slave-bc2
          3. Create HA configuration with haProfiles="slave-bc1, slave-bc2"

      Actual results:

      Error from server (Forbidden): error when creating "./ptpha.yaml": admission webhook "vptpconfig.kb.io" denied the request: haProfiles='slave-bc1, slave-bc2' is invalid; must be comma seperated profile names

      Expected results:

      Configuration applied successfully

      Additional info:

          If "-" are removed, eg. profile names are slavebc1 and slavebc2, then the configuration works

              aputtur@redhat.com Aneesh Puttur
              agurenko@redhat.com Alexander Gurenko
              Hen Shay Hassid Hen Shay Hassid
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: