Community CoreOS provision template error - undefined method '#release' for Operatingsystem::Jail (Coreos)

Problem:

Using a libvirt target Compute Resource, we are just trying to use the Community CoreOS provisioning template and associated cloud_config snippet, and it seems like CoreOS just deploys without any configuration.

Expected outcome:

CoreOS deployed with provisioning configuration and cloudinit

Foreman and Proxy versions:

Foreman and Proxy 1.15.6

Foreman and Proxy plugin versions:

Foreman Master:

|foreman_discovery |MaaS Discovery Plugin engine for Foreman |... |9.1.5|
|foreman_snapshot_management |Foreman-plugin to manage snapshots in a vSphere environment. |ATIX AG |1.3.0|
|foreman_templates |Engine to synchronise provisioning templates from GitHub |Greg Sutcliffe |5.0.1|
|foreman_vmwareannotations |This plug-in copies the host comment to VMWare annotations in The Foreman. |Timo Goebel |0.0.1|

Foreman Proxy:

$ rpm -qa|grep rubygem
rubygem-bigdecimal-1.2.0-33.el7_4.x86_64
rubygems-2.0.14.1-33.el7_4.noarch
rubygem-faraday-0.9.1-4.el7.noarch
rubygem-gssapi-1.1.2-3.el7.noarch
rubygem-rack-protection-1.5.3-3.el7.noarch
rubygem-net-http-persistent-2.8-5.el7.noarch
rubygem-smart_proxy_dhcp_infoblox-0.0.7-1.fm1_15.el7.noarch
rubygem-mime-types-1.19-3.el7.noarch
rubygem-netrc-0.7.7-7.el7.noarch
rubygem-json-1.7.7-33.el7_4.x86_64
rubygem-io-console-0.4.2-33.el7_4.x86_64
rubygem-multipart-post-2.0.0-4.el7.noarch
rubygem-faraday_middleware-0.10.0-1.el7.noarch
rubygem-ffi-1.9.10-2.el7.x86_64
rubygem-rb-inotify-0.9.7-2.el7.noarch
rubygem-rkerberos-0.1.3-5.el7.x86_64
rubygem-concurrent-ruby-1.0.3-1.el7.noarch
rubygem-rake-0.9.6-33.el7_4.noarch
rubygem-sinatra-1.4.8-2.el7.noarch
rubygem-thor-0.19.1-1.el7.noarch
rubygem-bundler_ext-0.4.1-1.el7.noarch
rubygem-rest-client-1.6.7-4.el7.noarch
rubygem-psych-2.0.0-33.el7_4.x86_64
rubygem-rdoc-4.0.0-33.el7_4.noarch
rubygem-infoblox-2.0.4-1.el7.noarch
rubygem-rack-1.6.4-2.el7.noarch
rubygem-rubyipmi-0.10.0-2.el7.noarch
rubygem-tilt-2.0.7-1.el7.noarch
rubygem-bundler-1.7.8-3.el7.noarch
rubygem-smart_proxy_discovery-1.0.4-1.el7.noarch

Other relevant data:

“ssh_authorized_keys” doesn’t work when declaring Global / Host Parameters, whether Operating System or whether or not we comment out the “if ssh_authorized_keys parameters” and use just the “user: core, passwd: core” type.

I didn’t see the host parameter for operatingsystem.release so I tried commenting those two lines out:

        ExecStart=/usr/bin/coreos-install \
          -C <%= @host.operatingsystem.release_name %> \
          -V <%= @host.operatingsystem.release %> \
          -d <%= host_param('install-disk') || '/dev/sda' %> <% if @host.provider == 'VMware' %>-o vmware_raw<% end %> \
          -c /home/core/cloud-config.yml <% if os_major >= 557 -%>-b <%= @mediapath %><% end %>

Error in the logs relevant:

2018-04-24 12:30:02 1c04581d [app] [D] Setting current organization thread-local variable to none
2018-04-24 12:30:02 1c04581d [app] [D] Setting current location thread-local variable to tx01
2018-04-24 12:30:02 1c04581d [app] [D] Setting current location thread-local variable to none
2018-04-24 12:30:02 1c04581d [app] [D] Setting current organization thread-local variable to none
2018-04-24 12:30:02 1c04581d [templates] [I] Rendering template 'Community CoreOS provision'
2018-04-24 12:30:02 1c04581d [app] [I]   Rendered inline template (428.6ms)
2018-04-24 12:30:02 1c04581d [app] [W] There was an error rendering the Community CoreOS provision template: 
 | ActionView::Template::Error: undefined method '#release' for Operatingsystem::Jail (Coreos)
 | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.1/lib/safemode/jail.rb:22:in `method_missing'
 | Community CoreOS provision:69:in `bind'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.1/lib/safemode.rb:51:in `eval'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.1/lib/safemode.rb:51:in `eval'

It’s a bug, fixed only in 1.17: http://projects.theforeman.org/issues/23012

Oneliner.

Shoot…okay thank you