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

NoMethodError when combined with foreman_cockpit plugin? #4

Closed
xTrekStorex opened this issue Apr 16, 2018 · 6 comments
Closed

NoMethodError when combined with foreman_cockpit plugin? #4

xTrekStorex opened this issue Apr 16, 2018 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@xTrekStorex
Copy link

I get the following stacktrace when I open a host view. I barely know ruby but from what I understand the inherited method host_title_actions doesnt exist which I relate to foreman_cockpit being installed and redeclaring(?) it as host_title_actions_with_cockpit and host_title_actions_without_cockpit in https://github.com/theforeman/foreman_cockpit/blob/47ddc0cc19e64c1aadc1c8c5da621ca00361b4e1/app/helpers/concerns/foreman_cockpit/hosts_helper_extensions.rb

image

@timogoebel
Copy link
Member

@xTrekStorex: What Foreman version are you running? I believe this is actually something that should be fixed over at foreman_cockpit, see theforeman/foreman_cockpit#15.

@timogoebel timogoebel added the question Further information is requested label Apr 16, 2018
@xTrekStorex
Copy link
Author

Ah sry I forgot to mention that. 1.16.1 as of this morning.
upgraded from 1.16.0 incl. a few gem downgrades (sequel & pg) to fix foreman-rake db:migrate and fast_gettext to fix passenger looking for 1.5.1 while 1.6.0 was installed (possibly by me running bundle update)

@timogoebel
Copy link
Member

Ok, this is because of Module.prepend conflicting with alias_method_chain.

Foreman < 1.17 (& plugins for Foreman y 1.17) should still use alias_method_chain. I'll fix this in the 0.1-stable branch of this plugin.

@timogoebel timogoebel added bug Something isn't working and removed question Further information is requested labels Apr 16, 2018
@timogoebel timogoebel self-assigned this Apr 16, 2018
@timogoebel
Copy link
Member

@xTrekStorex: The code in #5 should fix this. Do you mind giving this a shot?

@xTrekStorex
Copy link
Author

Opening the host view works now. Thanks!
However clicking "Rescue" triggers another error but I think this should go in another issue

image

My hosts are all on VMware compute resources

@timogoebel
Copy link
Member

@xTrekStorex: Yeah, that doesn't look related. Please attach the complete stack trace, then it should be easy to figure out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants