Bug 1879455 - [MTC-UI] The number of pods and pvcs shown in the UI when creating a migplan is wrong
Summary: [MTC-UI] The number of pods and pvcs shown in the UI when creating a migplan...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Migration Tooling
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.5.0
Assignee: Jeff Ortel
QA Contact: Xin jiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-16 10:37 UTC by Sergio
Modified: 2020-09-30 18:43 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-30 18:43:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot (55.81 KB, image/png)
2020-09-16 10:37 UTC, Sergio
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4148 0 None None None 2020-09-30 18:43:19 UTC

Description Sergio 2020-09-16 10:37:17 UTC
Created attachment 1715061 [details]
screenshot

Description of problem:
When we create a migration plan, when we select the namespaces that we can migrate, the UI shows how many pvcs, pods and services are in those namespaces. The numbers shown are wrong.

Version-Release number of selected component (if applicable):
MTC 1.3

How reproducible:
Always

Steps to Reproduce:
1. Create an application with 1 pods, 1 service and 2 pvcs in the namespaces "bztest".

oc process  -p NAMESPACE=bztest  -f https://gitlab.cee.redhat.com/app-mig/cam-helper/-/raw/master/nginx/nginx_with_pv_defaultsc_v1_template.yml  | oc create -f -

2. Use the UI to create the migration plan


Actual results:
In the "Namespaces" section, the "bztest" namespace shows

2 Pods (actually there is only one)
1 PVC  (actually there are 2)


Expected results:
The values shown for all the namespaces should be the right ones.

Additional info:
Screenshot attached

Comment 1 Ian 2020-09-16 15:32:04 UTC
We are displaying the data we are getting from the discovery service which looks like it is the culprit. 

response from discovery service: 

{"name":"ian-3","serviceCount":0,"podCount":16,"pvcCount":64,"selfLink":"/namespaces/:ns1/clusters/:cluster/namespaces/ian-3"},

~ %  oc project ian-3

~ %  oc get pvc
NAME                                   STATUS    VOLUME    CAPACITY   ACCESS MODES   STORAGECLASS   AGE
0b8ea2e4-72ba-4e51-b28e-a076d5504f75   Bound     vol7      10Gi       RWO                           19d
11f8f793-7cd0-4d03-ae07-53a67ff47eaa   Bound     vol123    10Gi       RWO                           19d
18a843c0-4f95-48de-9bb8-162d6cfc9ddc   Bound     vol49     10Gi       RWO                           19d
3f9b02af-6b01-49dc-9504-43d5656e1850   Bound     vol77     10Gi       RWO                           19d
5d13c52b-eabe-403e-9e98-d094248e96e0   Bound     vol121    10Gi       RWO                           19d
6f00f819-1c87-44ca-a8f0-a09d92c15112   Bound     vol25     10Gi       RWO                           19d
7efc5927-5a6d-4778-a5a5-eebfce5c1815   Bound     vol133    10Gi       RWO                           19d
879c259f-dd3a-451e-ba1a-17d03b7e44fc   Bound     vol163    10Gi       RWO                           19d
a43cd080-4343-4ca8-8f48-cb600d0486bb   Bound     vol1      10Gi       RWO                           19d
aa0fc3f5-ec0c-460e-9987-2a9eeeaa414a   Bound     vol19     10Gi       RWO                           19d
bbce76d7-798f-474f-ab65-05338cc19d22   Bound     vol67     10Gi       RWO                           19d
da159177-145e-473c-afa8-729eca583f9a   Bound     vol59     10Gi       RWO                           19d
da314cc1-5fea-43c4-8955-caf6a3f592f5   Bound     vol87     10Gi       RWO                           19d
f74c2eda-8c85-4e52-878e-c359de9c347f   Bound     vol83     10Gi       RWO                           19d
f7c211da-70ab-4dc0-a3d8-c720958ad419   Bound     vol117    10Gi       RWO                           19d
test-1                                 Bound     vol167    10Gi       RWO                           19d


