Project

General

Profile

Actions

Bug #36682

open

installer fails to call Foreman_host when plugins were updated via packages but service was not restarted

Added by Evgeni Golov 9 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

[root@centos8-stream-katello-4-9 ~]# foreman-installer 
2023-08-15 11:37:11 [NOTICE] [root] Loading installer configuration. This will take some time.
2023-08-15 11:37:15 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2023-08-15 11:37:15 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2023-08-15 11:37:25 [NOTICE] [configure] Starting system configuration.
2023-08-15 11:37:40 [NOTICE] [configure] 250 configuration steps out of 1994 steps complete.
2023-08-15 11:37:43 [NOTICE] [configure] 500 configuration steps out of 1998 steps complete.
2023-08-15 11:37:46 [NOTICE] [configure] 1000 configuration steps out of 2010 steps complete.
2023-08-15 11:37:47 [NOTICE] [configure] 1250 configuration steps out of 2013 steps complete.
2023-08-15 11:37:47 [NOTICE] [configure] 1500 configuration steps out of 2013 steps complete.
2023-08-15 11:38:12 [NOTICE] [configure] 1750 configuration steps out of 2013 steps complete.
2023-08-15 11:38:20 [ERROR ] [configure] /Stage[main]/Foreman::Register/Foreman_host[foreman-centos8-stream-katello-4-9.tanso.example.com]: Could not evaluate: Error making GET request to Foreman at https://centos8-stream-katello-4-9.tanso.example.com/api/v2/hosts: Response: 500 Internal Server Error: Check /var/log/foreman/production.log on centos8-stream-katello-4-9.tanso.example.com for detailed information
2023-08-15 11:38:20 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_host[foreman-proxy-centos8-stream-katello-4-9.tanso.example.com]: Could not evaluate: Error making GET request to Foreman at https://centos8-stream-katello-4-9.tanso.example.com/api/v2/hosts: Response: 500 Internal Server Error: Check /var/log/foreman/production.log on centos8-stream-katello-4-9.tanso.example.com for detailed information
2023-08-15 11:38:20 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[centos8-stream-katello-4-9.tanso.example.com]: Could not evaluate: Error making GET request to Foreman at https://centos8-stream-katello-4-9.tanso.example.com/api/v2/smart_proxies: Response: 500 Internal Server Error: Check /var/log/foreman/production.log on centos8-stream-katello-4-9.tanso.example.com for detailed information
2023-08-15 11:38:20 [NOTICE] [configure] 2000 configuration steps out of 2013 steps complete.
2023-08-15 11:38:24 [NOTICE] [configure] System configuration has finished.

  There were errors detected during install.
  Please address the errors and re-run the installer to ensure the system is properly configured.
  Failing to do so is likely to result in broken functionality.

  The full log is at /var/log/foreman-installer/katello.log

production.log:

2023-08-15T11:38:20 [I|app|cc7c9bac] Started GET "/api/v2/smart_proxies?search=name%3D%22centos8-stream-katello-4-9.tanso.example.com%22" for 192.168.122.133 at 2023-08-15 11:38:20 +0000
2023-08-15T11:38:20 [I|app|cc7c9bac] Processing by Api::V2::SmartProxiesController#index as JSON
2023-08-15T11:38:20 [I|app|cc7c9bac]   Parameters: {"search"=>"name=\"centos8-stream-katello-4-9.tanso.example.com\"", "apiv"=>"v2", "smart_proxy"=>{}}
2023-08-15T11:38:20 [I|app|cc7c9bac] Authorized user foreman_api_admin(API Admin)
2023-08-15T11:38:20 [I|app|cc7c9bac]   Rendered api/v2/smart_proxies/index.json.rabl within api/v2/layouts/index_layout (Duration: 22.4ms | Allocations: 6201)
2023-08-15T11:38:20 [I|app|cc7c9bac]   Rendered layout api/v2/layouts/index_layout.json.erb (Duration: 22.6ms | Allocations: 6257)
2023-08-15T11:38:20 [W|app|cc7c9bac] Action failed
2023-08-15T11:38:20 [I|app|cc7c9bac] Backtrace for 'Action failed' error (ActionView::Template::Error): Cannot find rabl template 'api/v2/smart_proxies/pubkey' within registered (["/usr/share/foreman/app/views", "/usr/share/gems/ge
ms/katello-4.9.0/app/views"]) view paths!

foreman_host and other API-bound actions need to happen after we restarted services via #34602


Related issues 1 (0 open1 closed)

Related to Installer - Bug #34602: Detect plugin installation and trigger Puma restartClosedEvgeni GolovActions
Actions #1

Updated by Evgeni Golov 9 months ago

  • Related to Bug #34602: Detect plugin installation and trigger Puma restart added
Actions

Also available in: Atom PDF