-
Notifications
You must be signed in to change notification settings - Fork 21
MGMT-22245: eval-test update for the SSH key fix #253
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: eval-test update for the SSH key fix #253
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. |
|
[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 |
WalkthroughChanged eval expectations to use intent-based evaluation for multinode creation and updated invalid SSH key wording; replaced the static-network reminder in the template with a Pre‑ISO Configuration flow that always checks and optionally offers SSH key and static network configuration (with validation, NMState YAML generation, and explicit user confirmation) before offering the Discovery ISO. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Assistant
participant PreISO as Pre-ISO Config
participant NMGen as NMState Generator
participant ISO as ISO Offer
User->>Assistant: Request Discovery ISO / start cluster creation
Assistant->>PreISO: Check for unanswered pre-ISO options (SSH key, static network)
PreISO-->>Assistant: Determine which options to offer (none / SSH / Static / both)
alt Options present
Assistant->>User: Offer SSH Key and Static Network configuration together (optional)
alt User provides SSH key
Assistant->>Assistant: Validate SSH public key format
Assistant-->>User: Confirm SSH key set or report invalid key
end
alt User requests static network config
Assistant->>NMGen: Generate NMState YAML per host (default interface names)
NMGen-->>Assistant: Proposed NMState YAML
Assistant->>User: Show YAML, allow tweaks, ask for confirmation
alt User confirms
Assistant->>PreISO: Mark static network configured (do not apply without user action)
else User declines or no response
Assistant->>PreISO: Skip static network configuration
end
end
Assistant->>ISO: Offer ISO download (after optional flows complete or skipped)
else No options
Assistant->>ISO: Offer ISO directly
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. 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 |
|
@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. |
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
Consider updating the system prompt so that the chat offer to add the ssh key after the cluster is created (prior to iso download)
9149ad8 to
6878f6c
Compare
|
@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. |
Done.. partially However I couldn't make it to offer static networking when SSH key was already specified together with the cluster creation request, no matter how strict rules I created. I've tried with several variations, but the outcome was always something like this: |
6878f6c to
60263b8
Compare
|
@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. |
60263b8 to
9d72924
Compare
9d72924 to
063bee0
Compare
|
@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 (2)
template.yaml (2)
256-262: Header wording should reflect the conditional nature of the offers.The new Pre-ISO Configuration section correctly implements the SSH key fix by separating SSH key application from cluster creation and offering both as optional post-creation steps. However, the section header "Pre-ISO Configuration (Always Check and Offer)" is slightly misleading—these configurations are offered conditionally only if not already addressed by the user. Consider revising the header to something like "Pre-ISO Configuration (Check and Offer Optional Steps)" or "Pre-ISO Configuration (Conditionally Offer Remaining Steps)".
The instructions in lines 257–262 are otherwise clear and well-aligned with the PR objective: the workflow correctly distinguishes SSH key setup from cluster creation and treats both as independent optional configurations.
Consider revising the section header to better reflect the conditional logic:
- **Pre-ISO Configuration (Always Check and Offer)** - * After cluster creation and before offering the Discovery ISO, proactively check which of the following optional configuration steps have not yet been addressed with the user, and offer those that remain: + **Pre-ISO Configuration (Check and Offer Remaining Optional Steps)** + * After cluster creation and before offering the Discovery ISO, proactively check which of the following optional configuration steps have not yet been addressed with the user, and offer only those that remain:
275-276: Section header mismatch: content discusses static networking distinction rather than pre-flight checks for cluster creation.The "Mandatory Pre-Flight Checks for Cluster Creation" header (line 275) does not accurately describe the content in lines 275–276, which clarifies the distinction between static networking and user-managed networking (API/Ingress VIP configuration). This note is valuable for preventing confusion between two different concepts, but it appears somewhat disconnected from the preceding Pre-ISO Configuration section and its placement/framing is unclear.
Consider reorganizing this section or renaming it to better reflect its actual purpose (e.g., "Important Distinction: Static Networking vs. User-Managed Networking" or moving it to a clearer location in the workflow where VIP configuration is discussed).
- **Mandatory Pre-Flight Checks for Cluster Creation** - * **Important Distinction:** Do not confuse static networking and user-managed networking. API and Ingress VIPs are set when user-managed networking is disabled in multi-node clusters. Static networking is specific to individual hosts and must be configured before downloading the Discovery ISO. + **Important Distinction: Static Networking vs. User-Managed Networking** + * Do not confuse static networking and user-managed networking. API and Ingress VIPs are set when user-managed networking is disabled in multi-node clusters. Static networking is specific to individual hosts and must be configured before downloading the Discovery ISO.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
template.yaml(1 hunks)test/evals/eval_data.yaml(2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- test/evals/eval_data.yaml
⏰ 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). (2)
- GitHub Check: Red Hat Konflux / assisted-chat-saas-main-on-pull-request
- GitHub Check: Red Hat Konflux / assisted-chat-test-image-saas-main-on-pull-request
|
@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. |
|
/hold checking a different approach first |
SSH key fix requires updating the eval test, as cluster creation and applying the optional SSH key are now performed through two separate tool calls.
Related to MGMT-22245
Summary by CodeRabbit
New Features
Tests