<div dir="ltr">hello<div><br></div><div>I think I need to investigate the LoadBalancer and EIP approach, maybe that covers my needs. </div><div><br></div><div>thanks</div><div><br></div><div>br,</div><div>Pekka</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/11 Steven Hardy <span dir="ltr"><<a href="mailto:shardy@redhat.com" target="_blank">shardy@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Sep 11, 2013 at 10:59:25AM +0300, Pekka Rinne wrote:<br>
> hi all<br>
><br>
> If I create AutoScalingGroup by using heat and define in template<br>
> AWS::AutoScaling::AutoScalingGroup, AWS::AutoScaling::LaunchConfiguration,<br>
> AWS::AutoScaling::ScalingPolicy and OS::Ceilometer::Alarms for up&down<br>
> scaling - how is it intended that I can automatically associate Neutron<br>
> Floating IPs to instances created this way? Is there already existing some<br>
> mechanism that can handle this by using heat template?<br>
<br>
</div>The more common topology for this kind of deployment would be an<br>
AutoScalingGroup behind a LoadBalancer resource, with an EIP associated<br>
with the LoadBalancer.<br>
<div class="im"><br>
> As in heat template it is not possible to define directly Neutron ports for<br>
> e.g. LaunchConfiguration.<br>
<br>
</div>However, if your use-case demands it, I think this *should* be possible,<br>
can you expand on why it is not?<br>
<br>
Note that when defining the Neutron port, the ip_address is optional, and<br>
if ommitted, Neutron will allocate the first available fixed IP from the<br>
pool the instance:<br>
<br>
<a href="https://wiki.openstack.org/wiki/Neutron/APIv2-specification#Create_Port" target="_blank">https://wiki.openstack.org/wiki/Neutron/APIv2-specification#Create_Port</a><br>
<div class="im"><br>
> And then when up scaling happens the new instances would need to have<br>
> floating IPs and ports as well. In down scaling network resources could be<br>
> released.<br>
><br>
> The only way I could think of is that I would run stack update or use<br>
> horizon, but its not very practical with auto scaling.<br>
><br>
> Or is there this kind of feature in road maps?<br>
<br>
</div>I think we need to better understand your use-case, associating an EIP with<br>
every instance in a scaling group seems like a somewhat odd requirement,<br>
but as outlined above, I don't think it's impossible if you really need it.<br>
<br>
Steve<br>
</blockquote></div><br></div>