-
Notifications
You must be signed in to change notification settings - Fork 2.1k
WIP: Add baremetalds-e2e-upgrade-workflow #11436
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
Changes from all commits
7585a99
e650f68
cefbbdd
dc6dd1f
cae97f9
015fa4d
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 |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| approvers: | ||
| - eisraeli | ||
| - andfasano | ||
| - akiselev1 | ||
| - derekhiggins | ||
| - honza | ||
| - stbenjam |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "path": "baremetalds/e2e/upgrade/baremetalds-e2e-upgrade-workflow.yaml", | ||
| "owners": { | ||
| "approvers": [ | ||
| "eisraeli", | ||
| "andfasano", | ||
| "akiselev1", | ||
| "derekhiggins", | ||
| "honza", | ||
| "stbenjam" | ||
| ] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| workflow: | ||
| as: baremetalds-e2e-upgrade | ||
| steps: | ||
| allow_skip_on_success: true | ||
| pre: | ||
| - ref: baremetalds-packet-setup | ||
| - ref: ipi-install-rbac | ||
| - ref: baremetalds-devscripts-setup | ||
| test: | ||
| - ref: baremetalds-e2e-conf | ||
| - ref: baremetalds-e2e-test | ||
| - ref: baremetalds-e2e-upgrade-upgrade | ||
| - ref: baremetalds-e2e-test | ||
| post: | ||
| - ref: baremetalds-devscripts-gather | ||
| - ref: baremetalds-packet-teardown | ||
| dependencies: | ||
| OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE: "release:initial" | ||
| OPENSHIFT_UPGRADE_RELEASE_IMAGE_OVERRIDE: "release:latest" | ||
| env: | ||
| DEVSCRIPTS_CONFIG: | | ||
| OPENSHIFT_RELEASE_IMAGE: OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE | ||
| documentation: |- | ||
| This workflow executes an upgrade and then executes the common end-to-end test suite on a cluster provisioned by running dev-scripts on a packet server. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| approvers: | ||
| - eisraeli | ||
| - andfasano | ||
| - akiselev1 | ||
| - derekhiggins | ||
| - honza | ||
| - stbenjam |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,7 @@ | ||||||
| #!/bin/bash | ||||||
|
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. This file is not required -
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. It is not possible to use the
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.
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. It appears that the current implementation support release/ci-operator/step-registry/openshift/e2e/test/openshift-e2e-test-commands.sh Line 51 in 1d793ed
dev-scripts in the remote packet instance (Line 99 in 1d793ed
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. You'd have to add support for it then. I don't think it has any specific flags, you'd need to reuse existing legacy templates.
Copy it to
This is necessary for this PR to land and be approved by OTA team
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'm not seeing any tricks to access it in this commit. If
Team taking care of upgrades, including CI upgrade tests.
Member
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.
What do you mean? It's not about Packet. It's because we save significant amounts of money by running baremetal clusters through emulated baremetal with libvirt + vbmc/sushy-tools. The cluster is contained within the libvirt networks on the host, therefore the API is not exposed on the public IP. Maybe we could do it with some iptables/xinetd trickery, but we haven't looked into that yet. The entire purpose of baremetalds-e2e-upgrade-test-commands is that it runs the e2e-tests suites by SSH'ing to the host. I agree about mulisteps tests should be useful for everyone, and in fact the baremetalds workflows existed long before any other platforms did, and when it came time to create the ipi, upgrade, etc steps our specific use cases weren't considered so most of our steps remained special.
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.
This workflow would create pods on api.ci / build01 / build02 CI cluster. How would they reach the created cluster? This should should not hardcode the release, it should not use
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.
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. Ah, okay, that was my concern - upgrade should happen via |
||||||
|
|
||||||
| set -o nounset | ||||||
| set -o errexit | ||||||
| set -o pipefail | ||||||
|
|
||||||
| openshift-tests run-upgrade --to-image "${OPENSHIFT_UPGRADE_RELEASE_IMAGE_OVERRIDE}" --dry-run all | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "path": "baremetalds/e2e/upgrade/upgrade/baremetalds-e2e-upgrade-upgrade-ref.yaml", | ||
| "owners": { | ||
| "approvers": [ | ||
| "eisraeli", | ||
| "andfasano", | ||
| "akiselev1", | ||
| "derekhiggins", | ||
| "honza", | ||
| "stbenjam" | ||
| ] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| ref: | ||
| as: baremetalds-e2e-upgrade-upgrade | ||
| from: tests | ||
| commands: baremetalds-e2e-upgrade-upgrade-commands.sh | ||
| resources: | ||
| requests: | ||
| cpu: "3" | ||
| memory: 600Mi | ||
| limits: | ||
| memory: 2Gi | ||
| # env: | ||
| # - name: UPGRADE_TO_OPENSHIFT_RELEASE_IMAGE | ||
| # default: "" | ||
| dependencies: | ||
| - name: "release:latest" | ||
| env: OPENSHIFT_UPGRADE_RELEASE_IMAGE_OVERRIDE | ||
| documentation: |- | ||
| This is a step to perform an upgrade |
Uh oh!
There was an error while loading. Please reload this page.