Wednesday, 3 June 2015

OpenStack Keystone Operations Using CLI



Keystone Operations using CLI

1) Create a project

anusreee@anusreee-VirtualBox:~/devstack$ keystone tenant-create --name accounting




Then list of all project using the command:

anusreee@anusreee-VirtualBox:~/devstack$ keystone tenant-list


2) Create a user

 anusreee@anusreee-VirtualBox:~/devstack$ keystone user-create --name mily --pass mily123 --enabled true



Then list all the users using the command :

anusreee@anusreee-VirtualBox:~/devstack$ keystone user-list



3) Add the user "mily" to the project "accounting" with "member" role.

anusreee@anusreee-VirtualBox:~/devstack$ keystone user-role-add --user 4a64febe98c8458990dd1c30914092c8 --role 705cd9b1bd494d83848b8252d3609ddc --tenant 1233d68292f94f8e9f422c47fe7270c


ie: keystone user-role-add --user <user-id> --role <role-id> --tenant <tenant-id>



4)
After add the user "mily" to the project "accounting" with role "member" we have to go to browser and login as the user "mily"




After login: