admin 发表于 2021-11-17 21:56:43

突然遇到问题 Failed to discover available identity versions when contactin...

2021-11-17 21:53:04.947 7 WARNING keystoneauth.identity.generic.base Failed to discover available identity versions when contacting http://192.168.6.233:35357. Attempting to parse version from URL.: ConnectFailure: Unable to establish connection to http://192.168.6.233:35357: HTTPConnectionPool(host='192.168.2.158', port=7890): Max retries exceeded with url: http://192.168.6.233:35357/ (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fcf34201e10>: Failed to establish a new connection: EHOSTUNREACH',)))
2021-11-17 21:53:04.948 7 INFO nova.compute.resource_tracker Final resource view: name=compute01 phys_ram=128722MB used_ram=122368MB phys_disk=3353GB used_disk=242GB total_vcpus=32 used_vcpus=34 pci_stats=[]
2021-11-17 21:53:07.953 7 WARNING keystoneauth.identity.generic.base Failed to discover available identity versions when contacting http://192.168.6.233:35357. Attempting to parse version from URL.: ConnectFailure: Unable to establish connection to http://192.168.6.233:35357: HTTPConnectionPool(host='192.168.2.158', port=7890): Max retries exceeded with url: http://192.168.6.233:35357/ (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fcf342015d0>: Failed to establish a new connection: EHOSTUNREACH',)))
2021-11-17 21:53:10.959 7 WARNING keystoneauth.identity.generic.base Failed to discover available identity versions when contacting http://192.168.6.233:35357. Attempting to parse version from URL.: ConnectFailure: Unable to establish connection to http://192.168.6.233:35357: HTTPConnectionPool(host='192.168.2.158', port=7890): Max retries exceeded with url: http://192.168.6.233:35357/ (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fcf342017d0>: Failed to establish a new connection: EHOSTUNREACH',)))
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager Error updating resources for node compute01.: ResourceProviderCreationFailed: Failed to create resource provider compute01
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager Traceback (most recent call last):
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 7540, in update_available_resource_for_node
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   rt.update_available_resource(context, nodename)
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 706, in update_available_resource
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   self._update_available_resource(context, resources)
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 274, in inner
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   return f(*args, **kwargs)
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 782, in _update_available_resource
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   self._update(context, cn)
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 904, in _update
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   inv_data,
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 68, in set_inventory_for_provider
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   parent_provider_uuid=parent_provider_uuid,
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   return getattr(self.instance, __name)(*args, **kwargs)
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 1104, in set_inventory_for_provider
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   parent_provider_uuid=parent_provider_uuid)
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 673, in _ensure_resource_provider
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager   name=name or uuid)
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager ResourceProviderCreationFailed: Failed to create resource provider compute01
2021-11-17 21:53:10.962 7 ERROR nova.compute.manager
^C


问题显示设备在连接192.168.2.158地址:

解决办法:
开启192.168.2.158地址服务。


第二种
系统上配置这个环境变量取消掉,即可。

admin 发表于 2021-11-18 10:05:11

因docker 配置问题,检查/root/.docker
cat config.json
{
        "auths": {
                "192.168.6.145:5000": {
                        "auth": "YWRtaW46MTIzNDU2"
                }
        }
}

是否有配置删除即可。
页: [1]
查看完整版本: 突然遇到问题 Failed to discover available identity versions when contactin...