<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-01-30 Andrew Laski <span dir="ltr"><<a href="mailto:andrew.laski@rackspace.com" target="_blank">andrew.laski@rackspace.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 01/30/14 at 04:13am, Gary Kotton wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi,<br>
I started to do the work – <a href="https://review.openstack.org/#/c/65691/" target="_blank">https://review.openstack.org/#<u></u>/c/65691/</a>. From the comments on the review it did not seem the right way to go. So I gave up on it. Sorry to not have updated. I personally think that the scheduler should use objects, the reason for this is as follows:<br>
<br></div>
1. One of the aims of the objects is to enable seamless upgrades. If we have this in the gannet, that starts with using only the nova database then we can upgrade to using another database. The object interface will do the translations<br>
2. We may be able to leverage objects to interface with different types of services. That will enable us to provide cross service features far quicker.<br>
</blockquote>
<br>
I'm of the opinion that the scheduler should use objects, for all the reasons that Nova uses objects, but that they should not be Nova objects. Ultimately what the scheduler needs is a concept of capacity, allocations, and locality of resources. But the way those are modeled doesn't need to be tied to how Nova does it, and once the scope expands to include Cinder it may quickly turn out to be limiting to hold onto Nova objects.<br>
</blockquote><div><br></div><div><br></div><div>I can't agree more. Gantt should use its own objects, and sync them with Nova thanks to the Nova API (and novaclient bindings). If we consider Gantt using Nova objects directly, it will result in having a big dependency with Nova on requirements.txt which would be hard to deal with.</div>
<div><br></div><div>All that means we need to define what are Gantt objects (enough flexible for adding other objects later on) and how Gantt should manage the synchronization in between its models and Nova ones.</div><div>
<br></div><div>Thanks,</div><div>-Sylvain <br></div></div></div></div>