Bug 1478518 - CFME reports VM migration passed when it fails on RHV side [NEEDINFO]
CFME reports VM migration passed when it fails on RHV side
Status: ON_DEV
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers (Show other bugs)
Unspecified Unspecified
medium Severity medium
: GA
: 5.8.3
Assigned To: William Fitzgerald
Ilanit Stein
: ZStream
Depends On: 1448023
  Show dependency treegraph
Reported: 2017-08-04 14:08 EDT by Satoe Imaishi
Modified: 2017-09-18 11:41 EDT (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1448023
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: RHEVM
oourfali: needinfo? (istein)

Attachments (Terms of Use)

  None (edit)
Comment 2 CFME Bot 2017-08-04 14:13:46 EDT
New commit detected on ManageIQ/manageiq-content/fine:

commit c511fc7b1b0380fc5de858045b2e5f8667aebcae
Author:     Madhu Kanoor <mkanoor@redhat.com>
AuthorDate: Fri Jun 23 14:51:02 2017 -0400
Commit:     Satoe Imaishi <simaishi@redhat.com>
CommitDate: Fri Aug 4 14:09:09 2017 -0400

    Merge pull request #135 from billfitzgerald0120/check_migrate
    Updated vm migration to report when an error occurs.
    (cherry picked from commit 61793a6a2a1e7aa0b7061d6986a27af84d4052ff)

 .../Methods.class/__methods__/checkmigration.rb    | 68 ++++++++++++-----
 .../__methods__/checkmigration_spec.rb             | 88 ++++++++++++++++++++++
 2 files changed, 139 insertions(+), 17 deletions(-)
 create mode 100644 spec/content/automate/ManageIQ/Infrastructure/VM/Migrate/StateMachines/Methods.class/__methods__/checkmigration_spec.rb
Comment 3 Ilanit Stein 2017-09-03 07:16:55 EDT
Tested on CFME-5.8.2/RHV-4.1.3:

Started VM migration from CFME side.
After RHV UI showed VM is migrating, destination host was rebooted, 
and in RHV events, it was reported that migration failed.

On CFME side,
Shortly after VM migration was started, the Request state turned into "Migrated" - Which is not true.
and the request few minutes later failed on email send.
Request details:

Status Ok
Request State Migrated
Requester Administrator
Request Type VM Migrate
Description VM Migrate for: <vm name> - Host: host_mixed_2
Last Message Server [EVM] VM [cfme_5815_bug_1478108] Step [EmailOwner] Status [Error Emailing Owner] Message [Emailing Owner]
Created On Sun, 03 Sep 2017 10:34:07 +0000
Last Update Sun, 03 Sep 2017 10:36:37 +0000
Approval State Approved
Approved/Denied by admin (Administrator)
Approved/Denied on Sun, 03 Sep 2017 10:34:28 +0000
Reason Auto-Approved

As Migration failed on RHV side, on a problem occurred during the VM migration,
the expected behavior is that on CFME side, the Migration VM request will fail, 
and the Migration error will be propagated from RHV side to CFME side.
Thus, moving bug back to assigned.
Comment 4 Oved Ourfali 2017-09-18 03:51:41 EDT
William, can you take a look?
Comment 5 William Fitzgerald 2017-09-18 10:30:54 EDT

Can you re-create this and let me have access to your appliance? 



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