在ubuntu20.04上使用kolla部署openstack wallaby版本,运行kolla-ansible -i ./multinode deploy
时一直 Waiting for nova-compute services to register themselves
信息如下:
TASK [nova-cell : Waiting for nova-compute services to register themselves] *******************************************************************************************************************************************************************
FAILED - RETRYING: Waiting for nova-compute services to register themselves (20 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (19 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (18 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (17 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (16 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (15 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (14 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (13 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (12 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (11 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (10 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (9 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (8 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (7 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (6 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (5 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (4 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (3 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (2 retries left).
FAILED - RETRYING: Waiting for nova-compute services to register themselves (1 retries left).
fatal: [compute01 -> controller]: FAILED! => {"attempts": 20, "changed": false, "cmd": ["docker", "exec", "kolla_toolbox", "openstack", "--os-interface", "admin", "--os-auth-url", "http://192.168.1.200:35357", "--os-identity-api-version", "3", "--os-project-domain-name", "default", "--os-project-name", "admin", "--os-username", "admin", "--os-password", "2hxg085Av2MSnvdw0TWixlNs8gn4XU416qCmNLsg", "--os-user-domain-name", "default", "--os-region-name", "RegionOne", "compute", "service", "list", "--format", "json", "--column", "Host", "--service", "nova-compute"], "delta": "0:00:01.576627", "end": "2021-09-27 15:16:43.458040", "rc": 0, "start": "2021-09-27 15:16:41.881413", "stderr": "", "stderr_lines": [], "stdout": "[]", "stdout_lines": ["[]"]}
使用了3台服务器分别作为controller、compute01、storage01
查看compute01的日志nova-compute.log,信息如下:
2021-09-27 14:52:16.299 7 INFO os_vif [-] Loaded VIF plugins: linux_bridge, noop, ovs
2021-09-27 14:54:27.263 7 WARNING keystoneauth.identity.generic.base [req-6e42adcd-d4a9-424f-8dc2-2190b6b67661 - - - - -] Failed to discover available identity versions when contacting http://192.168.1.200:35357. Attempting to parse version from URL.: keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://192.168.1.200:35357: HTTPConnectionPool(host='192.168.1.200', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f1afceecc10>: Failed to establish a new connection: [Errno 110] ETIMEDOUT'))
2021-09-27 14:54:27.266 7 CRITICAL nova [req-6e42adcd-d4a9-424f-8dc2-2190b6b67661 - - - - -] Unhandled error: keystoneauth1.exceptions.discovery.DiscoveryFailure: Could not find versioned identity endpoints when attempting to authenticate. Please check that your auth_url is correct. Unable to establish connection to http://192.168.1.200:35357: HTTPConnectionPool(host='192.168.1.200', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f1afceecc10>: Failed to establish a new connection: [Errno 110] ETIMEDOUT'))
2021-09-27 14:54:27.266 7 ERROR nova Traceback (most recent call last):
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 169, in _new_conn
2021-09-27 14:54:27.266 7 ERROR nova conn = connection.create_connection(
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 96, in create_connection
2021-09-27 14:54:27.266 7 ERROR nova raise err
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 86, in create_connection
2021-09-27 14:54:27.266 7 ERROR nova sock.connect(sa)
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3/dist-packages/eventlet/greenio/base.py", line 253, in connect
2021-09-27 14:54:27.266 7 ERROR nova socket_checkerr(fd)
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3/dist-packages/eventlet/greenio/base.py", line 51, in socket_checkerr
2021-09-27 14:54:27.266 7 ERROR nova raise socket.error(err, errno.errorcode[err])
2021-09-27 14:54:27.266 7 ERROR nova TimeoutError: [Errno 110] ETIMEDOUT
2021-09-27 14:54:27.266 7 ERROR nova
2021-09-27 14:54:27.266 7 ERROR nova During handling of the above exception, another exception occurred:
2021-09-27 14:54:27.266 7 ERROR nova
2021-09-27 14:54:27.266 7 ERROR nova Traceback (most recent call last):
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
2021-09-27 14:54:27.266 7 ERROR nova httplib_response = self._make_request(
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 394, in _make_request
2021-09-27 14:54:27.266 7 ERROR nova conn.request(method, url, **httplib_request_kw)
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 234, in request
2021-09-27 14:54:27.266 7 ERROR nova super(HTTPConnection, self).request(method, url, body=body, headers=headers)
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3.8/http/client.py", line 1252, in request
2021-09-27 14:54:27.266 7 ERROR nova self._send_request(method, url, body, headers, encode_chunked)
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3.8/http/client.py", line 1298, in _send_request
2021-09-27 14:54:27.266 7 ERROR nova self.endheaders(body, encode_chunked=encode_chunked)
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3.8/http/client.py", line 1247, in endheaders
2021-09-27 14:54:27.266 7 ERROR nova self._send_output(message_body, encode_chunked=encode_chunked)
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3.8/http/client.py", line 1007, in _send_output
2021-09-27 14:54:27.266 7 ERROR nova self.send(msg)
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3.8/http/client.py", line 947, in send
2021-09-27 14:54:27.266 7 ERROR nova self.connect()
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 200, in connect
2021-09-27 14:54:27.266 7 ERROR nova conn = self._new_conn()
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in _new_conn
2021-09-27 14:54:27.266 7 ERROR nova raise NewConnectionError(
2021-09-27 14:54:27.266 7 ERROR nova urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f1afceecc10>: Failed to establish a new connection: [Errno 110] ETIMEDOUT
2021-09-27 14:54:27.266 7 ERROR nova
2021-09-27 14:54:27.266 7 ERROR nova During handling of the above exception, another exception occurred:
2021-09-27 14:54:27.266 7 ERROR nova
2021-09-27 14:54:27.266 7 ERROR nova Traceback (most recent call last):
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
2021-09-27 14:54:27.266 7 ERROR nova resp = conn.urlopen(
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
2021-09-27 14:54:27.266 7 ERROR nova retries = retries.increment(
2021-09-27 14:54:27.266 7 ERROR nova File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 573, in increment
2021-09-27 14:54:27.266 7 ERROR nova raise MaxRetryError(_pool, url, error or ResponseError(cause))
2021-09-27 14:54:27.266 7 ERROR nova urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.1.200', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f1afceecc10>: Failed to establish a new connection: [Errno 110] ETIMEDOUT'))
2021-09-27 14:54:27.266 7 ERROR nova
貌似是compute01无法访问http://192.168.1.200:35357
试了下确实不能访问,只有controller可以访问它,不懂啥原因,求各位能人解答下!
依赖:
ansible 2.9.26
kolla-ansible 12.2.0
python 3.8