ironic.common.json_rpc.server module

Implementation of JSON RPC for communication between API and conductors.

This module implementa a subset of JSON RPC 2.0 as defined in https://www.jsonrpc.org/specification. Main differences: * No support for batched requests. * No support for positional arguments passing. * No JSON RPC 1.0 fallback.

class ironic.common.json_rpc.server.EmptyContext(src)[source]

Bases: object

request_id = None
to_dict()[source]
exception ironic.common.json_rpc.server.InvalidParams(message=None, **kwargs)[source]

Bases: JsonRpcError

code = -32602
exception ironic.common.json_rpc.server.InvalidRequest(message=None, **kwargs)[source]

Bases: JsonRpcError

code = -32600
exception ironic.common.json_rpc.server.JsonRpcError(message=None, **kwargs)[source]

Bases: IronicException

exception ironic.common.json_rpc.server.MethodNotFound(message=None, **kwargs)[source]

Bases: JsonRpcError

code = -32601
exception ironic.common.json_rpc.server.ParseError(message=None, **kwargs)[source]

Bases: JsonRpcError

code = -32700
class ironic.common.json_rpc.server.WSGIService(manager, serializer, context_class=<class 'ironic.common.json_rpc.server.EmptyContext'>)[source]

Bases: WSGIService

Provides ability to launch JSON RPC as a WSGI application.