Uploaded image for project: 'Red Hat OpenShift Data Science'
  1. Red Hat OpenShift Data Science
  2. RHODS-2276

As a QE, I want to the the Monitoring alert "JupyterHub image builds are failing" (tests ODS-717, ODS-790)

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • RHOSi v0.5
    • None
    • None
    • RHOSi Sprint 8, RHOSi Sprint 9, RHOSi 1.8, RHOSi 1.9

      Automate this two MPTC/MRTC tests with Importance=Critical:

      • ODS-717 - Verify alert "JupyterHub image builds are failing" fires when there is an image build error   
      • ODS-790 - Verify alert "JupyterHub image builds are failing" stops firing if a subsequent build for the same buildconfig passes    

       

      Here is a hint of the steps to follow to implement it using oc command (you can probably use the openshiftcli library for most of the commands). Please, create appropriate keywords for each of the commands that could be reused

      oc get builds -n redhat-ods-applications
      
      # Get last tensorflow build
      oc get builds -n redhat-ods-applications | grep tensorflow | awk '{print $1;}'
      
      # Delete tensorflow build
      oc delete builds s2i-tensorflow-gpu-cuda-11.4.2-notebook-1 -n redhat-ods-applicationsSleep 12m
      
      # Start a new tensorflow build 
      oc start-build s2i-tensorflow-gpu-cuda-11.4.2-notebook -n redhat-ods-applications
      
      # Wait until tensorflow build starts
      oc get builds -n redhat-ods-applications | grep tensorflow
      
      
      # Search and kill pod with tensorflow build
      oc get pods -n redhat-ods-applications | grep tensorflow | grep Running | awk '{print $1;}'
      oc exec s2i-tensorflow-gpu-cuda-11.4.2-notebook-2-build -n redhat-ods-applications -- /bin/kill  1
      
      # Verify tensorflow build is in Failed state
      oc get builds -n redhat-ods-applications | grep tensorflow
      
      # Verify alert "JupyterHub image builds are failing" fires in 5 minutes or less
      (Use existing keyword)
      
      # Start a new tensorflow build
      oc start-build s2i-tensorflow-gpu-cuda-11.4.2-notebook -n redhat-ods-applications
      
      # Verify alert "JupyterHub image builds are failing" stops firing
      (Use existing keyword)  
      
      
      

      https://docs.openshift.com/container-platform/4.9/cicd/builds/basic-build-operations.html

              rkamble@redhat.com Rushikesh Kamble (Inactive)
              rhn-support-jgarciao Jorge Garcia Oncins
              Jorge Garcia Oncins Jorge Garcia Oncins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: