Closed mdbooth closed 4 months ago
[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
Name | Link |
---|---|
Latest commit | b6d7748a7800f0cfde7d6edea510b3d55f0503fc |
Latest deploy log | https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/65fd5bc413150c00080ada66 |
Deploy Preview | https://deploy-preview-1951--kubernetes-sigs-cluster-api-openstack.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
/test pull-cluster-api-provider-openstack-e2e-full-test
/test pull-cluster-api-provider-openstack-e2e-full-test
/test pull-cluster-api-provider-openstack-e2e-full-test
/test pull-cluster-api-provider-openstack-e2e-full-test
/test pull-cluster-api-provider-openstack-e2e-full-test
/test pull-cluster-api-provider-openstack-e2e-full-test
@dulek Comments addressed.
Nothing obvious, could be a flake. /test pull-cluster-api-provider-openstack-e2e-test
/test pull-cluster-api-provider-openstack-e2e-full-test
/test pull-cluster-api-provider-openstack-e2e-full-test
Error was:
INFO: Applying the cluster template yaml to the cluster
[FAILED] Expected success, but got an error:
<*errors.fundamental | 0xc002709368>:
exit status 1: stderr:
{
msg: "exit status 1: stderr: ",
stack: [0x1e615ee, 0x1efc805, 0x84ee73, 0x862ecd, 0x47b0c1],
}
In [It] at: /root/go/pkg/mod/sigs.k8s.io/cluster-api/test@v1.6.0/e2e/clusterctl_upgrade.go:389 @ 03/21/24 13:25:03.601
That's not very illuminating! Lets see if it was a flake.
Same error.
/test pull-cluster-api-provider-openstack-e2e-full-test
I'm not going to re-run the full test on this latest push because it just updates function and variable names.
Actually we just broke the upgrade test with a search and replace the other day. Do I learn nothing? 🤦
/test pull-cluster-api-provider-openstack-e2e-full-test
/lgtm
Lets hope the full e2e test passes 🤞
Passed!
/hold cancel
The purpose of this change is fix an issue where we are storing unresolved references in ReferencedMachineResources. Specifically we are storing a PortOpts, which is a user-intent struct. PortOpts can contain unresolved references to both subnets and security groups, as well fields requiring additional processing which reference external objects: the port name, description, and tags.
We create a new type, ResolvedPortSpec, which can contain only fully resolved data. This can be seen in the new signature of CreatePorts(), which no longer requires any source of data other than the []ResolvedPortSpec from ReferencedMachineResources, and is now greatly simplified.
Fully resolving the port name also allows a simplification in port adoption.
All of the complexity now moves to ConstructPorts(), which is updated to return []ResolvedPortSpec instead of []PortOpts. ConstructPorts() is updated to resolve security groups, port name, description, and all subnets referenced in FixedIPs.
Fixes: #1943
TODO:
/hold