Commit 0b0ab966 authored by Swann Perarnau's avatar Swann Perarnau

[refactor] replace upstream comms with msg layer

Replace the fragile upstream communications with the new messaging
layer, improving the stability and performance of this API.

NOTE: this breaks previous clients
NOTE: this patch is missing client tracking, to handle children signals.
parent c29ed7ea
Pipeline #4168 passed with stages
in 54 seconds
This diff is collapsed.
...@@ -37,7 +37,7 @@ class ContainerManager(object): ...@@ -37,7 +37,7 @@ class ContainerManager(object):
command = request['file'] command = request['file']
args = request['args'] args = request['args']
environ = request['environ'] environ = request['environ']
ucontainername = request['ucontainername'] ucontainername = request['uuid']"run: manifest file: %s", manifestfile)"run: manifest file: %s", manifestfile)"run: command: %s", command)"run: command: %s", command)"run: args: %r", args)"run: args: %r", args)
This diff is collapsed.
...@@ -24,7 +24,8 @@ MSGFORMATS['up_rpc_req'] = {'list': {}, ...@@ -24,7 +24,8 @@ MSGFORMATS['up_rpc_req'] = {'list': {},
'run': {'manifest': basestring, 'run': {'manifest': basestring,
'path': basestring, 'path': basestring,
'args': list, 'args': list,
'container_uuid': basestring}, 'container_uuid': basestring,
'environ': dict},
'kill': {'container_uuid': basestring}, 'kill': {'container_uuid': basestring},
'setpower': {'limit': basestring}, 'setpower': {'limit': basestring},
} }
...@@ -40,6 +41,9 @@ MSGFORMATS['up_rpc_rep'] = {'start': {'container_uuid': basestring, ...@@ -40,6 +41,9 @@ MSGFORMATS['up_rpc_rep'] = {'start': {'container_uuid': basestring,
'exit': {'container_uuid': basestring, 'exit': {'container_uuid': basestring,
'status': basestring, 'status': basestring,
'profile_data': dict}, 'profile_data': dict},
'process_start': {'container_uuid': basestring},
'process_exit': {'container_uuid': basestring,
'status': basestring},
'getpower': {'limit': basestring}, 'getpower': {'limit': basestring},
} }
MSGFORMATS['up_pub'] = {'power': {'total': int, 'limit': float}} MSGFORMATS['up_pub'] = {'power': {'total': int, 'limit': float}}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment