Merge lp://staging/~allenap/maas/rpc-get-secrets into lp://staging/~maas-committers/maas/trunk
Proposed by
Gavin Panella
Status: | Rejected |
---|---|
Rejected by: | Gavin Panella |
Proposed branch: | lp://staging/~allenap/maas/rpc-get-secrets |
Merge into: | lp://staging/~maas-committers/maas/trunk |
Diff against target: |
293 lines (+122/-19) 5 files modified
src/maasserver/rpc/configuration.py (+17/-0) src/maasserver/rpc/regionservice.py (+11/-0) src/maasserver/rpc/tests/test_configuration.py (+25/-6) src/maasserver/rpc/tests/test_regionservice.py (+52/-13) src/provisioningserver/rpc/region.py (+17/-0) |
To merge this branch: | bzr merge lp://staging/~allenap/maas/rpc-get-secrets |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | Approve | ||
Review via email: mp+233823@code.staging.launchpad.net |
Commit message
GetSecrets RPC call to allow cluster access to the API.
Description of the change
This is based on Graham's GetSecrets work, which was vetoed by Julian. However, there is *too much* work to do to convert the code in provisioningser
To post a comment you must log in.
Unmerged revisions
- 2933. By Gavin Panella
-
Tests for get_api_
credentials. - 2932. By Gavin Panella
-
Rename an argument.
- 2931. By Gavin Panella
-
Move get_cluster_
api_credentials () to the m.rpc.configuration module. - 2930. By Gavin Panella
-
Merge lp:~gmb/maas/rpc-get-secrets, resolving several small conflicts.
I'm not going to block it, but I'm not going to approve it either. Out of
interest, what constitutes too much work here?
The tags stuff is also blocked by the problem we talked about yesterday,
namely the GIL block. As I said in the other review I don't think the process
pipe will help as the reader blocks until it closes, so it needs twisted IO
instead (which is why ampoule was created I suspect).
I think that we need to think harder about the architecture of these jobs spawnProcess( ) and leave it running and get notified when it
rather than throwing RPC at everything. We might want to include API
parameters as part of the RPC call-out to do the job, for example, especially
in the case of the long running jobs where we don't want to wait around. We
can then reactor.
finishes.