-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSA failure during perform_metadata_scan #445
Comments
From what I can tell, the snapshot field in the ost structure being passed to Logs: |
@chessbyte Could this have been affected by your relatively recent refactoring? I can't remember when that landed, but this issue is present in >= jansa-3, according to the OP. |
This issue has been automatically marked as stale because it has not been updated for at least 3 months. If you can still reproduce this issue on the current release or on Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation. |
Error with SSA running docker versions: manageiq/manageiq:jansa-3, latest-jansa, latest-kasparov.
SSA worked on ivanchuk-8
Logs from testing with latest-jansa:
{"@timestamp":"2021-03-08T19:42:22.571355 ","hostname":"a2569443fbda","pid":3970,"tid":"2ac3751af94c","level":"debug","message":"Q-task_id([job_dispatcher]) MIQ(MiqServer#scan_metadata) ansible-vm3 (ManageIQ::Providers::Azure::CloudManager::Vm)"}
{"@timestamp":"2021-03-08T19:42:23.140106 ","hostname":"a2569443fbda","pid":3970,"tid":"2ac3751af94c","level":"debug","message":"Q-task_id([job_dispatcher]) MIQ(ManageIQ::Providers::Azure::CloudManager::Vm#perform_metadata_scan) jstdebug2: in perform_meta
data_scan"}
{"@timestamp":"2021-03-08T19:42:23.140337 ","hostname":"a2569443fbda","pid":3970,"tid":"2ac3751af94c","level":"debug","message":"Q-task_id([job_dispatcher]) MIQ(ManageIQ::Providers::Azure::CloudManager::Vm#perform_metadata_scan) name: ansible-vm3 (templat
e = false)"}
{"@timestamp":"2021-03-08T19:42:23.140452 ","hostname":"a2569443fbda","pid":3970,"tid":"2ac3751af94c","level":"debug","message":"Q-task_id([job_dispatcher]) MIQ(ManageIQ::Providers::Azure::CloudManager::Vm#perform_metadata_scan) jstdebug2: set vm_args res
ource_group.name"}
{"@timestamp":"2021-03-08T19:42:23.179371 ","hostname":"a2569443fbda","pid":3970,"tid":"2ac3751af94c","level":"debug","message":"Q-task_id([job_dispatcher]) MIQ(ManageIQ::Providers::Azure::CloudManager::Vm#perform_metadata_scan) jstdebug2: set vm_args ost.scanData ost: #\u003cOpenStruct args=["eastus", {"ems"=\u003e{"ems"=\u003e{:hostname=\u003enil, :ipaddress=\u003enil, :username=\u003e"4f7b1e0f-8d60-4c7c-8978-8e4c62fa7d77", :password=\u003e"v2:{5yNsUngLLdXAahqvhCCQa6I/6Bp9s7Ln7iPOJApeyx/FHbBsdEc5K4euUQJJRfBtOSAb6smsj9R62ecNEHmIUOW+BLfXPu/riflLqT25VWI=}", :class_name=\u003e"ManageIQ::Providers::Azure::CloudManager"}, "connect_to"=\u003e"host"}, "vmScanProfiles"=\u003e[]}], method_name="scan_metadata", vm_guid="7ddea001-3b3b-4c10-a8f9-cd60c8d98542", category="vmconfig,accounts,software,services,system", taskid="4edcda4f-b853-47f0-91ce-b7987fab5c0a", target_id=3, target_type="VmOrTemplate", scanData={"ems"=\u003e{"ems"=\u003e{:hostname=\u003enil, :ipaddress=\u003enil, :username=\u003e"4f7b1e0f-8d60-4c7c-8978-8e4c62fa7d77", :password=\u003e"v2:{5yNsUngLLdXAahqvhCCQa6I/6Bp9s7Ln7iPOJApeyx/FHbBsdEc5K4euUQJJRfBtOSAb6smsj9R62ecNEHmIUOW+BLfXPu/riflLqT25VWI=}", :class_name=\u003e"ManageIQ::Providers::Azure::CloudManager"}, "connect_to"=\u003e"host"}, "vmScanProfiles"=\u003e[]}, jobid=9, config=#\u003cOpenStruct vmdb=true, forceFleeceDefault=true, capabilities={:vixDisk=\u003efalse}\u003e\u003e"}
{"@timestamp":"2021-03-08T19:42:23.180329 ","hostname":"a2569443fbda","pid":3970,"tid":"2ac3751af94c","level":"err","message":"Q-task_id([job_dispatcher]) MIQ(MiqServer#scan_metadata) undefined method '[]' for nil:NilClass"}
Added debug statements to:
/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-azure-e7914f85e845/app/models/manageiq/providers/azure/cloud_manager/vm_or_template_shared/scanning.rb
seems to fail on:
vm_args[:snapshot] = ost.scanData["snapshot"]["name"]
because I never see:
_log.debug("jstdebug2: vm_args = #{vm_args}")
Note: the Azure snapshot gets created but fails while scanning.
ost object in the log:
{"@timestamp":"2021-03-08T19:42:23.179371 ","hostname":"a2569443fbda","pid":3970,"tid":"2ac3751af94c","level":"debug","message":"Q-task_id([job_dispatcher]) MIQ(ManageIQ::Providers::Azure::CloudManager::Vm#perform_metadata_scan) jstdebug2: set vm_args ost.scanData ost: #\u003cOpenStruct args=["eastus", {"ems"=\u003e{"ems"=\u003e{:hostname=\u003enil, :ipaddress=\u003enil, :username=\u003e"4f7b1e0f-8d60-4c7c-8978-8e4c62fa7d77", :password=\u003e"v2:{5yNsUngLLdXAahqvhCCQa6I/6Bp9s7Ln7iPOJApeyx/FHbBsdEc5K4euUQJJRfBtOSAb6smsj9R62ecNEHmIUOW+BLfXPu/riflLqT25VWI=}", :class_name=\u003e"ManageIQ::Providers::Azure::CloudManager"}, "connect_to"=\u003e"host"}, "vmScanProfiles"=\u003e[]}], method_name="scan_metadata", vm_guid="7ddea001-3b3b-4c10-a8f9-cd60c8d98542", category="vmconfig,accounts,software,services,system", taskid="4edcda4f-b853-47f0-91ce-b7987fab5c0a", target_id=3, target_type="VmOrTemplate", scanData={"ems"=\u003e{"ems"=\u003e{:hostname=\u003enil, :ipaddress=\u003enil, :username=\u003e"4f7b1e0f-8d60-4c7c-8978-8e4c62fa7d77", :password=\u003e"v2:{5yNsUngLLdXAahqvhCCQa6I/6Bp9s7Ln7iPOJApeyx/FHbBsdEc5K4euUQJJRfBtOSAb6smsj9R62ecNEHmIUOW+BLfXPu/riflLqT25VWI=}", :class_name=\u003e"ManageIQ::Providers::Azure::CloudManager"}, "connect_to"=\u003e"host"}, "vmScanProfiles"=\u003e[]}, jobid=9, config=#\u003cOpenStruct vmdb=true, forceFleeceDefault=true, capabilities={:vixDisk=\u003efalse}\u003e\u003e"}
The text was updated successfully, but these errors were encountered: