You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A number of providers have params_for_create defined without zone_id listed in the validationDependencies for the validate-provider-credentials component.
This means that the user selected zone is not passed in to the verify_credentials method, this means that any worker with ems_operations on any zone can pick the queue item up. This will "work" unless you actually have network separation between your zones in which case the verify_credentials method will fail if it is picked up by a worker in another zone.
Example of a bad MiqQueue.put [----] I, [2024-01-22T11:14:15.460520#98264:5bbd0] INFO -- evm: MIQ(MiqQueue.put) Message id: [5611], Zone: [], Role: [ems_operations], Server: [], MiqTask id: [69], Handler id: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [ManageIQ::Providers::IbmPowerVc::CloudManager.verify_credentials?], Timeout: [600], Priority: [100], State: [ready], Deliver On: [], Data: [], Args: [{"endpoints"=>{"default"=>{"security_protocol"=>"ssl-no-validation", "hostname"=>"10.2.2.99", "port"=>5000}}, "authentications"=>{"default"=>{"userid"=>"admin", "password"=>"********"}}, "name"=>"powervc", "type"=>"ManageIQ::Providers::IbmPowerVc::CloudManager", "api_version"=>"v3", "provider_region"=>nil, "uid_ems"=>"default", :task_id=>69}]
A number of providers have params_for_create defined without
zone_id
listed in thevalidationDependencies
for thevalidate-provider-credentials
component.This means that the user selected zone is not passed in to the verify_credentials method, this means that any worker with ems_operations on any zone can pick the queue item up. This will "work" unless you actually have network separation between your zones in which case the verify_credentials method will fail if it is picked up by a worker in another zone.
Example of a bad
MiqQueue.put
[----] I, [2024-01-22T11:14:15.460520#98264:5bbd0] INFO -- evm: MIQ(MiqQueue.put) Message id: [5611], Zone: [], Role: [ems_operations], Server: [], MiqTask id: [69], Handler id: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [ManageIQ::Providers::IbmPowerVc::CloudManager.verify_credentials?], Timeout: [600], Priority: [100], State: [ready], Deliver On: [], Data: [], Args: [{"endpoints"=>{"default"=>{"security_protocol"=>"ssl-no-validation", "hostname"=>"10.2.2.99", "port"=>5000}}, "authentications"=>{"default"=>{"userid"=>"admin", "password"=>"********"}}, "name"=>"powervc", "type"=>"ManageIQ::Providers::IbmPowerVc::CloudManager", "api_version"=>"v3", "provider_region"=>nil, "uid_ems"=>"default", :task_id=>69}]
Here you can see
Zone: []
Providers impacted:
The text was updated successfully, but these errors were encountered: