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
MiqExpression.build_relats(ManageIQ::Providers::InfraManager)
end with error:
irb(main):001:0> MiqExpression.build_relats(ManageIQ::Providers::InfraManager)
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 50, connections: 1, in use: 1, waiting_in_queue: 0
NoMethodError: undefined method `attribute_names' for ManageIQ::Network:Module
Did you mean? attr_internal
from /Users/liborpichler/manageiq/manageiq/lib/miq_expression.rb:957:in `build_relats'
from /Users/liborpichler/manageiq/manageiq/lib/miq_expression.rb:992:in `block in build_relats'
from /Users/liborpichler/manageiq/manageiq/lib/miq_expression.rb:960:in `each'
from /Users/liborpichler/manageiq/manageiq/lib/miq_expression.rb:960:in `build_relats'
from (irb):1
from /Users/liborpichler/manageiq/manageiq/.bundle/ruby/2.4.0/gems/railties-5.0.6/lib/rails/commands/console.rb:65:in `start'
from /Users/liborpichler/manageiq/manageiq/.bundle/ruby/2.4.0/gems/railties-5.0.6/lib/rails/commands/console_helper.rb:9:in `start'
from /Users/liborpichler/manageiq/manageiq/.bundle/ruby/2.4.0/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:78:in `console'
from /Users/liborpichler/manageiq/manageiq/.bundle/ruby/2.4.0/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /Users/liborpichler/manageiq/manageiq/.bundle/ruby/2.4.0/gems/railties-5.0.6/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
@d-m-u, @kbrock, @Fryguy, effectively interesting that although everything seemed GREEN, ems_infra wasn't. So now we have to look at the test results no matter what.
Anyway this has been addressed although impacting all discovery probes that have been merged in the meantime, working on it...
Ultimately it would be great if the Models relationships could not block us to use or improve name space.
caused by #16916
Issue:
MiqExpression.build_relats(ManageIQ::Providers::InfraManager)
end with error:
Why ?
Rails badly inherit class here
https://github.com/ManageIQ/manageiq/blob/master/lib/miq_expression.rb#L971
it should get
Network
but it gotManageIQ::Network
because of module existence added in #16916Workaround:
it is working with changing name of module:
Suggestion to Fix:
Rename
Network
module to something different.Reproducer
just go to:
Compute > Infrastructure > Providers
cc @gildub
The text was updated successfully, but these errors were encountered: