Skip to content

Conversation

pawanpinjarkar
Copy link
Contributor

@pawanpinjarkar pawanpinjarkar commented Jul 11, 2025

Automates OVE cluster installation using the Go-based library go-rod in headless mode.
The workflow fills in cluster details, captures screenshots for each step, downloads
credentials, and triggers the install action without requiring a visible browser.

Verification steps include:

  • Confirming cluster installation completion
  • Running oc get nodes and oc get co
  • Ensuring the number of nodes matches values defined in dev-scripts

Set

export AGENT_E2E_TEST_BOOT_MODE=ISO_NO_REGISTRY
export AGENT_RENDEZVOUS_NODE_HOSTNAME="${CLUSTER_NAME:-ostest}_master_2"
export OPENSHIFT_RELEASE_IMAGE=quay.io/openshift-release-dev/ocp-release:4.19.9-x86_64

Then run make agent

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 11, 2025
Copy link

openshift-ci bot commented Jul 11, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link

openshift-ci bot commented Jul 11, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign sadasu for approval. For more information see the Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@pawanpinjarkar pawanpinjarkar force-pushed the poc-ove-cluster-install branch 2 times, most recently from 3ab6952 to 29d0029 Compare July 11, 2025 15:48
@pawanpinjarkar
Copy link
Contributor Author

/cc @rwsu

@openshift-ci openshift-ci bot requested a review from rwsu July 11, 2025 15:54
@pawanpinjarkar pawanpinjarkar force-pushed the poc-ove-cluster-install branch from 29d0029 to 696bb05 Compare July 11, 2025 17:46
Automates OVE cluster installation using the Go-based library `go-rod` in headless mode.
The workflow fills in cluster details, captures screenshots for each step, downloads
credentials, and triggers the install action without requiring a visible browser.

Verification steps include:
- Confirming cluster installation completion
- Running `oc get nodes` and `oc get co`
- Ensuring the number of nodes matches values defined in dev-scripts
@pawanpinjarkar pawanpinjarkar force-pushed the poc-ove-cluster-install branch from 696bb05 to 8e02ff8 Compare August 25, 2025 18:24
@pawanpinjarkar pawanpinjarkar changed the title NO-ISSUE: Working POC to start cluster installation via web ui AGENT-1207: automate OVE cluster installation Aug 25, 2025
@pawanpinjarkar pawanpinjarkar marked this pull request as ready for review August 25, 2025 18:26
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 25, 2025
@openshift-ci openshift-ci bot requested review from lranjbar and zaneb August 25, 2025 18:26
Copy link

openshift-ci bot commented Aug 26, 2025

@pawanpinjarkar: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-agent-iso-no-registry-compact-ipv4 8e02ff8 link false /test e2e-agent-iso-no-registry-compact-ipv4
ci/prow/e2e-metal-ipi-ovn-dualstack 8e02ff8 link false /test e2e-metal-ipi-ovn-dualstack
ci/prow/e2e-metal-ipi-bm 8e02ff8 link true /test e2e-metal-ipi-bm
ci/prow/e2e-metal-ovn-arbiter 8e02ff8 link false /test e2e-metal-ovn-arbiter
ci/prow/e2e-metal-ipi-virtualmedia 8e02ff8 link false /test e2e-metal-ipi-virtualmedia
ci/prow/e2e-metal-ipi-bm-bond 8e02ff8 link false /test e2e-metal-ipi-bm-bond
ci/prow/e2e-metal-ipi-serial-ipv4-1of2 8e02ff8 link true /test e2e-metal-ipi-serial-ipv4-1of2
ci/prow/e2e-metal-ipi-serial-ipv4-2of2 8e02ff8 link true /test e2e-metal-ipi-serial-ipv4-2of2
ci/prow/e2e-metal-ipi-serial-ovn-ipv6 8e02ff8 link false /test e2e-metal-ipi-serial-ovn-ipv6
ci/prow/e2e-metal-ipi-ovn-ipv6 8e02ff8 link true /test e2e-metal-ipi-ovn-ipv6

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This go program seems to do much more things than expected. The original goal was just to automate the UI value insertion. I didn't go through all the details, but all the part related to waiting seems a (partial) duplicate of what we already have.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The go-lang code in this file, does 2 main things - automate inserting user provided values in UI, capturing screenshots of each step/page and finally start/monitor cluster installation.

Monitoring cluster installation is duplicated from main installer code repo here https://github.com/openshift-metal3/dev-scripts/pull/1781/files#diff-4fa267ac514a8d80c180951b590be1e52cf0122057a8c833fd0d954e143f2220R344-R746

@pawanpinjarkar
Copy link
Contributor Author

Alternate approach #1796 Closing this as we don't want to duplicate golang code for wait-for commands from installer.

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