<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>
<div>The subnet_id on the pool specifies what networks to plug when everything is first configured.Iif you add a member to the pool that is outside this subnet, there may not be a route to it, since it is probably on a different network that is not correctly
 plugged on the LB host. (I hope this is correct, it is from memory from a bit ago.)</div>
<div><br>
</div>
<div>
<div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>--Adam</div>
<div><br>
</div>
</div>
<div><a href="https://keybase.io/rm_you">https://keybase.io/rm_you</a></div>
<div><br>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Wanjing Xu <<a href="mailto:wanjing_xu@hotmail.com">wanjing_xu@hotmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>OpenStack Development Mailing List not for usage questions <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, April 30, 2015 at 5:15 PM<br>
<span style="font-weight:bold">To: </span>OpenStack Development Mailing List not for usage questions <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [openstack-dev] [Neutron][LBaaS] Why do we need to select subnet when creating a pool?<br>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div><style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div class="hmmessage">
<div dir="ltr">Thanks Bharath for replying.  But when I add members , I can successfully specify a member ip address from a different pool than the subnet when creating pool, hence the confusion.  And theoretically, why would members for a pool have to belong
 to the same subnet?  <br>
<br>
<div>
<hr id="stopSpelling">
Date: Tue, 28 Apr 2015 17:50:16 -0700<br>
From: <a href="mailto:bharath.stacker@gmail.com">bharath.stacker@gmail.com</a><br>
To: <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a><br>
Subject: Re: [openstack-dev] [Neutron][LBaaS] Why do we need to select subnet when creating a pool?<br>
<br>
<div dir="ltr">Hi Wanjing,
<div><br>
</div>
<div>As it's Juno, I assume you are using LBaaSv1. If that's the case, as Brandon pointed, there's no subnet-id switch in the "neutron lb-member-create" command. </div>
<div><br>
</div>
<div>Having said that you still use the subnet-id in both the following commands:</div>
<div>neutron lb-pool-create</div>
<div>neutron lb-vip-create</div>
<div><br>
</div>
<div>You should note that the subnet id in each of the above commands serve different purpose. In the case of "lb-pool-create", the subnet-id is provided to make sure that only members belonging to the specified subnet-id could be added to the pool. </div>
<div><br>
</div>
<div>However, the subnet id in the "lb-vip-create" command specifies the network range from which an ip is chosen to be assigned as a vip. </div>
<div><br>
</div>
<div>Thus, you could use different subnets for both the above commands and as long as you have route between those two, the load balancing works.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Bharath.</div>
<div><br>
</div>
<div>
<div class="ecxgmail_extra"><br>
<div class="ecxgmail_quote">On Tue, Apr 28, 2015 at 9:19 AM, Brandon Logan <span dir="ltr">
<<a href="mailto:brandon.logan@rackspace.com" target="_blank">brandon.logan@rackspace.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif;">
​So someone pointed out that you were using lbaas for Juno, which would mean you aren't using LBaaS V2.  So you're using V1.  V1 member's do not take subnet_id as an attribute.  Let me know how you are making your requests.<br>
<br>
<br>
<br>
Thanks,<br>
<br>
Brandon<br>
<br>
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif;">
<hr style="display:inline-block;width:98%;">
<div dir="ltr"><font face="Calibri,sans-serif" color="#000000" style="font-size:11pt;"><b>From:</b> Brandon Logan <<a href="mailto:brandon.logan@RACKSPACE.COM" target="_blank">brandon.logan@RACKSPACE.COM</a>><br>
<b>Sent:</b> Monday, April 27, 2015 8:40 PM<span><br>
<b>To:</b> OpenStack Development Mailing List not for usage questions<br>
</span><b>Subject:</b> Re: [openstack-dev] [Neutron][LBaaS] Why do we need to select subnet when creating a pool?</font>
<div> </div>
</div>
<div>
<div>
<div>I'm assuming you are using LBaaS V2.  With that assumption, I'm not sure how you are having to select subnet on the pool.  It's not supposed to be a field at all on the pool object.  subnet_id is required on the member object right now, but that's something
 I and others think should just be optional, and if not specified then it's assumed that member can be reached with whatever has already been setup.​  Another option is pool could get a subnet_id field in the future and all members that are created without
 subnet_id are assumed to be on the pool's subnet_id, but I'm getting ahead of myself and this has no bearing on your current issue.<br>
<br>
<br>
<br>
Could you tell me how you are making your requests? CLI? REST directly?<br>
<br>
<div style="color:rgb(33,33,33);">
<hr style="display:inline-block;width:98%;">
<div dir="ltr"><font face="Calibri,sans-serif" color="#000000" style="font-size:11pt;"><b>From:</b> Wanjing Xu <<a href="mailto:wanjing_xu@hotmail.com" target="_blank">wanjing_xu@hotmail.com</a>><br>
<b>Sent:</b> Monday, April 27, 2015 12:57 PM<br>
<b>To:</b> OpenStack Development Mailing List not for usage questions<br>
<b>Subject:</b> [openstack-dev] [Neutron][LBaaS] Why do we need to select subnet when creating a pool?</font>
<div> </div>
</div>
<div>
<div dir="ltr">So when I use Haproxy for LBaaS for Juno, there is a subnet mandatary field that I need to fill in when creating a pool, and later on when I add members, I can use a different subnet(or simply just enter the ip of the member), when adding vip,
 I can still select a third subnet.  So what is the usage of the first subnet that I used to create pool?  There is no port created for this pool subnet.  I can see that a port is created for the vip subnet that the loadbalancer instance is binding to.
<div><br>
</div>
<div>Regards!</div>
<div><br>
</div>
<div>Wanjing Xu</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://lists.openstack.org?subject:unsubscribe" target="_blank">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe:
<a href="mailto:OpenStack-dev-request@lists.openstack.org">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></div>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>