[openstack]"The request you have made requires authentication. (HTTP 401)l"

本文提供了一种解决在手动安装Ocata Identity过程中遇到401未认证错误的方法。通过修改配置文件、取消注释特定行、正确执行数据库同步及密钥设置等步骤,最终成功创建了服务项目。

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

在按照官方手册手动安装Ocata indentity时,执行下面命令时报错

openstack project create --domain default \
  --description "Service Project" service

解决方案:

1.

vi /etc/keystone/keystone.conf

找到这一行:

#admin_token = <None>

将注释取消
2.
root用户下不需要加su

# /bin/sh -c "keystone-manage db_sync" 

3.

keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone

4.

keystone-manage credential_setup --keystone-user keystone --keystone-group keystone

5.

keystone-manage bootstrap --bootstrap-password ADMIN_PASS --bootstrap-admin-url http://controller:35357/v3/ --bootstrap-internal-url http://controller:35357/v3/ --bootstrap-public-url http://controller:5000/v3/ --bootstrap-region-id RegionOne

将ADMIN_PASS替换成自己设置的密码
6.

openstack project create --domain default \
  --description "Service Project" service

问题就解决了

参考:

https://ask.openstack.org/en/question/67398/error-openstack-the-request-you-have-made-requires-authentication-http-401/

[root@controller ~]# tail -f /var/log/keystone/keystone.log 2025-03-04 00:04:10.596 12671 WARNING keystone.server.flask.application [req-1c53d976-a7a1-4f1e-87d9-79dcafb1c09d - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.10.20: Unauthorized: The request you have made requires authentication. 2025-03-04 00:04:17.469 12670 WARNING keystone.server.flask.application [req-fd7fc80d-27e0-46e8-a3f7-1c9144c85c1c - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.10.20: Unauthorized: The request you have made requires authentication. 2025-03-04 00:04:24.754 12667 WARNING keystone.server.flask.application [req-65436ff4-7a73-414b-94ac-1441bc602b5f - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.10.20: Unauthorized: The request you have made requires authentication. 2025-03-04 00:04:32.011 12670 WARNING keystone.server.flask.application [req-4348f851-0448-4232-a46e-3b18bd87e86a - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.10.20: Unauthorized: The request you have made requires authentication. 2025-03-04 00:04:39.006 12671 WARNING keystone.server.flask.application [req-40adc401-95ea-483b-b3a8-69de9bd7069f - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.10.20: Unauthorized: The request you have made requires authentication. 2025-03-04 00:04:45.920 12670 WARNING keystone.server.flask.application [req-8a3f78af-1eb0-46d6-a556-4d33aec8aafd - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.10.20: Unauthorized: The request you have made requires authentication. 2025-03-04 00:04:53.162 12667 WARNING keystone.server.flask.application [req-b313fefe-4b54-445c-bdb2-82201f9cec84 - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.10.20: Unauthorized: The request you have made requires authentication. 2025-03-04 00:04:59.945 12671 WARNING keystone.server.flask.application [req-8af88323-e340-46a8-8738-b4a25b201c0b - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.10.20: Unauthorized: The request you have made requires authentication. 2025-03-04 00:05:06.678 12669 WARNING keystone.server.flask.application [req-98ac090a-fe94-4222-b63e-436c1caf439f - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.10.20: Unauthorized: The request you have made requires authentication. 2025-03-04 00:05:13.569 12668 WARNING keystone.server.flask.application [req-62c6f31a-1180-4d64-a1ce-62a0ee1ba03b - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.10.20: Unauthorized: The request you have made requires authentication.
03-08
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值