[2.4-rc2] cannot match subnets to zones: cannot use space <space> as deployment target: no subnets

Bug #1778283 reported by Dmitrii Shcherbakov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
High
Unassigned

Bug Description

tl;dr: after updating a vlan:space association from untagged:undefined to untagged:lab and doing reload-spaces a subnet associated with that space by being in the untagged subnet is not considered to be related to that space.

MAAS version: 2.4.0 (6981-g011e51b7a-0ubuntu1~18.04.1)

juju status -m admin/controller
Model Controller Cloud/Region Version SLA
controller vmaas vmaas 2.4-rc2 unsupported
Machine State DNS Inst id Series AZ Message
0 started 10.10.101.7 xwqr38 xenial default Deployed

juju models
Controller: vmaas

Model Cloud/Region Status Machines Cores Access Last connection
admin/controller vmaas available 1 2 admin just now
admin/default* vmaas available 7 6 admin 1 minute ago

juju spaces
Space Subnets
undefined 10.10.101.0/24

# moved an "untagged" vlan to a new space instead of using the "(undefined)" one
# MAAS:
Fabric VLAN DHCP Subnet Available IPs Space
fabric-0 untagged Enabled 10.10.101.0/24 56% lab

# hmm, the subnet seems to be still associated with the undefined space
juju spaces
Space Subnets
lab
undefined 10.10.101.0/24

grep -A1 bindings bundle.yaml
    bindings:
      "": *lab-space
--
    bindings:
      "": *lab-space
--
    bindings:
      "": *lab-space
--
    bindings:
      "": *lab-space
--
    bindings:
      "": *lab-space
--
    bindings:
      "": *lab-space

 juju deploy bundle.yaml

# errors all over the place
juju status
Model Controller Cloud/Region Version SLA
default vmaas vmaas 2.4-rc2 unsupported

App Version Status Scale Charm Store Rev OS Notes
keystone error 1 keystone jujucharms 281 ubuntu
keystone-saml-mellon waiting 0 keystone-saml-mellon local 1 ubuntu
mysql 5.6.37-26.21 error 1 percona-cluster jujucharms 266 ubuntu
neutron-api waiting 0/1 neutron-api jujucharms 260 ubuntu
nova-cloud-controller waiting 0/1 nova-cloud-controller jujucharms 310 ubuntu
openstack-dashboard waiting 0/1 openstack-dashboard local 32 ubuntu
rabbitmq-server waiting 0/1 rabbitmq-server jujucharms 74 ubuntu

Unit Workload Agent Machine Public address Ports Message
keystone/0* error idle 0 10.10.101.8 hook failed: "install"
mysql/0* error idle 1 10.10.101.9 hook failed: "config-changed"
neutron-api/0 waiting allocating 1/lxd/0 waiting for machine
nova-cloud-controller/0 waiting allocating 1/lxd/1 waiting for machine
openstack-dashboard/0 waiting allocating 2/lxd/0 waiting for machine
rabbitmq-server/0 waiting allocating 1/lxd/2 waiting for machine

Machine State DNS Inst id Series AZ Message
0 started 10.10.101.8 eshpkk xenial default Deployed
1 started 10.10.101.9 mddw47 xenial default Deployed
1/lxd/0 down pending xenial cannot match subnets to zones: cannot use space "lab" as deployment target: no subnets
1/lxd/1 down pending xenial cannot match subnets to zones: cannot use space "lab" as deployment target: no subnets
1/lxd/2 down pending xenial cannot match subnets to zones: cannot use space "lab" as deployment target: no subnets
2 started 10.10.101.10 qawdec xenial default Deployed
2/lxd/0 down pending xenial cannot match subnets to zones: cannot use space "lab" as deployment target: no subnets

Tags: cpe-onsite
description: updated
Revision history for this message
John A Meinel (jameinel) wrote :

we don't currently support detecting that subnets have moved spaces, but this is certainly a known bug w/ reload-spaces.

Changed in juju:
importance: Undecided → High
status: New → Triaged
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.