Uploaded image for project: 'OpenShift Windows Containers'
  1. OpenShift Windows Containers
  2. WINC-1621

Add test coverage: Verify node drain handles DaemonSet workloads during WMCO operations

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • 3
    • None
    • None
    • WINC - Sprint 285

      Add NEW standalone test to verify WMCO can successfully drain Windows nodes with DaemonSet workloads during node reconfiguration.

      Background:
      OCPBUGS-5354 identified that WMCO was unable to drain DaemonSet workloads due to missing RBAC permissions. Bug is fixed but needs test coverage to prevent regression.

      Test Objective:
      Create NEW test case (not extend existing) to verify WMCO service account has proper RBAC permissions and can drain nodes with DaemonSet workloads.

      Test Approach:

      1. Deploy DaemonSet targeting Windows nodes using Go string templates
      2. Verify RBAC permissions (oc auth can-i get/delete/list daemonsets)
      3. Trigger node reconfiguration without full upgrade (patch ConfigMap or version annotation)
      4. Verify drain succeeds with DaemonSet present
      5. Verify DaemonSet pods recover after reconfiguration

      Why NEW test:

      • OCP-43832 upgrade test is extremely long, should not add more complexity
      • Standalone test is clearer and focused
      • Can trigger reconfiguration without expensive full upgrade
      • Faster execution and better maintainability

      Implementation covered in subtasks:

      Related:

      • OCPBUGS-5354: WMCO unable to drain DaemonSet workloads (Fixed)
      • OCPQE-14219: Test coverage parent task

              rrasouli Aharon Rasouli
              rrasouli Aharon Rasouli
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: