<div dir="ltr">So, there are a few things which happen here. VM provisioning is handled by the compute driver (checkout run_instance in nova/compute/manager.py). Scheduling however is handled by the scheduler, which has a plugin system (checkout nova/scheduler/*).<div>
<br></div><div>Also, you'd be better off browing git for the source code (<a href="http://github.com/openstack/nova.git">http://github.com/openstack/nova.git</a>) instead of the system installed files.</div><div><br></div>
<div>Cheers,</div><div>Michael</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 29, 2013 at 7:14 PM, Deepak Jeswani1 <span dir="ltr"><<a href="mailto:dejeswan@in.ibm.com" target="_blank">dejeswan@in.ibm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="sans-serif">Hello everyone,</font>
<br>
<br><font face="sans-serif">I am trying to understand the flow of
control in code in openstack for provisioning a VM. I want to understand
it in order to do modify scheduler module as per our requirements. </font>
<br>
<br><font face="sans-serif">I have found the code base which, if
I am not wrong, is kept in /usr/share/pyshared/nova/* directory but I can't
see .py files getting accessed or executed if I provision a VM.</font>
<br>
<br><font face="sans-serif">Can someone please help me to understand
the flow of code or give me pointers from where I can understand it. I
hope even if I know the starting point (REST handler for VM provisioning
call) in code then I will be able to trace it.</font>
<br>
<br><font face="sans-serif">Thanks</font>
<br>
<br><font face="sans-serif">Regards<br>
Deepak</font>
<br>
<br><font face="sans-serif">Deepak Jeswani</font>
<br><font face="sans-serif">Software Engineer,</font>
<br><font face="sans-serif">Distributed Systems Group,</font>
<br><font face="sans-serif">IBM Research-India</font>
<br>
<br><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div>