Merge lp://staging/~julian-edwards/maas/periodic-lease-upload-pserv into lp://staging/~maas-committers/maas/trunk
Proposed by
Julian Edwards
Status: | Merged |
---|---|
Approved by: | Julian Edwards |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2830 |
Proposed branch: | lp://staging/~julian-edwards/maas/periodic-lease-upload-pserv |
Merge into: | lp://staging/~maas-committers/maas/trunk |
Diff against target: |
906 lines (+558/-64) 15 files modified
docs/development/lease-scanning-and-dns.rst (+4/-10) etc/celeryconfig_cluster.py (+0/-8) src/maasserver/rpc/leases.py (+45/-0) src/maasserver/rpc/regionservice.py (+10/-0) src/maasserver/rpc/tests/test_regionservice.py (+40/-0) src/provisioningserver/dhcp/leases.py (+18/-8) src/provisioningserver/dhcp/tests/test_leases.py (+11/-11) src/provisioningserver/plugin.py (+13/-0) src/provisioningserver/pserv_services/lease_upload_service.py (+145/-0) src/provisioningserver/pserv_services/tests/test_lease_upload_service.py (+235/-0) src/provisioningserver/rpc/region.py (+16/-0) src/provisioningserver/tasks.py (+0/-13) src/provisioningserver/testing/testcase.py (+18/-0) src/provisioningserver/tests/test_plugin.py (+2/-1) src/provisioningserver/tests/test_tasks.py (+1/-13) |
To merge this branch: | bzr merge lp://staging/~julian-edwards/maas/periodic-lease-upload-pserv |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+231164@code.staging.launchpad.net |
Commit message
Add a pserv service that replaces the Celery task that periodically uploads DHCP leases.
Description of the change
This branch contains everything needed to remove the old Celery task to upload leases, and replace it with a pserv-based one.
Roughly, the following changes were made:
* Removing all trace of the celery config, code and tests
* Update dev documentation
* RPC command definition for UpdateLeases call
* Code to translate between the RPC format and the format needed by the existing code that does the actual updating.
* New pserv service.
* Tests. Lots of tests!
Sorry it's on the large side, but it is a complete cut-over. I've tested that it works on my local rig.
To post a comment you must log in.
Looking good so far :) Lots of comments, but none of them are blockers.