-
Notifications
You must be signed in to change notification settings - Fork 182
Template(s) aren't compatible with safemode gem 1.3.2 #406
Comments
Safegem 1.3.2 was accidentally included in Foreman release 1.15.2. From IRC, I think this is about to be pulled from the repos. The templates will then need fixing before 1.15.3 is released. |
I pulled from the repo already, sent a warning to foreman-users https://groups.google.com/forum/#!topic/foreman-users/ndbtypGKoRk . At 1.15.3 release time we will have to:
|
Fix for templates at #407 fix for existing templates in Foreman instances at theforeman/foreman#4669 |
I have since updated (automatically) to 1.15.3 and provisioning stopped working. |
My guess is that #407 should have been cherry-picked onto the 1.15-stable branch but never was? |
Seems like that. Still, I'm curious how testing of 1.15.3 was done - without updating to the community templates, no provisioning is possible (at least of most kickstart based distributions). |
@olifre are you on Debian or Red Hat? It looks like the RH packaging doesn't include 1.3.1 but Debian bundles all gems so maybe it slipped in unnoticed there. theforeman/foreman@b1b357c is in 1.15-stable. |
@ekohl This is on CentOS 7, and
And it is also there in the repository right now: |
That is odd because https://github.com/theforeman/foreman-packaging/tree/rpm/1.15/rubygem-safemode doesn't show it. @mmoll or @ehelms any idea how this has happened? |
And the real fix: #411 |
@ekohl yeah, it was the 1.15-stable branch of this project I was referring to. :) |
@ekohl That comes down to how Koji works. You can only ever have one "build" of a package. So if we build a package into nightly, we just tag it over to 1.15 instead of rebuilding it (except for plugins where we bake the foreman version into the build). I feel like this is a good example of why community template being their own RPM would give us more flexibility and agility when doing releases. |
I fixed the "network --bootproto" line, but now I get a fresh error:
This is the part in the Kickstart that fails: <% if chef_enabled %>
<%= snippet 'chef_client' %>
<% end -%>
<% if puppet_enabled %>
<%= snippet 'puppet_setup' %>
<% end -%>
<% if salt_enabled %>
<%= snippet 'saltstack_setup' %>
<% end -%>
``` |
Sounds like you're missing a line like
|
Thanks, that was it. We started modifying the kickstarts around 3.1 and this has been difficult to maintain. |
Closing as I'm confident this is now fixed for 1.15.4 and 1.16.0 |
I still see this error after updating to 1.15.6 under CentOS 7. |
Where do you see it in particular? |
Perhaps you're using Katello or some customized template? |
When I execute a build for a host, it complains about the kickstart template. If I downgrade to 1.3.1-1.el7, it works fine. |
Are your kickstart templates modified perhaps? In that case we don't overwrite them and you need to manually update them. We can't really merge in changes and don't want to disregard your changes. |
Same issue with Foreman 1.15.6 and tfm-rubygem-safemode-1.3.2-1.el7.noarch 2017-10-29 13:35:02 38f78792 [app] [I] Rendered inline template (22.4ms) Templates are default an show locked sign on them, so i expect them to be the original one from Foreman. |
the katello kickstart templates also need this fix. kickstart-katello.erb find them on your hd backup them and patch them Rob |
Same issue here. Manually updating the katello erb's mentioned looks to have sorted it out. Thanks Rob. OS: redhat |
the bug for katello can be found here: http://projects.theforeman.org/issues/20836 Rob |
Since theforeman/safemode#23, the default kickstart template doesn't resolve.
The error is
Looks like this line needs updating. There may be other templates that also need fixing.
The text was updated successfully, but these errors were encountered: