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

ci: add support for VM_DRIVER=podman to scripts/minikube.sh #3420

Merged
merged 5 commits into from
Oct 13, 2022

Conversation

nixpanic
Copy link
Member

@nixpanic nixpanic commented Oct 7, 2022

When running on AWE EC2 virtual-machines, we'll use Podman instead of installing a VM. The "none" driver might work as well, but it requires additional dependencies to be installed, which may change over time with new minikube or Kubernetes releases. Hopefully the Podman driver is less affected with changes in dependencies.

Depends-on: #3419
Closes: #3415


Show available bot commands

These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

  • /retest ci/centos/<job-name>: retest the <job-name> after unrelated
    failure (please report the failure too!)
  • /retest all: run this in case the CentOS CI failed to start/report any test
    progress or results

@mergify mergify bot added the component/testing Additional test cases or CI work label Oct 7, 2022
@nixpanic
Copy link
Member Author

nixpanic commented Oct 7, 2022

Tests can be restarted once #3419 is merged. That PR may even re-enable the CI jobs automatically.

@nixpanic nixpanic requested review from Madhu-1 and a team October 7, 2022 15:55
@nixpanic nixpanic added the Priority-0 highest priority issue label Oct 7, 2022
@nixpanic nixpanic changed the title ci: add support for VM_DRIVER=podman to script/minikube.sh ci: add support for VM_DRIVER=podman to scripts/minikube.sh Oct 7, 2022
@nixpanic nixpanic added backport-to-release-v3.7 ci/skip/multi-arch-build skip building on multiple architectures labels Oct 7, 2022
Rakshith-R
Rakshith-R previously approved these changes Oct 10, 2022
Madhu-1
Madhu-1 previously approved these changes Oct 10, 2022
@Madhu-1
Copy link
Collaborator

Madhu-1 commented Oct 10, 2022

/test ci/centos/k8s-e2e-external-storage/1.22

@mergify mergify bot dismissed stale reviews from Madhu-1 and Rakshith-R October 11, 2022 16:04

Pull request has been modified.

scripts/minikube.sh Outdated Show resolved Hide resolved
Madhu-1
Madhu-1 previously approved these changes Oct 12, 2022
@Madhu-1 Madhu-1 requested a review from a team October 12, 2022 08:36
Rakshith-R
Rakshith-R previously approved these changes Oct 12, 2022
@nixpanic
Copy link
Member Author

/retest ci/centos/mini-e2e/k8s-1.24

@mergify mergify bot dismissed stale reviews from Rakshith-R and Madhu-1 October 12, 2022 14:45

Pull request has been modified.

When running on AWE EC2 virtual-machines, we'll use Podman instead of
installing a VM. The "none" driver might work as well, but it requires
additional dependencies to be installed, which may change over time with
new minikube or Kubernetes releases. Hopefully the Podman driver is less
affected with changes in dependencies.

Depends-on: ceph#3419
Closes: ceph#3415
Signed-off-by: Niels de Vos <ndevos@redhat.com>
The scale down/up functions fail often with "deployment not found"
errors. Possibly deploying with Podman is slower than deploying in a
minikube VM, and there is a delay for the deployment to become
available.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
In case `wget` is not installed, downloading the Helm release will fail.
The `install-helm.sh` script won't return a fatal error in that case,
and CI jobs continue running in an environment that is not ready.

By adding a check that exist the script with a failure, the CI will now
correctly report a problem when Helm can not be downloaded.

See-also: ceph#3430
Signed-off-by: Niels de Vos <ndevos@redhat.com>
@nixpanic
Copy link
Member Author

/retest ci/centos/mini-e2e-helm/k8s-1.24

@nixpanic
Copy link
Member Author

/retest ci/centos/k8s-e2e-external-storage/1.23

There are occasions where deleting a PVC (or PV) never succeeds. The
reported status of the deleted object is sometimes empty, which suggests
that the PVC or PV was, in fact, deleted.

To diagnose the incorrect error checking, include the errors for
retrying in the logs.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
Because the rbd-nbd tests fail with minikube and the Podman driver,
disable the tests for the time being.

Updates: ceph#3431
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Comment on lines +287 to +292
e2elog.Logf("PVC %s (status: %s) has not been deleted yet, rechecking...", name, pvc.Status)

return false, nil
}
if isRetryableAPIError(err) {
e2elog.Logf("failed to verify deletion of PVC %s (status: %s): %v", name, pvc.Status, err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

logging pvc name along with namespace name helps

Copy link
Member Author

Choose a reason for hiding this comment

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

that is included in already existing logs at the start of this sub-function

if !testNBD {
e2elog.Logf("skipping NBD test")

return
Copy link
Collaborator

Choose a reason for hiding this comment

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

return will skip all the tests or only this test?

Copy link
Member Author

Choose a reason for hiding this comment

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

It returns from the current function, so it should continue with the next test. The Skip() functions cause a more complete return, so those can not be used here.

@nixpanic
Copy link
Member Author

/retest ci/centos/mini-e2e-helm/k8s-1.23

@nixpanic
Copy link
Member Author

/retest ci/centos/mini-e2e-helm/k8s-1.23

Failed with

    Oct 13 08:45:56.312: FAIL: backend images not matching kubernetes resource count,image count 1 kubernetes resource count 0

@nixpanic nixpanic requested a review from a team October 13, 2022 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/skip/multi-arch-build skip building on multiple architectures component/testing Additional test cases or CI work Priority-0 highest priority issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants