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

Evaluation Error: Error while evaluating a Method call #887

Open
flybyray opened this issue Oct 8, 2020 · 3 comments
Open

Evaluation Error: Error while evaluating a Method call #887

flybyray opened this issue Oct 8, 2020 · 3 comments

Comments

@flybyray
Copy link

flybyray commented Oct 8, 2020

[ERROR 2020-10-08T12:02:54 main]  Evaluation Error: Error while evaluating a Method call, 'regsubst' parameter 'target' expects a value of type Array or String, got Undef (file: /usr/share/foreman-installer/modules/foreman/manifests/plugin/tasks.pp, line: 14, column: 48) on node

package => $foreman::plugin_prefix.regsubst(/foreman[_-]/, 'foreman-tasks'),

@ekohl
Copy link
Member

ekohl commented Oct 8, 2020

Did you by any chance include foreman::plugin::tasks before the include foreman? Perhaps to be safe, the file should include foreman explicitly so the variable is guaranteed to be defined.

@flybyray
Copy link
Author

flybyray commented Oct 8, 2020

by chance it is a release from rpm.

# dnf list foreman-installer |& grep foreman-installer
foreman-installer.noarch 1:2.1.3-1.el8 @foreman
# rpm -ql foreman-installer |& grep /usr/share/foreman-installer/modules/foreman/manifests/plugin/tasks.pp
/usr/share/foreman-installer/modules/foreman/manifests/plugin/tasks.pp

If i change the file on disk and run a foreman-installer command again.

# foreman-installer   --no-enable-foreman   --no-enable-foreman-cli   --no-enable-puppet   --no-enable-foreman-proxy   --enable-foreman-plugin-ansible   --enable-foreman-proxy-plugin-ansible

Traceback (most recent call last):
        11: from /usr/sbin/foreman-installer:8:in `<main>'
        10: from /usr/share/gems/gems/kafo-4.1.0/lib/kafo/kafo_configure.rb:162:in `run'
         9: from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
         8: from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `new'
         7: from /usr/share/gems/gems/kafo-4.1.0/lib/kafo/kafo_configure.rb:99:in `initialize'
         6: from /usr/share/gems/gems/kafo-4.1.0/lib/kafo/kafo_configure.rb:284:in `set_parameters'
         5: from /usr/share/gems/gems/kafo-4.1.0/lib/kafo/configuration.rb:245:in `preset_defaults_from_puppet'
         4: from /usr/share/gems/gems/kafo-4.1.0/lib/kafo/configuration.rb:235:in `params'
         3: from /usr/share/gems/gems/kafo-4.1.0/lib/kafo/configuration.rb:110:in `modules'
         2: from /usr/share/gems/gems/kafo-4.1.0/lib/kafo/configuration.rb:110:in `map'
         1: from /usr/share/gems/gems/kafo-4.1.0/lib/kafo/configuration.rb:110:in `block in modules'
/usr/share/gems/gems/kafo-4.1.0/lib/kafo/puppet_module.rb:69:in `parse': No Puppet module parser is installed and no cache of the file /usr/share/foreman-installer/modules/foreman/manifests/plugin/tasks.pp is available. Please check debug logs and install optional dependencies for the parser. (Kafo::ParserError)

@ekohl
Copy link
Member

ekohl commented Oct 21, 2020

--no-enable-foreman and --enable-foreman-plugin-* is conflicting. You can't disable Foreman but Foreman enable plugins.

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

No branches or pull requests

2 participants