2016-06-03 19:25:23 |
Matt Bruzek |
description |
While using juju version 2.0-beta7-xenial-amd64 I encountered a situation where the model did not get destroyed when I specifically destroyed it, and now I can not kill or destroy the controller
$ juju destroy-model etcd-1
WARNING! This command will destroy the "etcd-1" model.
This includes all machines, services, data and other resources.
Continue [y/N]? y
mbruzek@warhorse:~$ juju list-models
NAME OWNER STATUS LAST CONNECTION
admin admin@local available never connected
default admin@local available 26 minutes ago
test-dotfiles admin@local available 21 minutes ago
etcd-1* admin@local destroying 28 seconds ago
mbruzek@warhorse:~$ juju list-models
NAME OWNER STATUS LAST CONNECTION
admin admin@local available never connected
default admin@local available 52 minutes ago
etcd-1 admin@local destroying 26 minutes ago
matt* admin@local available 5 seconds ago
mbruzek@warhorse:~$ juju list-models
NAME OWNER STATUS LAST CONNECTION
admin admin@local available never connected
default admin@local available 52 minutes ago
etcd-1 admin@local destroying 26 minutes ago
matt* admin@local destroying 11 seconds ago
mbruzek@warhorse:~$ juju destroy-controller lxd
WARNING! This command will destroy the "local.lxd" controller.
This includes all machines, services, data and other resources.
Continue [y/N]? y
Destroying controller
ERROR cannot destroy controller "local.lxd"
The controller has live hosted models. If you want
to destroy all hosted models in the controller,
run this command again with the --destroy-all-models
flag.
Models:
admin@local/default (alive)
mbruzek@warhorse:~$ juju destroy-controller lxd --destroy-all-models --force
error: flag provided but not defined: --force
mbruzek@warhorse:~$ juju destroy-controller lxd --destroy-all-models
WARNING! This command will destroy the "local.lxd" controller.
This includes all machines, services, data and other resources.
Continue [y/N]? y
Destroying controller
Waiting for hosted model resources to be reclaimed
Waiting on 2 models, 9 machines
Waiting on 2 models, 9 machines
Waiting on 2 models, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
^C
mbruzek@warhorse:~$ juju list-models
NAME OWNER STATUS LAST CONNECTION
admin admin@local destroying never connected
etcd-1 admin@local destroying 29 minutes ago
mbruzek@warhorse:~$ juju kill-controller lxd
WARNING! This command will destroy the "local.lxd" controller.
This includes all machines, services, data and other resources.
Continue [y/N]? y
Destroying controller "local.lxd"
Waiting for resources to be reclaimed
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
^C
The controller is not destroyed, I don't know how to destroy it. |
While using juju version 2.0-beta7-xenial-amd64 I encountered a situation where the model did not get destroyed when I specifically destroyed it, and now I can not kill or destroy the controller
$ juju destroy-model etcd-1
WARNING! This command will destroy the "etcd-1" model.
This includes all machines, services, data and other resources.
Continue [y/N]? y
mbruzek@warhorse:~$ juju list-models
NAME OWNER STATUS LAST CONNECTION
admin admin@local available never connected
default admin@local available 26 minutes ago
test-dotfiles admin@local available 21 minutes ago
etcd-1* admin@local destroying 28 seconds ago
mbruzek@warhorse:~$ juju list-models
NAME OWNER STATUS LAST CONNECTION
admin admin@local available never connected
default admin@local available 52 minutes ago
etcd-1 admin@local destroying 26 minutes ago
matt* admin@local available 5 seconds ago
mbruzek@warhorse:~$ juju list-models
NAME OWNER STATUS LAST CONNECTION
admin admin@local available never connected
default admin@local available 52 minutes ago
etcd-1 admin@local destroying 26 minutes ago
matt* admin@local destroying 11 seconds ago
mbruzek@warhorse:~$ juju destroy-controller lxd
WARNING! This command will destroy the "local.lxd" controller.
This includes all machines, services, data and other resources.
Continue [y/N]? y
Destroying controller
ERROR cannot destroy controller "local.lxd"
The controller has live hosted models. If you want
to destroy all hosted models in the controller,
run this command again with the --destroy-all-models
flag.
Models:
admin@local/default (alive)
mbruzek@warhorse:~$ juju destroy-controller lxd --destroy-all-models --force
error: flag provided but not defined: --force
mbruzek@warhorse:~$ juju destroy-controller lxd --destroy-all-models
WARNING! This command will destroy the "local.lxd" controller.
This includes all machines, services, data and other resources.
Continue [y/N]? y
Destroying controller
Waiting for hosted model resources to be reclaimed
Waiting on 2 models, 9 machines
Waiting on 2 models, 9 machines
Waiting on 2 models, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
^C
mbruzek@warhorse:~$ juju list-models
NAME OWNER STATUS LAST CONNECTION
admin admin@local destroying never connected
etcd-1 admin@local destroying 29 minutes ago
mbruzek@warhorse:~$ juju kill-controller lxd
WARNING! This command will destroy the "local.lxd" controller.
This includes all machines, services, data and other resources.
Continue [y/N]? y
Destroying controller "local.lxd"
Waiting for resources to be reclaimed
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
... snip this continues for several minutes before I decide to abort ...
Waiting on 1 model, 9 machines
Waiting on 1 model, 9 machines
^C
The controller is still not destroyed, I don't know how to destroy it.
mbruzek@warhorse:~$ juju list-models
NAME OWNER STATUS LAST CONNECTION
admin admin@local destroying never connected
etcd-1 admin@local destroying 3 hours ago |
|