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

PowerVS: Cleanup service instances for destroy cluster

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • 4.14.0
    • 4.14
    • Installer / PowerVS
    • None
    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      The PowerVS installer will have code which creates a new service instance during installation.  Therefore, we need to delete that service instance upon cluster deletion.
      

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

      4.14
      

      How reproducible:

      Always
      

      Steps to Reproduce:

      1. Create cluster
      2. Delete cluster
      

      Actual results:

      No leftover service instance
      

      Expected results:

      
      

      Additional info:

      
      

            [OCPBUGS-14917] PowerVS: Cleanup service instances for destroy cluster

            Errata Tool added a comment -

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (Important: OpenShift Container Platform 4.14.0 bug fix and security update), and where to find the updated files, follow the link below.

            If the solution does not work for you, open a new bug report.
            https://access.redhat.com/errata/RHSA-2023:5006

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (Important: OpenShift Container Platform 4.14.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:5006

            Mark Hamzy added a comment -

            Mark Hamzy added a comment - https://github.com/openshift/installer/pull/7328 Should fix the issue

            Julie Mathew added a comment - - edited

            https://github.com/openshift/installer/pull/6496 is not merged yet.
            As a workaround, the following steps were executed to verify destruction of service instance. This was successful.

            1. Create a cluster as you normally would
            2. Create a new Power VS Workspace after you deploy, that is named <infraID-power-iaas >
            3. Run 'openshift-install destroy cluster ' command
            4. Verify that the Power VS Workspace you created in step 2 is destroyed along with the cluster.

            Julie Mathew added a comment - - edited https://github.com/openshift/installer/pull/6496 is not merged yet. As a workaround, the following steps were executed to verify destruction of service instance. This was successful. 1. Create a cluster as you normally would 2. Create a new Power VS Workspace after you deploy, that is named <infraID-power-iaas > 3. Run 'openshift-install destroy cluster ' command 4. Verify that the Power VS Workspace you created in step 2 is destroyed along with the cluster.

            Julie Mathew added a comment - - edited

            Tried verifying this with 4.14.0-ec2 build.
            OCP deployment itself failed while trying to deploy without specifying a "service instance"in the 'install-config.yaml' file.
            Error msg: FATAL failed to fetch Terraform Variables: failed to fetch dependency of "Terraform Variables": failed to generate asset "Platform Provisioning Check": platform:powervs:serviceinstance is empty.

            Above error is caused because the code for creating the service instance has not merged yet. PR: https://github.com/openshift/installer/pull/6496
            Dev has pre-emptively merged the destroy code.
            QE cannot verify the fix now, need to wait until the PR for creating the service instance gets merged. FYI: jpoulin hamzy_redhat ahendre2

            Julie Mathew added a comment - - edited Tried verifying this with 4.14.0-ec2 build. OCP deployment itself failed while trying to deploy without specifying a "service instance"in the 'install-config.yaml' file. Error msg: FATAL failed to fetch Terraform Variables: failed to fetch dependency of "Terraform Variables": failed to generate asset "Platform Provisioning Check": platform:powervs:serviceinstance is empty. Above error is caused because the code for creating the service instance has not merged yet. PR: https://github.com/openshift/installer/pull/6496 Dev has pre-emptively merged the destroy code. QE cannot verify the fix now, need to wait until the PR for creating the service instance gets merged. FYI: jpoulin hamzy_redhat ahendre2

              jmathew@redhat.com Julie Mathew
              hamzy_redhat Mark Hamzy
              Gaoyun Pei Gaoyun Pei
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: