Bug 1478520
Summary: | VM Migrate doesn't create notifications or log messages when migrations fail. | ||
---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Satoe Imaishi <simaishi> |
Component: | Automate | Assignee: | William Fitzgerald <wfitzger> |
Status: | CLOSED ERRATA | QA Contact: | Shveta <sshveta> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5.8.0 | CC: | jhardy, mkanoor, obarenbo, simaishi, sshveta, tfitzger, wfitzger |
Target Milestone: | GA | Keywords: | ZStream |
Target Release: | 5.8.3 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 5.8.3.0 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1478462 | Environment: | |
Last Closed: | 2018-02-28 13:04:21 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: | 1478462 | ||
Bug Blocks: |
Comment 2
CFME Bot
2017-08-04 18:18:10 UTC
Create a Migrate VM request for a VM . Didn't fill options for host . Logs show error but UI shows request status - "Migrated" Appliance : https://10.8.199.115 Logs ============== [----] I, [2017-08-29T01:48:54.271334 #2115:4b1130] INFO -- : Q-task_id([vm_migrate_task_36]) <AEMethod [/ManageIQ/Infrastructure/VM/Migrate/StateMachines/VMMigrate/update_migration_status]> Ending [----] I, [2017-08-29T01:48:54.271554 #2115:4b1130] INFO -- : Q-task_id([vm_migrate_task_36]) Method exited with rc=MIQ_OK [----] I, [2017-08-29T01:48:54.272239 #2115:4b1130] INFO -- : Q-task_id([vm_migrate_task_36]) Processing State=[EmailOwner] [----] I, [2017-08-29T01:48:54.272670 #2115:4b1130] INFO -- : Q-task_id([vm_migrate_task_36]) Following Relationship [miqaedb:/Infrastructure/VM/Migrate/Email/VmMigrateTask_Complete?event=vm_migrated#create] [----] I, [2017-08-29T01:48:54.324733 #2115:4b1130] INFO -- : Q-task_id([vm_migrate_task_36]) Updated namespace [miqaedb:/Infrastructure/VM/Migrate/Email/VmMigrateTask_Complete?event=vm_migrated#create ManageIQ/Infrastructure/VM/Migrate] [----] I, [2017-08-29T01:48:54.389090 #2115:4b1130] INFO -- : Q-task_id([vm_migrate_task_36]) Updated namespace [Infrastructure/VM/Migrate/Email/vmmigratetask_complete ManageIQ/Infrastructure/VM/Migrate] [----] I, [2017-08-29T01:48:54.403571 #2115:4b1130] INFO -- : Q-task_id([vm_migrate_task_36]) Invoking [inline] method [/ManageIQ/Infrastructure/VM/Migrate/Email/VmMigrateTask_Complete] with inputs [{}] [----] I, [2017-08-29T01:48:54.404906 #2115:4b1130] INFO -- : Q-task_id([vm_migrate_task_36]) <AEMethod [/ManageIQ/Infrastructure/VM/Migrate/Email/VmMigrateTask_Complete]> Starting [----] I, [2017-08-29T01:48:55.116751 #2115:5938898] INFO -- : Q-task_id([vm_migrate_task_36]) <AEMethod vmmigratetask_complete> Inspecting miq_task: #<MiqAeServiceVmMigrateTask:0x5be43d0 @object=#<VmMigrateTask id: 36, description: "VM Migrate for: nansari_report - Storage: NFS-Data...", state: "migrated", request_type: "vm_migrate", userid: "admin", options: {:src_ids=>["21"], :miq_request_dialog_name=>"vm_migrate_dialogs", :current_tab_key=>:environment, :owner_phone=>nil, :owner_country=>nil, :owner_phone_mobile=>nil, :owner_title=>nil, :owner_first_name=>nil, :owner_manager=>nil, :owner_address=>nil, :owner_company=>nil, :owner_last_name=>nil, :owner_manager_mail=>nil, :owner_city=>nil, :owner_department=>nil, :owner_load_ldap=>nil, :owner_manager_phone=>nil, :owner_state=>nil, :owner_office=>nil, :owner_zip=>nil, :owner_email=>"sshveta", :request_notes=>nil, :placement_cluster_name=>[nil, nil], :cluster_filter=>[nil, nil], :host_filter=>[nil, nil], :ds_filter=>[nil, nil], :placement_host_name=>[nil, nil], :placement_ds_name=>[1, "NFS-Datastore-1"], :rp_filter=>[nil, nil], :placement_rp_name=>[nil, nil], :placement_dc_name=>[nil, nil], :schedule_type=>["immediately", "Immediately on Approval"], :schedule_time=>Wed, 30 Aug 2017 00:00:00 UTC +00:00, :disk_format=>["unchanged", "Default"], :start_date=>"8/30/2017", :start_hour=>"00", :start_min=>"00", :src_vm_id=>[nil, nil], :tag_ids=>[], :requester_group=>"EvmGroup-super_administrator", :owner_group=>nil, :delivered_on=>2017-08-29 05:47:59 UTC}, created_on: "2017-08-29 05:48:00", updated_on: "2017-08-29 05:48:54", message: "Emailing Owner", status: "Ok", type: "VmMigrateTask", miq_request_id: 26, source_id: 21, source_type: "Vm", destination_id: nil, destination_type: nil, miq_request_task_id: nil, phase: nil, phase_context: {}, tenant_id: 2>, @virtual_columns=["href_slug", "region_description", "region_number"], @associations=["destination", "miq_request", "miq_request_task", "miq_request_tasks", "source", "tenant"]> [----] I, [2017-08-29T01:48:55.132718 #2115:5938898] INFO -- : Q-task_id([vm_migrate_task_36]) <AEMethod vmmigratetask_complete> VM Owner: nil [----] E, [2017-08-29T01:48:55.134167 #2115:5938898] ERROR -- : Q-task_id([vm_migrate_task_36]) <AEMethod vmmigratetask_complete> The following error occurred during method evaluation: [----] E, [2017-08-29T01:48:55.137094 #2115:5938898] ERROR -- : Q-task_id([vm_migrate_task_36]) <AEMethod vmmigratetask_complete> NoMethodError: undefined method `email' for nil:NilClass [----] E, [2017-08-29T01:48:55.138437 #2115:5938898] ERROR -- : Q-task_id([vm_migrate_task_36]) <AEMethod vmmigratetask_complete> [----] E, [2017-08-29T01:48:55.146281 #2115:5938898] ERROR -- : Q-task_id([vm_migrate_task_36]) Method STDERR: /ManageIQ/Infrastructure/VM/Migrate/Email/VmMigrateTask_Complete:30:in `<main>': undefined method `email' for nil:NilClass (NoMethodError) [----] I, [2017-08-29T01:48:55.180660 #2115:4b1130] INFO -- : Q-task_id([vm_migrate_task_36]) <AEMethod [/ManageIQ/Infrastructure/VM/Migrate/Email/VmMigrateTask_Complete]> Ending [----] E, [2017-08-29T01:48:55.181573 #2115:4b1130] ERROR -- : Q-task_id([vm_migrate_task_36]) Aborting instantiation (unknown method return code) because [Method exited with rc=Unknown RC: [1]] [----] E, [2017-08-29T01:48:55.182485 #2115:4b1130] ERROR -- : Q-task_id([vm_migrate_task_36]) State=<EmailOwner> running raised exception: <Method exited with rc=Unknown RC: [1]> [----] W, [2017-08-29T01:48:55.182741 #2115:4b1130] WARN -- : Q-task_id([vm_migrate_task_36]) Error in State=[EmailOwner] [----] I, [2017-08-29T01:48:55.183083 #2115:4b1130] INFO -- : Q-task_id([vm_migrate_task_36]) In State=[EmailOwner], invoking [on_error] method=[update_migration_status(status => 'Error Emailing Owner')] [----] I, [2017-08-29T01:48:55.943187 #2115:4b1130] INFO -- : Q-task_id([vm_migrate_task_36]) Updated namespace [Infrastructure/VM/Migrate/StateMachines/VMMigrate/update_migration_status ManageIQ/Infrastructure/VM/Migrate/StateMachines] [----] I Shveta, You need this PR when it is merged. https://github.com/ManageIQ/manageiq-content/pull/177 This fixes the Vm Migrate email error you are getting. I will update this ticket when it is merged. Thanks Billy Shveta, The PR was merged and once it is backported, this should work. Thanks Billy Will check in next 5.8 build . VM migration succeeded when no host was specified , only datastore was given. Is that expected ? No error in logs . Shveta, Can I access your appliance ? Thanks Billy Appliance : https://10.8.197.124 Appliance : https://10.8.197.124 Request 6 and 9 . Shveta, I was able to migrate a vm on my appliance using just the datastore. It was successful and I verified that the Vm was moved to the datastore that I selected. Thanks Billy Yes just wanted to confirm the result. Verified on 5.8.3.4.20180221165627_8efa813 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://access.redhat.com/errata/RHSA-2018:0374 |