Merge ~ltrager/maas:lp1761600 into maas:master
Proposed by
Lee Trager
Status: | Merged |
---|---|
Approved by: | Lee Trager |
Approved revision: | 6ea8f8a240839b705d19a51440b44f95425a6fc6 |
Merge reported by: | MAAS Lander |
Merged at revision: | not available |
Proposed branch: | ~ltrager/maas:lp1761600 |
Merge into: | maas:master |
Diff against target: |
85 lines (+20/-8) 2 files modified
src/provisioningserver/rpc/power.py (+4/-1) src/provisioningserver/rpc/tests/test_power.py (+16/-7) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Blake Rouse (community) | Approve | ||
MAAS Lander | Approve | ||
Review via email: mp+343574@code.launchpad.net |
Commit message
LP: #1761600 - Don't return deferLater value.
In b352322 MAAS was modified to use asyncio or uvloop as the backend for
twisted. The value of deferLater was returned in maybe_change_
which fixes a number of unit tests. Doing this causes the defer to be
resolved with the caller instead of running later. This meant when a user
issues a power action, such as deploy or release, the websocket and
subsequent RPC call didn't resolve until the power action is completed.
This removes the return so the power action can happen later greatly
speeding up power actions. The unit tests are fixed by patching
deferLater in the tests to use maybeDeferred.
To post a comment you must log in.
UNIT TESTS
-b lp1761600 lp:~ltrager/maas/+git/maas into -b master lp:~maas-committers/maas
STATUS: FAILED maas-ci- jenkins. internal: 8080/job/ maas/job/ branch- tester/ 2521/console 522b9fb1fc6dd53 26674c0d89
LOG: http://
COMMIT: e8118113ba649fc