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:
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}
*** Bug 1174506 has been marked as a duplicate of this bug. ***
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(-)
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(-)
*** Bug 1188465 has been marked as a duplicate of this bug. ***
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(-)
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(-)
VM Migration completed successfully in 5.4.0.0.19
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