Merge lp:~jameinel/maas/tag-updating into lp:maas/trunk
| Status: | Merged |
|---|---|
| Approved by: | John A Meinel on 2012-10-04 |
| Approved revision: | 1143 |
| Merged at revision: | 1162 |
| Proposed branch: | lp:~jameinel/maas/tag-updating |
| Merge into: | lp:maas/trunk |
| Diff against target: |
445 lines (+371/-14) 5 files modified
src/provisioningserver/tags.py (+150/-0) src/provisioningserver/tasks.py (+14/-1) src/provisioningserver/testing/testcase.py (+26/-0) src/provisioningserver/tests/test_boot_images.py (+0/-13) src/provisioningserver/tests/test_tags.py (+181/-0) |
| To merge this branch: | bzr merge lp:~jameinel/maas/tag-updating |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Martin Packman (community) | 2012-10-04 | Approve on 2012-10-04 | |
|
Review via email:
|
|||
Commit Message
Add a task for the provisioning_server that can update tags using the APIs we just added.
This allows us to farm out all the work for processing 100,000 tags into the provisioning_
Description of the Change
Add a task for the provisioning_server that can update tags using the APIs we just added.
This uses a lot of mocking to make sure the calls are correct, but I'll still need to add testing on the other side that end-to-end actually works.
I can wait to land this until the next patch is complete if so desired, but I would like to get feedback on the mock work that was done here.
- 1141. By John A Meinel on 2012-10-04
-
Gavin confirmed that you just pass it as a python list.
- 1142. By John A Meinel on 2012-10-04
-
Revert the changes to the acceptance Makefile, as it was probably specific for Jelmer's machine.
- 1143. By John A Meinel on 2012-10-04
-
Simplify to a single upload_node_tags call.
The bandwidth required should be reasonable.


-include /etc/lsb-release CODENAME= unstable
+DISTRIB_
This seems unrelated, probably wants reverting.
+ # XXX: Check the response code before we parse the content
A helper in client that raised an exception on a non-2XX response would be good, can be added later.
The rest of the stuff I understand looks good. :)