[2.1 beta4] ERROR cannot deploy bundle: cannot deploy application "ceph-mon": cannot add application "ceph-mon": unknown space "oil" not valid

Bug #1662045 reported by Larry Michel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
New
Undecided
Unassigned

Bug Description

There's a window immediately after adding a model where trying to deploy a bundle with space bindings will always fail. The deploy bundle fails with "cannot deploy bundle: cannot deploy application ... unknown space ... not valid" error message.

I have verified that juju spaces will not return any output until some time has elapsed. After juju spaces finally returns list of maas spaces then bundle deployment can proceed without error.

This is very recreatable:

1) juju add-model <>
2) Run juju spaces repeatedly for a few seconds until it returns the correct output.

For example:

jenkins@lmic-s2:~$ juju add-model model1
Added 'model1' model with credential 'oil-ci' for user 'admin'
jenkins@lmic-s2:~$ juju spaces
no spaces to display
jenkins@lmic-s2:~$ juju spaces
no spaces to display
jenkins@lmic-s2:~$ juju spaces
no spaces to display
jenkins@lmic-s2:~$ juju spaces
no spaces to display
jenkins@lmic-s2:~$ juju spaces
no spaces to display
jenkins@lmic-s2:~$ juju spaces
Space Subnets
bmc
cplane
data
oil
storage

jenkins@lmic-s2:~$
jenkins@lmic-s2:~/spaces$ juju destroy-model model1
WARNING! This command will destroy the "model1" model.
This includes all machines, applications, data and other resources.

Continue [y/N]? y
Destroying model
Waiting on model to be removed...
Waiting on model to be removed...
Waiting on model to be removed...
Waiting on model to be removed...
Waiting on model to be removed...
Waiting on model to be removed...
Waiting on model to be removed...
jenkins@lmic-s2:~/spaces$ juju add-model model1
jAdded 'model1' model with credential 'oil-ci' for user 'admin'
jenkins@lmic-s2:~/spaces$ juju deploy bundle4.yaml
Deploying charm "cs:ceph-mon-7"
ERROR cannot deploy bundle: cannot deploy application "ceph-mon": cannot add application "ceph-mon": unknown space "oil" not valid
jenkins@lmic-s2:~/spaces$

Tags: oil oil-2.0
Revision history for this message
Anastasia (anastasia-macmood) wrote :

@Larry,
Are you deploying on openstack? Also, could you please clarify what version of Juju?

Revision history for this message
Anastasia (anastasia-macmood) wrote :

Actually, since we do not support spaces in openstack, you are probably on MAAS which will make this bug a duplicate. I'll mark it as such.

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.