Invalid CIDR definition message when one IP address is passed

Bug #2065325 reported by Nobuto Murata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Snap
Triaged
Low
Unassigned

Bug Description

This is a nit picking. When an user passes one IP address mistakenly to the MetalLB question, they will get an error as follows.

$ sunbeam cluster bootstrap --role control --role compute --role storage
WARNING: Minimum system requirements (4 core CPU, 16 GB RAM) not met.
Management networks shared by hosts (CIDRs, separated by comma) (192.168.123.0/24):
MetalLB address allocation range (supports multiple ranges, comma separated) (10.20.21.10-10.20.21.20): 192.168.123.81
Invalid value for 'MetalLB address allocation range (supports multiple ranges, comma separated)': Invalid CIDR definition, must be in the form 'ip/mask'

However, the config accepts comma-separated ranges as well as CIDR notation so returning the following error is more appropriate.

> Invalid IP range, must be in the form of 'ip-ip' or 'cidr'

https://github.com/canonical/snap-openstack/blob/599e01aa263729d8f411241531bc424934b9ce05/sunbeam-python/sunbeam/commands/microk8s.py#L58-L73

Nobuto Murata (nobuto)
summary: - nit: Invalid CIDR definition message when one IP address is passed
+ Invalid CIDR definition message when one IP address is passed
James Page (james-page)
Changed in snap-openstack:
status: New → Triaged
importance: Undecided → Low
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.