Skip to content

Conversation

@LunfanZhang
Copy link
Collaborator

@LunfanZhang LunfanZhang commented Mar 25, 2025

This PR introduces support for Dom0 SSH control, providing the following capabilities:

Query the SSH status.
Configure a temporary SSH enable timeout for a specific host or all hosts in the pool.
Configure the console idle timeout for a specific host or all hosts in the pool.

Changes
New Host Object Fields:

  • ssh_enabled: Indicates whether SSH is enabled.
  • ssh_enabled_timeout: Specifies the timeout for temporary SSH enablement.
  • ssh_expiry: Tracks the expiration time for temporary SSH enablement.
  • console_idle_timeout: Configures the idle timeout for the console.

New Host/Pool APIs (This PR only include the change of data model, the implementation of this API will be include in the next PR):

  • set_ssh_enabled_timeout: Allows setting a temporary timeout for enabling the SSH service.
  • set_console_idle_timeout: Allows configuring the console idle timeout.

@LunfanZhang LunfanZhang force-pushed the private/lunfan/CP-53477 branch 2 times, most recently from ec522fd to 7a7f942 Compare March 25, 2025 09:04
Copy link
Member

@robhoes robhoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments above.

@LunfanZhang LunfanZhang force-pushed the private/lunfan/CP-53477 branch from 64d5d93 to 6875825 Compare March 26, 2025 02:19
@LunfanZhang LunfanZhang requested a review from robhoes March 26, 2025 03:27
…onfigure

Add new host object fields:
  - ssh_enabled
  - ssh_enabled_timeout
  - ssh_expiry
  - console_idle_timeout
Add new host/pool API to enable to set a temporary enabled SSH service timeout
  - set_ssh_enabled_timeout
Add new host/pool API to enable to set console timeout
  - set_console_idle_timeout

Signed-off-by: Lunfan Zhang <[email protected]>
@LunfanZhang LunfanZhang force-pushed the private/lunfan/CP-53477 branch from 6875825 to 12e5680 Compare March 27, 2025 01:34
@LunfanZhang LunfanZhang requested a review from robhoes March 27, 2025 02:08
~params:
[
(Ref _host, "self", "The host")
; (Int, "value", "The idle console timeout in seconds")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"console idle timeout"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both are grammatically correct, I will keep this

Copy link
Contributor

@gangj gangj Mar 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, would be better to keep identical to the other places.

@minglumlu minglumlu merged commit 2f00a21 into xapi-project:feature/configure-ssh-phase2 Mar 28, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants