[2.1 beta4] ERROR cannot deploy bundle: cannot deploy application "ceph-mon": cannot add application "ceph-mon": unknown space "oil" not valid
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@
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@
jAdded 'model1' model with credential 'oil-ci' for user 'admin'
jenkins@
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@
@Larry,
Are you deploying on openstack? Also, could you please clarify what version of Juju?