Merge lp:~rvb/maas/api-update-cluster into lp:~maas-committers/maas/trunk
Proposed by
Raphaël Badin
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1469 |
Proposed branch: | lp:~rvb/maas/api-update-cluster |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
286 lines (+103/-31) 4 files modified
src/maasserver/api.py (+31/-5) src/maasserver/testing/factory.py (+19/-0) src/maasserver/tests/test_api.py (+46/-0) src/maasserver/tests/test_forms.py (+7/-26) |
To merge this branch: | bzr merge lp:~rvb/maas/api-update-cluster |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+160641@code.launchpad.net |
Commit message
Add method to update a cluster using the API.
Description of the change
This has been discussed with Julian. We need this (in trunk and 1.2) because we need to improve the migration story from the version of MAAS that used cobbler and this will allow us to simplify the migration script.
The testing is pretty minimal because the form itself is already tested in src/maasserver/
To post a comment you must log in.
Looks good.
[1]
+ raise PermissionDenie d("That method is reserved to admin users.")
s/to/for/
[2]
+ Node groups can't be renamed while they are in an accepted state, have
+ DHCP and DNS management enabled, and have a node that is in allocated
+ state.
Why is this? Is the reason documented somewhere in the tree?