Bug 1610533
| Summary: | [RFE] CFME 5.9.4 - ability to cancel an in-progress migration | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Satoe Imaishi <simaishi> | ||||
| Component: | UI - OPS | Assignee: | Marco Berube <mberube> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Kedar Kulkarni <kkulkarn> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 5.9.0 | CC: | bthurber, cpelland, fdupont, gmccullo, hkataria, jhardy, jprause, kkulkarn, lavenel, mberube, mpovolny, obarenbo, smallamp | ||||
| Target Milestone: | GA | Keywords: | FutureFeature, RFE, ZStream | ||||
| Target Release: | 5.9.4 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | v2v | ||||||
| Fixed In Version: | 5.9.4.4 | Doc Type: | Enhancement | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | 1564257 | Environment: | |||||
| Last Closed: | 2018-09-05 12:57:11 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | CFME Core | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | 1564257, 1599997, 1614864 | ||||||
| Bug Blocks: | 1608758 | ||||||
| Attachments: | 
            
  | 
      ||||||
| 
 
        
          Comment 2
        
        
          CFME Bot
        
        
        
        
        
          2018-07-31 21:21:16 UTC
        
       
      
      
      
    New commit detected on ManageIQ/manageiq-api/gaprindashvili: https://github.com/ManageIQ/manageiq-api/commit/b7047744b21596fafe4cbfdc1064cad1fd8ba76c commit b7047744b21596fafe4cbfdc1064cad1fd8ba76c Author: Gregg Tanzillo <gtanzill> AuthorDate: Mon Jul 30 18:02:12 2018 -0400 Commit: Gregg Tanzillo <gtanzill> CommitDate: Mon Jul 30 18:02:12 2018 -0400 Merge pull request #421 from bdunne/request_cancel Request cancel (cherry picked from commit 62de390490c8bc333f27feedfc58455ced1e7483) https://bugzilla.redhat.com/show_bug.cgi?id=1610533 app/controllers/api/automation_requests_controller.rb | 1 + app/controllers/api/mixins/resource_cancel.rb | 14 + app/controllers/api/provision_requests_controller.rb | 1 + app/controllers/api/request_tasks_controller.rb | 1 + app/controllers/api/requests_controller.rb | 1 + app/controllers/api/service_requests_controller.rb | 1 + app/controllers/api/subcollections/request_tasks.rb | 7 + app/controllers/api/subcollections/service_requests.rb | 7 + config/api.yml | 31 + spec/requests/automation_requests_spec.rb | 12 + spec/requests/provision_requests_spec.rb | 12 + spec/requests/request_tasks_spec.rb | 7 + spec/requests/requests_spec.rb | 12 + spec/requests/service_orders_spec.rb | 6 + spec/requests/service_requests_spec.rb | 12 + spec/requests/service_templates_spec.rb | 6 + spec/support/api/helpers.rb | 8 +- spec/support/factory_overrides.rb | 23 + spec/support/shared_examples/resource_cancel.rb | 40 + spec/support/shared_examples/sub_resource_cancel.rb | 38 + 20 files changed, 239 insertions(+), 1 deletion(-) https://bugzilla.redhat.com/show_bug.cgi?id=1599997 blocks this, as the cancellation does not guarantee of cleaning the Target Datastore or kill virt-v2v at the moment. Pushing back to Assigned. As in 5.9.4.3 I am not able to cancel the migration successfully. CloudForms UI shows notification as "Migration Cancelled Successfully" , although, the timer and progress bar does not stop and migration is continued. On RHV I can also see disk size increasing and being transferred actively. Created attachment 1474778 [details]
ScreenVideoRecording
    Confirmed by Bill Wei that the options hash is cached and that parallel writes may create a race condition. First suggestion was to reload the object before using set_option in automate, but Bill considers that set_option should be fixed to prevent race condition. The potential impact is high, so it has to be carefully weighed. Associated BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1614864 Marco: Tomorrow (Aug 14) is the final 5.9.4 dev complete. Will this issue be resolved by then. (In reply to John Prause from comment #10) > Marco: Tomorrow (Aug 14) is the final 5.9.4 dev complete. Will this issue be > resolved by then. PR is merged and this is ready for backport. On 5.9.4.4 I was able to cancel the migration successfully. Although it showed up as cancelled in CloudForms quickly, in the RHV Disks, it kept on migrating for some time before it was killed. It is not instantaneous.  |