Error message trying to reserve an IP address when no static range is defined is misleading
Bug #1383237 reported by
Graham Binns
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Graham Binns |
Bug Description
To reproduce:
1). Create a cluster with a managed interface, and set the dynamic range to 10.0.0.2 - 10.0.0.128 (or equivalent for your network). Leave the static range blank.
2). Run `maas <profile> ipaddresses reserve network=<network CIDR> requested_
You'll end up with something like:
graham@dodger:~⟫ maas maas ipaddresses reserve network=10.0.0.0/16 requested_
No network found matching 10.0.0.0/16
Now, clearly the network exists, it's just that you haven't defined a static range. The error message makes no hint at this, though.
Related branches
lp:~gmb/maas/fix-network-error-bug-1383237
- Gavin Panella (community): Approve
-
Diff: 28 lines (+5/-2)2 files modifiedsrc/maasserver/api/ip_addresses.py (+3/-1)
src/maasserver/api/tests/test_ipaddresses.py (+2/-1)
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Graham Binns (gmb) |
tags: | added: trivial |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | next → 1.7.1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.