ironic.console.websocketproxy module

Websocket proxy that is compatible with OpenStack Ironic. Leverages websockify.py by Joel Martin

class ironic.console.websocketproxy.IronicProxyRequestHandler(*args, **kwargs)[source]

Bases: ProxyRequestHandler

new_websocket_client()[source]

Called after a new WebSocket connection has been established.

send_head()[source]

Common code for GET and HEAD commands.

This sends the response code and MIME headers.

Return value is either a file object (which has to be copied to the outputfile by the caller unless the command was HEAD, and must be closed by the caller under all circumstances), or None, in which case the caller has nothing further to do.

socket(*args, **kwargs)[source]
class ironic.console.websocketproxy.IronicWebSocketProxy(*args, **kwargs)[source]

Bases: WebSocketProxy

static get_logger()[source]
terminate()[source]

Override WebSockifyServer terminate

WebSocifyServer.Terminate exception is not handled by oslo_service, so raise SystemExit instead.

class ironic.console.websocketproxy.TenantSock(reqhandler)[source]

Bases: object

A socket wrapper for communicating with the tenant.

This class provides a socket-like interface to the internal websockify send/receive queue for the client connection to the tenant user. It is used with the security proxy classes.

close()[source]
finish_up()[source]
recv(cnt)[source]
sendall(data)[source]