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

Restore pre-1.10 openstack instance naming behavior #63903

Merged
merged 3 commits into from
May 16, 2018

Conversation

liggitt
Copy link
Member

@liggitt liggitt commented May 16, 2018

As noted in #61890 (comment) and #62295 (comment), the 1.10 changes to the openstack cloud provider node name computation (in #58502, #61000, and #61890) broke existing deployments that provisioned instances with credentials matching their instance names. It also did not account for version skewed kubelets, which can run 1.8 and 1.9 versions against a 1.10 master, and still register based on instance name.

This PR reverts the incompatible changes to restore pre-1.10 behavior.

Further improvements to handle instances with names that cannot be used as node names are tracked in #62295

/assign @dims
/sig openstack
/kind bug

Restores the pre-1.10 behavior of the openstack cloud provider which uses the instance name as the Kubernetes Node name. This requires instances be named with RFC-1123 compatible names.

@k8s-ci-robot k8s-ci-robot added area/provider/openstack Issues or PRs related to openstack provider do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. kind/bug Categorizes issue or PR as related to a bug. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 16, 2018
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels May 16, 2018
@liggitt
Copy link
Member Author

liggitt commented May 16, 2018

cc @kubernetes/sig-openstack-pr-reviews

@liggitt liggitt added this to the v1.10 milestone May 16, 2018
@liggitt liggitt added priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. and removed priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. labels May 16, 2018
@dims
Copy link
Member

dims commented May 16, 2018

/hold

i'd like to check on alternative(s) today

@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 May 16, 2018
@liggitt
Copy link
Member Author

liggitt commented May 16, 2018

i'd like to check on alternative(s) today

Do you have specific ideas you can share?

The window for 1.10.3 is rapidly closing (must be merged to release-1.10 by EOD tomorrow). Given the current state, I think we should prioritize fixing the compatibility break in 1.10.x.

Especially given the skewed kubelet requirement, it seems like attempting to support both old and new approaches simultaneously and compatibly will be larger/more complex, and will almost certainly miss 1.10.3.

@dims
Copy link
Member

dims commented May 16, 2018

@liggitt looking to see if it could be configurable - "name" / "hostname" / "uuid".

@dims
Copy link
Member

dims commented May 16, 2018

/assign @dixudx

@k8s-github-robot
Copy link

[MILESTONENOTIFIER] Milestone Pull Request Needs Approval

@dims @dixudx @liggitt @kubernetes/sig-openstack-misc

Action required: This pull request must have the status/approved-for-milestone label applied by a SIG maintainer. If the label is not applied within 7 days, the pull request will be moved out of the v1.10 milestone.

Pull Request Labels
  • sig/openstack: Pull Request will be escalated to these SIGs if needed.
  • priority/important-soon: Escalate to the pull request owners and SIG owner; move out of milestone after several unsuccessful escalation attempts.
  • kind/bug: Fixes a bug discovered during the current release.
Help

@dims
Copy link
Member

dims commented May 16, 2018

/hold cancel

May be it's better to go back to the drawing board than try to rush more changes.

@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 May 16, 2018
@dims
Copy link
Member

dims commented May 16, 2018

@FengyunPan2 @dixudx @NickrenREN please take a look.

/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 16, 2018
@dixudx
Copy link
Member

dixudx commented May 16, 2018

broke existing deployments that provisioned instances with credentials matching their instance names. It also did not account for version skewed kubelets, which can run 1.8 and 1.9 versions against a 1.10 master, and still register based on instance name.

This is painful when back porting older versions. But we have to go through this.

Seems it's better to roll back to that older flawed version unless we can find a new backwards compatible way.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 16, 2018
@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@liggitt
Copy link
Member Author

liggitt commented May 16, 2018

/retest

@hogepodge
Copy link

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dims, dixudx, hogepodge, liggitt

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-github-robot
Copy link

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here.

@k8s-github-robot k8s-github-robot merged commit 835afe6 into kubernetes:master May 16, 2018
@liggitt liggitt deleted the openstack-node-name branch May 16, 2018 17:37
k8s-github-robot pushed a commit that referenced this pull request May 17, 2018
…3-upstream-release-1.10

Automatic merge from submit-queue.

Automated cherry pick of #63903: Revert "Specify DHCP domain for hostname"

Cherry pick of #63903 on release-1.10.

#63903: Revert "Specify DHCP domain for hostname"
rfranzke added a commit to gardener/gardener that referenced this pull request May 29, 2018
- The behavior prior to 1.10 has been re-introduced. See kubernetes/kubernetes#63903 for details.
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/provider/openstack Issues or PRs related to openstack provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. milestone/needs-approval priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants