Bug 1996938 - Search function on "Migration plans" page displays no results
Summary: Search function on "Migration plans" page displays no results
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: UI
Version: 1.6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 1.6.0
Assignee: Ian
QA Contact: Xin jiang
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-24 04:13 UTC by ssingla
Modified: 2021-09-29 14:35 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-29 14:35:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Test recorded (354.66 KB, application/x-matroska)
2021-08-24 04:13 UTC, ssingla
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github konveyor mig-ui pull 1295 0 None None None 2021-08-26 22:17:22 UTC
Github konveyor mig-ui pull 1302 0 None None None 2021-09-01 14:52:53 UTC
Github konveyor mig-ui pull 1304 0 None None None 2021-09-01 16:13:52 UTC
Red Hat Product Errata RHSA-2021:3694 0 None None None 2021-09-29 14:35:31 UTC

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


Note You need to log in before you can comment on or make changes to this bug.