Bug 1174881
| Summary: | VM migrate error with Class [unknown/VM/Lifecycle] not found in MiqAeDatastore | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Josh Carter <jocarter> | |
| Component: | Automate | Assignee: | Tina Fitzgerald <tfitzger> | |
| Status: | CLOSED ERRATA | QA Contact: | Pete Savage <psavage> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 5.3.0 | CC: | hkim, jhardy, mfeifer, ngupta, obarenbo, psavage, ssainkar, sshveta, xlecauch | |
| Target Milestone: | GA | |||
| Target Release: | 5.4.0 | |||
| Hardware: | All | |||
| OS: | All | |||
| Whiteboard: | ||||
| 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.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1190225 (view as bug list) | Environment: | ||
| Last Closed: | 2015-06-16 12:46:31 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1190225 | |||
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 |
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: