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

Incorrect validation by controlplanemachineset.machine.openshift.io validating webhook when deleting or modifying controlplanemachineset on OCP 4.15 on VSphere

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 4.15.z
    • None
    • Important
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

          In continuation to https://issues.redhat.com/browse/OCPBUGS-31808, when the controlplanemachineset is deleted on a 4.15 cluster on VSphere(to recreate it without failure domains), it thorws an error like below:
      
      ~~~
          message: 'The control plane machine set has experienced the following error more
            than 15 consecutive times since 2024-04-29 19:09:39.53196189 +0000 UTC m=+0.548307418:
            failed to update control plane machine set: admission webhook "controlplanemachineset.machine.openshift.io"
            denied the request: spec.template.machines_v1beta1_machine_openshift_io.spec.providerSpec.value.template:
            Invalid value: "uslpreprod1-br7h4-rhcos": template must be provided as the full
            path'
      ~~~
      
      It is expecting the ull path for th template. However, when installing the cluster, the machinesets only have the name of the template and the controlplanemachineset creation also succeeded initially with only the template name.
      
      This issue happens when trying to modify the controlplanemachineset as well.
      
      This validation seems incorrect by the validating webhook controlplanemachineset.machine.openshift.io.

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

          4.15

      How reproducible:

          Reproducible on VSphere

      Steps to Reproduce:

          1. Try deleting or modifying the controlplanemachineset when it has only the template name and not the full template path.
          2. It fails with the said error.
          

      Actual results:

          The controlplanemachineset fails deletion

      Expected results:

           The controlplanemachineset should delete without expecting full path of the template

      Additional info:

          

              joelspeed Joel Speed
              rhn-support-alosingh Alok Singh
              Zhaohua Sun Zhaohua Sun
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: