maas-cli ipaddresses reserve network=CIDR error message unhelpful
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
I tried using the MAAS CLI to reserve an IP address for a container Juju deploys, and this is what happened:
$ maas maas-root ipaddresses reserve network=
No network found matching 192.168.50.2/24
But then again:
$ maas maas-root networks read
[
{
"ip": "192.168.50.0",
"netmask": "255.255.255.0",
"vlan_tag": null,
"name": "maas"
},
(..cut..)
]
After discussing the issue on #maas on FreeNode, it turned out my 192.168.50.0/24 network does not have a static IP range configured, only DHCP one. Configuring a static range using the MAAS UI and re-running the command worked:
$ maas maas-root ipaddresses reserve network=
{
"alloc_type": 4,
"ip": "192.168.50.132",
"resource_uri": "/MAAS/
"created": "2014-09-
}
So, if the error message was more helpful, like "No static IP range configured for network 192.168.50.0/24" would have been much more helpful for users.
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: papercut |
Changed in maas: | |
status: | Triaged → Won't Fix |
Any chance for fixing this in time for 1.7.1?