Monday 1 June 2015

OpenStack CLI Examples



1)
Goto devstack folder
$ cd devstack

2)
Run rejoin_stack.sh to run all services
$ ./rejion_stack.sh

 
* Press "Ctrl" + "A", then press "D" to exit from "rejion_stack.sh" window.

3)
Export OpenStack admin user credentials
$ source openrc admin


 4)
Run some keystone commands
$ keystone tenant-list


$ keystone user-list


$ keystone role-list

 
$ keystone tenant-get <id>


$ keystone user-get <id>


$ keystone role-get <id>


* To see all tenant, user and role related commands
$ keystone --help | grep tenant


$ keystone --help | grep user


$ keystone --help | grep role


* To see all keystone commands
$ keystone --help


5)
Run some nova commands
$ nova list


$ nova show <id>


 $ nova flavor-list


 $ nova flavor-show <id>


* To see all flavor related commands
$ nova --help | grep flavor


* To see all nova commands
$ nova --help


6)
Run some glance commands
$ glance image-list


 $ glance image-show <id>


* To see all glance commands
$ glance --help


7)
Run some cinder commands
$ cinder list


$ cinder show <id>


* To see all cinder commands
$ cinder --help


8)
Run some nova network commands
 $ nova net-list


$ nova net <id>


9)
Goto horizon dashboad
#http://ip-of-machine-where-openstack-is-installed





* Compare outpot of all above commands with what you are seeing in horizon dashboad.

No comments:

Post a Comment