openstack报错Missing value auth-url required for auth plugin password

完整报错信息如下

stack@openstack:~/devstack-stable-yoga$ openstack service list
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
Missing value auth-url required for auth plugin password

报错原因:

缺少环境变量导致。

解决办法:

cat>>admin-openrc<<EOF
export OS_USERNAME=admin
#密码是你安装openstack时的设置的统一密码
export OS_PASSWORD=b9fb3595f756daf08c83
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
#你刚才查到的keystone的认证url
export OS_AUTH_URL=http://10.168.1.107/identity
export OS_IDENTITY_API_VERSION=3
EOF

使环境变量生效

source admin-openrc

再次使用openstack命令查看

发表评论

后才能评论