Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1772401

Summary: [MIG-UI] Only the first migplan is deleted
Product: OpenShift Container Platform Reporter: Sergio <sregidor>
Component: Migration ToolingAssignee: Danil Grigorev <dgrigore>
Status: CLOSED ERRATA QA Contact: Sergio <sregidor>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.0CC: chezhang, dymurray, ernelson, jmatthew, rpattath, xjiang
Target Milestone: ---   
Target Release: 4.3.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: 2020-02-06 20:20:44 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:

Description Sergio 2019-11-14 10:39:39 UTC
Description of problem:
When we try to delete more than one MigPlan that are not closed, only the first MigPlan is deleted. The rest of the MigPlans are only closed, and not deleted.


Version-Release number of selected component (if applicable):
UI
    image: quay.io/ocpmigrate/mig-ui:latest
    imageID: quay.io/ocpmigrate/mig-ui@sha256:6c94380c7fd28b0e9cdb18719c56e067bdd4b87169a3845353d06f6f38c3fec5
Controller
    image: quay.io/ocpmigrate/mig-controller:latest
    imageID: quay.io/ocpmigrate/mig-controller@sha256:478069f3c6574b31cbd68241d796e4b9eb4ab1234586208ccfc1adca3806594d
Velero:
    image: quay.io/ocpmigrate/velero:latest
    imageID: quay.io/ocpmigrate/velero@sha256:558a7a27bca175b3a9fd5318462f66bf7f1396da48ed2ca7f1a2ea6f32ff5331
    image: quay.io/ocpmigrate/migration-plugin:latest
    imageID: quay.io/ocpmigrate/migration-plugin@sha256:96e956dd650b72dfd1db4f951b4ecb545e94c6253968d83ef33de559d83ece85


How reproducible:
Always

Steps to Reproduce:
1. Create several migration plans. 3 or 4. It's not necessary to execute them, just create them.
2. Delete all of them: Click on the 3 dots on the right, then "Delete", for every plan.

Actual results:
Only first plan is deleted the rest of the plans are only closed, but they are not deleted.

Expected results:
All plans should be deleted.

Additional info:

Comment 2 Danil Grigorev 2019-12-18 14:50:23 UTC
PR to fix: https://github.com/fusor/mig-ui/pull/641

Comment 4 Xin jiang 2020-01-15 08:19:43 UTC
it seems this bug was not really fixed from UI. 

Steps to Reproduce:
1. Create several migration plans. 3 or 4. It's not necessary to execute them, just create them.
2. Delete all of them: Click on the 3 dots on the right, then "Delete", for every plan.

Actual results:
Only the first plan is changed to Closed status. We expect it is deleted.

Other plans still are stuck in Pending. If I refresh the page, all the plans are changed to Closed.

oc get migplan test4 -n openshift-migration -o yaml
status:
  conditions:
  - category: Required
    lastTransitionTime: "2020-01-15T08:11:44Z"
    message: The `persistentVolumes` list has been updated with discovered PVs.
    reason: Done
    status: "True"
    type: PvsDiscovered
  - category: Advisory
    lastTransitionTime: "2020-01-15T08:12:55Z"
    message: The migration plan is closed.
    status: "True"
    type: Closed

Comment 5 Xin jiang 2020-01-15 08:24:06 UTC
this is the UI image we used.

 - containerID: cri-o://84daee4ed6a1282d736a841b6d6ded91011f6b5dd719623b5bfe8519e9024b5d
    image: image-registry.openshift-image-registry.svc:5000/rhcam-1-1/openshift-migration-ui-rhel8@sha256:3793634100daf82b84b3174811b262f7dc5f4fff111265ccffa4c0cb9ffe0421
    imageID: image-registry.openshift-image-registry.svc:5000/rhcam-1-1/openshift-migration-ui-rhel8@sha256:3793634100daf82b84b3174811b262f7dc5f4fff111265ccffa4c0cb9ffe0421

Comment 6 Danil Grigorev 2020-01-17 13:21:53 UTC
PR was posted on 12-18, and still qualifies as an unmerged fix. Moving to POST: https://github.com/fusor/mig-ui/pull/641

Comment 8 Sergio 2020-01-22 09:40:59 UTC
Verified in CAM 1.1 stage
Controller:
    image: registry.stage.redhat.io/rhcam-1-1/openshift-migration-controller-rhel8@sha256:ec015e65da93e800a25e522473793c277cd0d86436ab4637d73e2673a5f0083d
UI:
    image: registry.stage.redhat.io/rhcam-1-1/openshift-migration-ui-rhel8@sha256:ecd81e11af0a17bfdd4e6afce1bf60f422115ed3545ad2b0d055f0fded87e422

All closed and not closed migration plans were deleted OK.

Comment 10 errata-xmlrpc 2020-02-06 20:20:44 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, 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/RHEA-2020:0440