DiscoveryFailure: Could not determine a suitable URL for the plugin

原创 2018年01月10日 09:14:43

此类错误是URL配置错误,配置文件的URL与数据库中的endpoint中URL不一致导致的。

例:

环境:openstack,控制节点、网络节点、计算节点部署在不同节点,

/etc/nova/nova.conf中[neutron]部分配置错误

错误配置:

url = http://network:9696
auth_url = http://network:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = password
service_metadata_proxy = true
metadata_proxy_shared_secret = password

创建VM报没有valid的host,查看计算节点的nova-compute,错误如下:

2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780] Traceback (most recent call last):
2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2087, in _build_resources
2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780]     yield resources
2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1928, in _build_and_run_instance
2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780]     block_device_info=block_device_info)
2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2666, in spawn

......

2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780]     token = self.get_token(session)
2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780]   File "/usr/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 90, in get_token
2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780]     return self.get_access(session).auth_token
2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780]   File "/usr/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 136, in get_access
2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780]     self.auth_ref = self.get_auth_ref(session)
2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780]   File "/usr/lib/python2.7/dist-packages/keystoneauth1/identity/generic/base.py", line 196, in get_auth_ref
2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780]     self._plugin = self._do_create_plugin(session)
2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780]   File "/usr/lib/python2.7/dist-packages/keystoneauth1/identity/generic/base.py", line 191, in _do_create_plugin
2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780]     raise exceptions.DiscoveryFailure('Could not determine a suitable URL '
2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780] DiscoveryFailure: Could not determine a suitable URL for the plugin

2018-01-10 09:03:45.737 3520 ERROR nova.compute.manager [instance: c3406eeb-fc84-4b9e-a2de-8d013d25f780]

由蓝色字体可知是计算节点创建neutron API plugin时从keystone获取token失败,原因neutron的auth_url是keystone,keystone部署在控制节点,因此修改/etc/nova/nova.conf中[neutron]部分auth_url为如下配置(nova节点和nova-api节点都需要改):

auth_url = http://controller:35357

重启所有nova服务,就能够正常创建VM

Flask框架:(一、安装)

Flask 依赖于两个外部库:Werkzeug 和 Jinja2 。 Werkzeug 是一个 WSGI (在 web 应用和多种服务器之间开发和部署的标准 Python 接口) 的工具集,Jinj...
  • aawwssccom
  • aawwssccom
  • 2014年06月24日 21:42
  • 2395

单节点安装openstack-M版本遇到的问题

前两天在网上/群里面看到好多人也遇到了这个问题,但是没有看到具体的解决方法,今天自己在搭建环境的时候也碰到了,花了两个小时解决了它。 1.   问题现象:   [root@lijiejun ~(ke...
  • u014022631
  • u014022631
  • 2016年08月22日 22:39
  • 5986

【Python笔记】源码编译安装Python时,如何支持自定义安装的高版本openssl库

最近有个小需求想使用Scrapy库做抓取,但公司开发机操作系统版本老旧,导致系统默认的openssl库版本也很低(OpenSSL 0.9.7a Feb 19 2003),最终导致安装Scrapy非常麻...
  • slvher
  • slvher
  • 2015年01月02日 22:20
  • 13217

SpringMVC restful 异常Could not write request: no suitable HttpMessageConverter found for request type

Exception in thread "main" org.springframework.web.client.RestClientException: Could not write reque...
  • woniu4500
  • woniu4500
  • 2014年10月14日 10:16
  • 935

org.hibernate.MappingException: Could not determine type for: java.util.Set

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFacto...
  • efine_dxq
  • efine_dxq
  • 2017年05月13日 08:48
  • 361

Android - 安卓报错Error:Could not determine artifacts for com.android.support:support-v4:24.0.0:

Android - 安卓报错 Error:Could not determine artifacts for com.android.support:support-v4:24.0....
  • mythmayor
  • mythmayor
  • 2017年06月02日 15:08
  • 1138

Could not determine type for: java.util.String, at table:

在做项目的时候遇到这个问题,原因是原本的数据类型是Date类型,由于Date类型插入数据库比较麻烦,改成了String类型,使用ctrl+f 查找替换导致的。最后网上有网友也有一样的问题,正好我看到了...
  • r709651108
  • r709651108
  • 2016年08月16日 01:49
  • 1003

CoreException: Could not get the value for parameter compilerId for plugin execution default-compile

CoreException: Could not get the value for parameter compilerId for plugin execution default-compile...
  • zhangshufei8001
  • zhangshufei8001
  • 2017年01月23日 13:42
  • 213

启动报Cannot get connection for url jdbc xxxx listener could not hand off client co

刚开始碰到这个错误的时候一头雾水 虽说错误原因很明显 就是数据库获取不到连接了。查看发现无法从连接池获取连接,连接已经达到最大数。 但是算来算去,感觉不太可能达到最大连接数,因为程序刚启动,虽说程序...
  • wei83523408
  • wei83523408
  • 2016年02月28日 18:33
  • 692

could not create the file required to determine which products are to be displayed

ansys运行时出现: could not create the file required to determine which products are to be displayed in t...
  • Chiyunyinlong
  • Chiyunyinlong
  • 2017年03月27日 14:41
  • 2067
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:DiscoveryFailure: Could not determine a suitable URL for the plugin
举报原因:
原因补充:

(最多只允许输入30个字)