<font size=2 face="sans-serif">Hello Michael,</font>
<br>
<br><font size=2 face="sans-serif">Many thanks for your response. I somehow
found this code base (in installed openstack instance) and I inserted debug
steps (opening a log file and printing statements into it) to see if the
code flows through the file (specifically file '/usr/share/pyshared/nova/compute/api.py'
in function 'def _create_instance'). Also I checked stat of all files to
see if they get accessed when I do the provisioning. But neither my debug
worked nor I could get the access stat of file. </font>
<br>
<br><font size=2 face="sans-serif">So I have doubt. either these are not
the files (but as you pointed out, these are the correct file) or I have
to insert debug statements in source files and build them again to see
effect.</font>
<br>
<br><font size=2 face="sans-serif">Let me do changes in source code, build
it and see what happens. If you have any comments please let me know.</font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br>
<br><font size=2 face="sans-serif">Regards</font>
<br><font size=2 face="sans-serif">Deepak</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:
</font><font size=1 face="sans-serif">Michael Still <mikal@stillhq.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">Deepak Jeswani1/India/IBM@IBMIN</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:
</font><font size=1 face="sans-serif">OpenStack general mailing
list <openstack@lists.launchpad.net></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">04/29/2013 03:57 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">Re: [Openstack]
Vm provision code flow in openstack</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by:
</font><font size=1 face="sans-serif">mikalstill@gmail.com</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>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/*).</font>
<br>
<br><font size=3>Also, you'd be better off browing git for the source code
(</font><a href=http://github.com/openstack/nova.git><font size=3 color=blue><u>http://github.com/openstack/nova.git</u></font></a><font size=3>)
instead of the system installed files.</font>
<br>
<br><font size=3>Cheers,</font>
<br><font size=3>Michael</font>
<br><font size=3><br>
</font>
<br><font size=3>On Mon, Apr 29, 2013 at 7:14 PM, Deepak Jeswani1 <</font><a href=mailto:dejeswan@in.ibm.com target=_blank><font size=3 color=blue><u>dejeswan@in.ibm.com</u></font></a><font size=3>>
wrote:</font>
<br><font size=3 face="sans-serif">Hello everyone,</font><font size=3>
<br>
</font><font size=3 face="sans-serif"><br>
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><font size=3><br>
</font><font size=3 face="sans-serif"><br>
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><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
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><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
Thanks</font><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
Regards<br>
Deepak</font><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
Deepak Jeswani</font><font size=3> </font><font size=3 face="sans-serif"><br>
Software Engineer,</font><font size=3> </font><font size=3 face="sans-serif"><br>
Distributed Systems Group,</font><font size=3> </font><font size=3 face="sans-serif"><br>
IBM Research-India</font><font size=3> <br>
<br>
<br>
_______________________________________________<br>
Mailing list: </font><a href=https://launchpad.net/~openstack target=_blank><font size=3 color=blue><u>https://launchpad.net/~openstack</u></font></a><font size=3><br>
Post to : </font><a href=mailto:openstack@lists.launchpad.net><font size=3 color=blue><u>openstack@lists.launchpad.net</u></font></a><font size=3><br>
Unsubscribe : </font><a href=https://launchpad.net/~openstack target=_blank><font size=3 color=blue><u>https://launchpad.net/~openstack</u></font></a><font size=3><br>
More help : </font><a href=https://help.launchpad.net/ListHelp target=_blank><font size=3 color=blue><u>https://help.launchpad.net/ListHelp</u></font></a><font size=3><br>
</font>
<br>
<br>