<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hmm, not sure I follow the concern, Russell.  How is that any different from putting a VM into the group when it’s booted as is done today?  This simply defers the ‘group insertion time’ to some time after initial the VM’s been spawned, so I’m not sure this creates anymore race conditions than what’s already there [1].<div><br></div><div>[1] Sure, the to-be-added VM could be in the midst of a migration or something, but that would be pretty simple to check make sure its task state is None or some such.<br><div><br></div><div>- Joe<br><div><div>On Sep 10, 2014, at 5:16 PM, Russell Bryant <<a href="mailto:rbryant@redhat.com">rbryant@redhat.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br><br><blockquote type="cite">On Sep 10, 2014, at 2:03 PM, Joe Cropper <<a href="mailto:cropper.joe@gmail.com">cropper.joe@gmail.com</a>> wrote:<br><br>I agree, Chris.  I think a number of folks put in a lot of really great work into the existing server groups and there has been a lot of interest on their usage, especially given that the scheduler already has some constructs in place to piggyback on them.<br><br>I would like to craft up a blueprint proposal for Kilo to add two simple extensions to the existing server group APIs that I believe will make them infinitely more usable in any ‘real world’ scenario.  I’ll put more details in the proposal, but in a nutshell:<br><br>1. Adding a VM to a server group<br>Only allow it to succeed if its policy wouldn’t be violated by the addition of the VM<br><br></blockquote><br>I'm not sure that determining this at the time of the API request is possible due to the parallel and async nature of the system. I'd love to hear ideas on how you think this might be done, but I'm really not optimistic and would rather just not go down this road.<span class="Apple-converted-space"> </span><br><br><blockquote type="cite">2. Removing a VM from a server group<br>Just allow it<br><br>I think this would round out the support that’s there and really allow us to capitalize on the hard work everyone’s already put into them.<br><br>- Joe<br><br><blockquote type="cite">On Aug 26, 2014, at 6:39 PM, Chris Friesen <<a href="mailto:chris.friesen@windriver.com">chris.friesen@windriver.com</a>> wrote:<br><br><blockquote type="cite">On 08/25/2014 11:25 AM, Joe Cropper wrote:<br>I was thinking something simple such as only allowing the add<br>operation to succeed IFF no policies are found to be in violation...<br>and then nova wouldn't need to get into all the complexities you<br>mention?<br></blockquote><br>Personally I would be in favour of this...nothing fancy, just add it if it already meets all the criteria.  This is basically just a database operation so I would hope we could make it reliable in the face of simultaneous things going on with the instance.<br><br><blockquote type="cite">And remove would be fairly straightforward as well since no<br>constraints would need to be checked.<br></blockquote><br>Agreed.<br><br>Chris<br><br>_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br></blockquote><br><br>_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br></blockquote>_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></div></blockquote></div><br></div></div></body></html>