-
Notifications
You must be signed in to change notification settings - Fork 1k
Fixes #38549 - Add WOL capability to Host #10599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
The merge order should be:
This whole effort is nice to have and there's no rush getting it in. |
3a48195 to
915ef05
Compare
|
Ah, there are some test failures I missed locally, I'll need to fix those first. Think of it as a draft meanwhile. |
|
Also adding the UI demonstration |
The feature adds the ability to wake suspended Host by Wake on LAN. It requires a smart proxy with WOL feature. Typically, when host has a network interface attached to a subnet where we manage the DHCP, the broadcast in such network is available. That's due to the core principle of DHCP protocol. In such network, it's possible to perform WOL, which also relies on broadcast. This patch adds WOL support for Host's primary interface as that's the one we run the DHCP orchestration on. This could be extended in future if we see the need to specify other host interface instead. The Host's API loads the primary interface, checks the presence of the DHCP proxy and it's WOL capability. If it is available, it triggers the relevant API on the smart proxy and displays a toast notification. This new action reuses the same permission we have for BMC (power management of the host).
| @@ -0,0 +1,13 @@ | |||
| import { testActionSnapshotWithFixtures } from '../../../../common/testHelpers'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are moving away from testActionSnapshotWithFixtures see https://github.com/theforeman/foreman/blob/develop/developer_docs/ui-testing-guidelines.asciidoc for ui test guidelines
The feature adds the ability to wake suspended Host by Wake on LAN. It
requires a smart proxy with WOL feature.
Typically, when host has a network interface attached to a subnet where
we manage the DHCP, the broadcast in such network is available. That's
due to the core principle of DHCP protocol. In such network, it's
possible to perform WOL, which also relies on broadcast. This patch adds
WOL support for Host's primary interface as that's the one we run the
DHCP orchestration on. This could be extended in future if we see the
need to specify other host interface instead.
The Host's API loads the primary interface, checks the presence of the
DHCP proxy and it's WOL capability. If it is available, it triggers the
relevant API on the smart proxy and displays a toast notification.
This new action reuses the same permission we have for BMC (power
management of the host).