Skip to content

CP-53477 Update Host/Pool Data model to Support Dom0 SSH Control #6384

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

Conversation

LunfanZhang
Copy link
Contributor

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:

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

…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_enable_timeout
Add new host/pool API to enable to set console timeout
  - set_console_timeout

Signed-off-by: Lunfan Zhang <Lunfan.Zhang@cloud.com>
@LunfanZhang LunfanZhang force-pushed the private/luzhan/lunfan/CP-53477 branch from a967431 to c8abf2a Compare March 24, 2025 07:26
@gangj
Copy link
Contributor

gangj commented Mar 24, 2025

Seems the feature branch is a little old: 35 commits behind master, you need to merge latest master into it, or just create a new feature branch if there is no work in this feature branch yet.

@LunfanZhang
Copy link
Contributor Author

Seems the feature branch is a little old: 35 commits behind master, you need to merge latest master into it, or just create a new feature branch if there is no work in this feature branch yet.

No commits on the branch currently, I do not have sufficient permission to create feature branch, Hi @gangj could you help to create a new feature branch?

@gangj gangj deleted the branch xapi-project:feature/configure-ssh-phase2 March 24, 2025 07:48
@gangj gangj closed this Mar 24, 2025
@gangj
Copy link
Contributor

gangj commented Mar 24, 2025

Seems the feature branch is a little old: 35 commits behind master, you need to merge latest master into it, or just create a new feature branch if there is no work in this feature branch yet.

Updated this feature branch as latest master as there is no work in it yet.

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.

2 participants