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.

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

Bases: ironic.common.json_rpc.server.JsonRpcError

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

Bases: ironic.common.json_rpc.server.JsonRpcError

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

Bases: ironic_lib.exception.IronicException

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

Bases: ironic.common.json_rpc.server.JsonRpcError

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

Bases: ironic.common.json_rpc.server.JsonRpcError

code = -32700
class ironic.common.json_rpc.server.WSGIService(manager, serializer)[source]

Bases: oslo_service.service.Service

Provides ability to launch JSON RPC as a WSGI application.

reset()[source]

Reset server greenpool size to default.

Returns

None

start()[source]

Start serving this service using loaded configuration.

Returns

None

stop()[source]

Stop serving this API.

Returns

None

wait()[source]

Wait for the service to stop serving this API.

Returns

None