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

Determine fixedip during nodeup directly #9560

Merged
merged 6 commits into from
Aug 4, 2020

Conversation

olemarkus
Copy link
Member

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?

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 13, 2020
@k8s-ci-robot k8s-ci-robot added area/nodeup area/provider/openstack Issues or PRs related to openstack provider size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 13, 2020
@olemarkus olemarkus force-pushed the openstack-fixed-ip branch 3 times, most recently from 9288d1b to 63fa70a Compare July 13, 2020 19:37
@johngmyers
Copy link
Member

First commit message has typo "defauls"

@olemarkus olemarkus force-pushed the openstack-fixed-ip branch from 63fa70a to 1ec4a77 Compare July 14, 2020 05:44
@olemarkus
Copy link
Member Author

/hold
Suspect @zetaab wants to review this one as well.

@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 Jul 14, 2020
@olemarkus olemarkus force-pushed the openstack-fixed-ip branch from 1ec4a77 to f26c9ef Compare July 14, 2020 05:55
Copy link
Member

@zetaab zetaab left a 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.

@k8s-ci-robot
Copy link
Contributor

[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 /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 Jul 23, 2020
@rifelpet
Copy link
Member

Retrying the MacOS GHA job fixed the failure but there's now a merge conflict

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 23, 2020
@olemarkus olemarkus force-pushed the openstack-fixed-ip branch from f26c9ef to 7b45864 Compare August 2, 2020 18:36
@k8s-ci-robot k8s-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Aug 2, 2020
@olemarkus olemarkus force-pushed the openstack-fixed-ip branch from 7b45864 to c143b18 Compare August 3, 2020 20:49
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 3, 2020
@olemarkus
Copy link
Member Author

/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 Aug 3, 2020
Copy link
Member

@rifelpet rifelpet left a 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.

@@ -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 {
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep. Thanks for catching.

Ole Markus With added 4 commits August 4, 2020 08:22
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.
@olemarkus olemarkus force-pushed the openstack-fixed-ip branch from c143b18 to 6b81916 Compare August 4, 2020 06:22
@olemarkus
Copy link
Member Author

/retest

@rifelpet
Copy link
Member

rifelpet commented Aug 4, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 4, 2020
@johngmyers
Copy link
Member

/retest

@k8s-ci-robot k8s-ci-robot merged commit 3c0047f into kubernetes:master Aug 4, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.19 milestone Aug 4, 2020
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. area/api area/nodeup area/provider/openstack Issues or PRs related to openstack provider 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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants