Merge lp://staging/~blake-rouse/maas/fix-1680278 into lp://staging/~maas-committers/maas/trunk

Proposed by Blake Rouse
Status: Merged
Approved by: Blake Rouse
Approved revision: no longer in the source branch.
Merged at revision: 5979
Proposed branch: lp://staging/~blake-rouse/maas/fix-1680278
Merge into: lp://staging/~maas-committers/maas/trunk
Diff against target: 244 lines (+99/-27)
2 files modified
src/metadataserver/api_twisted.py (+68/-22)
src/metadataserver/tests/test_api_twisted.py (+31/-5)
To merge this branch: bzr merge lp://staging/~blake-rouse/maas/fix-1680278
Reviewer Review Type Date Requested Status
Lee Trager (community) Approve
Review via email: mp+322550@code.staging.launchpad.net

Commit message

Update the last_ping for the script_set in its own transaction. Only update if the timestamp is later in time and only the latest message in the queue for that node. Uses select_for_update to remove the chance on conflicts.

To post a comment you must log in.
Revision history for this message
Blake Rouse (blake-rouse) wrote :

Still need to do the unit tests. But I ran this with 9 VMs on my machine (which makes it out) and all deployed successfully with no issues or tracebacks.

Revision history for this message
Lee Trager (ltrager) wrote :

Two comments below but it looks good!

Revision history for this message
Blake Rouse (blake-rouse) :
Revision history for this message
Lee Trager (ltrager) wrote :

LGTM! Tested by running testing on 3 machines at once on my laptop. Everything completed successfully and no exception in the logs.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.