ManageIQ / manageiq

ManageIQ Open-Source Management Platform
https://manageiq.org
Apache License 2.0
1.35k stars 898 forks source link

undefined method ‘list_networks’ #22683

Closed kevin-to-LX closed 1 year ago

kevin-to-LX commented 1 year ago

@agrare Hey @agrare , I found the same bug in last version

kevin-to-LX commented 1 year ago

error: undefined method ‘list_networks’ for nil:NilClass

when i add ovirt as a provider(no ssl) , MIQ can show the compute info, but the network state is error @rvalente

ManageIQ version: oparin-1.1.20230105135506_44ec8c4

kevin-to-LX commented 1 year ago

@agrare

agrare commented 1 year ago

Hey @kevin-to-LX it sounds like the OVN (aka Ovirt::NetworkManager) refresher is failing can you please attach logs showing the error and full backtrace?

kevin-to-LX commented 1 year ago
image
kevin-to-LX commented 1 year ago

When i want to Add New Network Router , also find another bug ----- can not choose Cloud Tenant Placement

image
kevin-to-LX commented 1 year ago

@agrare

{"@timestamp":"2023-08-31T06:55:21.034821","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"err","message":"[NoMethodError]: undefined method `list_networks' for nil:NilClass  Method:[block (2 levels) in <class:LogProxy>]"}
{"@timestamp":"2023-08-31T06:55:21.056907","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"err","message":"MIQ(MiqQueue#deliver) Message id: [8748], Error: [undefined method `list_networks' for nil:NilClass]"}
{"@timestamp":"2023-08-31T06:55:21.057019","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"err","message":"[ManageIQ::Providers::BaseManager::Refresher::PartialRefreshError]: undefined method `list_networks' for nil:NilClass  Method:[block (2 levels) in <class:LogProxy>]"}
kevin-to-LX commented 1 year ago

Hey @kevin-to-LX it sounds like the OVN (aka Ovirt::NetworkManager) refresher is failing can you please attach logs showing the error and full backtrace?

{"@timestamp":"2023-08-31T06:55:21.034821","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"err","message":"[NoMethodError]: undefined method list_networks' for nil:NilClass Method:[block (2 levels) in ]"} {"@timestamp":"2023-08-31T06:55:21.056907","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"err","message":"MIQ(MiqQueue#deliver) Message id: [8748], Error: [undefined method list_networks' for nil:NilClass]"} {"@timestamp":"2023-08-31T06:55:21.057019","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"err","message":"[ManageIQ::Providers::BaseManager::Refresher::PartialRefreshError]: undefined method `list_networks' for nil:NilClass Method:[block (2 levels) in class:LogProxy]"}

kevin-to-LX commented 1 year ago
{"@timestamp":"2023-08-31T06:55:20.080462","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"info","message":"MIQ(ManageIQ::Providers::Ovirt::NetworkManager::Refresher#refresh) EMS: [engine233.com-new Network Manager], id: [6]   ManageIQ::Providers::Ovirt::NetworkManager [engine233.com-new Network Manager] id [6]"}
{"@timestamp":"2023-08-31T06:55:20.080613","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"info","message":"MIQ(ManageIQ::Providers::Ovirt::NetworkManager::Refresher#collect_inventory_for_targets) Filtering inventory for ManageIQ::Providers::Ovirt::NetworkManager [engine233.com-new Network Manager] id: [6]..."}
{"@timestamp":"2023-08-31T06:55:20.953226","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"info","message":"MIQ(ManageIQ::Providers::Ovirt::NetworkManager::Refresher#collect_inventory_for_targets) Filtering inventory...Complete"}
{"@timestamp":"2023-08-31T06:55:20.953500","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"info","message":"MIQ(ManageIQ::Providers::Ovirt::NetworkManager::Refresher#refresh_targets_for_ems) EMS: [engine233.com-new Network Manager], id: [6] Refreshing target ManageIQ::Providers::Ovirt::NetworkManager [engine233.com-new Network Manager] id [6]..."}
{"@timestamp":"2023-08-31T06:55:21.032201","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"err","message":"Wrong password format, just numeric passwords are not accepted."}
{"@timestamp":"2023-08-31T06:55:21.032710","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"fog","level":"warning","message":"MIQ(OpenstackHandle::Handle.detect_service) detect service error: Numeric-only passwords are not accepted"}
{"@timestamp":"2023-08-31T06:55:21.033089","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"err","message":"MIQ(ManageIQ::Providers::Ovirt::NetworkManager::Refresher#refresh) EMS: [engine233.com-new Network Manager], id: [6] Refresh failed"}
{"@timestamp":"2023-08-31T06:55:21.034821","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"err","message":"[NoMethodError]: undefined method `list_networks' for nil:NilClass  Method:[block (2 levels) in <class:LogProxy>]"}
{"@timestamp":"2023-08-31T06:55:21.034925","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"err","message":"/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-openstack-c22bd4b9a1a8/app/models/manageiq/providers/openstack/inventory/collector/network_manager.rb:11:in `block in cloud_networks'\n/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-openstack-c22bd4b9a1a8/app/models/manageiq/providers/openstack/refresh_parser_common/helper_methods.rb:52:in `safe_call'\n/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-openstack-c22bd4b9a1a8/app/models/manageiq/providers/openstack/refresh_parser_common/helper_methods.rb:78:in `safe_list'\n/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-openstack-c22bd4b9a1a8/app/models/manageiq/providers/openstack/inventory/collector/network_manager.rb:11:in `cloud_networks'\n/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-openstack-c22bd4b9a1a8/app/models/manageiq/providers/openstack/inventory/parser/network_manager.rb:15:in `cloud_networks'\n/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-openstack-c22bd4b9a1a8/app/models/manageiq/providers/openstack/inventory/parser/network_manager.rb:5:in `parse'\n/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-ovirt-ef9377723b0a/app/models/manageiq/providers/ovirt/inventory/parser/network_manager.rb:3:in `parse'\n/var/www/miq/vmdb/app/models/manageiq/providers/inventory.rb:42:in `block in parse'\n/var/www/miq/vmdb/app/models/manageiq/providers/inventory.rb:39:in `each'\n/var/www/miq/vmdb/app/models/manageiq/providers/inventory.rb:39:in `parse'\n/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-ovirt-ef9377723b0a/app/models/manageiq/providers/ovirt/network_manager/refresher.rb:22:in `block in parse_targeted_inventory'\n/opt/manageiq/manageiq-gemset/gems/more_core_extensions-4.4.0/lib/more_core_extensions/core_ext/benchmark/realtime_store.rb:20:in `realtime_store'\n/opt/manageiq/manageiq-gemset/gems/more_core_extensions-4.4.0/lib/more_core_extensions/core_ext/benchmark/realtime_store.rb:56:in `realtime_block'\n/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-ovirt-ef9377723b0a/app/models/manageiq/providers/ovirt/network_manager/refresher.rb:21:in `parse_targeted_inventory'\n/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:96:in `block in refresh_targets_for_ems'\n/opt/manageiq/manageiq-gemset/gems/more_core_extensions-4.4.0/lib/more_core_extensions/core_ext/benchmark/realtime_store.rb:20:in `realtime_store'\n/opt/manageiq/manageiq-gemset/gems/more_core_extensions-4.4.0/lib/more_core_extensions/core_ext/benchmark/realtime_store.rb:56:in `realtime_block'\n/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:95:in `refresh_targets_for_ems'\n/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:41:in `block (2 levels) in refresh'\n/opt/manageiq/manageiq-gemset/gems/more_core_extensions-4.4.0/lib/more_core_extensions/core_ext/benchmark/realtime_store.rb:20:in `realtime_store'\n/opt/manageiq/manageiq-gemset/gems/more_core_extensions-4.4.0/lib/more_core_extensions/core_ext/benchmark/realtime_store.rb:62:in `realtime_block'\n/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:41:in `block in refresh'\n/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:31:in `each'\n/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:31:in `refresh'\n/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:11:in `refresh'\n/var/www/miq/vmdb/app/models/ems_refresh.rb:74:in `block in refresh'\n/var/www/miq/vmdb/app/models/ems_refresh.rb:73:in `each'\n/var/www/miq/vmdb/app/models/ems_refresh.rb:73:in `refresh'\n/var/www/miq/vmdb/app/models/miq_queue.rb:517:in `block in dispatch_method'\n/opt/manageiq/manageiq-gemset/gems/timeout-0.4.0/lib/timeout.rb:186:in `block in timeout'\n/opt/manageiq/manageiq-gemset/gems/timeout-0.4.0/lib/timeout.rb:41:in `handle_timeout'\n/opt/manageiq/manageiq-gemset/gems/timeout-0.4.0/lib/timeout.rb:195:in `timeout'\n/var/www/miq/vmdb/app/models/miq_queue.rb:515:in `dispatch_method'\n/var/www/miq/vmdb/app/models/miq_queue.rb:484:in `block in deliver'\n/var/www/miq/vmdb/app/models/user.rb:382:in `with_user_group'\n/var/www/miq/vmdb/app/models/miq_queue.rb:484:in `deliver'\n/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:98:in `deliver_queue_message'\n/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:124:in `deliver_message'\n/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:146:in `block in do_work'\n/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:142:in `loop'\n/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:142:in `do_work'\n/var/www/miq/vmdb/app/models/miq_worker/runner.rb:295:in `block in do_work_loop'\n/var/www/miq/vmdb/app/models/miq_worker/runner.rb:292:in `loop'\n/var/www/miq/vmdb/app/models/miq_worker/runner.rb:292:in `do_work_loop'\n/var/www/miq/vmdb/app/models/miq_worker/runner.rb:142:in `run'\n/var/www/miq/vmdb/app/models/miq_worker/runner.rb:100:in `start_rails_worker'\n/var/www/miq/vmdb/app/models/miq_worker/runner.rb:95:in `start'\n/var/www/miq/vmdb/lib/workers/bin/run_single_worker.rb:128:in `<main>'"}
{"@timestamp":"2023-08-31T06:55:21.035002","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"err","message":"MIQ(ManageIQ::Providers::Ovirt::NetworkManager::Refresher#refresh) EMS: [engine233.com-new Network Manager], id: [6] Unable to perform refresh for the following targets:"}
{"@timestamp":"2023-08-31T06:55:21.035097","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"err","message":"MIQ(ManageIQ::Providers::Ovirt::NetworkManager::Refresher#refresh)  --- ManageIQ::Providers::Ovirt::NetworkManager [engine233.com-new Network Manager] id [6]"}
{"@timestamp":"2023-08-31T06:55:21.056681","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"info","message":"MIQ(ManageIQ::Providers::Ovirt::NetworkManager::Refresher#refresh) Refreshing all targets...Complete"}
{"@timestamp":"2023-08-31T06:55:21.056907","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"err","message":"MIQ(MiqQueue#deliver) Message id: [8748], Error: [undefined method `list_networks' for nil:NilClass]"}
{"@timestamp":"2023-08-31T06:55:21.057019","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"err","message":"[ManageIQ::Providers::BaseManager::Refresher::PartialRefreshError]: undefined method `list_networks' for nil:NilClass  Method:[block (2 levels) in <class:LogProxy>]"}
{"@timestamp":"2023-08-31T06:55:21.057193","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"err","message":"/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:68:in `refresh'\n/var/www/miq/vmdb/app/models/manageiq/providers/base_manager/refresher.rb:11:in `refresh'\n/var/www/miq/vmdb/app/models/ems_refresh.rb:74:in `block in refresh'\n/var/www/miq/vmdb/app/models/ems_refresh.rb:73:in `each'\n/var/www/miq/vmdb/app/models/ems_refresh.rb:73:in `refresh'\n/var/www/miq/vmdb/app/models/miq_queue.rb:517:in `block in dispatch_method'\n/opt/manageiq/manageiq-gemset/gems/timeout-0.4.0/lib/timeout.rb:186:in `block in timeout'\n/opt/manageiq/manageiq-gemset/gems/timeout-0.4.0/lib/timeout.rb:41:in `handle_timeout'\n/opt/manageiq/manageiq-gemset/gems/timeout-0.4.0/lib/timeout.rb:195:in `timeout'\n/var/www/miq/vmdb/app/models/miq_queue.rb:515:in `dispatch_method'\n/var/www/miq/vmdb/app/models/miq_queue.rb:484:in `block in deliver'\n/var/www/miq/vmdb/app/models/user.rb:382:in `with_user_group'\n/var/www/miq/vmdb/app/models/miq_queue.rb:484:in `deliver'\n/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:98:in `deliver_queue_message'\n/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:124:in `deliver_message'\n/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:146:in `block in do_work'\n/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:142:in `loop'\n/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:142:in `do_work'\n/var/www/miq/vmdb/app/models/miq_worker/runner.rb:295:in `block in do_work_loop'\n/var/www/miq/vmdb/app/models/miq_worker/runner.rb:292:in `loop'\n/var/www/miq/vmdb/app/models/miq_worker/runner.rb:292:in `do_work_loop'\n/var/www/miq/vmdb/app/models/miq_worker/runner.rb:142:in `run'\n/var/www/miq/vmdb/app/models/miq_worker/runner.rb:100:in `start_rails_worker'\n/var/www/miq/vmdb/app/models/miq_worker/runner.rb:95:in `start'\n/var/www/miq/vmdb/lib/workers/bin/run_single_worker.rb:128:in `<main>'"}
{"@timestamp":"2023-08-31T06:55:21.057325","hostname":"182a3c77fb6d","pid":678,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqQueue#delivered) Message id: [8748], State: [error], Delivered in [0.990655065] seconds"}
{"@timestamp":"2023-08-31T06:55:22.741364","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqPriorityWorker::Runner#get_message_via_drb) Message id: [8878], Zone: [default], Role: [automate], Server: [], MiqTask id: [], Handler id: [MiqWorker 49], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [MiqAeEngine.deliver], Timeout: [3600], Priority: [20], State: [dequeue], Deliver On: [], Data: [], Args: [{:object_type=>\"ManageIQ::Providers::Ovirt::InfraManager::Host\", :object_id=>1, :attrs=>{:event_type=>\"host_add_to_cluster\", \"Host::host\"=>1, :host_id=>1, \"EmsCluster::ems_cluster\"=>2, :ems_cluster_id=>2, \"MiqEvent::miq_event\"=>215, :miq_event_id=>215, \"EventStream::event_stream\"=>215, :event_stream_id=>215}, :instance_name=>\"Event\", :user_id=>1, :miq_group_id=>1, :tenant_id=>1, :automate_message=>nil}], Dequeued in: [4.81180769] seconds"}
{"@timestamp":"2023-08-31T06:55:22.741797","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqQueue#deliver) Message id: [8878], Delivering..."}
{"@timestamp":"2023-08-31T06:55:22.746772","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"automation","level":"info","message":"User [admin] with current group ID [1] name [Tenant My Company/1 access]"}
{"@timestamp":"2023-08-31T06:55:23.068685","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"evm","level":"info","message":"Delivering {:event_type=>\"host_add_to_cluster\", \"Host::host\"=>1, :host_id=>1, \"EmsCluster::ems_cluster\"=>2, :ems_cluster_id=>2, \"MiqEvent::miq_event\"=>215, :miq_event_id=>215, \"EventStream::event_stream\"=>215, :event_stream_id=>215} for object [ManageIQ::Providers::Ovirt::InfraManager::Host.1] with state [] to Automate"}
{"@timestamp":"2023-08-31T06:55:23.069217","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"automation","level":"info","message":"Instantiating [/System/Process/Event?EmsCluster%3A%3Aems_cluster=2&EventStream%3A%3Aevent_stream=215&Host%3A%3Ahost=1&MiqEvent%3A%3Amiq_event=215&MiqServer%3A%3Amiq_server=1&User%3A%3Auser=1&ems_cluster_id=2&event_stream_id=215&event_type=host_add_to_cluster&host_id=1&miq_event_id=215&object_name=Event&vmdb_object_type=host]"}
{"@timestamp":"2023-08-31T06:55:23.077992","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"automation","level":"info","message":"Updated namespace [/System/Process/Event?EmsCluster%3A%3Aems_cluster=2&EventStream%3A%3Aevent_stream=215&Host%3A%3Ahost=1&MiqEvent%3A%3Amiq_event=215&MiqServer%3A%3Amiq_server=1&User%3A%3Auser=1&ems_cluster_id=2&event_stream_id=215&event_type=host_add_to_cluster&host_id=1&miq_event_id=215&object_name=Event&vmdb_object_type=host  ManageIQ/System]"}
{"@timestamp":"2023-08-31T06:55:23.322455","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"automation","level":"info","message":"Following Relationship [miqaedb:/System/Event/MiqEvent/POLICY/host_add_to_cluster#create]"}
{"@timestamp":"2023-08-31T06:55:23.333050","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"automation","level":"info","message":"Updated namespace [miqaedb:/System/Event/MiqEvent/POLICY/host_add_to_cluster#create  ManageIQ/System/Event/MiqEvent]"}
{"@timestamp":"2023-08-31T06:55:23.337241","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"automation","level":"info","message":"Instance [/ManageIQ/System/Event/MiqEvent/POLICY/host_add_to_cluster] not found in MiqAeDatastore - trying [.missing]"}
{"@timestamp":"2023-08-31T06:55:23.346253","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"automation","level":"info","message":"Following Relationship [miqaedb:/System/event_handlers/event_enforce_policy#create]"}
{"@timestamp":"2023-08-31T06:55:23.351590","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"automation","level":"info","message":"Updated namespace [miqaedb:/System/event_handlers/event_enforce_policy#create  ManageIQ/System]"}
{"@timestamp":"2023-08-31T06:55:23.368361","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"automation","level":"info","message":"Updated namespace [System/event_handlers/event_enforce_policy  ManageIQ/System]"}
{"@timestamp":"2023-08-31T06:55:23.371238","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"automation","level":"info","message":"Invoking [builtin] method [/ManageIQ/System/event_handlers/event_enforce_policy] with inputs [{}]"}
{"@timestamp":"2023-08-31T06:55:23.374687","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqEvent#process_evm_event) Event Raised [host_add_to_cluster]"}
{"@timestamp":"2023-08-31T06:55:23.375746","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"policy","level":"info","message":"MIQ(policy-enforce_policy): Event: [host_add_to_cluster], To: [node231.com]"}
{"@timestamp":"2023-08-31T06:55:23.417352","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqEvent#process_evm_event) Alert for Event [host_add_to_cluster]"}
{"@timestamp":"2023-08-31T06:55:23.417583","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqAlert.evaluate_alerts) [host_add_to_cluster] Target: ManageIQ::Providers::Ovirt::InfraManager::Host Name: [node231.com], Id: [1]"}
{"@timestamp":"2023-08-31T06:55:23.424445","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"evm","level":"warning","message":"MIQ(MiqAlert.evaluate_alerts) [host_add_to_cluster] Target: ManageIQ::Providers::Ovirt::InfraManager::Host Name: [node231.com], Id: [1] Result: No enabled alerts are assigned to target!  Nothing to do."}
{"@timestamp":"2023-08-31T06:55:23.424779","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"automation","level":"info","message":"Followed  Relationship [miqaedb:/System/event_handlers/event_enforce_policy#create]"}
{"@timestamp":"2023-08-31T06:55:23.426181","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"automation","level":"info","message":"Followed  Relationship [miqaedb:/System/Event/MiqEvent/POLICY/host_add_to_cluster#create]"}
{"@timestamp":"2023-08-31T06:55:23.426949","hostname":"182a3c77fb6d","pid":305,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqQueue#delivered) Message id: [8878], State: [ok], Delivered in [0.685147382] seconds"}
{"@timestamp":"2023-08-31T06:55:25.235147","hostname":"182a3c77fb6d","pid":303,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqGenericWorker::Runner#get_message_via_drb) Message id: [8879], Zone: [default], Role: [], Server: [], MiqTask id: [], Handler id: [MiqWorker 48], Ident: [generic], Target id: [], Instance id: [2], Task id: [], Command: [ManageIQ::Providers::Ovirt::InfraManager::Vm.classify_with_parent_folder_path], Timeout: [600], Priority: [200], State: [dequeue], Deliver On: [], Data: [], Args: [true], Dequeued in: [5.595603034] seconds"}
{"@timestamp":"2023-08-31T06:55:25.235559","hostname":"182a3c77fb6d","pid":303,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqQueue#deliver) Message id: [8879], Delivering..."}
{"@timestamp":"2023-08-31T06:55:25.295303","hostname":"182a3c77fb6d","pid":301,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqGenericWorker::Runner#get_message_via_drb) Message id: [8880], Zone: [default], Role: [], Server: [], MiqTask id: [], Handler id: [MiqWorker 47], Ident: [generic], Target id: [], Instance id: [1], Task id: [], Command: [ManageIQ::Providers::Ovirt::InfraManager::Template.classify_with_parent_folder_path], Timeout: [600], Priority: [200], State: [dequeue], Deliver On: [], Data: [], Args: [true], Dequeued in: [5.633395507] seconds"}
{"@timestamp":"2023-08-31T06:55:25.295724","hostname":"182a3c77fb6d","pid":301,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqQueue#deliver) Message id: [8880], Delivering..."}
{"@timestamp":"2023-08-31T06:55:25.344792","hostname":"182a3c77fb6d","pid":319,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqQueue.put) Message id: [8892], Zone: [], Role: [], Server: [], MiqTask id: [], Handler id: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [MiqQueue.check_for_timeout], Timeout: [600], Priority: [50], State: [ready], Deliver On: [], Data: [], Args: []"}
{"@timestamp":"2023-08-31T06:55:25.559931","hostname":"182a3c77fb6d","pid":303,"tid":"94d4","service":"evm","level":"info","message":"MIQ(ManageIQ::Providers::Ovirt::InfraManager::Vm#classify_with_parent_folder_path) Classifying VM: [HostedEngine] with Category: [folder_path_blue => Parent Folder Path (VMs & Templates)], Entry: [datacenters:default:vm => Datacenters/Default/vm]"}
{"@timestamp":"2023-08-31T06:55:25.720468","hostname":"182a3c77fb6d","pid":303,"tid":"94d4","service":"automation","level":"info","message":"MiqAeEvent.build_evm_event >> event=<:assigned_company_tag> inputs=<{\"MiqEvent::miq_event\"=>216, :miq_event_id=>216, \"EventStream::event_stream\"=>216, :event_stream_id=>216}>"}
{"@timestamp":"2023-08-31T06:55:25.754366","hostname":"182a3c77fb6d","pid":303,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqQueue.put) Message id: [8893], Zone: [default], Role: [automate], Server: [], MiqTask id: [], Handler id: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [MiqAeEngine.deliver], Timeout: [3600], Priority: [20], State: [ready], Deliver On: [], Data: [], Args: [{:object_type=>\"ManageIQ::Providers::Ovirt::InfraManager::Vm\", :object_id=>2, :attrs=>{:event_type=>\"assigned_company_tag\", \"MiqEvent::miq_event\"=>216, :miq_event_id=>216, \"EventStream::event_stream\"=>216, :event_stream_id=>216}, :instance_name=>\"Event\", :user_id=>1, :miq_group_id=>1, :tenant_id=>1, :automate_message=>nil}]"}
{"@timestamp":"2023-08-31T06:55:25.909551","hostname":"182a3c77fb6d","pid":303,"tid":"94d4","service":"evm","level":"info","message":"MIQ(ManageIQ::Providers::Ovirt::InfraManager::Vm#classify_with_parent_folder_path) Classifying VM: [HostedEngine] with Category: [folder_path_yellow => Parent Folder Path (Hosts & Clusters)], Entry: [datacenters => Datacenters]"}
{"@timestamp":"2023-08-31T06:55:25.966152","hostname":"182a3c77fb6d","pid":303,"tid":"94d4","service":"automation","level":"info","message":"MiqAeEvent.build_evm_event >> event=<:assigned_company_tag> inputs=<{\"MiqEvent::miq_event\"=>217, :miq_event_id=>217, \"EventStream::event_stream\"=>217, :event_stream_id=>217}>"}
{"@timestamp":"2023-08-31T06:55:25.981776","hostname":"182a3c77fb6d","pid":303,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqQueue.put) Message id: [8894], Zone: [default], Role: [automate], Server: [], MiqTask id: [], Handler id: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [MiqAeEngine.deliver], Timeout: [3600], Priority: [20], State: [ready], Deliver On: [], Data: [], Args: [{:object_type=>\"ManageIQ::Providers::Ovirt::InfraManager::Vm\", :object_id=>2, :attrs=>{:event_type=>\"assigned_company_tag\", \"MiqEvent::miq_event\"=>217, :miq_event_id=>217, \"EventStream::event_stream\"=>217, :event_stream_id=>217}, :instance_name=>\"Event\", :user_id=>1, :miq_group_id=>1, :tenant_id=>1, :automate_message=>nil}]"}
{"@timestamp":"2023-08-31T06:55:25.982056","hostname":"182a3c77fb6d","pid":303,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqQueue#delivered) Message id: [8879], State: [ok], Delivered in [0.746469668] seconds"}
{"@timestamp":"2023-08-31T06:55:26.241144","hostname":"182a3c77fb6d","pid":303,"tid":"94d4","service":"evm","level":"info","message":"MIQ(MiqGenericWorker::Runner#get_message_via_drb) Message id: [8881], Zone: [default], Role: [], Server: [], MiqTask id: [], Handler id: [MiqWorker 48], Ident: [generic], Target id: [], Instance id: [3], Task id: [], Command: [ManageIQ::Providers::Ovirt::InfraManager::Vm.classify_with_parent_folder_path], Timeout: [600], Priority: [200], State: [dequeue], Deliver On: [], Data: [], Args: [true], Dequeued in: [6.549005512] seconds"}
kevin-to-LX commented 1 year ago

"Wrong password format, just numeric passwords are not accepted" Is this the reason? @agrare

agrare commented 1 year ago

Thanks @kevin-to-LX this is very helpful

This the original error from the Openstack Neutron API:

Wrong password format, just numeric passwords are not accepted.
MIQ(OpenstackHandle::Handle.detect_service) detect service error: Numeric-only passwords are not accepted

Then we do not check if the connection failed and try to collect cloud_networks anyway which results in

[NoMethodError]: undefined method `list_networks' for nil:NilClass  Method:[block (2 levels) in <class:LogProxy>]
opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-openstack-c22bd4b9a1a8/app/models/manageiq/providers/openstack/inventory/collector/network_manager.rb:11:in `block in cloud_networks'
/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-openstack-c22bd4b9a1a8/app/models/manageiq/providers/openstack/refresh_parser_common/helper_methods.rb:52:in `safe_call'
/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-openstack-c22bd4b9a1a8/app/models/manageiq/providers/openstack/refresh_parser_common/helper_methods.rb:78:in `safe_list'
/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-openstack-c22bd4b9a1a8/app/models/manageiq/providers/openstack/inventory/collector/network_manager.rb:11:in `cloud_networks'
/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-openstack-c22bd4b9a1a8/app/models/manageiq/providers/openstack/inventory/parser/network_manager.rb:15:in `cloud_networks'
/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-openstack-c22bd4b9a1a8/app/models/manageiq/providers/openstack/inventory/parser/network_manager.rb:5:in `parse'
/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-providers-ovirt-ef9377723b0a/app/models/manageiq/providers/ovirt/inventory/parser/network_manager.rb:3:in `parse'
/var/www/miq/vmdb/app/models/manageiq/providers/inventory.rb:42:in `block in parse'
kevin-to-LX commented 1 year ago

only Is there a plan to fix this issue? Where it need to call Openstack Neutron API? @agrare

agrare commented 1 year ago

@kevin-to-LX I am working on improved error handling so that we don't blow up with a NoMethodError when we are unable to login to neutron, but I cannot fix the Numeric-only passwords are not accepted error since that comes from Ovirt OVN. I assume that you don't have external networking actually working since this would also fail for Ovirt when they went to hit the neutron API?

kevin-to-LX commented 1 year ago

would @agrare But i can create logical network and subnet in oivrt with ovn。

agrare commented 1 year ago

Hey @kevin-to-LX I forgot about this but we were working around a bug in fog which failed for passwords which were all numbers, but the bug has since been fixed and so we can drop this check. https://github.com/ManageIQ/manageiq-providers-openstack/pull/859 should resolve this for you.

kevin-to-LX commented 1 year ago

I can not find the TAG which named petrosian-1 at https://hub.docker.com/ @agrare

agrare commented 1 year ago

Hey @kevin-to-LX unfortunately https://github.com/ManageIQ/manageiq-providers-openstack/pull/859 didn't land in petrosian-1

I can not find the TAG which named petrosian-1 at https://hub.docker.com/

cc @bdunne

kevin-to-LX commented 1 year ago

error: undefined method ‘list_networks’ for nil:NilClass I downloaded the latest version, but the error still exists:

undefined method `list_networks' for nil:NilClass

agrare commented 1 year ago

Hey @kevin-to-LX like I mentioned this fix isn't in petrosian-1 so it isn't fixed in the current release. It will be fixed in quintaros

kevin-to-LX commented 1 year ago

docker pull manageiq/manageiq:latest this verison is not the master ? @agrare