-
Notifications
You must be signed in to change notification settings - Fork 14
MGMT-22245: ssh key is not set during create_cluster #158
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
MGMT-22245: ssh key is not set during create_cluster #158
Conversation
|
@zszabo-rh: This pull request references MGMT-22245 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.21.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
WalkthroughRemoves the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: zszabo-rh The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@zszabo-rh: This pull request references MGMT-22245 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.21.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
assisted_service_mcp/src/tools/cluster_tools.py (1)
124-136: Clarify follow‑up SSH key workflow increate_clusterdocsThe updated docstring and examples correctly remove the
ssh_public_keyparameter and list onlycpu_architectureandplatformas optional. To make the new flow discoverable, consider adding a short note here that SSH keys are no longer set at creation time and must be configured separately viaset_cluster_ssh_keyafter the cluster is created. This keeps tool users from searching for the removed parameter.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
assisted_service_mcp/src/tools/cluster_tools.py(2 hunks)tests/test_tools_module.py(0 hunks)
💤 Files with no reviewable changes (1)
- tests/test_tools_module.py
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Red Hat Konflux / assisted-service-mcp-saas-main-on-pull-request
🔇 Additional comments (1)
assisted_service_mcp/src/tools/cluster_tools.py (1)
143-151: Logging update aligns with SSH‑less creation (looks good)The log message now matches the updated signature and no longer logs an SSH key, which is a nice security/privacy improvement. Behavior and telemetry fields are consistent with the new contract.
|
@zszabo-rh: This pull request references MGMT-22245 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.21.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/test eval-test |
2 similar comments
|
/test eval-test |
|
/test eval-test |
eranco74
left a comment
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.
/lgtm
|
/test eval-test |
2 similar comments
|
/test eval-test |
|
/test eval-test |
|
@zszabo-rh: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/test eval-test |
|
/hold checking a different approach first |
|
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Do we want to close this one if we think the llama patch works? |
When creating a new cluster through the AI Chat Bot, the bot incorrectly required a mandatory SSH public key.
This fix removes the SSH key parameter from the
create_clustertool so that clusters are always created without one by default. The SSH key can then be added separately as a second step using theset_cluster_ssh_keytool.Fixes MGMT-22245
Requires this PR to make eval-test pass.
Summary by CodeRabbit
Refactor
Tests