Juju attempts to add incorrect OpenStack subnet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
High
|
Joseph Phillips |
Bug Description
Succinctly illustrated by this example on Canonistack:
$ juju subnets
subnets:
10.6.0.0/24:
type: ipv4
provider-id: 365c43b9-
provider-
status: in-use
space: alpha
zones:
- nova
10.48.128.0/17:
type: ipv4
provider-id: 0915bb73-
provider-
status: in-use
space: alpha
zones:
- nova
252.0.0.0/8:
type: ipv4
provider-id: 0915bb73-
provider-
status: in-use
space: alpha
zones:
- nova
$ juju add-space beta 10.48.120.0/17
ERROR cannot add space "beta": subnet "10.48.0.0/17" not found
The CIDR is being mangled in-flight.
Changed in juju: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Joseph Phillips (manadart) |
This is due to CIDR parsing.
We parse the input into its correct CIDR, but discovered subnets are stored verbatim as how they are listed in OpenStack, so no match is found.