[Openstack] OpenStack + Nova list, nova show location
Qin, Xiaohong
Xiaohong.Qin at emc.com
Fri Oct 26 16:17:58 UTC 2012
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.com at lists.launchpad.net [mailto:openstack-bounces+xiaohong.qin=emc.com at lists.launchpad.net] On Behalf Of Desta Haileselassie Hagos
Sent: Friday, October 26, 2012 7:01 AM
To: openstack at 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')()
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121026/7bc4146c/attachment.html>
More information about the Openstack
mailing list