Zun

Support adding/removing floating IPs by specifying container instead of port

Bug #1759455 reported by hongbin
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
Fix Committed
High
Zhenguo Niu

Bug Description

By using openstackclient, it is possible to add/remove floating IP to/from server:

  usage: openstack server add floating ip [-h] [--fixed-ip-address <ip-address>]
                                        <server> <ip-address>

  usage: openstack server remove floating ip [-h] <server> <ip-address>

It would be nice to have the a similar command for adding/removing floating IP to/from zun container. Possibly, this can be implemented in the Zun OSC plugin https://github.com/openstack/python-zunclient/tree/master/zunclient/osc .

NOTE: nova is deprecating the floating IP endpoints: https://developer.openstack.org/api-ref/compute/#floating-ips-os-floating-ips-deprecated , so zun will follow nova and skip the floating ip support in server side. That said this feature is likely to be a client-side feature.

hongbin (hongbin034)
Changed in zun:
importance: Undecided → High
status: New → Triaged
description: updated
Changed in zun:
assignee: nobody → Deepak Mourya (mourya007)
Revision history for this message
hongbin (hongbin034) wrote :

Unassigned due to no activity since 2018-03-28 .

Changed in zun:
assignee: Deepak Mourya (mourya007) → nobody
Revision history for this message
bharaththiruveedula (bharath-ves) wrote :

I have assigned this to myself. I am working on this

Changed in zun:
assignee: nobody → bharaththiruveedula (bharath-ves)
Revision history for this message
Namrata (sitlani-namrata) wrote :

@bharaththiruveedula, are you working on this, if not can I assign it to myself?

Revision history for this message
bharaththiruveedula (bharath-ves) wrote :

@Namrata, yes you can assign it to yourself

Revision history for this message
Jacob Burckhardt (jburckhardt) wrote :

This bug's title "Support adding/removing floating IPs" made me think that it is impossible for a container to have a floating IP address. Maybe the title should be "Support adding/removing floating IPs by specifying container instead of port".

When searching with google, I could not figure out how to use floating IPs with a simple zun container. I'm an openstack beginner. For the benefit of other beginners, I wanted to show how:

Run: openstack port list

Find which row has your container's private IP address.

Put that row's port id in the following command:

openstack floating ip set <floating IP addr> --port <port id>

Then you can connect from outside openstack to the floating IP address to reach your zun container.

hongbin (hongbin034)
Changed in zun:
assignee: bharaththiruveedula (bharath-ves) → nobody
summary: - Support adding/removing floating IPs
+ Support adding/removing floating IPs by specifying container instead of
+ port
Changed in zun:
assignee: nobody → Zhenguo Niu (niu-zglinux)
Revision history for this message
Zhenguo Niu (niu-zglinux) wrote :
Changed in zun:
status: Triaged → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-zunclient 4.0.0

This issue was fixed in the openstack/python-zunclient 4.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.