Problem:
After adding a puppet class in an existing host group and pressing the submit-button, the cursor will switch to the Hostgroup-Name*-field without updating the Hostgroup-configuration. It looks like a typical web-page, where a mandatory field was not answered (here - of cause - the hostgroup’s name was/is given).
With an admin-account, I am able to successfully update the Hostgroup, but with a non-admin-account that has ALL rules assigned, this strange behaviour occures (what is the difference between a full admin-account and an account with all rules assigned?). Other mechanisms we implemented by different rules associated to different organisations work fine. I should claryfy, that this problem occurs only if I try to ADD a Puppet-class, removing a class or changing some Parameters works fine. This hole problem just occured after upgrading from Foreman 1.15 to 1.16. With Foreman 1.15 everything worked fine. A further update to 1.17 also does not solve the problem.
Other relevant data:
In the Foreman-log-file I get:
Started PATCH “/hostgroups/18-AG%20Desktop” for XXX.XXX.XXX.XXX at 2018-05-10 21:50:15 +0200
Processing by HostgroupsController#update as */*
Parameters: {“utf8”=>“✓”, “authenticity_token”=>XXX…XXX “hostgroup”=>{“parent_id”=>"", “name”=>“AG Desktop”, “description”=>"", “environment_id”=>“62”, “puppet_proxy_id”=>“1”, “puppet_ca_proxy_id”=>“1”, “config_group_ids”=>[""], “puppetclass_ids”=>["", “324”, “307”, “308”, “309”, “331”, “316”], “domain_id”=>“1”, “subnet_id”=>“1”, “realm_id”=>"", “architecture_id”=>“1”, “operatingsystem_id”=>“30”, “medium_id”=>“7”, “ptable_id”=>“82”, “pxe_loader”=>“PXELinux BIOS”, “lookup_values_attributes”=>"[FILTERED]", “organization_ids”=>["", “280”], “id”=>“18”}, “id”=>“18-AG Desktop”}
2018-05-10 21:50:15 94bb9225 [app] [I] Current user: userXXX (regular user)
2018-05-10 21:50:15 94bb9225 [app] [I] Failed to save: Hostgroup classes is invalid
2018-05-10 21:50:15 94bb9225 [app] [I] Rendered config_groups/_config_group.html.erb (4.3ms)
2018-05-10 21:50:15 94bb9225 [app] [I] Rendered config_groups/_config_groups_selection.html.erb (16.4ms)
2018-05-10 21:50:15 94bb9225 [app] [I] Rendered puppetclasses/_selectedClasses.html.erb (25.3ms)
2018-05-10 21:50:15 94bb9225 [app] [I] Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms)
2018-05-10 21:50:15 94bb9225 [app] [I] Rendered puppetclasses/_classes.html.erb (70.4ms)
2018-05-10 21:50:15 94bb9225 [app] [I] Rendered puppetclasses/_class_selection.html.erb (229.8ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Rendered common/os_selection/_architecture.html.erb (14.4ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Rendered common/os_selection/_pxe_loader.html.erb (2.6ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Rendered common/os_selection/_operatingsystem.html.erb (52.1ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Rendered common/os_selection/_initial.html.erb (79.7ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Rendered puppetclasses/_class_parameters.html.erb (368.2ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Rendered puppetclasses/_classes_parameters.html.erb (388.8ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Rendered common_parameters/_parameter.html.erb (8.4ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Rendered common_parameters/_parameters.html.erb (21.2ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Rendered taxonomies/_loc_org_tabs.html.erb (28.0ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Rendered hostgroups/_form.html.erb (908.6ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Rendered hostgroups/edit.html.erb within layouts/application (911.4ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Rendered layouts/_application_content.html.erb (1.5ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Rendered home/_user_dropdown.html.erb (4.8ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Read fragment views/tabs_and_title_records-35 (0.2ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Rendered home/_topbar.html.erb (13.0ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Rendered layouts/base.html.erb (19.4ms)
2018-05-10 21:50:16 94bb9225 [app] [I] Completed 200 OK in 1148ms (Views: 864.3ms | ActiveRecord: 116.4ms)