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: [email protected] 
[mailto:[email protected]] On Behalf 
Of Desta Haileselassie Hagos
Sent: Friday, October 26, 2012 7:01 AM
To: [email protected]; 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     : [email protected]
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to