Bug 1949405

Summary: "Copy oc get command" does not work for DirectVolumeMigration and DirectImageMigration resources
Product: Migration Toolkit for Containers Reporter: Sergio <sregidor>
Component: GeneralAssignee: Derek Whatley <dwhatley>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: unspecified    
Version: 1.4.3CC: dwhatley, ernelson, rjohnson, whu, xjiang
Target Milestone: ---   
Target Release: 1.4.3   
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-04-28 05:52:41 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 2021-04-14 08:19:42 UTC
Description of problem:
In the "Migration plan resources" list screen, we cannot copy the "oc get" command for DVM and DIM. 

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

How reproducible:
Always

Steps to Reproduce:
1. In source cluster, create an application with an imagestream and a volume

oc new-project bz-test
oc new-app django-psql-persistent

2. Create a migration plan for this namespace using DIM and DVM.

3. Execute the migration

4. In the UI, click on the number "1" in the "Migrations" column for this migplan.

5. A section with the name "Migration plan resources" is displayed.

6. Select the DirectVolumeMigration resource, click on the kebab and on "Copy oc get command"

Actual results:
After copying the command what we get when we paste it is the string "Command was not copied."

The same happens with DIM resource.

Expected results:
The commands to get the DirectVolumeMigration and the DirectImageMigration should be copied properly.

Additional info:

Comment 5 Sergio 2021-04-23 10:26:11 UTC
Verified using MTC 1.4.3

openshift-migration-rhel7-operator@sha256:8462440da72acc6ebef9f8498c8504b97047a29718d309a60888c3327807e431
    - name: MIG_UI_REPO
      value: openshift-migration-ui-rhel8@sha256
    - name: MIG_UI_TAG
      value: 025cd29f8f097970650b707bf35b922828eb3852f0f1f2010e41bb94e4f60bad

Both, DVM and DIM resources, "oc get" commands are copied properly.

Moved to VERIFIED status.

Comment 10 errata-xmlrpc 2021-04-28 05:52:41 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.4.3), 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-2021:1439