I have installed Openstack Ussuri with 1 controller (for now), 4 Nova Nodes and one Docker Node with Zun on top. I installed the Zun WSProxy and Zun-UI from the Ussuri branch on the controller and the Zun with Kyrur on the Docker Node. i can launch containers and exec the shell using the command line 'docker exec -it <id> bash', but i am unable to load the Cloud Shell or Console. The screen stays black and a blinking prompt appears. The connections is attempted and closed (bottom of console screen)
browser console tells me:
The connection to ws://my-controller:6784/?token=20f9a80e-afce-4cc2-908c-efdaa59efa01&uuid=fddd688a-cc72-49f7-ac72-8b0240e83889 was interrupted while the page was loading.
trying to run a command through the Openstack CLI fails:
openstack --debug appcontainer run --name container --interactive --net network=internal-net cirros ping 8.8.8.8
...
putting tty into raw mode
starting main loop in client
restoring tty configuration
Remote host closed connection:Connection is already closed.:58c76857-fd5e-469f-82c5-c4c104191c6c
zun-wsproxy.log after trying the browser:
2020-11-01 21:50:49.318 141687 INFO zun.websocket.websocketproxy [req-65180ff2-79e6-46fb-b36a-b23ba49536a1 - - - - -] handler exception: unsupported operand type(s) for %: 'ConnectionRefused>
2020-11-01 21:50:49.319 141687 DEBUG zun.websocket.websocketproxy [req-65180ff2-79e6-46fb-b36a-b23ba49536a1 - - - - -] exception vmsg /usr/lib/python3/dist-packages/websockify/websockifyserv>
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy Traceback (most recent call last):
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/local/lib/python3.8/dist-packages/zun/websocket/websocketclient.py", line 33, in connect
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy self.ws = websocket.create_connection(url,
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/local/lib/python3.8/dist-packages/websocket/_core.py", line 515, in create_connection
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy websock.connect(url, **options)
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/local/lib/python3.8/dist-packages/websocket/_core.py", line 222, in connect
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options),
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/local/lib/python3.8/dist-packages/websocket/_http.py", line 121, in connect
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/local/lib/python3.8/dist-packages/websocket/_http.py", line 201, in _open_socket
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy raise err
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/local/lib/python3.8/dist-packages/websocket/_http.py", line 176, in _open_socket
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy sock.connect(address)
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/lib/python3/dist-packages/eventlet/greenio/base.py", line 253, in connect
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy socket_checkerr(fd)
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/lib/python3/dist-packages/eventlet/greenio/base.py", line 51, in socket_checkerr
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy raise socket.error(err, errno.errorcode[err])
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy ConnectionRefusedError: [Errno 111] ECONNREFUSED
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy During handling of the above exception, another exception occurred:
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy Traceback (most recent call last):
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/lib/python3/dist-packages/websockify/websockifyserver.py", line 691, in top_new_client
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy client = self.do_handshake(startsock, address)
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/lib/python3/dist-packages/websockify/websockifyserver.py", line 619, in do_handshake
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy self.RequestHandlerClass(retsock, address, self)
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/local/lib/python3.8/dist-packages/zun/websocket/websocketproxy.py", line 301, in __init__
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy websockify.ProxyRequestHandler.__init__(self, *args, **kwargs)
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/lib/python3/dist-packages/websockify/websockifyserver.py", line 99, in __init__
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy SimpleHTTPRequestHandler.__init__(self, req, addr, server)
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/lib/python3.8/http/server.py", line 647, in __init__
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy super().__init__(*args, **kwargs)
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/lib/python3.8/socketserver.py", line 720, in __init__
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy self.handle()
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/lib/python3/dist-packages/websockify/websockifyserver.py", line 315, in handle
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy SimpleHTTPRequestHandler.handle(self)
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/lib/python3.8/http/server.py", line 427, in handle
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy self.handle_one_request()
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/lib/python3/dist-packages/websockify/websocketserver.py", line 47, in handle_one_request
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy super(WebSocketRequestHandlerMixIn, self).handle_one_request()
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/lib/python3.8/http/server.py", line 415, in handle_one_request
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy method()
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/lib/python3/dist-packages/websockify/websocketserver.py", line 60, in _websocket_do_GET
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy self.handle_upgrade()
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/lib/python3/dist-packages/websockify/websockifyserver.py", line 221, in handle_upgrade
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy WebSocketRequestHandlerMixIn.handle_upgrade(self)
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/lib/python3/dist-packages/websockify/websocketserver.py", line 87, in handle_upgrade
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy self.handle_websocket()
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/lib/python3/dist-packages/websockify/websockifyserver.py", line 259, in handle_websocket
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy self.new_websocket_client()
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/local/lib/python3.8/dist-packages/zun/websocket/websocketproxy.py", line 208, in new_websocket_client
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy self._new_websocket_client(container, token, uuid)
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/local/lib/python3.8/dist-packages/zun/websocket/websocketproxy.py", line 225, in _new_websocket_client
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy wscls.connect()
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/local/lib/python3.8/dist-packages/zun/websocket/websocketclient.py", line 36, in connect
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy raise exception.ConnectionFailed(e)
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy File "/usr/local/lib/python3.8/dist-packages/zun/common/exception.py", line 204, in __init__
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy self.message = self.message % kwargs
2020-11-01 21:50:49.319 141687 ERROR zun.websocket.websocketproxy TypeError: unsupported operand type(s) for %: 'ConnectionRefusedError' and 'dict'
I tried the websocket setting on the controller node with all names and all IP:
[websocket_proxy]
wsproxy_host = 10.0.0.1
webproxy_port = 6784
base_url = ws://10.0.0.1:6784/
allowed_origins = my-controller,10.0.0.1,my-workstation,10.0.0.100
and added the docker API settings on the Docker node:
[docker]
docker_remote_api_url = tcp://my-docker:2375
docker_remote_api_host = my-docker
Did i miss something that i should have configured?
Regards,
Peter
I completely reinstalled the controller and the docker node. The zun-wsproxy service on the controller gives me the same error:
handler exception: unsupported operand type(s) for %: 'ConnectionRefu sedError' and 'dict'
/var/log/ zun-wsproxy. log gives me again: websocketproxy [req-0090fd14- 0b3b-48ab- 9f82-44fe994fa0 9b - - - - -] handler exception: unsupported operand type(s) for %: 'ConnectionRefu sedError' and 'dict' websocketproxy [req-0090fd14- 0b3b-48ab- 9f82-44fe994fa0 9b - - - - -] exception vmsg /usr/lib/ python3/ dist-packages/ websockify/ websockifyserve r.py:634 websocketproxy Traceback (most recent call last): websocketproxy File "/usr/local/ lib/python3. 8/dist- packages/ zun/websocket/ websocketclient .py", line 33, in connect websocketproxy self.ws = websocket. create_ connection( url, websocketproxy File "/usr/local/ lib/python3. 8/dist- packages/ websocket/ _core.py" , line 515, in create_connection websocketproxy websock. connect( url, **options) websocketproxy File "/usr/local/ lib/python3. 8/dist- packages/ websocket/ _core.py" , line 222, in connect websocketproxy self.sock, addrs = connect(url, self.sock_opt, proxy_info( **options) , websocketproxy File "/usr/local/ lib/python3. 8/dist- packages/ websocket/ _http.py" , line 121, in connect websocketproxy sock = _open_socket( addrinfo_ list, options.sockopt, options.timeout) websocketproxy File "/usr/local/ lib/python3. 8/dist- packages/ websocket/ _http.py" , line 201, in _open_socket websocketproxy raise err websocketproxy File "/usr/local/ lib/python3. 8/dist- packages/ websocket/ _http.py" , line 176, in _open_socket websocketproxy sock.connect( address) websocketproxy File "/usr/lib/ python3/ dist-packages/ eventlet/ greenio/ base.py" , line 253, in connect websocketproxy socket_checkerr(fd) websocketproxy File "/usr/lib/ python3/ dist-packages/ eventlet/ greenio/ base.py" , line 51, in socket_checkerr websocketproxy raise socket.error(err, errno.errorcode [err])
2020-11-03 20:06:29.985 22383 INFO zun.websocket.
2020-11-03 20:06:29.985 22383 DEBUG zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.
2020-11-03 20:06:29.985 22383 ERROR zun.websocket. websocketproxy ConnectionRefus edError: [Errno 111] ECONNREFUSED
2020-11-03 20:06:29.985 22383 ERROR zun.websocket. websocketproxy websocketproxy During handling of the above exception, another excepti...
2020-11-03 20:06:29.985 22383 ERROR zun.websocket.