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

CNV automation: Classes and helper functions - Virtctl, VirtualMachine, VirtualMachineInstance and VM workloads #9248

Merged
merged 15 commits into from
Feb 27, 2024

Conversation

PrasadDesala
Copy link
Contributor

@PrasadDesala PrasadDesala commented Jan 30, 2024

OpenShift Virtualization (CNV) is an add-on to OCP that allows running and managing virtual machine workloads alongside container workloads. The ODF can be used in conjunction with CNV to provide persistent storage for virtual machines.

This PR handles creation of necessary classes and helper functions for VM workload management.

  • Virtctl - Virtctl is a commandline utility used for managing and interacting with virtual machines in a Kubernetes cluster. It provides a set of commands to control virtual machines such as starting, stopping, SSH, SCP and obtaining information about a VM.
  • VirtualMachine - VirtualMachine is a Kubernetes CR representing a virtual machine. It defines the desired state and configuration
  • VirtualMachineInstance - VirtualMachine is a Kubernetes CR representing a virtual machine instance. It represents an instance of a virtual machine
  • VM referenced by a standalone PVC
  • VM workload - Centos

…e, VirtualMachineInstance and VM workloads

Signed-off-by: Prasad Desala <[email protected]>
@PrasadDesala PrasadDesala added the team/e2e E2E team related issues/PRs label Jan 30, 2024
@PrasadDesala PrasadDesala self-assigned this Jan 30, 2024
@PrasadDesala PrasadDesala requested a review from a team as a code owner January 30, 2024 07:32
@PrasadDesala PrasadDesala changed the title [WIP] CNV automation: Classes and helper functions - Virtctl, VirtualMachine, VirtualMachineInstance and VM workloads CNV automation: Classes and helper functions - Virtctl, VirtualMachine, VirtualMachineInstance and VM workloads Feb 2, 2024
ocs_ci/helpers/cnv_helpers.py Outdated Show resolved Hide resolved
ocs_ci/templates/cnv-vm-workload/vm_fedora.yaml Outdated Show resolved Hide resolved
ocs_ci/templates/cnv-vm-workload/vm_centos.yaml Outdated Show resolved Hide resolved
Copy link

openshift-ci bot commented Feb 8, 2024

@kgoldbla: changing LGTM is restricted to collaborators

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 kubernetes/test-infra repository.

…basic tests + few enhancements

Signed-off-by: Prasad Desala <[email protected]>
Signed-off-by: Prasad Desala <[email protected]>
parikshithb
parikshithb previously approved these changes Feb 19, 2024
Copy link
Contributor

@parikshithb parikshithb left a comment

Choose a reason for hiding this comment

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

lgtm

Signed-off-by: Prasad Desala <[email protected]>
Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: tdesala-feb19
Cluster Configuration:
PR Test Suite: workloads
PR Test Path: tests/functional/workloads/cnv
Additional Test Params:
OCP VERSION: 4.15
OCS VERSION: 4.15
tested against branch: master

Job UNSTABLE (some or all tests failed).

…cs-ci framework if present

Signed-off-by: Prasad Desala <[email protected]>
Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: tdesala-feb19
Cluster Configuration:
PR Test Suite: workloads
PR Test Path: tests/functional/workloads/cnv
Additional Test Params:
OCP VERSION: 4.15
OCS VERSION: 4.15
tested against branch: master

Job UNSTABLE (some or all tests failed).

Signed-off-by: Prasad Desala <[email protected]>
Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: tdesala-feb19
Cluster Configuration:
PR Test Suite: workloads
PR Test Path: tests/functional/workloads/cnv
Additional Test Params:
OCP VERSION: 4.15
OCS VERSION: 4.15
tested against branch: master

Job PASSED.

Signed-off-by: Prasad Desala <[email protected]>
Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: tdesala-feb19
Cluster Configuration:
PR Test Suite: workloads
PR Test Path: tests/functional/workloads/cnv
Additional Test Params:
OCP VERSION: 4.15
OCS VERSION: 4.15
tested against branch: master

Job UNSTABLE (some or all tests failed).

Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: tdesala-feb18
Cluster Configuration:
PR Test Suite: workloads
PR Test Path: tests/functional/workloads/cnv
Additional Test Params:
OCP VERSION: 4.15
OCS VERSION: 4.15
tested against branch: master

Job FAILED (installation failed, tests not executed).

Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

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

PR validation on existing cluster

Cluster Name: tdesala-feb19
Cluster Configuration:
PR Test Suite: workloads
PR Test Path: tests/functional/workloads/cnv
Additional Test Params:
OCP VERSION: 4.15
OCS VERSION: 4.15
tested against branch: master

Job PASSED.

@PrasadDesala PrasadDesala added the Verified Mark when PR was verified and log provided label Feb 21, 2024
@PrasadDesala PrasadDesala requested a review from shylesh February 21, 2024 10:26
Copy link

openshift-ci bot commented Feb 21, 2024

@kgoldbla: changing LGTM is restricted to collaborators

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 kubernetes/test-infra repository.

Signed-off-by: Prasad Desala <[email protected]>
ocs_ci/helpers/cnv_helpers.py Show resolved Hide resolved
ocs_ci/ocs/cnv/virtctl.py Outdated Show resolved Hide resolved
ocs_ci/ocs/cnv/virtual_machine_instance.py Show resolved Hide resolved
Signed-off-by: Prasad Desala <[email protected]>
Copy link
Contributor

@shylesh shylesh left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

openshift-ci bot commented Feb 27, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: parikshithb, PrasadDesala, shylesh

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

@PrasadDesala PrasadDesala merged commit 00f4c1b into red-hat-storage:master Feb 27, 2024
5 of 6 checks passed
prsurve pushed a commit to prsurve/ocs-ci that referenced this pull request Mar 1, 2024
…e, VirtualMachineInstance and VM workloads (red-hat-storage#9248)

Signed-off-by: Prasad Desala <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm size/XXL team/e2e E2E team related issues/PRs Verified Mark when PR was verified and log provided
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants