Re: [openstack-dev] Tracing a request (NOVA)

2015-08-28 Thread Vedsar Kushwaha
*i just want to understand as to how the request goes from the api-call to
the nova-api and so on after that.*
To answer so on after that, in addition to josh answer, you can also look
into
http://ilearnstack.com/2013/04/26/request-flow-for-provisioning-instance-in-openstack/
.

Now to answer first part, i just want to understand as to how the request
goes from the api-call to the nova-api:
You can look into *http://developer.openstack.org/api-ref.html
http://developer.openstack.org/api-ref.html*, particularly in
*http://developer.openstack.org/api-ref-compute-v2.1.html
http://developer.openstack.org/api-ref-compute-v2.1.html*


On Sat, Aug 29, 2015 at 8:39 AM, Joshua Harlow harlo...@outlook.com wrote:

 I made the following some time ago,

 https://wiki.openstack.org/wiki/RunInstanceWorkflows

 https://wiki.openstack.org/w/images/a/a9/Curr-run-instance.png

 That may be useful for u, (it may also not be that up to date),

 Cheers,

 Josh

 Dhvanan Shah wrote:

 Hi,

 I'm trying to trace a request made for an instance and looking at the
 flow in the code.
 I'm just trying to understand better how the request goes from the
 dashboard to the nova-api , to the other internal components of nova and
 to the scheduler and back with a suitable host and launching of the
 instance.

 i just want to understand as to how the request goes from the api-call
 to the nova-api and so on after that.
 I have understood the nova-scheduler and in that, the filter_scheduler
 receives something called request_spec that is the specifications of the
 request that is made, and I want to see where this comes from. I was not
 very successful in reverse engineering this.

 I could use some help as I want to implement a scheduling algorithm of
 my own but for that I need to understand how and where the requests come
 in and how the flow works.

 If someone could guide me as to where i can find help or point in some
 direction then it would be of great help.
 --
 Dhvanan Shah

 __
 OpenStack Development Mailing List (not for usage questions)
 Unsubscribe:
 openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


 __
 OpenStack Development Mailing List (not for usage questions)
 Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Vedsar Kushwaha
SDE@Amazon Development Center
Past - Indian Institute of Science
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] LOG.debug()

2015-02-18 Thread Vedsar Kushwaha
Thanks for immediate reply. I'm aware of logging_monitoring.html
http://docs.openstack.org/openstack-ops/content/logging_monitoring.html
and /var/log. But the information is not there.

LOG.debug(%(host_state)s does not have %(requested_ram)s MB  usable ram,
it only has %(usable_ram)s MB usable ram., {'host_state': host_state, '
requested_ram': requested_ram, 'usable_ram': usable_ram}
).

I wanted to know where this information is storing, when filter returns
false.

On Wed, Feb 18, 2015 at 8:26 PM, Gary Kotton gkot...@vmware.com wrote:

  Hi,
 Please see
 http://docs.openstack.org/openstack-ops/content/logging_monitoring.html
 If you have installed from packages this may be in
 /var/log/nova/nova-compute.log
 Thanks
 Gary

   From: Vedsar Kushwaha vedsarkushw...@gmail.com
 Reply-To: OpenStack List openstack-dev@lists.openstack.org
 Date: Wednesday, February 18, 2015 at 4:52 PM
 To: OpenStack List openstack-dev@lists.openstack.org
 Subject: [openstack-dev] LOG.debug()

   Hello World,

  I'm new to openstack and python too :).

 In the file:

 https://github.com/openstack/nova/blob/master/nova/scheduler/filters/ram_filter.py
 https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_openstack_nova_blob_master_nova_scheduler_filters_ram-5Ffilter.pyd=AwMFAwc=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEsr=VlZxHpZBmzzkWT5jqz9JYBk8YTeq9N3-diTlNj4GyNcm=DJEz4nE1qVf12YKxUwG0LN0yBMtl3warl36Oqq4Vqpos=ONUtXkRDFMM8mfVHff8Fc3zFe9AdJohiOZBUe7P6P3Ie=

  where does the LOG.debug() is storing the information?



 --
   Vedsar Kushwaha
 M.Tech-Computational Science
 Indian Institute of Science

 __
 OpenStack Development Mailing List (not for usage questions)
 Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Vedsar Kushwaha
M.Tech-Computational Science
Indian Institute of Science
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] LOG.debug()

2015-02-18 Thread Vedsar Kushwaha
Hello World,

I'm new to openstack and python too :).

In the file:
https://github.com/openstack/nova/blob/master/nova/scheduler/filters/ram_filter.py

where does the LOG.debug() is storing the information?



-- 
Vedsar Kushwaha
M.Tech-Computational Science
Indian Institute of Science
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] LOG.debug()

2015-02-18 Thread Vedsar Kushwaha
thanks. that worked...:)

On Wed, Feb 18, 2015 at 9:30 PM, Jordan Pittier jordan.pitt...@scality.com
wrote:

 Hi,
 Also, make sure you have :
 debug = True
 verbose = True
 in the [DEFAULT] section of your nova.conf

 Jordan

 On Wed, Feb 18, 2015 at 3:56 PM, Gary Kotton gkot...@vmware.com wrote:

  Hi,
 Please see
 http://docs.openstack.org/openstack-ops/content/logging_monitoring.html
 If you have installed from packages this may be in
 /var/log/nova/nova-compute.log
 Thanks
 Gary

   From: Vedsar Kushwaha vedsarkushw...@gmail.com
 Reply-To: OpenStack List openstack-dev@lists.openstack.org
 Date: Wednesday, February 18, 2015 at 4:52 PM
 To: OpenStack List openstack-dev@lists.openstack.org
 Subject: [openstack-dev] LOG.debug()

   Hello World,

  I'm new to openstack and python too :).

 In the file:

 https://github.com/openstack/nova/blob/master/nova/scheduler/filters/ram_filter.py
 https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_openstack_nova_blob_master_nova_scheduler_filters_ram-5Ffilter.pyd=AwMFAwc=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEsr=VlZxHpZBmzzkWT5jqz9JYBk8YTeq9N3-diTlNj4GyNcm=DJEz4nE1qVf12YKxUwG0LN0yBMtl3warl36Oqq4Vqpos=ONUtXkRDFMM8mfVHff8Fc3zFe9AdJohiOZBUe7P6P3Ie=

  where does the LOG.debug() is storing the information?



 --
   Vedsar Kushwaha
 M.Tech-Computational Science
 Indian Institute of Science

 __
 OpenStack Development Mailing List (not for usage questions)
 Unsubscribe:
 openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



 __
 OpenStack Development Mailing List (not for usage questions)
 Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Vedsar Kushwaha
M.Tech-Computational Science
Indian Institute of Science
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev