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

add pvc validation and e2e tests #1096

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

tjungblu
Copy link
Contributor

@tjungblu tjungblu commented Aug 9, 2023

When we create a backup for a pvc that doesn't exist the pod will just be stuck in Pending state forever. This PR introduces validation for it and marks the backup as failed before spawning a pod.

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 9, 2023
@Elbehery
Copy link
Contributor

Elbehery commented Aug 9, 2023

nice work 👍🏽

would it make sense to attempt to create the PVC by the controller in case it does not exist ?

@tjungblu
Copy link
Contributor Author

tjungblu commented Aug 9, 2023

Thanks

would it make sense to attempt to create the PVC by the controller in case it does not exist ?

if you tell me how many gigabytes and which storage class are needed for all our 150 different cloud and deployment configurations, please :)

@tjungblu
Copy link
Contributor Author

tjungblu commented Aug 9, 2023

/test ci/prow/e2e-operator

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 9, 2023

@tjungblu: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test configmap-scale
  • /test e2e-agnostic-ovn
  • /test e2e-agnostic-ovn-upgrade
  • /test e2e-aws-ovn-etcd-scaling
  • /test e2e-aws-ovn-serial
  • /test e2e-aws-ovn-single-node
  • /test e2e-operator
  • /test images
  • /test unit
  • /test verify
  • /test verify-deps

The following commands are available to trigger optional jobs:

  • /test e2e-aws
  • /test e2e-aws-disruptive
  • /test e2e-aws-disruptive-ovn
  • /test e2e-aws-etcd-recovery
  • /test e2e-azure
  • /test e2e-azure-ovn-etcd-scaling
  • /test e2e-gcp
  • /test e2e-gcp-disruptive
  • /test e2e-gcp-disruptive-ovn
  • /test e2e-gcp-ovn-etcd-scaling
  • /test e2e-gcp-qe-no-capabilities
  • /test e2e-metal-assisted
  • /test e2e-metal-ipi
  • /test e2e-metal-ipi-ovn-ipv6
  • /test e2e-metal-ipi-serial-ipv4
  • /test e2e-metal-single-node-live-iso
  • /test e2e-vsphere-ovn-etcd-scaling

Use /test all to run the following jobs that were automatically triggered:

  • pull-ci-openshift-cluster-etcd-operator-master-e2e-agnostic-ovn
  • pull-ci-openshift-cluster-etcd-operator-master-e2e-agnostic-ovn-upgrade
  • pull-ci-openshift-cluster-etcd-operator-master-e2e-aws-etcd-recovery
  • pull-ci-openshift-cluster-etcd-operator-master-e2e-aws-ovn-etcd-scaling
  • pull-ci-openshift-cluster-etcd-operator-master-e2e-aws-ovn-serial
  • pull-ci-openshift-cluster-etcd-operator-master-e2e-aws-ovn-single-node
  • pull-ci-openshift-cluster-etcd-operator-master-e2e-gcp-qe-no-capabilities
  • pull-ci-openshift-cluster-etcd-operator-master-e2e-operator
  • pull-ci-openshift-cluster-etcd-operator-master-images
  • pull-ci-openshift-cluster-etcd-operator-master-unit
  • pull-ci-openshift-cluster-etcd-operator-master-verify
  • pull-ci-openshift-cluster-etcd-operator-master-verify-deps

In response to this:

/test ci/prow/e2e-operator

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.

@tjungblu
Copy link
Contributor Author

tjungblu commented Aug 9, 2023

/test e2e-operator


if !valid {
klog.V(4).Infof("BackupController deems: %v invalid, skipping", backupsToRun[0])
return nil
Copy link
Contributor

Choose a reason for hiding this comment

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

so if the backup is invalid, we just log it, no err returned

the next sync() it will be the same, or ?

Copy link
Contributor Author

@tjungblu tjungblu Aug 11, 2023

Choose a reason for hiding this comment

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

no, because the backup failure state is set on the CRD, no need to degrade the operator in this case

@Elbehery
Copy link
Contributor

/lgtm
/approve

@Elbehery
Copy link
Contributor

/retest-required

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 11, 2023
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 11, 2023
@Elbehery
Copy link
Contributor

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 11, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 11, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Elbehery, tjungblu

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:

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 7cd736b and 2 for PR HEAD ce9a06e in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 11, 2023

@tjungblu: 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-gcp-qe-no-capabilities ce9a06e link false /test e2e-gcp-qe-no-capabilities
ci/prow/e2e-aws-etcd-recovery ce9a06e link false /test e2e-aws-etcd-recovery

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/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit e7af656 into openshift:master Aug 11, 2023
11 of 13 checks passed
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.

None yet

4 participants