Merge lp:~allenap/maas/clear-installation-script-set-on-release into lp:~maas-committers/maas/trunk
Status: | Merged |
---|---|
Approved by: | Gavin Panella |
Approved revision: | no longer in the source branch. |
Merged at revision: | 5673 |
Proposed branch: | lp:~allenap/maas/clear-installation-script-set-on-release |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
31 lines (+1/-13) 2 files modified
src/maasserver/models/node.py (+1/-0) src/metadataserver/fixtures/initial_data.yaml (+0/-13) |
To merge this branch: | bzr merge lp:~allenap/maas/clear-installation-script-set-on-release |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mike Pontillo (community) | Approve | ||
Review via email: mp+315656@code.launchpad.net |
Commit message
Clear a node's current_
Also remove the remaining Django database fixtures. None of the tests rely upon the objects created.
Description of the change
An error when landing https:/
This branch also eliminates the use of Django database fixtures. The landing failure from the aforementioned branch also has exceptions relating to the application of these fixtures, but none of the tests need them any more, so getting rid of them seems fairly uncontroversial.
The primary test error this branch is intended to fix:
ERROR: maasserver.
-------
testtools.
Twisted logs
Traceback (most recent call last):
File ".../src/
result = function(*args, **kwargs)
File ".../testtools-
return self._get_
File ".../src/
node.release()
File ".../src/
self.
File ".../src/
self.
File ".../src/
return func_within_
File "/usr/lib/
return func(*args, **kwds)
File ".../src/
self.save()
File ".../src/
super(Node, self).save(*args, **kwargs)
File ".../src/
self.
File "/usr/lib/
raise ValidationError
django.
Ah, I suppose it might be recreated as a new object on save()? Weird that it wouldn't happen every time then, though...