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

🐛 api: openstackcluster.status default to false #1842

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

EmilienM
Copy link
Contributor

@EmilienM EmilienM commented Jan 25, 2024

What this PR does / why we need it:

When a reconcile loop for the bastion is requeued, we have
this error:

OpenStackCluster.infrastructure.cluster.x-k8s.io \"cluster-e2e-rha0r3\" is invalid: ready: Required value"

The OpenStackMachine.Status is false by default now, so if the status
has not been set to anything, patching the object will not fail with the
previous error.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1841

TODOs:

  • squashed commits

Copy link

netlify bot commented Jan 25, 2024

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

Name Link
🔨 Latest commit e6092b8
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/65c3972e785f8200083566b4
😎 Deploy Preview https://deploy-preview-1842--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 k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 25, 2024
@EmilienM
Copy link
Contributor Author

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

Copy link
Contributor Author

@EmilienM EmilienM left a comment

Choose a reason for hiding this comment

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

/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 Jan 25, 2024
@mdbooth
Copy link
Contributor

mdbooth commented Jan 29, 2024

I don't know what the solution to the issue is, but even if it does appear to make it go away this change isn't correct: status is not optional. We shouldn't merge this. We should fully understand what's going on that causes the issue and fix it in the right place.

@EmilienM
Copy link
Contributor Author

EmilienM commented Feb 2, 2024

This one is a good candidate for my list of things I need to run through a debugger and see what's wrong. I'll take a look soon.

@EmilienM
Copy link
Contributor Author

EmilienM commented Feb 7, 2024

/hold
we agreed we'll go with the AWS way (default to false)

When a reconcile loop for the bastion is requeued, we have
this error:
```
OpenStackCluster.infrastructure.cluster.x-k8s.io \"cluster-e2e-rha0r3\" is invalid: ready: Required value"
```

The OpenStackMachine.Status is false by default now, so if the status
has not been set to anything, patching the object will not fail with the
previous error.
@EmilienM EmilienM changed the title 🐛 api: openstackcluster.status is now optional 🐛 api: openstackcluster.status default to false Feb 7, 2024
@huxcrux
Copy link
Contributor

huxcrux commented Feb 7, 2024

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 7, 2024
@EmilienM
Copy link
Contributor Author

EmilienM commented Feb 8, 2024

/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 Feb 8, 2024
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.

Based on the logs this fixes the issue and seems reasonable to me.
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: EmilienM, lentzi90

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 9, 2024
@k8s-ci-robot k8s-ci-robot merged commit c9b628f into kubernetes-sigs:main Feb 9, 2024
9 checks passed
@EmilienM EmilienM deleted the issue_1841 branch February 9, 2024 12:55
@EmilienM
Copy link
Contributor Author

EmilienM commented Feb 9, 2024

/cherry-pick release-0.9

@k8s-infra-cherrypick-robot

@EmilienM: new pull request created: #1872

In response to this:

/cherry-pick release-0.9

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.

@EmilienM
Copy link
Contributor Author

EmilienM commented Feb 9, 2024

/cherry-pick release-0.8

@k8s-infra-cherrypick-robot

@EmilienM: new pull request created: #1873

In response to this:

/cherry-pick release-0.8

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.

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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenStackCluster.Status.Ready being required causing issues in reconcile
6 participants