Provisioning setup

Foreman version: 1.23

I am trying to setup foreman environment. during the step of foreman provisioning setup, I get the below error when I submit at stage 3 foreman installer.

Oops, we’re sorry but something went wrong wrong number of arguments (given 1, expected 0)

Other Details:

Foreman Installer:

foreman-installer
–enable-foreman-proxy
–foreman-proxy-tftp=true
–foreman-proxy-tftp-servername=172.103.29.38
–foreman-proxy-dhcp=true
–foreman-proxy-dhcp-interface=eno1
–foreman-proxy-dhcp-gateway=172.103.29.1
–foreman-proxy-dhcp-range=“172.103.29.32 172.103.29.240”
–foreman-proxy-dhcp-nameservers=“172.103.29.38,172.103.1.24”
–foreman-proxy-dns=true
–foreman-proxy-dns-interface=eno1
–foreman-proxy-dns-zone=example.com
–foreman-proxy-dns-reverse=29.103.172.in-addr.arpa
–foreman-proxy-dns-forwarders=172.103.1.23
–foreman-proxy-dns-forwarders=172.103.1.24
–foreman-proxy-foreman-base-url=https://host1.example.com
–foreman-proxy-oauth-consumer-key=rRWqEQAoyMaaamzXDQw26QEVsQSUwnXH
–foreman-proxy-oauth-consumer-secret=8NaaaLshs5gZzomweWxv3CCvpbC6A4Wp

Production log details:

2019-11-18T13:05:37 [I|aud|bd350aea] Subnet (18) update event on dns_id , 1
2019-11-18T13:05:37 [I|aud|bd350aea] Subnet (18) update event on dhcp_id , 1
2019-11-18T13:05:37 [I|aud|bd350aea] Subnet (18) update event on tftp_id , 1
2019-11-18T13:05:37 [W|app|bd350aea] Action failed
ArgumentError: wrong number of arguments (given 1, expected 0)
/usr/share/foreman/app/models/provisioning_template.rb:153:in build_pxe_default' /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_setup-6.0.0/app/controllers/foreman_setup/provisioners_controller.rb:99:instep4’

Please help!
Thanks

A bug: Bug #25734: wrong number of arguments (given 1, expected 0) - foreman_setup - Foreman

The plugin needs a new release which I will do. You can hotfix your instance it is a oneliner, see the associated patch.

Looks like foreman_setup has been broken for some time (1.22 change f715a7c98457c6f). I am going to push out 7.0.0, can we put it into all supported branches? Easyfix. @tbrisker

1 Like

should be as easy as opening a packaging pr :wink: i hope nothing else broke in the half year since this was fixed.

Can you get me access to the rubygem repo please? I don’t appear to have it. My regular redhat email address. https://rubygems.org/gems/foreman_setup

done

Very much. PRs on the way.

We are fixing this soon in 1.22, 23 and 24 releases.