Bug 1174881 - VM migrate error with Class [unknown/VM/Lifecycle] not found in MiqAeDatastore
Summary: VM migrate error with Class [unknown/VM/Lifecycle] not found in MiqAeDatastore
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.3.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: GA
: 5.4.0
Assignee: Tina Fitzgerald
QA Contact: Pete Savage
URL:
Whiteboard:
: 1174506 1188465 (view as bug list)
Depends On:
Blocks: 1190225
TreeView+ depends on / blocked
 
Reported: 2014-12-16 16:24 UTC by Josh Carter
Modified: 2019-07-11 08:28 UTC (History)
9 users (show)

Fixed In Version: 5.4.0.0.11
Doc Type: Bug Fix
Doc Text:
In the previous version of CloudForms Management Engine, VM migration failed due to parse_provider_category not knowing how to parse the vm_migrate_request object information. This bug has been fixed by correcting the VM migrate state machine path issues. VM migration is now successful.
Clone Of:
: 1190225 (view as bug list)
Environment:
Last Closed: 2015-06-16 12:46:31 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1433443 0 None None None Never
Red Hat Product Errata RHBA-2015:1100 0 normal SHIPPED_LIVE CFME 5.4.0 bug fixes, and enhancement update 2015-06-16 16:28:42 UTC

Description Josh Carter 2014-12-16 16:24:55 UTC
Description of problem:

Virtual Machine migrations fail with the following error. 

[----] I, [2014-12-15T19:05:53.258079 #22126:b2109c]  INFO -- : Q-task_id([vm_migrate_task_703000000000005]) <AEMethod [ManageIQ/System/Process/parse_automation_request]> Ending
[----] I, [2014-12-15T19:05:53.258248 #22126:b2109c]  INFO -- : Q-task_id([vm_migrate_task_703000000000005]) Method exited with rc=MIQ_OK
[----] I, [2014-12-15T19:05:53.265517 #22126:b2109c]  INFO -- : Q-task_id([vm_migrate_task_703000000000005]) Following Relationship [miqaedb:/unknown/VM/Lifecycle/Migrate#create]
[----] I, [2014-12-15T19:05:52.239067 #22126:d66b39c]  INFO -- : Q-task_id([vm_migrate_task_703000000000005]) <AEMethod parse_provider_category> Parse Provider Category Key: nil  Value: unknown
[----] I, [2014-12-15T19:05:52.288350 #22126:b2109c]  INFO -- : Q-task_id([vm_migrate_task_703000000000005]) <AEMethod [ManageIQ/System/Process/parse_provider_category]> Ending
[----] I, [2014-12-15T19:05:52.288588 #22126:b2109c]  INFO -- : Q-task_id([vm_migrate_task_703000000000005]) Method exited with rc=MIQ_OK
[----] I, [2014-12-15T19:05:52.299770 #22126:b2109c]  INFO -- : Q-task_id([vm_migrate_task_703000000000005]) Updated namespace [System/Process/parse_automation_request  ManageIQ/System]
[----] I, [2014-12-15T19:05:52.306344 #22126:b2109c]  INFO -- : Q-task_id([vm_migrate_task_703000000000005]) Invoking [inline] method [ManageIQ/System/Process/parse_automation_request] with inputs [{}]
[----] I, [2014-12-15T19:05:52.307702 #22126:b2109c]  INFO -- : Q-task_id([vm_migrate_task_703000000000005]) <AEMethod [ManageIQ/System/Process/parse_automation_request]> Starting
[----] I, [2014-12-15T19:05:53.234971 #22126:dbafec0]  INFO -- : Q-task_id([vm_migrate_task_703000000000005]) <AEMethod parse_automation_request> Request:<vm_migrate> Target Component:<VM> Target Class:<Lifecycle> Target Instance:<Migrate>
[----] I, [2014-12-15T19:05:53.258079 #22126:b2109c]  INFO -- : Q-task_id([vm_migrate_task_703000000000005]) <AEMethod [ManageIQ/System/Process/parse_automation_request]> Ending
[----] I, [2014-12-15T19:05:53.258248 #22126:b2109c]  INFO -- : Q-task_id([vm_migrate_task_703000000000005]) Method exited with rc=MIQ_OK
[----] I, [2014-12-15T19:05:53.265517 #22126:b2109c]  INFO -- : Q-task_id([vm_migrate_task_703000000000005]) Following Relationship [miqaedb:/unknown/VM/Lifecycle/Migrate#create]
[----] E, [2014-12-15T19:05:53.906391 #22126:b2109c] ERROR -- : Q-task_id([vm_migrate_task_703000000000005]) Class [unknown/VM/Lifecycle] not found in MiqAeDatastore
[----] I, [2014-12-15T19:05:53.908331 #22126:b2109c]  INFO -- : Q-task_id([vm_migrate_task_703000000000005]) Followed  Relationship [miqaedb:/unknown/VM/Lifecycle/Migrate#create]
[----] I, [2014-12-15T19:05:59.560282 #22115:be8098]  INFO -- : Instantiating [/System/Process/Event?EmsEvent%3A%3Aems_event=703000000010125&ExtManagementSystem%3A%3Aems=703000000000003&MiqServer%3A%3Amiq_server=703000000000001&ems_id=703000000000003&event_id=703000000010125&event_type=BadUsernameSessionEvent&object_name=Event&vmdb_object_type=ems_event]



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


How reproducible: very


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Tina Fitzgerald 2014-12-16 17:40:01 UTC
The parse_provider_category automate method was created to set the resolution path to cloud or infrastructure based on the available object information.  

The "unknown" in the "Class [unknown/VM/Lifecycle] not found in MiqAeDatastore" 
error message is the result of the parse_provider_category not knowing how to parse the vm_migrate_request object information.  

The automate failure point: 
/manageiq/system/process/automation instance rel 2 relationship: 

value:
/${/#ae_provider_category}/${#target_component}/${#target_class}/${#target_instance}

Comment 4 Greg McCullough 2014-12-18 19:54:10 UTC
*** Bug 1174506 has been marked as a duplicate of this bug. ***

Comment 5 CFME Bot 2015-01-08 16:01:15 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/bfde80c766800d33c2ae970a4513af718e18c0f8

commit bfde80c766800d33c2ae970a4513af718e18c0f8
Author:     Tina Fitzgerald <tfitzger>
AuthorDate: Thu Dec 18 10:20:13 2014 -0500
Commit:     Tina Fitzgerald <tfitzger>
CommitDate: Tue Jan 6 11:40:38 2015 -0500

    Fix vm migrate state machine path issues.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1174881

 .../fixtures/ae_datastore/ManageIQ/.manifest.yaml  | 4644 ++++++++++----------
 .../StateMachines/VMMigrate.class/__class__.yaml   |   16 +-
 .../StateMachines/VMMigrate.class/default.yaml     |    4 +-
 3 files changed, 2331 insertions(+), 2333 deletions(-)

Comment 6 CFME Bot 2015-01-08 16:01:20 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/291757ac13a3d11272a3bf68f0060746d8c8adc1

commit 291757ac13a3d11272a3bf68f0060746d8c8adc1
Author:     Tina Fitzgerald <tfitzger>
AuthorDate: Tue Jan 6 13:13:06 2015 -0500
Commit:     Tina Fitzgerald <tfitzger>
CommitDate: Tue Jan 6 13:13:06 2015 -0500

    Set provider_category for vm_migrate_task.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1174881

 .../fixtures/ae_datastore/ManageIQ/.manifest.yaml  | 4820 ++++++++++----------
 .../__methods__/parse_provider_category.rb         |    8 +-
 2 files changed, 2416 insertions(+), 2412 deletions(-)

Comment 7 Dave Johnson 2015-02-04 19:54:09 UTC
*** Bug 1188465 has been marked as a duplicate of this bug. ***

Comment 8 CFME Bot 2015-02-06 17:06:03 UTC
New commit detected on cfme/5.3.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=0df07d728a4715b2e65caf7736bc09b1d97de91e

commit 0df07d728a4715b2e65caf7736bc09b1d97de91e
Author:     Tina Fitzgerald <tfitzger>
AuthorDate: Thu Dec 18 10:20:13 2014 -0500
Commit:     Tina Fitzgerald <tfitzger>
CommitDate: Fri Feb 6 12:04:48 2015 -0500

    Fix vm migrate state machine path issues.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1174881

 .../fixtures/ae_datastore/ManageIQ/.manifest.yaml  | 4644 ++++++++++----------
 .../StateMachines/VMMigrate.class/__class__.yaml   |   16 +-
 .../StateMachines/VMMigrate.class/default.yaml     |    4 +-
 3 files changed, 2331 insertions(+), 2333 deletions(-)

Comment 9 CFME Bot 2015-02-06 17:10:44 UTC
New commit detected on cfme/5.3.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=043405f24d637620301931b3c4feec7de72122bc

commit 043405f24d637620301931b3c4feec7de72122bc
Author:     Tina Fitzgerald <tfitzger>
AuthorDate: Tue Jan 6 13:13:06 2015 -0500
Commit:     Tina Fitzgerald <tfitzger>
CommitDate: Fri Feb 6 12:06:06 2015 -0500

    Set provider_category for vm_migrate_task.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1174881

 .../fixtures/ae_datastore/ManageIQ/.manifest.yaml  | 4820 ++++++++++----------
 .../__methods__/parse_provider_category.rb         |    8 +-
 2 files changed, 2416 insertions(+), 2412 deletions(-)

Comment 11 Pete Savage 2015-04-17 07:26:48 UTC
VM Migration completed successfully in 5.4.0.0.19

Comment 13 errata-xmlrpc 2015-06-16 12:46:31 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://rhn.redhat.com/errata/RHBA-2015-1100.html


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