<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 19, 2015 at 9:29 AM Igor Kalnitsky <<a href="mailto:ikalnitsky@mirantis.com">ikalnitsky@mirantis.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Roman,<br>
<br>
> Not assign addresses to VIPs is a network configuration is being<br>
> serialized for API output.<br>
<br>
AFAIK, that's not truth. Fuel UI and OSTF relies only on *public* VIP.<br>
So we can keep only *public* VIP, and do not assign / show others.<br>
<br>
> Check number of IP addresses wherever it is possible to "spoil" network<br>
> configuration: when a role get’s assigned to a node, when network<br>
> changes or network templates are applied.<br>
<br>
It won't work that way. What if you enable plugin when all roles are<br>
assigned? What if you change networks, and now it's not enough IPs? Or<br>
what if enable plugin that requires 5 VIPs in public network by<br>
default, and it's not enough. But by using network templates you<br>
assign this netrole to management network?<br>
<br>
>From what I can say the proposed approach requires to put checks<br>
here-and-there around the code. Let's do not overcomplicate things<br>
without real need.<br>
<br>
So let me share my thoughts regarding this issue.<br>
<br>
* We shouldn't *allocate* VIPs when we make GET request on network<br>
configuration handler. It should return only *already allocated* VIPs<br>
and no more.</blockquote><div><br></div><div>I agree, GET handler should not allocate vips, but the problem lies that VIP's need to already be allocated. They need to be allocated on network update, or when a node role requiring one is added to the environment. Not knowing the address until serialization for deployment is too late. The user needs feedback on the network page. 1) They need to know how many vip's are on each network (eventually they should be able to set these, but that is slightly off topic) 2) When saving a change they need to know that they have ENOUGH IP's for ALL of the currently configured VIPs and Nodes. Clicking deploy and getting "You don't have enough addresses start over" with out any feedback on why is not valuable to the user and they go back to settings pages, count their nodes, and then are "yup, there are enough, fuel is broken". </div><div><br></div><div>Further compacting the issue, now plugins and tasks are going to start to be able to configure more VIP addresses. In this case it will become even more confusing as to how many VIP addresses (and from which network) they come from with out good feedback up front. The only way we can do this is generating the VIP addresses as soon as we have enough data for them, not at deployment serialization.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* VIP allocation should be performed when we run deployment.<br></blockquote><div>No, see above </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* Before deployment checks should fail, if there's not enough VIPs or<br>
other resources. So users fix them, and try again.<br></blockquote><div>No, see above, its a bad User eXperience (UX) and needs to be stopped. This is why Roman raised the issue. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* Both Fuel UI and OSTF needs VIPs only when cluster is deployed, and<br>
it's safe to return allocated VIPs on that stage.<br></blockquote><div>No, Again, this is too late. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
So what do you think guys?<br>
<br>
Thanks,<br>
Igor<br>
<br>
On Fri, Oct 16, 2015 at 5:25 PM, Roman Prykhodchenko <<a href="mailto:me@romcheg.me" target="_blank">me@romcheg.me</a>> wrote:<br>
> Hi folks!<br>
><br>
> I’ve been discussing several bugs [1-3] with some folks and noticed that they share the same root cause which is that network serialization fails, if there’s not enough IP addresses in all available ranges of one of the available networks to assign them to all VIPs. There are several possible solutions for this issue:<br>
><br>
> a. Not assign addresses to VIPs is a network configuration is being serialized for API output.<br>
> A lot of external tools and modules, i. e., OSTF, rely on that information so this relatively small change in Nailgun will require big cross-components changes. Therefore this change can only be done as a feature but it seems to be the way this issue must be fixed.<br>
><br>
> b. Leave some VIPs without IP addresses<br>
> If network configuration is generated for API output it is possible to leave some VIPs without IP addresses assigned. This will only create more mess around Nailgun and bring more issues that it will resolve.<br>
><br>
> c. Check number of IP addresses wherever it is possible to "spoil" network configuration: when a role get’s assigned to a node, when network changes or network templates are applied.<br>
><br>
><br>
> The proposal is to follow [c] as a fast solution and file a blueprint for [a]. Opinions?<br>
><br>
><br>
> 1 <a href="https://bugs.launchpad.net/fuel/+bug/1487996" rel="noreferrer" target="_blank">https://bugs.launchpad.net/fuel/+bug/1487996</a><br>
> 2 <a href="https://bugs.launchpad.net/fuel/+bug/1500394" rel="noreferrer" target="_blank">https://bugs.launchpad.net/fuel/+bug/1500394</a><br>
> 3 <a href="https://bugs.launchpad.net/fuel/+bug/1504572" rel="noreferrer" target="_blank">https://bugs.launchpad.net/fuel/+bug/1504572</a><br>
><br>
><br>
> - romcheg<br>
><br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div></div><div dir="ltr">-- <br></div><div dir="ltr">--<div>Andrew Woodward</div><div>Mirantis</div><div>Fuel Community Ambassador</div><div>Ceph Community </div></div>