~ % oc get pods
NAME                                                           READY     STATUS     RESTARTS   AGE
stage-0b8ea2e4-72ba-4e51-b28e-a076d5504f75-6b8fw               1/1       Running    0          15d
stage-11f8f793-7cd0-4d03-ae07-53a67ff47eaa-wr9zd               1/1       Running    0          15d
stage-18a843c0-4f95-48de-9bb8-162d6cfc9ddc-vntjq               1/1       Running    0          15d
stage-3f9b02af-6b01-49dc-9504-43d5656e1850-lpl6j               1/1       Running    0          15d
stage-5d13c52b-eabe-403e-9e98-d094248e96e0-z8j6l               1/1       Running    0          15d
stage-6f00f819-1c87-44ca-a8f0-a09d92c15112-246tp               1/1       Running    0          15d
stage-7efc5927-5a6d-4778-a5a5-eebfce5c1815-tvlj9               1/1       Running    0          15d
stage-879c259f-dd3a-451e-ba1a-17d03b7e44fc-9jjs2               1/1       Running    0          15d
stage-a43cd080-4343-4ca8-8f48-cb600d0486bb-mr4ff               1/1       Running    0          15d
stage-aa0fc3f5-ec0c-460e-9987-2a9eeeaa414a-jg7jx               1/1       Running    0          15d
stage-bbce76d7-798f-474f-ab65-05338cc19d22-656p9               1/1       Running    0          15d
stage-da159177-145e-473c-afa8-729eca583f9a-7xs9b               1/1       Running    0          15d
stage-da314cc1-5fea-43c4-8955-caf6a3f592f5-6dqvj               1/1       Running    0          15d
stage-f74c2eda-8c85-4e52-878e-c359de9c347f-dcwqr               1/1       Running    0          15d
stage-f7c211da-70ab-4dc0-a3d8-c720958ad419-2k6rj               1/1       Running    0          15d
stage-stage-0b8ea2e4-72ba-4e51-b28e-a076d5504f75-6b8fw-crhdl   1/1       Running    0          15d
stage-stage-0b8ea2e4-72ba-4e51-b28e-a076d5504f75-6b8fw-klpks   1/1       Running    0          15d
stage-stage-0b8ea2e4-72ba-4e51-b28e-a076d5504f75-6b8fw-xd7jl   1/1       Running    0          2d
stage-stage-11f8f793-7cd0-4d03-ae07-53a67ff47eaa-wr9zd-hhv97   1/1       Running    0          15d
stage-stage-11f8f793-7cd0-4d03-ae07-53a67ff47eaa-wr9zd-m6r24   1/1       Running    0          15d
stage-stage-11f8f793-7cd0-4d03-ae07-53a67ff47eaa-wr9zd-sprc5   1/1       Running    0          2d
stage-stage-18a843c0-4f95-48de-9bb8-162d6cfc9ddc-vntjq-4mdf4   1/1       Running    0          15d
stage-stage-18a843c0-4f95-48de-9bb8-162d6cfc9ddc-vntjq-8t6vb   1/1       Running    0          15d
stage-stage-18a843c0-4f95-48de-9bb8-162d6cfc9ddc-vntjq-hjg54   1/1       Running    0          2d
stage-stage-3f9b02af-6b01-49dc-9504-43d5656e1850-lpl6j-7q99l   1/1       Running    0          15d
stage-stage-3f9b02af-6b01-49dc-9504-43d5656e1850-lpl6j-c7xb2   1/1       Running    0          15d
stage-stage-3f9b02af-6b01-49dc-9504-43d5656e1850-lpl6j-p7ljk   1/1       Running    0          2d
stage-stage-5d13c52b-eabe-403e-9e98-d094248e96e0-z8j6l-cfhlp   1/1       Running    0          15d
stage-stage-5d13c52b-eabe-403e-9e98-d094248e96e0-z8j6l-hh62t   1/1       Running    0          2d
stage-stage-5d13c52b-eabe-403e-9e98-d094248e96e0-z8j6l-vhjxs   1/1       Running    0          15d
stage-stage-6f00f819-1c87-44ca-a8f0-a09d92c15112-246tp-j6g4q   1/1       Running    0          15d
stage-stage-6f00f819-1c87-44ca-a8f0-a09d92c15112-246tp-vskck   1/1       Running    0          2d
stage-stage-6f00f819-1c87-44ca-a8f0-a09d92c15112-246tp-x7cck   1/1       Running    0          15d
stage-stage-7efc5927-5a6d-4778-a5a5-eebfce5c1815-tvlj9-7vc2l   1/1       Running    0          15d
stage-stage-7efc5927-5a6d-4778-a5a5-eebfce5c1815-tvlj9-nb2tg   1/1       Running    0          2d
stage-stage-7efc5927-5a6d-4778-a5a5-eebfce5c1815-tvlj9-nxgxf   1/1       Running    0          15d
stage-stage-879c259f-dd3a-451e-ba1a-17d03b7e44fc-9jjs2-274qh   1/1       Running    0          2d
stage-stage-879c259f-dd3a-451e-ba1a-17d03b7e44fc-9jjs2-f995f   1/1       Running    0          15d
stage-stage-879c259f-dd3a-451e-ba1a-17d03b7e44fc-9jjs2-grc5x   1/1       Running    0          15d
stage-stage-a43cd080-4343-4ca8-8f48-cb600d0486bb-mr4ff-8h8qc   1/1       Running    0          2d
stage-stage-a43cd080-4343-4ca8-8f48-cb600d0486bb-mr4ff-c9sjb   1/1       Running    0          15d
stage-stage-a43cd080-4343-4ca8-8f48-cb600d0486bb-mr4ff-fgwtx   1/1       Running    0          15d
stage-stage-aa0fc3f5-ec0c-460e-9987-2a9eeeaa414a-jg7jx-9jtwr   1/1       Running    0          15d
stage-stage-aa0fc3f5-ec0c-460e-9987-2a9eeeaa414a-jg7jx-cbd2w   1/1       Running    0          15d
stage-stage-aa0fc3f5-ec0c-460e-9987-2a9eeeaa414a-jg7jx-gm6t7   1/1       Running    0          2d
stage-stage-bbce76d7-798f-474f-ab65-05338cc19d22-656p9-llwj2   1/1       Running    0          15d
stage-stage-bbce76d7-798f-474f-ab65-05338cc19d22-656p9-ncslt   1/1       Running    0          2d
stage-stage-bbce76d7-798f-474f-ab65-05338cc19d22-656p9-rhdwk   1/1       Running    0          15d
stage-stage-da159177-145e-473c-afa8-729eca583f9a-7xs9b-4kbp9   1/1       Running    0          15d
stage-stage-da159177-145e-473c-afa8-729eca583f9a-7xs9b-mhgls   1/1       Running    0          2d
stage-stage-da159177-145e-473c-afa8-729eca583f9a-7xs9b-nwqnt   1/1       Running    0          15d
stage-stage-da314cc1-5fea-43c4-8955-caf6a3f592f5-6dqvj-p5wc8   1/1       Running    0          15d
stage-stage-da314cc1-5fea-43c4-8955-caf6a3f592f5-6dqvj-rv9nt   1/1       Running    0          15d
stage-stage-da314cc1-5fea-43c4-8955-caf6a3f592f5-6dqvj-rzwsd   1/1       Running    0          2d
stage-stage-f74c2eda-8c85-4e52-878e-c359de9c347f-dcwqr-926bq   0/1       OutOfcpu   0          2d
stage-stage-f74c2eda-8c85-4e52-878e-c359de9c347f-dcwqr-9js5d   1/1       Running    0          15d
stage-stage-f74c2eda-8c85-4e52-878e-c359de9c347f-dcwqr-vf9sv   1/1       Running    0          15d
stage-stage-f7c211da-70ab-4dc0-a3d8-c720958ad419-2k6rj-2jkph   1/1       Running    0          15d
stage-stage-f7c211da-70ab-4dc0-a3d8-c720958ad419-2k6rj-b42xf   1/1       Running    0          2d
stage-stage-f7c211da-70ab-4dc0-a3d8-c720958ad419-2k6rj-scnll   1/1       Running    0          15d
stage-stage-stage-stage-test-1-rfwlv-r8sll-ccmsc-7cw8m         1/1       Running    0          2d
stage-stage-stage-test-1-rfwlv-r8sll-ccmsc                     1/1       Running    0          15d
stage-stage-test-1-rfwlv-r8sll                                 1/1       Running    0          15d
stage-test-1-rfwlv                                             1/1       Running    0          15d

Comment 2 Jeff Ortel 2020-09-16 16:53:45 UTC
Fixed in discovery controller.
Commit: 3afa781202f3ccd680d86248551ec1e3e85a32d8 cherry-picked to release-1.3.0.

Comment 6 Sergio 2020-09-18 13:43:09 UTC
Verified using MTC 1.3

openshift-migration-controller-rhel8@sha256:d58cccd15cc61be039cd1c8dae9584132dbd59095faf4f4f027fdb05d1860bdb


The values displayed now in UI are the right ones.

Moved to VERIFIED status.

Comment 10 errata-xmlrpc 2020-09-30 18:43:07 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 (Migration Toolkit for Containers (MTC) Tool image release advisory 1.3.0), 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/RHBA-2020:4148


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