Uploaded image for project: 'OpenShift Cloud'
  1. OpenShift Cloud
  2. OCPCLOUD-1741

Create test that uninstalls an existing CPMS

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • CLOUD Sprint 228

      Background

      To validate the deletion process of the CPMS, we need to create a test that deletes the CPMS and checks that the CPMS eventually goes away (it may come back with a different UID), and that when it goes away, there are no owner references on the control plane machines, there are still 3 control plane machines, and the cluster operators are all stable

      Motivation

      This is already tested with an integration test, but we should also check this in E2E as it is cheap (assuming it works, no machine changes) and may pick up weird interactions with other components.

      Eg in integration we have no GC running.

      Steps

      • Create a test that:
        • Checks that/waits until all clusteroperators are stable
        • Checks the ControlPlaneMachineSet is as expected
        • Deletes the ControlPlaneMachineSet
        • Waits for the CPMS to be removed/ for the UID to change
        • Checks that (if present) the new CPMS is inactive
        • Checks that all control plane machines are still running
        • Checks that all control plane machines have no owner references
        • Checks that all control plane machines do not have a deletion timestamp
        • Checks that all clusteroperators are stable

      Stakeholders

      • Cluster Infra

      Definition of Done

      • Test is merged and running as a presubmit and periodic test
      • Docs
      • <Add docs requirements for this card>
      • Testing
      • <Explain testing that will be added>

              ddonati@redhat.com Damiano Donati
              joelspeed Joel Speed
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: