claim_static_ip does not work for IPADDRESS_TYPE.USER_RESERVED
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Raphaël Badin |
Bug Description
Tests for claim_static_ip pass a random "IP type." If the random IP type is USER_RESERVED, claim_static_ip will call StaticIPAddress
Example failure (but several tests in the same test case do this):
FAIL: maasserver.
-------
_StringException: Traceback (most recent call last):
File "src/maasserver
ip = mac.claim_
File "src/maasserver
sip = StaticIPAddress
File "src/maasserver
"Must provide user for USER_RESERVED alloc_type")
AssertionError: Must provide user for USER_RESERVED alloc_type
Related branches
- Julian Edwards (community): Approve
-
Diff: 91 lines (+12/-7)6 files modifiedsrc/maasserver/models/macaddress.py (+1/-0)
src/maasserver/models/staticipaddress.py (+1/-1)
src/maasserver/models/tests/test_macaddress.py (+4/-2)
src/maasserver/models/tests/test_node.py (+2/-1)
src/maasserver/models/tests/test_staticipaddress.py (+2/-2)
src/maasserver/tests/test_api_node.py (+2/-1)
description: | updated |
description: | updated |
Changed in maas: | |
status: | Triaged → Fix Committed |
assignee: | nobody → Raphaël Badin (rvb) |
Changed in maas: | |
milestone: | none → 1.6.0 |
Changed in maas: | |
status: | Fix Committed → Fix Released |