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 description for the floating ip created for external service #433

Merged
merged 1 commit into from Jan 15, 2019
Merged

Add description for the floating ip created for external service #433

merged 1 commit into from Jan 15, 2019

Conversation

lingxiankong
Copy link
Contributor

What this PR does / why we need it:
fixes #432

Special notes for your reviewer:
When creating floating ip for external service, add the cluster and service information in the floating ip description field, so it's easy to query and delete outside of the cluster.

Release note:

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 14, 2019
@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 14, 2019

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 14, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 14, 2019

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 14, 2019

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 14, 2019

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 14, 2019

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 14, 2019

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 14, 2019

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 14, 2019

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 14, 2019

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 14, 2019

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 14, 2019

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

Build failed.

  • cloud-provider-openstack-acceptance-test-keystone-authentication-authorization : RETRY_LIMIT in 15m 32s

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

Build succeeded.

@ramineni
Copy link
Contributor

@lingxiankong just one question, after deleting the cluster shouldnt the floating ip automatically released to pool marking it as free , is it required to delete it everytime cluster/service is deleted? sorry if I misunderstood something here.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

Build succeeded.

@jichenjc
Copy link
Contributor

@lingxiankong just one question, after deleting the cluster shouldnt the floating ip automatically released to pool marking it as free , is it required to delete it everytime cluster/service is deleted? sorry if I misunderstood something here.

Have similar thought, k8s cluster should touch LB (ingress) but not the floating ip ?

@lingxiankong
Copy link
Contributor Author

@lingxiankong just one question, after deleting the cluster shouldnt the floating ip automatically released to pool marking it as free , is it required to delete it everytime cluster/service is deleted? sorry if I misunderstood something here.

This improvement is actually for magnum. In magnum, imagine that a user creates a k8s cluster and created some services of LoadBalancer type inside the cluster, there will be some octavia load balancers and new floating ips created accordingly.

The lbs and floating ips will be deleted automatically if the user deletes the service explicitly inside the k8s cluster. However, In Magnum, if the user deletes the cluster without deleting the service first, even with this patch, the floating ip is not going to be deleted. In the public cloud, 'released to the pool' means the customer still need to be charged for the allocated resources.

This PR is aiming to make it easy to find and delete those floating ips.

Hope that explanation helps :-)

@lingxiankong
Copy link
Contributor Author

/test cloud-provider-openstack-acceptance-test-keystone-authentication-authorization

@lingxiankong
Copy link
Contributor Author

/test cloud-provider-openstack-acceptance-test-e2e-conformance-stable-branch-v1.11

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 15, 2019

Build succeeded.

@adisky
Copy link
Contributor

adisky commented Jan 15, 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 15, 2019
@dims
Copy link
Member

dims commented Jan 15, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dims, lingxiankong

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 15, 2019
@lingxiankong
Copy link
Contributor Author

/test pull-cloud-provider-openstack-test

@k8s-ci-robot k8s-ci-robot merged commit 8fff22e into kubernetes:master Jan 15, 2019
@lingxiankong lingxiankong deleted the lb-fip-desc branch January 15, 2019 22:18
@jichenjc
Copy link
Contributor

@lingxiankong thanks for the helpful info, really help ~

openstack-gerrit pushed a commit to openstack/magnum that referenced this pull request Feb 1, 2019
When user creates LoadBalancer type service in k8s cluster, a floating
ip may be created and associated with the load balancer VIP. Magnum
now could delete the load balancers automatically in the cluster
pre-delete method, should also remove the floating ip as needed.

This patch depends on the github PR for cloud-provider-openstack:
kubernetes/cloud-provider-openstack#433

Story: 2004836
Change-Id: Ia553aff4e66033346c6bfe120a72992bec79e136
openstack-gerrit pushed a commit to openstack/openstack that referenced this pull request Feb 1, 2019
* Update magnum from branch 'master'
  - Merge "[k8s_fedora_atomic] Delete floating ip for load balancer"
  - [k8s_fedora_atomic] Delete floating ip for load balancer
    
    When user creates LoadBalancer type service in k8s cluster, a floating
    ip may be created and associated with the load balancer VIP. Magnum
    now could delete the load balancers automatically in the cluster
    pre-delete method, should also remove the floating ip as needed.
    
    This patch depends on the github PR for cloud-provider-openstack:
    kubernetes/cloud-provider-openstack#433
    
    Story: 2004836
    Change-Id: Ia553aff4e66033346c6bfe120a72992bec79e136
openstack-gerrit pushed a commit to openstack/magnum that referenced this pull request Feb 5, 2019
When user creates LoadBalancer type service in k8s cluster, a floating
ip may be created and associated with the load balancer VIP. Magnum
now could delete the load balancers automatically in the cluster
pre-delete method, should also remove the floating ip as needed.

This patch depends on the github PR for cloud-provider-openstack:
kubernetes/cloud-provider-openstack#433

Story: 2004836
Change-Id: Ia553aff4e66033346c6bfe120a72992bec79e136
(cherry picked from commit f63761a)
powellchristoph pushed a commit to powellchristoph/cloud-provider-openstack that referenced this pull request Jan 19, 2022
Add description for the floating ip created for external service
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.

Add description for the LoadBalancer type service floating IP
6 participants