Skip to content
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

Compute -> Infra -> VMs page broken with STI exception #6425

Closed
skateman opened this issue Nov 19, 2019 · 4 comments
Closed

Compute -> Infra -> VMs page broken with STI exception #6425

skateman opened this issue Nov 19, 2019 · 4 comments
Labels

Comments

@skateman
Copy link
Member

When navigating to the VMs page on the latest master with the testing DB, I see the following STI exception:

Error caught: [ActiveRecord::SubclassNotFound] The single-table inheritance mechanism failed to locate the subclass: 'ManageIQ::Providers::Redhat::InfraManager::ResourcePool'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite ResourcePool.inheritance_column to use another column for that information.

It is coming from:

...
/home/skateman/Repositories/ManageIQ/manageiq/lib/miq_preloader.rb:4:in `preload'
/home/skateman/Repositories/ManageIQ/manageiq/app/models/relationship.rb:92:in `arranged_rels_to_resources'
/home/skateman/Repositories/ManageIQ/manageiq/app/models/mixins/relationship_mixin.rb:397:in `subtree_arranged'
/home/skateman/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/memoist-0.15.0/lib/memoist.rb:213:in `subtree_arranged'
/home/skateman/Repositories/ManageIQ/manageiq-ui-classic/app/presenters/tree_builder_vandt.rb:37:in `relationship_tree'
/home/skateman/Repositories/ManageIQ/manageiq-ui-classic/app/presenters/tree_builder_vandt.rb:24:in `block in x_get_tree_roots'
/home/skateman/Repositories/ManageIQ/manageiq-ui-classic/app/presenters/tree_builder_vandt.rb:23:in `each'
/home/skateman/Repositories/ManageIQ/manageiq-ui-classic/app/presenters/tree_builder_vandt.rb:23:in `each_with_object'
/home/skateman/Repositories/ManageIQ/manageiq-ui-classic/app/presenters/tree_builder_vandt.rb:23:in `x_get_tree_roots'

And it looks like this:
Screenshot from 2019-11-19 12-55-31

@miq-bot assign @kbrock
@miq-bot add_label bug

@miq-bot
Copy link
Member

miq-bot commented Nov 19, 2019

@skateman 'kbrock' is an invalid assignee, ignoring...

@miq-bot miq-bot added the bug label Nov 19, 2019
@skateman
Copy link
Member Author

@kbrock even though you're an invalid assignee, I have a feeling that you could help me with this 😉

@skateman
Copy link
Member Author

Caused by ManageIQ/manageiq-schema#435 as the rest of the PRs under ManageIQ/manageiq#19529 is not merged yet. cc @bdunne @agrare

@skateman
Copy link
Member Author

Fixed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants