Bug 1768520 - [v2v] Ordering a migration plan, that contains MIGRATED VM/s, fails with an unclear error message.
Summary: [v2v] Ordering a migration plan, that contains MIGRATED VM/s, fails with an u...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: V2V
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.11.1
Assignee: Fabien Dupont
QA Contact: Md Nadeem
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On: 1744197
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-04 16:20 UTC by Satoe Imaishi
Modified: 2022-07-09 10:57 UTC (History)
3 users (show)

Fixed In Version: 5.11.1.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1744197
Environment:
Last Closed: 2019-12-13 00:35:56 UTC
Category: ---
Cloudforms Team: V2V
Target Upstream Version:
Embargoed:
simaishi: cfme-5.11.z+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:4201 0 None None None 2019-12-13 00:36:57 UTC

Comment 2 CFME Bot 2019-11-04 18:00:42 UTC
New commits detected on ManageIQ/manageiq/ivanchuk:

https://github.com/ManageIQ/manageiq/commit/ac4757e1ad3235aa09516f2c03464c6c0b9f6edd
commit ac4757e1ad3235aa09516f2c03464c6c0b9f6edd
Author:     Adam Grare <agrare>
AuthorDate: Mon Aug 26 15:55:19 2019 -0400
Commit:     Adam Grare <agrare>
CommitDate: Mon Aug 26 15:55:19 2019 -0400

    Merge pull request #19203 from djberg96/supports_feature_order

    Add order option to SupportsFeatureMixin module

    (cherry picked from commit baeb7ba143c811e402f8507c386fc669efabf527)

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

 app/models/mixins/supports_feature_mixin.rb | 1 +
 app/models/service_template.rb | 4 +
 spec/models/service_template_spec.rb | 7 +
 3 files changed, 12 insertions(+)


https://github.com/ManageIQ/manageiq/commit/4ffb6e17140861c19326b174588b1fb379a2b622
commit 4ffb6e17140861c19326b174588b1fb379a2b622
Author:     Adam Grare <agrare>
AuthorDate: Tue Aug 27 07:53:34 2019 -0400
Commit:     Adam Grare <agrare>
CommitDate: Tue Aug 27 07:53:34 2019 -0400

    Merge pull request #19186 from fdupont-redhat/v2v_allow_error_messages_in_service_template_orderable

    Allow error messages in ServiceTemplate.validate_order

    (cherry picked from commit 7b2880c6530c906194c2b27e6a9bd1167b796382)

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

 app/models/service_template.rb | 16 +-
 app/models/service_template_transformation_plan.rb | 14 +-
 spec/models/service_template_spec.rb | 19 +-
 spec/models/service_template_transformation_plan_spec.rb | 9 +-
 4 files changed, 37 insertions(+), 21 deletions(-)

Comment 3 CFME Bot 2019-11-04 18:04:28 UTC
New commit detected on ManageIQ/manageiq-api/ivanchuk:

https://github.com/ManageIQ/manageiq-api/commit/f852e171afddb2f52d772126e958fa24c27c519b
commit f852e171afddb2f52d772126e958fa24c27c519b
Author:     Alberto Bellotti <abellotti.github.com>
AuthorDate: Wed Sep 11 08:48:40 2019 -0400
Commit:     Alberto Bellotti <abellotti.github.com>
CommitDate: Wed Sep 11 08:48:40 2019 -0400

    Merge pull request #656 from fdupont-redhat/v2v_allow_error_messages_in_service_template_orderable

    Expose error messages from ServiceTemplate.orderable?

    (cherry picked from commit 2aa1e4cfd2a4c12fc81a76533aba95b5b1050149)

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

 app/controllers/api/mixins/service_templates.rb | 8 +-
 spec/requests/service_templates_spec.rb | 9 +-
 2 files changed, 8 insertions(+), 9 deletions(-)

Comment 4 Md Nadeem 2019-12-04 13:53:37 UTC
verified in 5.11.1.1 

on this current CFME-5.11.1 version, it is no longer possible to re-order a successful plan from UI, that was migrated. 
Therefore we verify it via api.

1. Get plan id 
>> https://<cfme fqdn>/api/service_templates/?filter[]=name=<migration_plan_name> &expand=resources

2. Send Post request 
https://<cfme fqdn>/api/service_templates/<plan-id>

with Body:
{
    "action": "order"
}

3. I got below respond 
~~~~~~~~~~~~~~~~~~~
{
    "error": {
        "kind": "bad_request",
        "message": "Service Template id:1 name:'plan_eB3XG' cannot be ordered - All VMs of the migration plan have already been successfully migrated",
        "klass": "Api::BadRequestError"
    }
}
~~~~~~~~~~~~~~~~~~~~~~~

Comment 6 errata-xmlrpc 2019-12-13 00:35:56 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/RHSA-2019:4201


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