+----------------------------------+--------------------+\n| ID | Name |\n+----------------------------------+--------------------+\n| 3bff612b9db54c79b03a1620fdec0401 | demo |\n| 430aef95763e405bb65ff00d92c4299a | alt_demo |\n| a95d364c2b564742b1d3e7da4c8e294e | admin |\n| f008ce267bc84bbd882cfffc777773c1 | invisible_to_admin |\n| fc5d82af15c14453a8ea98fc890b81c6 | service |\n+----------------------------------+--------------------+\n<\/code><\/pre>\n\n\n\nSo next, let’s see:<\/p>\n\n\n\n
\nHow to Create OpenStack Project<\/a><\/li>\n\n\n\nHow to Delete OpenStack Project<\/a><\/li>\n<\/ul>\n\n\n\nHow to Create OpenStack Project<\/h3>\n\n\n\n There are two ways in which you can create Openstack project;.<\/p>\n\n\n\n
\nCreate OpenStack project on the Horizon<\/a><\/li>\n\n\n\nCreate OpenStack project from command line<\/a><\/li>\n<\/ul>\n\n\n\nCreate OpenStack project on the Horizon<\/h4>\n\n\n\n Login to OpenStack Horizon as admin and;<\/p>\n\n\n\n
\nnavigate to Identity > Projects<\/strong>.<\/li>\n<\/ul>\n\n\n\n <\/figure>\n\n\n\n\nClick Create Project<\/strong>.<\/li>\n\n\n\nUnder Project information<\/strong>, enter the name of the project, description and ensure it is enabled<\/strong>.<\/li>\n<\/ul>\n\n\n\n
<\/figure><\/div>\n\n\n\nUnder Project Members, you can select which user from the list will have access to the project. Click the +<\/strong> plus button besides the username to give that specific user access to the Project.<\/li>\n\n\n\nNext, click on the drop down button against selected user to choose what access privileges are granted to the user. For example, in our example project, we have given admin user admin rights on the project.<\/li>\n<\/ul>\n\n\n\n <\/figure>\n\n\n\n\nSimilarly, under Project Groups, select groups to grant access and specific rights for that group on the project.<\/li>\n<\/ul>\n\n\n\n <\/figure>\n\n\n\n\nClick Create Project<\/strong> to create OpenStack project on Horizon.<\/li>\n\n\n\nYour project should now be listed under Identity > Projects.<\/li>\n<\/ul>\n\n\n\n <\/figure>\n\n\n\n\nUnder Actions<\/strong> tab, you can be able to update\/modify your project.<\/li>\n<\/ul>\n\n\n\n <\/figure>\n\n\n\nYou can as well confirm from the command line;<\/p>\n\n\n\n
openstack project list<\/code><\/pre>\n\n\n\nCreate OpenStack project from command line<\/h4>\n\n\n\n To create OpenStack project from command line, first load the OpenStack access credentials;<\/p>\n\n\n\n
source admin-openrc.sh<\/code><\/pre>\n\n\n\nNext, you can use the command below to create OpenStack project from the command line;<\/p>\n\n\n\n
openstack project create<\/code><\/pre>\n\n\n\nYou can obtain the command help by passing the -h\/--help<\/code><\/strong> option.<\/p>\n\n\n\nopenstack project create -h<\/code><\/pre>\n\n\n\nusage: openstack project create [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN] [--noindent] [--prefix PREFIX] [--max-width <integer>]\n [--fit-width] [--print-empty] [--domain <domain>] [--parent <project>] [--description <description>]\n [--enable | --disable] [--property <key=value>] [--or-show] [--immutable | --no-immutable] [--tag <tag>]\n <project-name><\/code><\/pre>\n\n\n\nFor example, to create an OpenStack project called kifarunix-demo<\/strong>;<\/p>\n\n\n\nopenstack project create --domain default --description \"Kifarunix-demo Project\" --enable kifarunix-demo<\/code><\/pre>\n\n\n\nSample command output;<\/p>\n\n\n\n
+-------------+----------------------------------+\n| Field | Value |\n+-------------+----------------------------------+\n| description | Kifarunix-demo Project |\n| domain_id | default |\n| enabled | True |\n| id | 10c048c083344f6d98ea99464ffaf4bd |\n| is_domain | False |\n| name | kifarunix-demo |\n| options | {} |\n| parent_id | default |\n| tags | [] |\n+-------------+----------------------------------+\n<\/code><\/pre>\n\n\n\nList the projects;<\/p>\n\n\n\n
openstack project list<\/code><\/pre>\n\n\n\n+----------------------------------+--------------------+\n| ID | Name |\n+----------------------------------+--------------------+\n| 10c048c083344f6d98ea99464ffaf4bd | kifarunix-demo |<\/strong>\n| 3bff612b9db54c79b03a1620fdec0401 | demo |\n| 430aef95763e405bb65ff00d92c4299a | alt_demo |\n| 9a6d8864c2ee4ae9864281c22f79d836 | kifarunix-local |\n| a95d364c2b564742b1d3e7da4c8e294e | admin |\n| f008ce267bc84bbd882cfffc777773c1 | invisible_to_admin |\n| fc5d82af15c14453a8ea98fc890b81c6 | service |\n+----------------------------------+--------------------+\n<\/code><\/pre>\n\n\n\nOnce you create a project, you can give users appropriate access to the project using the command below<\/p>\n\n\n\n
openstack role add [-h] [--system <system> | --domain <domain> | --project <project>] [--user <user> | --group <group>]\n [--group-domain <group-domain>] [--project-domain <project-domain>] [--user-domain <user-domain>] [--inherited]\n [--role-domain <role-domain>]\n <role><\/pre>\n\n\n\nFor example, to give OpenStack admin user administrative role access to the project;<\/p>\n\n\n\n
openstack role add --project kifarunix-demo --user admin admin<\/code><\/pre>\n\n\n\nTo give the Admins group access to the project;<\/p>\n\n\n\n
openstack role add --project kifarunix-demo --group admins admin<\/code><\/pre>\n\n\n\nTo find out what rights\/roles does a specific user have on a specific OpenStack Project, check from the OpenStack horizon or use command line;<\/p>\n\n\n\n
openstack role assignment list --user admin --project kifarunix-demo --names<\/code><\/pre>\n\n\n\nTo find out what rights\/roles does a specific group have on a specific OpenStack Project, check from the OpenStack horizon or use command line;<\/p>\n\n\n\n
openstack role assignment list --group admins --project kifarunix-demo --names<\/code><\/pre>\n\n\n\nTo show for both users\/groups;<\/p>\n\n\n\n
openstack role assignment list --role admin --project kifarunix-demo --names<\/code><\/pre>\n\n\n\nHow to Delete\/Disable OpenStack Project<\/h3>\n\n\n\n You can delete\/disable OpenStack Project on Horizon or on command line;<\/p>\n\n\n\n