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

[vSphere] installer try to delete optional folder defined in failureDomains.topology.folder

XMLWordPrintable

    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      When creating IPI cluster with optional folder defined in failureDomains.topology.folder
      platform:
        vsphere:
          failureDomains:
            topology:
              ...
              folder: /nesteddatacenter/vm/sgao-folder
      Install successfully, but when destroying cluster, it will try to delete this folder, it's not expected and will cause failure due to permission issue. Check the folder, it is also attached tag created by the installer.
      
      # ./openshift-install destroy cluster --dir cluster --log-level debug
      DEBUG OpenShift Installer 4.16.0-0.nightly-2024-06-14-072943
      DEBUG Built from commit 8121bc1ebc136daae78b8f2981dab3a2c0b32e7a
      DEBUG Power Off Virtual Machines
      DEBUG Powered off                                   VirtualMachine=sgao-nest-ktqck-master-0
      DEBUG Powered off                                   VirtualMachine=sgao-nest-ktqck-master-1
      DEBUG Powered off                                   VirtualMachine=sgao-nest-ktqck-master-2
      DEBUG Powered off                                   VirtualMachine=sgao-nest-ktqck-bootstrap
      DEBUG Delete Virtual Machines
      INFO Destroyed                                     VirtualMachine=sgao-nest-ktqck-rhcos-generated-region-generated-zone
      INFO Destroyed                                     VirtualMachine=sgao-nest-ktqck-master-0
      INFO Destroyed                                     VirtualMachine=sgao-nest-ktqck-master-1
      INFO Destroyed                                     VirtualMachine=sgao-nest-ktqck-master-2
      INFO Destroyed                                     VirtualMachine=sgao-nest-ktqck-bootstrap
      DEBUG Delete Folder
      DEBUG ServerFaultCode: Permission to perform this operation was denied.  Folder=sgao-folder
      DEBUG Folder: ServerFaultCode: Permission to perform this operation was denied.
      DEBUG Power Off Virtual Machines
      DEBUG Delete Virtual Machines
      DEBUG Delete Folder
      DEBUG ServerFaultCode: Permission to perform this operation was denied.  Folder=sgao-folder
      DEBUG Folder: ServerFaultCode: Permission to perform this operation was denied.
      DEBUG Power Off Virtual Machines
      DEBUG Delete Virtual Machines
      DEBUG Delete Folder
      DEBUG ServerFaultCode: Permission to perform this operation was denied.  Folder=sgao-folder
      DEBUG Folder: ServerFaultCode: Permission to perform this operation was denied.
      DEBUG Power Off Virtual Machines
      DEBUG Delete Virtual Machines
      DEBUG Delete Folder
      ...
      
       

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

      4.16.0-0.nightly-2024-06-13-213831
      

      How reproducible:

      always

      Steps to Reproduce:

      1. Create folder and grant "Virtual Machine Folder" privileges according to https://docs.openshift.com/container-platform/4.15/installing/installing_vsphere/ipi/ipi-vsphere-installation-reqs.html#installation-vsphere-installer-infra-requirements_ipi-vsphere-installation-reqs
      2. Install cluster
      3. Destroy cluster 

      Actual results:

      installer try to delete optional folder

      Expected results:

      installer should not delete optional folder

      Additional info:

       

            rhn-support-rvanderp Richard Vanderpool
            sgaoshang Shang Gao
            Gaoyun Pei Gaoyun Pei
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: