Error message trying to reserve an IP address when no static range is defined is misleading

Bug #1383237 reported by Graham Binns
6
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_address=<some address on the network>

You'll end up with something like:

graham@dodger:~⟫ maas maas ipaddresses reserve network=10.0.0.0/16 requested_address=10.0.0.100
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.

Tags: api trivial

Related branches

Graham Binns (gmb)
Changed in maas:
status: Triaged → In Progress
assignee: nobody → Graham Binns (gmb)
Graham Binns (gmb)
tags: added: trivial
Changed in maas:
status: In Progress → Fix Committed
Christian Reis (kiko)
Changed in maas:
milestone: next → 1.7.1
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.