Hi there list,
I've just updated a test foreman from 1.8 to 1.11 and now i do not have the
ability to change a provisioning template
The webinterface shows me my template I can edit and diff the template but
after I press the submit button it gives an error: ''can't be blank''
If I change the association for this template it also bombs out with a ''can't
be blank'' error on the temp[late tab.
Did I miss some config option that changes the behaviour of the tempalte
stuff in my upgrade path ?
production.log gives:
2016-04-15 11:34:01 [app] [I] Started PATCH
"/templates/provisioning_templates/44-00_RH7_ks" for xx.xx.xx.xx at
2016-04-15 11:34:01 +0200
2016-04-15 11:34:01 [app] [I] Processing by
ProvisioningTemplatesController#update as /
2016-04-15 11:34:01 [app] [I] Parameters: {"utf8"=>"✓",
"authenticity_token"=>"MPflkIhzJ1FxE2enc/+64fLp4S5U3pGU1uORohpYewI=",
"provisioning_template"=>{"name"=>"00_RH7_ks", "template"=>"",
"audit_comment"=>"test", "snippet"=>"0", "template_kind_id"=>"4",
"operatingsystem_ids"=>["", "4", "6", "1"],
"template_combinations_attributes"=>{"0"=>{"hostgroup_id"=>"1",
"environment_id"=>"3", "_destroy"=>"false", "id"=>"4"}}},
"preview_host_id"=>"13", "mode"=>"ruby", "keybinding"=>"Default",
"id"=>"44-00_RH7_ks"}
2016-04-15 11:34:01 [sql] [D] User Load (0.6ms) SELECT "users".* FROM
"users" WHERE "users"."id" = $1 LIMIT 1 [["id", 4]]
2016-04-15 11:34:01 [sql] [D] AuthSource Load (0.7ms) SELECT
"auth_sources".* FROM "auth_sources" WHERE "auth_sources"."id" = $1 LIMIT
1 [["id", 1]]
2016-04-15 11:34:01 [sql] [D] (0.7ms) SELECT COUNT() FROM "templates"
WHERE "templates"."type" IN ('ProvisioningTemplate')
2016-04-15 11:34:01 [sql] [D] ProvisioningTemplate Load (1.0ms) SELECT
"templates". FROM "templates" WHERE "templates"."type" IN
('ProvisioningTemplate') AND "templates"."id" = 44 ORDER BY templates.name
LIMIT 1
2016-04-15 11:34:01 [sql] [D] (0.2ms) BEGIN
2016-04-15 11:34:01 [sql] [D] Operatingsystem Load (0.7ms) SELECT
"operatingsystems".* FROM "operatingsystems" WHERE "operatingsystems"."id"
IN (4, 6, 1) ORDER BY "operatingsystems"."title" ASC
2016-04-15 11:34:01 [sql] [D] Operatingsystem Load (0.9ms) SELECT
"operatingsystems".* FROM "operatingsystems" INNER JOIN
"operatingsystems_provisioning_templates" ON "operatingsystems"."id" =
"operatingsystems_provisioning_templates"."operatingsystem_id" WHERE
"operatingsystems_provisioning_templates"."provisioning_template_id" = $1
ORDER BY "operatingsystems"."title" ASC [["provisioning_template_id", 44]]
2016-04-15 11:34:01 [sql] [D] TemplateCombination Load (0.6ms) SELECT
"template_combinations".* FROM "template_combinations" WHERE
"template_combinations"."provisioning_template_id" = $1 AND
"template_combinations"."id" IN (4) [["provisioning_template_id", 44]]
2016-04-15 11:34:01 [sql] [D] ProvisioningTemplate Exists (0.6ms)
SELECT 1 AS one FROM "templates" WHERE "templates"."type" IN
('ProvisioningTemplate') AND ("templates"."name" = '00_RH7_ks' AND
"templates"."id" != 44) LIMIT 1
2016-04-15 11:34:01 [sql] [D] (0.2ms) ROLLBACK
2016-04-15 11:34:01 [app] [I] Failed to save: Template can't be blank
2016-04-15 11:34:01 [app] [I] Rendered
provisioning_templates/_custom_tab_headers.html.erb (0.6ms)
2016-04-15 11:34:01 [app] [I] Rendered
provisioning_templates/_alerts.html.erb (1.1ms)
2016-04-15 11:34:01 [sql] [D] TemplateKind Load (0.5ms) SELECT
"template_kinds".* FROM "template_kinds" WHERE "template_kinds"."id" = $1
LIMIT 1 [["id", 4]]
2016-04-15 11:34:01 [sql] [D] Host::Managed Load (1.1ms) SELECT
"hosts".* FROM "hosts" WHERE "hosts"."type" IN ('Host::Managed') AND
"hosts"."managed" = 't' ORDER BY "hosts"."name" ASC LIMIT 100
2016-04-15 11:34:01 [app] [I] Rendered editor/_toolbar.html.erb (6.8ms)
2016-04-15 11:34:01 [sql] [D] (0.9ms) SELECT COUNT() FROM "audits"
WHERE "audits"."auditable_id" = 44 AND "audits"."auditable_type" =
'ProvisioningTemplate' AND "audits"."action" = 'update'
2016-04-15 11:34:01 [sql] [D] Audited::Adapters::ActiveRecord::Audit Load
(6.1ms) SELECT "audits". FROM "audits" WHERE "audits"."auditable_id" =
44 AND "audits"."auditable_type" = 'ProvisioningTemplate' AND
"audits"."action" = 'update' ORDER BY version DESC
2016-04-15 11:34:01 [sql] [D] User Load (0.8ms) SELECT "users".* FROM
"users" WHERE "users"."id" = $1 ORDER BY firstname LIMIT 1 [["id", 4]]
2016-04-15 11:34:01 [sql] [D] CACHE (0.0ms) SELECT "users".* FROM
"users" WHERE "users"."id" = $1 ORDER BY firstname LIMIT 1 [["id", 4]]
2016-04-15 11:34:01 [sql] [D] CACHE (0.0ms) SELECT "users".* FROM
"users" WHERE "users"."id" = $1 ORDER BY firstname LIMIT 1 [["id", 4]]
2016-04-15 11:34:01 [sql] [D] CACHE (0.0ms) SELECT "users".* FROM
"users" WHERE "users"."id" = $1 ORDER BY firstname LIMIT 1 [["id", 4]]
2016-04-15 11:34:01 [sql] [D] CACHE (0.0ms) SELECT "users".* FROM
"users" WHERE "users"."id" = $1 ORDER BY firstname LIMIT 1 [["id", 4]]
2016-04-15 11:34:01 [sql] [D] CACHE (0.0ms) SELECT "users".* FROM
"users" WHERE "users"."id" = $1 ORDER BY firstname LIMIT 1 [["id", 4]]
2016-04-15 11:34:01 [sql] [D] CACHE (0.0ms) SELECT "users".* FROM
"users" WHERE "users"."id" = $1 ORDER BY firstname LIMIT 1 [["id", 4]]
2016-04-15 11:34:01 [sql] [D] CACHE (0.0ms) SELECT "users".* FROM
"users" WHERE "users"."id" = $1 ORDER BY firstname LIMIT 1 [["id", 4]]
2016-04-15 11:34:01 [sql] [D] CACHE (0.0ms) SELECT "users".* FROM
"users" WHERE "users"."id" = $1 ORDER BY firstname LIMIT 1 [["id", 4]]
2016-04-15 11:34:02 [sql] [D] TemplateKind Load (0.7ms) SELECT
"template_kinds".* FROM "template_kinds"
2016-04-15 11:34:02 [sql] [D] Permission Load (0.7ms) SELECT
"permissions".* FROM "permissions" WHERE "permissions"."name" =
'view_operatingsystems'
2016-04-15 11:34:02 [sql] [D] Operatingsystem Load (0.7ms) SELECT
"operatingsystems".* FROM "operatingsystems" ORDER BY
"operatingsystems"."title" ASC
2016-04-15 11:34:02 [sql] [D] TemplateCombination Load (0.5ms) SELECT
"template_combinations".* FROM "template_combinations" WHERE
"template_combinations"."provisioning_template_id" = $1
[["provisioning_template_id", 44]]
2016-04-15 11:34:02 [sql] [D] Hostgroup Load (0.8ms) SELECT
"hostgroups".* FROM "hostgroups" ORDER BY hostgroups.title
2016-04-15 11:34:02 [sql] [D] Environment Load (0.6ms) SELECT
"environments".* FROM "environments" ORDER BY environments.name
2016-04-15 11:34:02 [app] [I] Rendered
provisioning_templates/_combination.html.erb (11.4ms)
2016-04-15 11:34:02 [sql] [D] CACHE (0.0ms) SELECT "hostgroups".* FROM
"hostgroups" ORDER BY hostgroups.title
2016-04-15 11:34:02 [sql] [D] CACHE (0.0ms) SELECT "environments".* FROM
"environments" ORDER BY environments.name
2016-04-15 11:34:02 [app] [I] Rendered
provisioning_templates/_combination.html.erb (8.3ms)
2016-04-15 11:34:02 [app] [I] Rendered
provisioning_templates/_combinations.html.erb (26.7ms)
2016-04-15 11:34:02 [app] [I] Rendered
provisioning_templates/_custom_tabs.html.erb (44.1ms)
2016-04-15 11:34:02 [app] [I] Rendered taxonomies/_loc_org_tabs.html.erb
(0.3ms)
2016-04-15 11:34:02 [app] [I] Rendered templates/_form.html.erb (319.6ms)
2016-04-15 11:34:02 [app] [I] Rendered
provisioning_templates/edit.html.erb (320.7ms)
2016-04-15 11:34:02 [app] [I] Completed 200 OK in 359ms (Views: 308.2ms |
ActiveRecord: 19.9ms)
my entries in the settings.yaml are:
Log settings for the current environment can be adjusted by adding them
here. For example, if you want to increase the log level.
:logging:
:level: debug
Individual logging types can be toggled on/off here
:loggers:
:app:
:enabled: true
:permissions:
:enabled: true
:sql:
:enabled: true