Bug 1708367 - [RFE][V2V] Need option/button to remove conversion host from UI when it is failed to configured
Summary: [RFE][V2V] Need option/button to remove conversion host from UI when it is fa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: V2V
Version: 5.10.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.11.5
Assignee: Mike Turley
QA Contact: Nandini Chandra
Red Hat CloudForms Documentation
URL:
Whiteboard: v2v
: 1713032 1718733 (view as bug list)
Depends On:
Blocks: 1822318
TreeView+ depends on / blocked
 
Reported: 2019-05-09 17:19 UTC by Yadnyawalk Tale
Modified: 2020-05-05 13:43 UTC (History)
9 users (show)

Fixed In Version: 5.11.5.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-05 13:43:06 UTC
Category: ---
Cloudforms Team: V2V
Target Upstream Version:
Embargoed:
pm-rhel: cfme-5.11.z+


Attachments (Terms of Use)
issue.png (67.93 KB, image/png)
2019-05-09 17:19 UTC, Yadnyawalk Tale
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2020 0 None None None 2020-05-05 13:43:24 UTC

Description Yadnyawalk Tale 2019-05-09 17:19:16 UTC
Created attachment 1566311 [details]
issue.png

Description of problem:
Need option/button to remove conversion host from UI when it is failed to configured


Version-Release number of selected component (if applicable):
5.10.4.2.20190508174256_282f74e 


How reproducible:
100%


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Shveta 2019-05-23 14:33:05 UTC
*** Bug 1713032 has been marked as a duplicate of this bug. ***

Comment 4 Mike Turley 2019-06-10 17:17:47 UTC
This is an enhancement that requires API changes.

Currently there is no way to persist via the API the fact that a failed MiqTask has been acknowledged/dismissed by the user. Without this persistence there is no way for the UI to hide a failed task without it reappearing on page reload. (The only reason a retry hides the original failure is because the list only shows the most recent enablement task per resource, and retrying creates a new enablement task that takes precedence.)

I implemented a similar user-acknowledged-failure feature for migration plan requests because I could persist arbitrary key/value pairs in the options hash on that object, but no such free-form hash exists on MiqTask. We could possibly store this state as a property in a task's context_data, but I would still need an API endpoint I can use to update that value.

Comment 5 Paige Vauter 2019-06-12 14:23:16 UTC
*** Bug 1718733 has been marked as a duplicate of this bug. ***

Comment 6 Fabien Dupont 2019-06-19 14:32:29 UTC
Since this requires an API change, I move it to 5.11.

Comment 7 Mike Turley 2019-06-19 15:19:13 UTC
Fabien, based on discussion with Dan, I need to investigate but this may not require an API change after all. I may not be able to get it done for 5.10.7 but perhaps it can be in 5.10.8. I'll get back to you.

Comment 8 Fabien Dupont 2019-06-19 16:12:27 UTC
I keep the target release to 5.11 and we can still backport it to 5.10.z whenever it's ready.

Comment 9 Fabien Dupont 2019-07-30 08:39:17 UTC
@mike, any news on this ?

Comment 10 Mike Turley 2019-07-30 16:29:52 UTC
Fabien, I have not addressed this yet because I have been busy with Migration Analytics and Warm Migration. It's on my backlog.. how high priority do you think this is? Do we need to get it in for the 5.11 code freeze on August 12th? I will try to address it ASAP.

Comment 12 Fabien Dupont 2020-03-18 08:37:01 UTC
Mike, any idea when this could be implemented?

Comment 13 Mike Turley 2020-03-18 13:51:44 UTC
This has been on my back burner for quite a while, I was planning to finish it after warm migration was done and then never picked it up when warm migration was delayed. Now that I'm focused on IMS again, I'll put it back in my queue.

I may have time to get it done by Friday depending on how wrapping up warm migration goes. If not I can definitely get it done for 5.11.6.

Comment 14 Mike Turley 2020-03-30 15:15:45 UTC
Hey Fabien, just copying a question here from Gitter so we don't lose track of it:

I'm trying to remember how we decided I can set an arbitrary property on the task object. I remember we determined that was how to solve it, but I'm trying this:

POST /api/tasks/42000000000050
{
    "action": "edit",
    "resource": {
        "options": {
            "user_acknowledged_failure": true
        }
    }
}

and getting this error:

{
    "error": {
        "kind": "bad_request",
        "message": "Unsupported Action edit for the tasks resource specified",
        "klass": "Api::BadRequestError"
    }
}

I'm probably forgetting something, but if you have a chance this week would you mind taking a look with me?

Comment 16 CFME Bot 2020-04-09 14:21:23 UTC
New commit detected on ManageIQ/manageiq-v2v/ivanchuk:

https://github.com/ManageIQ/manageiq-v2v/commit/3c85583b9c149f910319383eeb26443df82d791c
commit 3c85583b9c149f910319383eeb26443df82d791c
Author:     Milan Zázrivec <mzazrivec>
AuthorDate: Tue Apr  7 08:25:25 2020 +0000
Commit:     Milan Zázrivec <mzazrivec>
CommitDate: Tue Apr  7 08:25:25 2020 +0000

    Merge pull request #1124 from mturley/bz1708367-remove-failed-conv-host

    [#900][BZ#1708367] Allow removal of a failed conversion host configuration task

    (cherry picked from commit 00ad97027cff8f882b1ad40441469b9bc86ff094)

    https://bugzilla.redhat.com/show_bug.cgi?id=1708367

 app/javascript/react/screens/App/Settings/SettingsActions.js | 12 +-
 app/javascript/react/screens/App/Settings/__tests__/SettingsActions.test.js | 8 +-
 app/javascript/react/screens/App/Settings/helpers.js | 2 +-
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/ConversionHostsSettings.js | 4 -
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/__tests__/__snapshots__/index.test.js.snap | 1 -
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/ConversionHostRemoveButton.js | 13 +-
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/ConversionHostsList.js | 3 -
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/ConversionHostsListItem.js | 18 +-
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/DeleteConversionHostConfirmationModal.js | 8 +-
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/__tests__/ConversionHostRemoveButton.test.js | 8 +-
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/__tests__/ConversionHostsList.test.js | 1 -
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/__tests__/DeleteConversionHostConfirmationModal.test.js | 3 +-
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/__tests__/__snapshots__/ConversionHostsList.test.js.snap | 1 -
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/__tests__/__snapshots__/ConversionHostsListItem.test.js.snap | 79 +-
 14 files changed, 109 insertions(+), 52 deletions(-)

Comment 17 CFME Bot 2020-04-09 14:26:23 UTC
New commit detected on ManageIQ/manageiq-v2v/jansa:

https://github.com/ManageIQ/manageiq-v2v/commit/7904a7d89fc8bf276cb61e9e95626bca795ccff7
commit 7904a7d89fc8bf276cb61e9e95626bca795ccff7
Author:     Milan Zázrivec <mzazrivec>
AuthorDate: Tue Apr  7 08:25:25 2020 +0000
Commit:     Milan Zázrivec <mzazrivec>
CommitDate: Tue Apr  7 08:25:25 2020 +0000

    Merge pull request #1124 from mturley/bz1708367-remove-failed-conv-host

    [#900][BZ#1708367] Allow removal of a failed conversion host configuration task

    (cherry picked from commit 00ad97027cff8f882b1ad40441469b9bc86ff094)

    https://bugzilla.redhat.com/show_bug.cgi?id=1708367

 app/javascript/react/screens/App/Settings/SettingsActions.js | 12 +-
 app/javascript/react/screens/App/Settings/__tests__/SettingsActions.test.js | 8 +-
 app/javascript/react/screens/App/Settings/helpers.js | 2 +-
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/ConversionHostsSettings.js | 4 -
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/__tests__/__snapshots__/index.test.js.snap | 1 -
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/ConversionHostRemoveButton.js | 13 +-
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/ConversionHostsList.js | 3 -
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/ConversionHostsListItem.js | 18 +-
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/DeleteConversionHostConfirmationModal.js | 8 +-
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/__tests__/ConversionHostRemoveButton.test.js | 8 +-
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/__tests__/ConversionHostsList.test.js | 1 -
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/__tests__/DeleteConversionHostConfirmationModal.test.js | 3 +-
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/__tests__/__snapshots__/ConversionHostsList.test.js.snap | 1 -
 app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/__tests__/__snapshots__/ConversionHostsListItem.test.js.snap | 79 +-
 14 files changed, 109 insertions(+), 52 deletions(-)

Comment 18 Nandini Chandra 2020-04-16 03:58:07 UTC
Verified in 5.11.5

Comment 21 errata-xmlrpc 2020-05-05 13:43:06 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/RHBA-2020:2020


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