[2.0] Cannot create an IP reservation with a hostname
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
LaMont Jones |
Bug Description
There is a typo in maasserver/
File "/usr/lib/
return function(self, request, *args, **kwargs)
File "/usr/lib/
hostname=
File "/usr/lib/
return func_within_
File "/usr/lib/
return func(*args, **kwds)
File "/usr/lib/
dnsrr.
AttributeError: 'tuple' object has no attribute 'ip_addresses'
Right above that should be: dnsrr, _ = DNSResource..., not dnsrr =
Related branches
- Blake Rouse (community): Approve
-
Diff: 61 lines (+31/-2)2 files modifiedsrc/maasserver/api/ip_addresses.py (+1/-1)
src/maasserver/api/tests/test_ipaddresses.py (+30/-1)
Changed in maas: | |
importance: | Undecided → Critical |
importance: | Critical → High |
status: | New → In Progress |
milestone: | none → 2.0.0 |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
This shows up if the API user attempts to reserve an IP and attach it to a name in one step: 10.0.2. 98 hostname=test.maas mac=00: 11:22:33: 44:55
maas session ipaddresses reserve ip_address=
The workaround: 10.0.2. 98 mac=00: 11:22:33: 44:55 10.0.2. 98
maas session ipaddresses reserve ip_address=
maas session dnsresources create fqdn=test.maas ip_addresses=