Skip to content

Conversation

@mdbooth
Copy link
Contributor

@mdbooth mdbooth commented Sep 8, 2023

Fixes #1658

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 8, 2023
@netlify
Copy link

netlify bot commented Sep 8, 2023

Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!

Name Link
🔨 Latest commit bf132f1
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/64faf329be7ec600087704fc
😎 Deploy Preview https://deploy-preview-1661--kubernetes-sigs-cluster-api-openstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mdbooth

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

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 8, 2023
@mdbooth
Copy link
Contributor Author

mdbooth commented Sep 8, 2023

/test pull-cluster-api-provider-openstack-e2e-full-test

@lentzi90
Copy link
Contributor

lentzi90 commented Sep 8, 2023

Oh I think I see what is going on now. In the e2e tests, we do not fetch components from github, since it is desirable to test things that are not released yet. The e2e tests are configured to create a "repository" with precisely what we need for the test based on the e2e config, instead of just fetching releases from GH. This means that if we want older versions of any provider, we must specify that in the config. For CAPO we already have that, but not for CAPI. For CAPI we only specify v1.5.0.

For reference, this is the folder structure and config that is created for the e2e tests: https://gcsweb.k8s.io/gcs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_cluster-api-provider-openstack/1661/pull-cluster-api-provider-openstack-e2e-full-test/1700060262884708352/artifacts/repository/
As can be seen there, we only have CAPI v1.5.0 components available.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 8, 2023
@mdbooth
Copy link
Contributor Author

mdbooth commented Sep 8, 2023

/test pull-cluster-api-provider-openstack-e2e-full-test

Copy link
Contributor

@lentzi90 lentzi90 left a comment

Choose a reason for hiding this comment

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

This looks correct!
/lgtm
Let's see what the CI thinks 🤞

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 8, 2023
@mdbooth
Copy link
Contributor Author

mdbooth commented Sep 8, 2023

I think the confusion here is that we previously didn't need to update CAPI itself during this test so we didn't have separate config. Now the test doesn't work against v1.5.x, so we do need it. 🤞 this fixes it.

@lentzi90
Copy link
Contributor

lentzi90 commented Sep 8, 2023

Where is the CAPI v1.3.6 coming from 🤔

@mdbooth
Copy link
Contributor Author

mdbooth commented Sep 8, 2023

Where is the CAPI v1.3.6 coming from 🤔

I think that was the previous run. The new run succeeded.

Now to see why the e2e-test failed.

@mdbooth
Copy link
Contributor Author

mdbooth commented Sep 8, 2023

/test pull-cluster-api-provider-openstack-e2e-test

@lentzi90
Copy link
Contributor

lentzi90 commented Sep 8, 2023

Oh 🤦 I must have missed to reload the browser tab 😂

@mdbooth
Copy link
Contributor Author

mdbooth commented Sep 8, 2023

Probably a flake, but it looks like the failure was in cleanup:

I0908 12:06:23.245291       1 loadbalancer.go:503] "Deleting load balancer" controller="openstackcluster" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="OpenStackCluster" OpenStackCluster="e2e-06sftj/cluster-e2e-06sftj" namespace="e2e-06sftj" reconcileID=7c5e495a-187e-4f8b-aa1b-cd32855ad8b0 cluster="cluster-e2e-06sftj" name="k8s-clusterapi-cluster-e2e-06sftj-cluster-e2e-06sftj-kubeapi" cascade=true
I0908 12:06:23.326402       1 recorder.go:104] "events: Failed to delete load balancer k8s-clusterapi-cluster-e2e-06sftj-cluster-e2e-06sftj-kubeapi with id 7ea788ab-90ad-45ec-a50b-6726f183e730: Expected HTTP response code [202 204] when accessing [DELETE http://10.0.3.15/load-balancer/v2.0/lbaas/loadbalancers/7ea788ab-90ad-45ec-a50b-6726f183e730?cascade=true], but got 409 instead\n{\"faultcode\": \"Client\", \"faultstring\": \"Invalid state DELETED of loadbalancer resource 7ea788ab-90ad-45ec-a50b-6726f183e730\", \"debuginfo\": null}" type="Warning" object={Kind:OpenStackCluster Namespace:e2e-06sftj Name:cluster-e2e-06sftj UID:cae01ab4-a51f-47e1-88f1-d368ac7abce1 APIVersion:infrastructure.cluster.x-k8s.io/v1alpha7 ResourceVersion:9595 FieldPath:} reason="Faileddeleteloadbalancer"
E0908 12:06:23.345463       1 controller.go:324] "Reconciler error" err=<
	failed to delete load balancer: Expected HTTP response code [202 204] when accessing [DELETE http://10.0.3.15/load-balancer/v2.0/lbaas/loadbalancers/7ea788ab-90ad-45ec-a50b-6726f183e730?cascade=true], but got 409 instead
	{"faultcode": "Client", "faultstring": "Invalid state DELETED of loadbalancer resource 7ea788ab-90ad-45ec-a50b-6726f183e730", "debuginfo": null}

Looks like a separate bug.

@mdbooth
Copy link
Contributor Author

mdbooth commented Sep 8, 2023

The relevant test passed! e2e test failure looks like a flake.

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 8, 2023
@k8s-ci-robot k8s-ci-robot merged commit cc25810 into kubernetes-sigs:main Sep 8, 2023
@mdbooth mdbooth deleted the issue1658 branch September 8, 2023 14:09
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clusterctl upgrade test broken since CAPI v1.5.0 bump

3 participants