Skip to content
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

Virtualization E2E tests on OpenStack #1511

Merged
merged 5 commits into from
Sep 13, 2024

Conversation

mrnold
Copy link
Contributor

@mrnold mrnold commented Sep 6, 2024

Why the changes were made

This adds an E2E OpenStack provider that gets VM tests working on PSI, using an AWS bucket as the backup location. Includes a handful of tweaks like making KVM emulation configurable, creating a WFFC storage class when the default is Immediate, and creating a VolumeSnapshotClass for Ceph RBD.

How to test the changes made

Log in to shared PSI cluster, set up AWS bucket as per usual instructions, then make TEST_VIRT=true test-e2e.

Only clean it up if the test downloaded it in the first place.

Signed-off-by: Matthew Arnold <[email protected]>
Allow KVM emulation to be configured, and add an OpenStack provider that
copies AWS except for leaving emulation turned off.

Signed-off-by: Matthew Arnold <[email protected]>
If the test did not need to create an immediate-mode storage class
(because the default was already set to immediate), make sure it does
not try to delete anything after the test is done. Previously this would
cause an error after all the tests were run, even if they were all
successful.

Signed-off-by: Matthew Arnold <[email protected]>
@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 Sep 6, 2024
Copy link

openshift-ci bot commented Sep 6, 2024

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 6, 2024
Otherwise the previously-default WFFC tests will all run with Immediate,
and make the Immediate-specific tests redundant.

Signed-off-by: Matthew Arnold <[email protected]>
@weshayutin weshayutin marked this pull request as ready for review September 10, 2024 18:50
@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 Sep 10, 2024
@weshayutin
Copy link
Contributor

just getting one ci run in :) feel free to re-hold

Can't just use AWS for everything after all.

Signed-off-by: Matthew Arnold <[email protected]>
@mrnold
Copy link
Contributor Author

mrnold commented Sep 10, 2024

Okay, I am seeing good data mover tests now. This should be good to run through CI to make sure I haven't broken anything.

@mrnold mrnold changed the title Work in progress: virtualization E2E tests on OpenStack Virtualization E2E tests on OpenStack Sep 11, 2024
@weshayutin
Copy link
Contributor

/retest

Copy link
Contributor

@weshayutin weshayutin left a comment

Choose a reason for hiding this comment

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

/LGTM
Ran 8 of 33 Specs in 2441.234 seconds
SUCCESS! -- 8 Passed | 0 Failed | 0 Pending | 25 Skipped

TO-DO: update docs and add follow up to delete the BackupRepository object w/ cirros-test in the name as a pre-test.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 12, 2024
Copy link

openshift-ci bot commented Sep 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mrnold, shubham-pampattiwar, weshayutin

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [mrnold,shubham-pampattiwar]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD fb62869 and 2 for PR HEAD 693442e in total

@weshayutin
Copy link
Contributor

/retest-required

Copy link

openshift-ci bot commented Sep 13, 2024

@mrnold: all tests passed!

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.

@openshift-merge-bot openshift-merge-bot bot merged commit 510c203 into openshift:master Sep 13, 2024
15 checks passed
weshayutin pushed a commit to weshayutin/oadp-operator that referenced this pull request Sep 13, 2024
* Avoid deleting previously installed CirrOS image.

Only clean it up if the test downloaded it in the first place.

Signed-off-by: Matthew Arnold <[email protected]>

* Default OpenStack provider to no KVM emulation.

Allow KVM emulation to be configured, and add an OpenStack provider that
copies AWS except for leaving emulation turned off.

Signed-off-by: Matthew Arnold <[email protected]>

* Avoid trying to delete non-existent storage class.

If the test did not need to create an immediate-mode storage class
(because the default was already set to immediate), make sure it does
not try to delete anything after the test is done. Previously this would
cause an error after all the tests were run, even if they were all
successful.

Signed-off-by: Matthew Arnold <[email protected]>

* Create WFFC storage class if default is Immediate.

Otherwise the previously-default WFFC tests will all run with Immediate,
and make the Immediate-specific tests redundant.

Signed-off-by: Matthew Arnold <[email protected]>

* Add test scripts for OpenStack.

Can't just use AWS for everything after all.

Signed-off-by: Matthew Arnold <[email protected]>

---------

Signed-off-by: Matthew Arnold <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants