kolla-ansible openstack登录 证书不可用

在配置了kolla-ansible后的OpenStack环境中,尝试创建并登录OpenStack实例时遇到证书不可用的问题。日志显示授权失败,提示请求需要认证。经过排查,发现是账号密码错误导致的。解决方案是检查并使用正确的admin账号密码,重新登录后问题得到解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

在这里插入图片描述

问题排查

尝试过

  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

重新登陆

在这里插入图片描述

成功!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

不会长胖的斜杠

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值