Comment 4 for bug 1296739

Revision history for this message
Liam Young (gnuoy) wrote :

sorry, this time deleting the root-dir:

$ cat $JUJU_HOME/environments.yaml
default: local

environments:
  local:
    type: local
    admin-secret: password
    root-dir: /home/liam/lxc
    default-series: precise

$ sudo rm -rf /home/liam/lxc/*

$ juju bootstrap -e local
Logging to /home/liam/lxc/log/cloud-init-output.log on remote host
Starting MongoDB server (juju-db-liam-local)
Bootstrapping Juju machine agent
Starting Juju machine agent (juju-agent-liam-local)

$ juju status
environment: local
machines:
  "0":
    agent-state: started
    agent-version: 1.17.4.1
    dns-name: localhost
    instance-id: localhost
    series: trusty
services: {}

$ juju destroy-environment local
WARNING! this command will destroy the "local" environment (type: local)
This includes all machines, services, data and other resources.

Continue [y/N]? y
sudo: Sorry, you are not allowed to set the following environment variables: JUJU_HOME
ERROR failed to destroy environment "local"

If the environment is unusable, then you may run

    juju destroy-environment --force

to forcefully destroy the environment. Upon doing so, review
your environment provider console for any resources that need
to be cleaned up.

ERROR exit status 1