-
Notifications
You must be signed in to change notification settings - Fork 215
AGENT-1581: For ABI allow pre-built OVE ISO via AGENT_OVE_ISO_SOURCE #1951
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -612,7 +612,29 @@ func networkingDetails(page *rod.Page, path string) error { | |
| } | ||
| } | ||
|
|
||
| page.MustElement("#form-input-sshPublicKey-field").MustInput(sshPublicKey) | ||
| // The "Host SSH Public Key" section offers a "Use the same host discovery SSH key" | ||
| // checkbox. When it is checked - e.g. the boot ISO already provided a host discovery | ||
| // SSH key (as with a pre-built OVE ISO) - the manual key text field is not rendered, | ||
| // so unconditionally waiting for it would hang forever. Only enter the key if the | ||
| // field is actually present and empty; otherwise the cluster already has an SSH key. | ||
| sshField, sshErr := page.Timeout(15 * time.Second).Element("#form-input-sshPublicKey-field") | ||
| if sshErr != nil || sshField == nil { | ||
| logrus.Info("SSH public key field not present (using host discovery SSH key); skipping input") | ||
| } else { | ||
| sshField.MustScrollIntoView() | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I haven't checked the actual UI but |
||
| existing := strings.TrimSpace(sshField.MustProperty("value").String()) | ||
| if existing == "" { | ||
| if inputErr := rod.Try(func() { | ||
| sshField.Timeout(30 * time.Second).MustWaitInteractable().MustInput(sshPublicKey) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly, why to wait for 30 seconds? |
||
| }); inputErr != nil { | ||
| _ = saveFullPageScreenshot(page, timestampedPath(path, "ssh-input-failed")) | ||
| logrus.Warnf("skipping SSH key input (field not interactable): %v", inputErr) | ||
| } | ||
| } else { | ||
| logrus.Info("SSH public key already populated; skipping input") | ||
| } | ||
| } | ||
|
|
||
| page.MustElement(`button[name="next"]`).MustWaitEnabled() | ||
|
|
||
| err = saveFullPageScreenshot(page, timestampedPath(path, "end")) | ||
|
|
||
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.
Do we need a timeout here? If we do need, can we lower it to 2 seconds like https://github.com/openshift-metal3/dev-scripts/blob/master/agent/isobuilder/ui_driven_cluster_installation/main.go#L321 if there isn't any animation associated, otherwise, lets keep same smaller timeouts like other places.