-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Determine fixedip during nodeup directly #9560
Conversation
9288d1b
to
63fa70a
Compare
First commit message has typo "defauls" |
63fa70a
to
1ec4a77
Compare
/hold |
1ec4a77
to
f26c9ef
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
We need fix the mac os x test and we are good to go.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: olemarkus, zetaab 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 |
Retrying the MacOS GHA job fixed the failure but there's now a merge conflict |
f26c9ef
to
7b45864
Compare
7b45864
to
c143b18
Compare
/hold cancel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm this fixes the circular dependency issue using my new cloudmock which I'll open a PR for shortly.
pkg/model/openstackmodel/network.go
Outdated
@@ -50,6 +50,10 @@ func (b *NetworkModelBuilder) Build(c *fi.ModelBuilderContext) error { | |||
} | |||
|
|||
needRouter := true | |||
//Do not need router if there is no external network | |||
if b.Cluster.Spec.CloudConfig.Openstack.Router.ExternalNetwork == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you'll want to do additional checking here to avoid a nil pointer dereference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. Thanks for catching.
It takes some seconds for the node to be created and the (fixed) ip, so we need to retry this operation. Also need to increase the number of retries quite a bit in order to wait long enough.
c143b18
to
6b81916
Compare
/retest |
/lgtm |
/retest |
As discussed in #9554
This will break the task dependency cycle. It is a bit hackish with directly using protokube-code. That part should be moved to something shared, but perhaps best done in a followup PR?