排错的时候在计算节点执行了nova list
查看实例情况
结果提示
ERROR (CommandError): You must provide a user name/id (via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID]) or an auth token (via --os-token).
看来是没有配置keystone鉴权信息的原因
创建鉴权信息
vi ~/keystonerc
输入控制节点的鉴权信息
export OS_PROJECT_DOMAIN_NAME=default
export OS_USER_DOMAIN_NAME=default
export OS_PROJECT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=password
export OS_AUTH_URL=http://controller:5000/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2
export PS1='[\u@\h \W(compute)]\$ '
export OS_VOLUME_API_VERSION=3
export OS_TENANT_NAME=admin
export OS_VOLUME_API_VERSION=3
使鉴权信息生效
chmod 600 ~/keystonerc
source ~/keystonerc
echo "source ~/keystonerc " >> ~/.bash_profile
测试是否正常
执行文章来源:https://www.toymoban.com/news/detail-506187.html
nova list
可以打印信息了,虽然还是ERROR的…文章来源地址https://www.toymoban.com/news/detail-506187.html
+--------------------------------------+--------------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+--------------+--------+------------+-------------+----------+
| 971320a3-1722-4702-a963-4bebe8309b61 | CentOS7Test | ERROR | - | NOSTATE | |
| 94eeaff5-e3ea-4dd0-bf59-5cf92b682b37 | CentOS7Test2 | ERROR | - | NOSTATE | |
| 4a58ab57-a1b2-4e80-bc96-2c52d4d7c261 | CentOS7Test3 | ERROR | - | NOSTATE | |
| 4096cfdb-57f1-449f-a0c0-44e5a5e8996b | test | ERROR | - | NOSTATE | |
+--------------------------------------+--------------+--------+------------+-------------+----------+
到了这里,关于OpenStack+Ceph集群 计算节点执行nova list提示ERROR (CommandError): You must provide a user name/id的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!