Last active
July 20, 2016 17:39
-
-
Save oleksiialeksieiev/69f06f91789ba7c793bd6007d212f75d to your computer and use it in GitHub Desktop.
Openstack commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
source /root/openrc | |
export OS_IDENTITY_API_VERSION='3' | |
export OS_USER_DOMAIN_NAME='default' | |
export OS_AUTH_URL=${OS_AUTH_URL/v2.0/v3} | |
unset OS_PROJECT_ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Common Openstack commands | |
source openrc_v3 | |
openstack domain list | |
openstack project create --domain "domain" projectname | |
# Assign role "admin" to user "user" in project "projectname" | |
openstack role add --project project1 --user user1 admin | |
# Use project and user UUIDs if keystone shows 401 error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment