<div dir="ltr">I think I see *my* issue here. I have placed the constraints on the machines (to which the charms are mapped) in my bundle, and not on the actual applications themselves. I guess I shouldn't expect the constraints to be associated with the charms in that case. Does this sound correct?</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 16, 2017 at 8:13 PM, James Beedy <span dir="ltr"><<a href="mailto:jamesbeedy@gmail.com" target="_blank">jamesbeedy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">With the following spaces and subnets <a href="http://paste.ubuntu.com/24192913/" target="_blank">http://paste.ubuntu.<wbr>com/24192913/</a><div><br></div><div>I deploy my haproxy units to the igw subnets, and keep the rest of the components of my applications behind the nat gateway on the nat subnets. I tag the appropriate spaces on the machines in my bundle, but following a bundle deploy, the units don't scale out with the correct constraints (e.g. end up in the wrong space) if I go to add any additional units. As can be seen here (<a href="http://paste.ubuntu.com/24192930/" target="_blank">http://paste.ubuntu.com/<wbr>24192930/</a>) the additional unit of 'feed-web' obviously does not end up on one of my nat gateway subnets hence it has a public ip.   </div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 16, 2017 at 8:01 PM, Tim Penhey <span dir="ltr"><<a href="mailto:tim.penhey@canonical.com" target="_blank">tim.penhey@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 17/03/17 14:23, James Beedy wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Currently, if I scale the units of my application, the new units do not<br>
have the same constraints as the previously deployed units.<br>
</blockquote>
<br></span>
Well, I certainly think they should be carrying over the constraints as the constraints are set on the application, not the unit.<br>
<br>
If this isn't working, I believe it is a bug.<br>
<br>
Can you give an example of what is not working?<br>
<br>
Cheers,<br>
Tim<div class="m_7071572144682712891HOEnZb"><div class="m_7071572144682712891h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Moreover, it<br>
doesn't seem there is anyway to specify constraints for additional<br>
units. I'm thinking the 'add-unit' command needs to be able to accept<br>
constraints, or constraints need to be carried forward for additional<br>
units of the same application.  This is a request for the 'add-unit'<br>
command to accept constraints, or for constraints to grow some sort of<br>
associativity/sensitivity to applications. Also, this is a huge blocker<br>
for me right now. Any insight as to how we might solve this issue would<br>
be greatly appreciated.<br>
<br>
Thanks<br>
<br>
<a href="https://bugs.launchpad.net/juju/+bug/1673639" rel="noreferrer" target="_blank">https://bugs.launchpad.net/juj<wbr>u/+bug/1673639</a><br>
<br>
<br>
</blockquote>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>