Problem:
Tried to assign new location to a specific host.
I am getting the response:
Cannot update Location to location-name because of mismatch in settings
Which settings? What mismatch? I checked /var/log/foreman/production.log
and did not find anything helpful here.
2021-04-24T21:15:10 [I|app|a4a9ccc7] Started POST "/hosts/update_multiple_location?host_ids%5B%5D=60" for 123.123.123.123 at 2021-04-24 21:15:10 +0200
2021-04-24T21:15:10 [I|app|a4a9ccc7] Processing by HostsController#update_multiple_location as HTML
2021-04-24T21:15:10 [I|app|a4a9ccc7] Parameters: {"utf8"=>"✓", "authenticity_token"=>".../Q==", "location"=>{"id"=>"4", "optimistic_import"=>"no"}, "host_ids"=>["60"]}
2021-04-24T21:15:10 [I|app|a4a9ccc7] Redirected to https://host3.example.org/hosts
2021-04-24T21:15:10 [I|app|a4a9ccc7] Completed 302 Found in 91ms (ActiveRecord: 20.9ms | Allocations: 38372)
2021-04-24T21:15:11 [I|app|02596a16] Started GET "/hosts" for 123.123.123.123 at 2021-04-24 21:15:11 +0200
2021-04-24T21:15:11 [I|app|02596a16] Processing by HostsController#index as HTML
2021-04-24T21:15:11 [I|app|02596a16] Rendering hosts/index.html.erb within layouts/application
2021-04-24T21:15:11 [I|app|02596a16] Rendered common/_pagination.html.erb (Duration: 4.0ms | Allocations: 5619)
2021-04-24T21:15:11 [I|app|02596a16] Rendered hosts/_list.html.erb (Duration: 83.3ms | Allocations: 57645)
2021-04-24T21:15:11 [I|app|02596a16] Rendered hosts/index.html.erb within layouts/application (Duration: 97.0ms | Allocations: 67265)
2021-04-24T21:15:11 [I|app|02596a16] Rendered layouts/_application_content.html.erb (Duration: 4.1ms | Allocations: 6104)
2021-04-24T21:15:11 [I|app|02596a16] Rendering layouts/base.html.erb
2021-04-24T21:15:11 [I|app|02596a16] Rendered layouts/base.html.erb (Duration: 33.1ms | Allocations: 21539)
2021-04-24T21:15:11 [I|app|02596a16] Completed 200 OK in 171ms (Views: 134.1ms | ActiveRecord: 12.8ms | Allocations: 112432)
2021-04-24T21:15:11 [I|app|1d24ef58] Started GET "/notification_recipients" for 123.123.123.123 at 2021-04-24 21:15:11 +0200
2021-04-24T21:15:11 [I|app|1d24ef58] Processing by NotificationRecipientsController#index as JSON
2021-04-24T21:15:11 [I|app|1d24ef58] Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms | Allocations: 1916)
2021-04-24T21:15:11 [I|app|573fca7e] Started GET "/api/v2/hosts/host2.example.org/power" for 123.123.123.123 at 2021-04-24 21:15:11 +0200
2021-04-24T21:15:11 [I|app|573fca7e] Processing by Api::V2::HostsController#power_status as JSON
2021-04-24T21:15:11 [I|app|573fca7e] Parameters: {"apiv"=>"v2", "id"=>"host2.example.org"}
2021-04-24T21:15:12 [I|app|573fca7e] Completed 200 OK in 194ms (Views: 0.2ms | ActiveRecord: 2.2ms | Allocations: 31948)
2021-04-24T21:15:12 [I|app|dd47ad99] Started GET "/api/v2/hosts/host5.example.org/power" for 123.123.123.123 at 2021-04-24 21:15:12 +0200
2021-04-24T21:15:12 [I|app|dd47ad99] Processing by Api::V2::HostsController#power_status as JSON
2021-04-24T21:15:12 [I|app|dd47ad99] Parameters: {"apiv"=>"v2", "id"=>"host5.example.org"}
2021-04-24T21:15:12 [I|app|dd47ad99] Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 1.4ms | Allocations: 3949)
2021-04-24T21:15:12 [I|app|98e97d90] Started GET "/api/v2/hosts/host4.example.org/power" for 123.123.123.123 at 2021-04-24 21:15:12 +0200
2021-04-24T21:15:12 [I|app|98e97d90] Processing by Api::V2::HostsController#power_status as JSON
2021-04-24T21:15:12 [I|app|98e97d90] Parameters: {"apiv"=>"v2", "id"=>"host4.example.org"}
2021-04-24T21:15:12 [I|app|a750c1ac] Started GET "/api/v2/hosts/host6.example.org/power" for 123.123.123.123 at 2021-04-24 21:15:12 +0200
2021-04-24T21:15:12 [I|app|8cde3094] Started GET "/api/v2/hosts/host7.example.org/power" for 123.123.123.123 at 2021-04-24 21:15:12 +0200
2021-04-24T21:15:12 [I|app|f4c4d01e] Started GET "/api/v2/hosts/host1.example.org/power" for 123.123.123.123 at 2021-04-24 21:15:12 +0200
2021-04-24T21:15:12 [I|app|8cde3094] Processing by Api::V2::HostsController#power_status as JSON
2021-04-24T21:15:12 [I|app|8cde3094] Parameters: {"apiv"=>"v2", "id"=>"host7.example.org"}
2021-04-24T21:15:12 [I|app|1001dcc7] Started GET "/api/v2/hosts/host8.example.org/power" for 123.123.123.123 at 2021-04-24 21:15:12 +0200
2021-04-24T21:15:12 [I|app|a750c1ac] Processing by Api::V2::HostsController#power_status as JSON
2021-04-24T21:15:12 [I|app|a750c1ac] Parameters: {"apiv"=>"v2", "id"=>"host6.example.org"}
2021-04-24T21:15:12 [I|app|1001dcc7] Processing by Api::V2::HostsController#power_status as JSON
2021-04-24T21:15:12 [I|app|1001dcc7] Parameters: {"apiv"=>"v2", "id"=>"host8.example.org"}
2021-04-24T21:15:12 [I|app|f4c4d01e] Processing by Api::V2::HostsController#power_status as JSON
2021-04-24T21:15:12 [I|app|f4c4d01e] Parameters: {"apiv"=>"v2", "id"=>"host1.example.org"}
2021-04-24T21:15:12 [I|app|2c5aa480] Started GET "/api/v2/hosts/host3.example.org/power" for 123.123.123.123 at 2021-04-24 21:15:12 +0200
2021-04-24T21:15:12 [I|app|98e97d90] Completed 200 OK in 168ms (Views: 0.2ms | ActiveRecord: 2.2ms | Allocations: 41566)
2021-04-24T21:15:12 [I|app|2c5aa480] Processing by Api::V2::HostsController#power_status as JSON
2021-04-24T21:15:12 [I|app|2c5aa480] Parameters: {"apiv"=>"v2", "id"=>"host3.example.org"}
2021-04-24T21:15:12 [I|app|762e4ac4] Started GET "/api/v2/hosts/host9.example.org/power" for 123.123.123.123 at 2021-04-24 21:15:12 +0200
2021-04-24T21:15:12 [I|app|762e4ac4] Processing by Api::V2::HostsController#power_status as JSON
2021-04-24T21:15:12 [I|app|762e4ac4] Parameters: {"apiv"=>"v2", "id"=>"host9.example.org"}
2021-04-24T21:15:12 [I|app|2c5aa480] Completed 200 OK in 39ms (Views: 0.2ms | ActiveRecord: 19.3ms | Allocations: 18248)
2021-04-24T21:15:12 [I|app|5c3a528b] Started GET "/api/v2/hosts/host10.example.org/power" for 123.123.123.123 at 2021-04-24 21:15:12 +0200
2021-04-24T21:15:12 [I|app|5c3a528b] Processing by Api::V2::HostsController#power_status as JSON
2021-04-24T21:15:12 [I|app|5c3a528b] Parameters: {"apiv"=>"v2", "id"=>"host10.example.org"}
2021-04-24T21:15:12 [I|app|8cde3094] Completed 200 OK in 143ms (Views: 0.2ms | ActiveRecord: 15.5ms | Allocations: 50488)
2021-04-24T21:15:12 [I|app|db01d875] Started GET "/api/v2/hosts/host11.example.org/power" for 123.123.123.123 at 2021-04-24 21:15:12 +0200
2021-04-24T21:15:12 [I|app|db01d875] Processing by Api::V2::HostsController#power_status as JSON
2021-04-24T21:15:12 [I|app|db01d875] Parameters: {"apiv"=>"v2", "id"=>"host11.example.org"}
2021-04-24T21:15:12 [I|app|1001dcc7] Completed 200 OK in 185ms (Views: 0.2ms | ActiveRecord: 14.5ms | Allocations: 61518)
2021-04-24T21:15:12 [I|app|f4c4d01e] Completed 200 OK in 190ms (Views: 0.3ms | ActiveRecord: 22.4ms | Allocations: 84542)
2021-04-24T21:15:12 [I|app|afc2bbe8] Started GET "/api/v2/hosts/host12.example.org/power" for 123.123.123.123 at 2021-04-24 21:15:12 +0200
2021-04-24T21:15:12 [I|app|afc2bbe8] Processing by Api::V2::HostsController#power_status as JSON
2021-04-24T21:15:12 [I|app|afc2bbe8] Parameters: {"apiv"=>"v2", "id"=>"host12.example.org"}
2021-04-24T21:15:12 [I|app|a63aefee] Started GET "/api/v2/hosts/host13.example.org/power" for 123.123.123.123 at 2021-04-24 21:15:12 +0200
2021-04-24T21:15:12 [I|app|afc2bbe8] Completed 200 OK in 16ms (Views: 0.2ms | ActiveRecord: 5.1ms | Allocations: 6128)
2021-04-24T21:15:12 [I|app|a63aefee] Processing by Api::V2::HostsController#power_status as JSON
2021-04-24T21:15:12 [I|app|a63aefee] Parameters: {"apiv"=>"v2", "id"=>"host13.example.org"}
2021-04-24T21:15:12 [I|app|a750c1ac] Completed 200 OK in 270ms (Views: 0.2ms | ActiveRecord: 23.0ms | Allocations: 138194)
2021-04-24T21:15:12 [I|app|762e4ac4] Completed 200 OK in 226ms (Views: 0.2ms | ActiveRecord: 16.0ms | Allocations: 115866)
2021-04-24T21:15:12 [I|app|5c3a528b] Completed 200 OK in 175ms (Views: 0.2ms | ActiveRecord: 10.8ms | Allocations: 98542)
2021-04-24T21:15:12 [I|app|db01d875] Completed 200 OK in 133ms (Views: 0.2ms | ActiveRecord: 7.0ms | Allocations: 36517)
2021-04-24T21:15:12 [I|app|a63aefee] Completed 200 OK in 185ms (Views: 0.3ms | ActiveRecord: 21.0ms | Allocations: 50666)
Expected outcome:
Precise information about the settings mismatch
Foreman and Proxy versions:
Foreman 2.4
Distribution and version:
- Debian 10.9