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

Add internal-network-name networking option #444

Merged
merged 2 commits into from
Jan 21, 2019

Conversation

mogaika
Copy link
Contributor

@mogaika mogaika commented Jan 19, 2019

What this PR does / why we need it:
This will help in case of multi-nic k8s node deployments.
Previously, cloud provider was assigning all addresses in random
order and k8s was selecting only one of them. But usually,
multi-nic scenario requires to specify which network is
"control" and admins want to bind kubelet listening address only
to that "control" net.

This commit will not affect previous logic until
internal-network-name is specified in cloud-config file.

Which issue this PR fixes: fixes #407

Special notes for your reviewer:

Release note:

This will help in case of multi-nic k8s node deployments.
Previously, cloud provider was assigning all addresses in random
order and k8s was selecting only one of them. But usually,
multi-nic scenario requires to specify which network is
"control" and admins want to bind kubelet listening address only
to that "control" net.

This commit will not affect previous logic until
internal-network-name is specified in cloud-config file.

Related to: kubernetes#407

Change-Id: I1e4076b853b12020c47529b0590f21523b9d26a8
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 19, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @mogaika. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 19, 2019
@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 19, 2019

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 19, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 19, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 19, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 19, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 19, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 19, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 19, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 19, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 19, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 19, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 19, 2019

Build succeeded.

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.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 20, 2019
@zetaab
Copy link
Member

zetaab commented Jan 20, 2019

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 20, 2019
@jichenjc
Copy link
Contributor

/retest

@jichenjc
Copy link
Contributor

I'd suggest we at least add some info (maybe a followup) patch on how this can be configured to avoid read code to find where to set internal network

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

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

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 Jan 21, 2019
@zetaab
Copy link
Member

zetaab commented Jan 21, 2019

/retest

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 21, 2019

Build succeeded.

@zetaab
Copy link
Member

zetaab commented Jan 21, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 21, 2019
@k8s-ci-robot k8s-ci-robot merged commit 7c1dddf into kubernetes:master Jan 21, 2019
openstack-gerrit pushed a commit to openstack/magnum that referenced this pull request Apr 2, 2019
When there is more than one NIC attached to an instance, openstack cloud
provider returns a random InternalIP back to the host resulting in instability
with API server which only talks to a default interface.

This patch incorporates the changes made in
kubernetes/cloud-provider-openstack#444 which enables
OpenStack Cloud Controller Manager to respect the `internal-network-name` in
cloud-config file which ensures that InternalIP remains stable.

Story: 2005333
Task: 30271

Change-Id: I9e3ad459dd05753b53cb4ce75ee3aed649fef196
openstack-gerrit pushed a commit to openstack/openstack that referenced this pull request Apr 2, 2019
* Update magnum from branch 'master'
  - Merge "Specify internal network to improve stability in a multi-NIC scenario."
  - Specify internal network to improve stability in a multi-NIC scenario.
    
    When there is more than one NIC attached to an instance, openstack cloud
    provider returns a random InternalIP back to the host resulting in instability
    with API server which only talks to a default interface.
    
    This patch incorporates the changes made in
    kubernetes/cloud-provider-openstack#444 which enables
    OpenStack Cloud Controller Manager to respect the `internal-network-name` in
    cloud-config file which ensures that InternalIP remains stable.
    
    Story: 2005333
    Task: 30271
    
    Change-Id: I9e3ad459dd05753b53cb4ce75ee3aed649fef196
openstack-gerrit pushed a commit to openstack/magnum that referenced this pull request Aug 1, 2019
When there is more than one NIC attached to an instance, openstack cloud
provider returns a random InternalIP back to the host resulting in instability
with API server which only talks to a default interface.

This patch incorporates the changes made in
kubernetes/cloud-provider-openstack#444 which enables
OpenStack Cloud Controller Manager (OCCM) to respect the
`internal-network-name` in cloud-config file which ensures that InternalIP
remains stable.

Uses a separate cloud-config file for OCCM to ensure in-tree Cinder volumes
remain compatible.

Change-Id: Idfa52ed2d512e7dc383a556371e896205dd542f9
Story: 2005333
Task: 30271
openstack-gerrit pushed a commit to openstack/openstack that referenced this pull request Aug 1, 2019
* Update magnum from branch 'master'
  - Merge "Add network config to stabilise multi-NIC scenario"
  - Add network config to stabilise multi-NIC scenario
    
    When there is more than one NIC attached to an instance, openstack cloud
    provider returns a random InternalIP back to the host resulting in instability
    with API server which only talks to a default interface.
    
    This patch incorporates the changes made in
    kubernetes/cloud-provider-openstack#444 which enables
    OpenStack Cloud Controller Manager (OCCM) to respect the
    `internal-network-name` in cloud-config file which ensures that InternalIP
    remains stable.
    
    Uses a separate cloud-config file for OCCM to ensure in-tree Cinder volumes
    remain compatible.
    
    Change-Id: Idfa52ed2d512e7dc383a556371e896205dd542f9
    Story: 2005333
    Task: 30271
brtkwr added a commit to stackhpc/magnum that referenced this pull request Nov 6, 2019
When there is more than one NIC attached to an instance, openstack cloud
provider returns a random InternalIP back to the host resulting in instability
with API server which only talks to a default interface.

This patch incorporates the changes made in
kubernetes/cloud-provider-openstack#444 which enables
OpenStack Cloud Controller Manager (OCCM) to respect the
`internal-network-name` in cloud-config file which ensures that InternalIP
remains stable.

Uses a separate cloud-config file for OCCM to ensure in-tree Cinder volumes
remain compatible.

Conflicts:
	magnum/drivers/common/templates/kubernetes/fragments/write-kube-os-config.sh
	magnum/drivers/k8s_fedora_atomic_v1/templates/kubemaster.yaml

Change-Id: Idfa52ed2d512e7dc383a556371e896205dd542f9
Story: 2005333
Task: 30271
(cherry picked from commit 425fb0f)
brtkwr added a commit to stackhpc/magnum that referenced this pull request Nov 8, 2019
When there is more than one NIC attached to an instance, openstack cloud
provider returns a random InternalIP back to the host resulting in instability
with API server which only talks to a default interface.

This patch incorporates the changes made in
kubernetes/cloud-provider-openstack#444 which enables
OpenStack Cloud Controller Manager (OCCM) to respect the
`internal-network-name` in cloud-config file which ensures that InternalIP
remains stable.

Uses a separate cloud-config file for OCCM to ensure in-tree Cinder volumes
remain compatible.

Conflicts:
	magnum/drivers/common/templates/kubernetes/fragments/write-kube-os-config.sh
	magnum/drivers/k8s_fedora_atomic_v1/templates/kubemaster.yaml

Change-Id: Idfa52ed2d512e7dc383a556371e896205dd542f9
Story: 2005333
Task: 30271
(cherry picked from commit 425fb0f)
powellchristoph pushed a commit to powellchristoph/cloud-provider-openstack that referenced this pull request Jan 19, 2022
Add internal-network-name networking option
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multi-nic node ip must correspond to kubelet api listening address
4 participants