分享

openstack-centos7系统安装ocata版本,创建实例时报401错误

yushulinfeng 发表于 2017-11-3 12:23:51 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 3 6821
计算节点:
tail -f /var/log/nova/compute.log
2017-11-03 11:38:31.878 9748 ERROR nova.compute.manager [req-8125a915-1137-4dfe-91d1-33a7e3332f6a 8a19a07251864ea79ec9e21c5ded1737 40a3463da5d744dd90868e2436d2da94 - - -] [instance: 7815ea57-84e1-454f-80f2-5833f4847dbe] Instance failed to spawn: Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-87f5b0ef-f7e6-4d3a-b8f3-8531f77390af)
2017-11-03 11:38:31.878 9748 ERROR nova.compute.manager [instance: 7815ea57-84e1-454f-80f2-5833f4847dbe] Traceback (most recent call last):
2017-11-03 11:38:31.878 9748 ERROR nova.compute.manager [instance: 7815ea57-84e1-454f-80f2-5833f4847dbe]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2128, in _build_resources
。。。。。

控制节点:
tail -f /var/log/nova/conductor.log
NoValidHost: No valid host was found. There are not enough hosts available.


已有(3)人评论

跳转到指定楼层
einhep 发表于 2017-11-3 13:45:43
从上面错误看,存在两个问题
1.Nova的keystone认证有问题
检测下/etc/nova/nova.conf"内'[keystone_authtoken]'的'password
2.可能资源不足,是否创建过实例。
回复

使用道具 举报

yushulinfeng 发表于 2017-11-3 13:59:04
感谢您的回答!
以下是控制节点和计算节点的配置,配置都是一样的。
/etc/nova/nova.conf
控制节点:
[keystone_authtoken]
#...
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = nova
password = openstack

计算节点:
[keystone_authtoken]
#...
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = nova
password = openstack

这是第一次创建实例,按照官网ocata安装,之前所有操作都正常,就是到这一步出了问题
回复

使用道具 举报

yushulinfeng 发表于 2017-11-3 14:15:48
非常感谢你的回答,是计算节点的password = openstack   错了,我拼写成opesntack  ,现在401的问题解决了!!!
[neutron]
#...
url = http://controller:9696
auth_url = http://controller:35357
auth_type = password
project_domain_name = Default
user_domain_name = Default
region_name = RegionOne
project_name = service
username = neutron
password = openstack
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条