Skip to content

Fix missing SSH key pair for VDI launches - #191

Open
Ramya0405 wants to merge 1 commit into
aws:mainlinefrom
Ramya0405:fix/vdi-missing-ssh-key-pair
Open

Fix missing SSH key pair for VDI launches#191
Ramya0405 wants to merge 1 commit into
aws:mainlinefrom
Ramya0405:fix/vdi-missing-ssh-key-pair

Conversation

@Ramya0405

Copy link
Copy Markdown

Summary

Fixes an issue where newly launched VDIs may not be assigned the cluster's configured SSH key pair.

Root cause

When session.server.key_pair_name is missing, complete_create_session_request() did not populate it with the cluster's configured SSH key pair. As a result, the EC2 launch parameters could omit KeyName.

Changes

  • Set session.server.key_pair_name from cluster.network.ssh_key_pair when it is missing.
  • Added a regression test covering the missing SSH key pair scenario.

Testing

  • 47 passed in test_session_utils.py
  • Header check: 1 passed
  • git diff --check: passed

Fixes #187

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.

(2026.06) VDIs are not assigned an SSH key pair at launch

1 participant