openstack CLI

[root@test05 ~]# openstack service list
Missing value auth-url required for auth plugin password

[root@test05 ~]# vim admin-openrc.sh

[root@test05 ~]# cat admin-openrc.sh
export OS_PROJECT_DOMAIN_NAME=Default
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=#####(此处密码需要修改为自己的密码)
export OS_AUTH_URL=http://192.168.199.105:5000/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2

[root@test05 ~]# . admin-openrc.sh
[root@test05 ~]# openstack service list
+----------------------------------+------------+--------------+
| ID | Name | Type |
+----------------------------------+------------+--------------+
| 0581b050658f420e9b8996a6033317a8 | cinderv3 | volumev3 |
| 44adb65491874221bb9cd4bc75353148 | glance | image |
| 4d39ebc97b6941b1ab86b1e59ddb48c2 | keystone | identity |
| 4ff73ea89e784d6392c72860101ec12c | ceilometer | metering |
| 5d593ad48bf24e37b9dd73c16fcfa7f5 | placement | placement |
| 9f8ff9cc2dec4b2e8c1dd22d14cf8412 | gnocchi | metric |
| ae1d21d4181c443f802abdf120bb6adb | aodh | alarming |
| b13bc9d5bbfc4cb186caa4d7918572c2 | nova | compute |
| ba17a64680cc4cfc839b0271cee12019 | neutron | network |
| c4df22dc824546d9b52c0345a94d8028 | swift | object-store |
| c4eb19c3aeb547549a1aad6e33a1ac42 | cinderv2 | volumev2 |
+----------------------------------+------------+--------------+

opesntack 命令执行成功

上一篇:Openstack学习总结之九(制作镜像文件)


下一篇:OpenStack基础环境配置