reload-spaces doesn't update space names.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
High
|
Unassigned |
Bug Description
[Environment]
Juju 2.2.2
Xenial 16.04
[Description]
Internal Discussion:
<wpk> niedbalski: it's the next step - we identify the space by name so in case it is changed we need to trace all places in which it's used and change it too.
<wpk> niedbalski: it is on our roadmap.
--
Space names aren't updated after being changed in MAAS and running juju reload-spaces.
$ juju version
2.2.2-xenial-amd64
$ juju status -m controller
Model Controller Cloud/Region Version SLA
controller controller maas 2.2.2.1 unsupported
$ maas maas subnet read 5
Success.
Machine-readable output follows:
{
"id": 5,
"allow_proxy": true,
"resource_uri": "/MAAS/
"vlan": {
"vid": 0,
"mtu": 1500,
"space": "beans",
"name": "untagged",
"id": 5001,
"dhcp_on": false,
"fabric": "fabric-0",
},
"space": "beans",
"active_
"name": "x",
"gateway_ip": null,
"dns_servers": [],
"managed": true,
"rdns_mode": 2,
"cidr": "x"
}
$ maas maas subnet read 10
Success.
Machine-readable output follows:
{
"id": 10,
"allow_proxy": true,
"resource_uri": "/MAAS/
"vlan": {
"vid": 0,
"mtu": 1500,
"space": "beans",
"name": "untagged",
"id": 5001,
"dhcp_on": false,
"fabric": "fabric-0",
},
"space": "beans",
"active_
"name": "x",
"gateway_ip": null,
"dns_servers": [],
"managed": true,
"rdns_mode": 2,
"cidr": "x"
}
$ juju reload-spaces -m controller
# Notice that MAAS subnets 5 and 10 have "beans" as their value for "space", but
# that even after reload-spaces Juju still shows "delivery-a" and "space-0"
$ juju spaces -m controller
Space Subnets
delivery-a x
delivery-b x
x
mgmt x
space-0 x
stg-back x
stg-front x
$ juju subnets -m controller
subnets:
x:
type: ipv4
provider-id: "5"
status: in-use
space: delivery-a
zones:
- default
x:
type: ipv6
provider-id: "10"
status: in-use
space: space-0
zones:
- default
tags: | added: sts |
Changed in juju: | |
importance: | Undecided → High |
status: | New → Triaged |
tags: | added: network spaces |
Changed in juju: | |
milestone: | none → 2.3-alpha1 |
Changed in juju: | |
milestone: | 2.3-beta1 → 2.3-beta2 |
Changed in juju: | |
milestone: | 2.3-beta2 → none |
Changed in juju: | |
milestone: | none → 2.5.1 |
Changed in juju: | |
milestone: | 2.5.1 → 2.5.2 |
Tagging canonical-bootstack as we run into this when troubleshooting a deployment and not wanting to destroy the live-working model for a single space addition or rename for one or two charms.