<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Option 5:<br>
<br>
If the implementation works good, but its just a confusing ui, you could always change the code so it filters out the floating-ip ports from view. Make them a pure implementation detail that a user never sees.<br>
<br>
Kevin<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF487762"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Salvatore Orlando [sorlando@nicira.com]<br>
<b>Sent:</b> Tuesday, January 14, 2014 3:50 PM<br>
<b>To:</b> OpenStack Development Mailing List<br>
<b>Subject:</b> [openstack-dev] [Neutron] About ports backing floating IPs<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<p class="">TL;DR;<br>
I have been looking back at the API and found out that it's a bit weird how floating IPs are mapped to ports. This might or might not be an issue, and several things can be done about it.<br>
The rest of this post is a boring description of the problem and a possibly even more boring list of potential solutions.</p>
<p class="">Floating IPs are backed by ports on the external network where they are implemented; while there are good reason for doing so, this has some seemingly weird side effects, which are usually not visible to tenants as only admins are allowed (by default)
to view the ports backing the floating IPs.<br>
</p>
<p class="">Assigning an external port to a floating IP is an easy way for ensuring the IP address used for the floating IP is then not reused for other allocation purposes on the external network; indeed admin users might start VMs on external networks as
well. Conceptually, it is also an example of port-level insertion for a network service (DNAT/SNAT).</p>
<p class="">However these are the tricky aspects:<br>
- IP Address changes: The API allows IP address updates for a floating IP port. However as it might be expected, the IP of the floating IP entities does not change, as well as the actual floating IP implemented in the backend (l3 agent or whatever the plugin
uses).<br>
- operational status: It is always down at least for plugins based on OVS/LB agents. This is because there is no actual VIF backing a floating IP, so there is nothing to wire.<br>
- admin status: updating it just has no effect at all<br>
- Security groups and allowed address pairs: The API allows for updating them, but it is not clear whether something actually happens in the backend, and I'm even not entirely sure this makes sense at all. </p>
<p class="">Why these things happen, whether it's intended behaviour, and whether it's the right behaviour it's debatable.</p>
<p class="">From my perspective, this leads to inconsistent state, as:<br>
- the address reported in the floating IP entity might differ from the one on the port backing the floating IP<br>
- operational status is wrongly represented as down<br>
- expectations concerning operations on the port are not met (eg: admin status update)<br>
And I reckon state inconsistencies should always be avoided.</p>
<p class="">Considering the situation described above, there are few possible options.<br>
</p>
<p class="">1- don't do anything, since the port backing the floating IP is hidden from the tenant.<br>
This might be ok provided that a compelling reason for ignoring entities not visible to tenants is provided.<br>
However it has to be noted that Neutron authZ logic, which is based on openstack.common would allow deployers to change that (*)</p>
<p class="">2- remove the need for a floating IP to be backed from a port<br>
While this might seem simple, this has non-trivial implications as IPAM logic would need to become aware of floating IPs, and should be discussed further.</p>
<p class="">3- leverage policy-based APIs, and transform floating IPs in a "remote access policy"<br>
In this way the floating IP will become a policy to apply to a port; it will be easier to solve conflicts with security policies and it will be possible to just use IPs (or addressing policies) configured on the port.<br>
However, this will be hardly backward compatible, and its feasibility depends on the outcome of the more general discussions on policy-based APIs for neutron.</p>
<p class="">4- Document the current behaviour<br>
This is something which is probably worth doing anyway until a solution is agreed upon</p>
<p class="">Summarising, since all the 'technical' options sounds not feasible for the upcoming Icehouse release, it seems worth at least documenting the current behaviour, and start a discussion on whether we should do something about this and, if yes, what.<br>
</p>
<p class="">Regards and apologies for the long post,<br>
Salvatore</p>
<p class="">(*) As an interesting corollary, the flexibility of making authZ policies super-configurable causes the API to be non-portable. However, this is a subject for a different discussion.<br>
</p>
</div>
</div>
</div>
</div>
</body>
</html>