kolla-ansible openstack登录 证书不可用

根据官方文档配置kolla-ansible之后,创建openstack实例,登录openstack出现证书不可用,如图

kolla-ansible openstack登录 证书不可用_第1张图片

问题排查

尝试过

  1. 更新openrc.sh文件
  2. 增加OS_TOKEN环境变量

查看日志

2022-05-30 23:43:01.019 26 WARNING keystone.server.flask.application [req-9e9064dc-ebe5-47f0-86c1-568d17145ea0 - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.131.109: keystone.exception.Unauthorized: The request you have made requires authentication.
2022-05-30 23:43:06.276 28 WARNING keystone.server.flask.application [req-63104702-f34c-48dc-bd14-c264d7be3173 - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.131.109: keystone.exception.Unauthorized: The request you have made requires authentication.
2022-05-30 23:48:12.408 27 WARNING keystone.server.flask.application [req-5a52255e-24bd-4730-abf6-f74c7b57e06e - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.131.109: keystone.exception.Unauthorized: The request you have made requires authentication.
2022-05-30 23:48:17.631 29 WARNING keystone.server.flask.application [req-26fff2fa-2b4b-434c-83f1-5dd2618ed3aa - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.131.109: keystone.exception.Unauthorized: The request you have made requires authentication.
2022-05-31 02:09:12.800 29 WARNING keystone.server.flask.application [req-6ad7d529-bb3f-4490-a734-2ad94534767e - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.131.109: keystone.exception.Unauthorized: The request you have made requires authentication.
2022-05-31 02:33:54.967 27 WARNING keystone.server.flask.application [req-5e6cf0db-d78b-4f2a-a144-6d4351d23fc8 - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.131.109: keystone.exception.Unauthorized: The request you have made requires authentication.
2022-05-31 02:33:58.301 29 WARNING keystone.server.flask.application [req-235f86ab-71a9-4b5a-8803-7200984d7053 - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.131.109: keystone.exception.Unauthorized: The request you have made requires authentication.
2022-05-31 02:37:43.030 29 WARNING py.warnings [req-737c3edc-a89a-442d-bad5-f293d46a9621 beaf460a2a14455c86eea8d762866215 61e31fd7250745b693ef76728ba2acf5 - default default] /var/lib/kolla/venv/lib/python3.6/site-packages/oslo_policy/policy.py:1119: UserWarning: Policy "identity:list_users": "(role:reader and system_scope:all) or (role:reader and domain_id:%(target.domain_id)s)" failed scope check. The token used to make the request was project scoped but the policy requires ['system', 'domain'] scope. This behavior may change in the future where using the intended scope is required
  warnings.warn(msg)

2022-05-31 02:47:05.769 29 WARNING keystone.server.flask.application [req-bf8b8071-d299-4e35-839f-08545467f4f8 beaf460a2a14455c86eea8d762866215 - - default -] Authorization failed. The request you have made requires authentication. from 192.168.131.109: keystone.exception.Unauthorized: The request you have made requires authentication.
2022-05-31 02:49:57.448 28 WARNING keystone.server.flask.application [req-7827cbeb-210b-4875-a144-3f5f74f12ff8 - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.131.109: keystone.exception.Unauthorized: The request you have made requires authentication.
"/var/log/kolla/keystone/keystone.log" 614L, 104524C                                                          

没有error,只有warning

问题解决

原因:账号密码不正确

账号默认是admin,密码在
cat /etc/kolla/passwords.yml|grep -i keystone_admin

(venv) [root@controller ~]# cat /etc/kolla/passwords.yml|grep -i keystone_admin
keystone_admin_password: 8GHu6lWtSfFvvlK46i6QnN4rzDHkt0KxLjQFXbC2

重新登陆

kolla-ansible openstack登录 证书不可用_第2张图片

成功!

你可能感兴趣的:(openstack,Ansible,Ansible,ssh)