Re: [Openstack] OpenStack + Nova list, nova show location

2012-10-26 Thread Rosa, Andrea (HP Cloud Services)
Hi

As reported below nova command are processed by the nova client, you have to 
look for it.
Cheers
--
Andrea Rosa

From: openstack-bounces+andrea.rosa=hp@lists.launchpad.net 
[mailto:openstack-bounces+andrea.rosa=hp@lists.launchpad.net] On Behalf Of 
Desta Haileselassie Hagos
Sent: 26 October 2012 09:52
To: openstack@lists.launchpad.net
Subject: [Openstack] OpenStack + Nova list, nova show location


Dear All,

Would you kindly help me where i can find the scripts for nova list and nova 
show

I just can't find it in /user/bin/


I only have the rapper class

#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 
'python-novaclient==2012.1','console_scripts','nova'
__requires__ = 'python-novaclient==2012.1'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
sys.exit(
load_entry_point('python-novaclient==2012.1', 'console_scripts', 
'nova')()
)


With best regards,



___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] OpenStack + Nova list, nova show location

2012-10-26 Thread Qin, Xiaohong
Hi,

This is just an entering point to load all client side nova code, the nova 
list CLI eventually invokes the following code in your stack directory,

python-novaclient/novaclient/v1_1/shell.py

Inside this file, you can see the following function,

def do_list

That prints out the list of VMs.

This is the code on client side; the other piece of code is on the server side 
through nova api service.

Dennis Qin

From: openstack-bounces+xiaohong.qin=emc@lists.launchpad.net 
[mailto:openstack-bounces+xiaohong.qin=emc@lists.launchpad.net] On Behalf 
Of Desta Haileselassie Hagos
Sent: Friday, October 26, 2012 7:01 AM
To: openstack@lists.launchpad.net; Rosa, Andrea (HP Cloud Services)
Subject: [Openstack] OpenStack + Nova list, nova show location


Dear All,

I still couldn't find the exact location where this nova list and nova show 
 commands are executed.

Would you please explain me a bit what this load_entry_point stuff is doing? 
and Where exactly it is loading these parameters???

if __name__ == '__main__':
sys.exit(
load_entry_point('python-novaclient==2012.1', 'console_scripts', 
'nova')()
 )


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] OpenStack + Nova list, nova show location

2012-10-26 Thread Desta Haileselassie Hagos
Dear Qin Xiaohong,

Thank you very so much indeed. That's EXACTLY what I was looking for.


Cheers,

Desta


On Fri, Oct 26, 2012 at 6:17 PM, Qin, Xiaohong xiaohong@emc.com wrote:

 Hi,

 ** **

 This is just an entering point to load all client side nova code, the
 “nova list” CLI eventually invokes the following code in your stack
 directory,

 ** **

 python-novaclient/novaclient/v1_1/shell.py

 ** **

 Inside this file, you can see the following function,

 ** **

 def do_list

 ** **

 That prints out the list of VMs.

 ** **

 This is the code on client side; the other piece of code is on the server
 side through nova api service.

 ** **

 Dennis Qin 

 ** **

 *From:* openstack-bounces+xiaohong.qin=emc@lists.launchpad.net[mailto:
 openstack-bounces+xiaohong.qin=emc@lists.launchpad.net] *On Behalf Of
 *Desta Haileselassie Hagos
 *Sent:* Friday, October 26, 2012 7:01 AM
 *To:* openstack@lists.launchpad.net; Rosa, Andrea (HP Cloud Services)
 *Subject:* [Openstack] OpenStack + Nova list, nova show location

 ** **

 ** **

 Dear All,

 I still couldn't find the exact location where this nova list and nova
 show  commands are executed.

 Would you please explain me a bit what this load_entry_point stuff is
 doing? and Where exactly it is loading these parameters???

 

 if __name__ == '__main__':
 sys.exit(
 load_entry_point('python-novaclient==2012.1', 'console_scripts',
 'nova')()
  )


 

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp