1. Getting started with Openstack CLI command line management
View nova cloud host:
nova list
ERROR (CommandError): You must provide a username or user ID via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID]
To use the command line management, if you do not configure the variable environment, you cannot use the nove command directly.
First create an environment variable file and modify the information:
vim keystonerc_user01
unset OS_SERVICE_TOKEN
export OS_USERNAME=user01
export OS_PASSWORD='Admin@1234'
export OS_AUTH_URL=http://192.168.199.201:5000/v3
export PS1='[\u@\h \W(keystone_user01)]\$ '
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_IDENTITY_API_VERSION=3
keystonerc_admin:
keystonerc_user01: