1. Source openrc file from devstack repo on your local machine.
2. Create new project with below command;
3. Create new users with below command;
4. Assign respective roles to user-project pair with above created users:
openstack role add --user normal-user --project project-x member
openstack role add --user admin --project project-x admin
5. Create admin-rc, member-rc files with below contents;
(Note: Don't forget to change password, username, OS_PROJECT_NAME and OS_AUTH_URL)
# member-rc file
# Clear any old environment that may conflict.
for key in $( set | awk -F= '/^OS_/ {print $1}' ); do unset "${key}" ; done
export OS_AUTH_TYPE=password
export OS_PASSWORD=normal-user
export OS_AUTH_URL=
http://xx.yy.zz.aa/identityexport OS_USERNAME=normal-user
export OS_PROJECT_NAME=project-x
export COMPUTE_API_VERSION=1.1
export NOVA_VERSION=1.1
export OS_NO_CACHE=True
export OS_CLOUDNAME=project-x
export OS_IDENTITY_API_VERSION='3'
export OS_PROJECT_DOMAIN_NAME='Default'
export OS_USER_DOMAIN_NAME='Default'
export OS_CACERT="/etc/pki/ca-trust/source/anchors/cm-local-ca.pem"
# Add OS_CLOUDNAME to PS1
if [ -z "${CLOUDPROMPT_ENABLED:-}" ]; then
export PS1=${PS1:-""}
export PS1=\${OS_CLOUDNAME:+"(\$OS_CLOUDNAME)"}\ $PS1
export CLOUDPROMPT_ENABLED=1
fi
~
6. Similar to above you can create admn-rc file for admin user
7. source respective rc files and run glance/nova/or any other commands;