foreman-kube
foreman-kube copied to clipboard
Anyone actually got this PXE building?
Hi,
I've got the webui up, but systems I'm buiding can't detect a DHCP server, presumably because broadcast packets aren't reaching the Foreman pod. I expect easiest way to achieve is to set the Foreman pods to use hostNetwork: true
, but in trying to change to this mode, rails fails to start, and I can't connect to the webui:
user@workstation:~$ k logs foreman-6f65fcb69f-vkdgf
2022-02-23T17:11:33 [I|app|] Rails cache backend: Redis
=> Booting Puma
=> Rails 6.0.3.7 application starting in production
=> Run `rails server --help` for more startup options
2022-02-23T17:11:35 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
Any ideas? In normal pod networking mode, it starts fine and I can connect to the webui:
user@workstation:~$ k logs foreman-7bbbf6dd58-55td4
2022-02-23T14:29:21 [I|app|] Rails cache backend: Redis
=> Booting Puma
=> Rails 6.0.3.7 application starting in production
=> Run `rails server --help` for more startup options
2022-02-23T14:29:21 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2022-02-23T14:29:24 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2022-02-23T14:29:24 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2022-02-23T14:29:29 [I|app|] No new seed file updates found. Skipping
[1] Puma starting in cluster mode...
[1] * Puma version: 5.6.2 (ruby 2.7.4-p191) ("Birdie's Version")
[1] * Min threads: 0
[1] * Max threads: 16
[1] * Environment: production
[1] * Master PID: 1
[1] * Workers: 2
[1] * Restarts: (✔) hot (✖) phased
[1] * Preloading application
[1] * Listening on http://0.0.0.0:3000
[1] Use Ctrl-C to stop
[1] * Starting control server on unix:///home/foreman/tmp/sockets/pumactl.sock
[1] - Worker 0 (PID: 18) booted in 0.25s, phase: 0
[1] - Worker 1 (PID: 23) booted in 0.45s, phase: 0
Many thanks