Bug 1996938

Summary: Search function on "Migration plans" page displays no results
Product: Migration Toolkit for Containers Reporter: ssingla
Component: UIAssignee: Ian <ibolton>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: medium    
Version: 1.6.0CC: ernelson, rjohnson, sregidor, ssingla, xjiang
Target Milestone: ---   
Target Release: 1.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-29 14:35:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Test recorded none

Description ssingla 2021-08-24 04:13:32 UTC
Created attachment 1817015 [details]
Test recorded

Description of problem:
On applying a migplan filter (not from the first page) to the Search box present in the Migration Plans section of the UI, results in the page are not visible.

Version-Release number of selected component (if applicable):
SOURCE CLUSTER: Azure OCP 4.6 (MTC 1.6.0)
TARGET CLUSTER: Azure OCP 4.9 (MTC 1.6.0)
REPLICATION REPOSITORY: Azure Blob Storage

How reproducible:
Always

Steps to Reproduce:
1. Create multiple new projects in the source cluster using this script.

for i in {1..50}; do oc new-project ocp-test-$i  --skip-config-write; done


2. Create the migration plans in the source cluster using below script.
#!/bin/bash

for i in {1..50}; do
    cat << EOF | oc create -f -
apiVersion: migration.openshift.io/v1alpha1
kind: MigPlan
metadata:
  labels:
    controller-tools.k8s.io: "1.0"
  name: migplan-ocp-test-$i
  namespace: openshift-migration
spec:
  indirectImageMigration: true
  srcMigClusterRef:
    name: source-cluster
    namespace: openshift-migration
  destMigClusterRef:
    name:  host
    namespace: openshift-migration
  migStorageRef:
    name: automatic
    namespace: openshift-migration
  namespaces:
  - "ocp-test-$i"
EOF
done

sleep 5

for i in {1..50}; do
  if ! oc get migplan migplan-ocp-test-$i -o yaml -n openshift-migration | grep "The migration plan is ready"; then
       echo "migration plan migplan-ocp-test-$i is not ready"
   fi
done

3. Now as 50 migration plans should be visible and Ready in the UI, navigate to the last page showing the last 10 migration plans.

4. Apply filter in the “Search box” above . For example: Enter “1” in the search box.

Actual results:

The results after applying the filter are not visible in the UI.

Expected results:

The results after applying the filter should be visible in the UI.

Comment 10 errata-xmlrpc 2021-09-29 14:35:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Migration Toolkit for Containers (MTC) 1.6.0 security & bugfix 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-2021:3694