Comment 3 for bug 1398820

Revision history for this message
Brad Crittenden (bac) wrote :

I have reproduced the problem by creating environments named azure and azure-1. Destroying azure deletes azure-1 also. Note if the experiment uses environments named azure-1 and azure-2 then the problem is not reproduced.

After the destroy-environment, 'juju status -e azure-1' does not terminate and all cloud services and virtual machines are no longer shown in the Azure dashboard.

Here is what I saw:

bac@chuleta:~/bzr/azure-test$ juju switch
azure-1
bac@chuleta:~/bzr/azure-test$ juju status
environment: azure-1
machines:
  "0":
    agent-state: started
    agent-version: 1.20.13
    dns-name: juju-azure-1-vahumlx6ii.cloudapp.net
    instance-id: juju-azure-1-vahumlx6ii-jujuxu2b0ao0ahdzctlpv2f48t94z8pf6shb18vbf85s79cp33
    instance-state: ReadyRole
    series: trusty
    hardware: arch=amd64 cpu-cores=1 mem=1792M root-disk=130048M
    state-server-member-status: has-vote
services: {}
bac@chuleta:~/bzr/azure-test$ juju status -e azure
environment: azure
machines:
  "0":
    agent-state: started
    agent-version: 1.20.13
    dns-name: juju-azure-t8bv2yyz60.cloudapp.net
    instance-id: juju-azure-t8bv2yyz60-jujuk7433f0hnbqzzmavzogs1tbwaedtjik3ldgbcoon42mcjp
    instance-state: ReadyRole
    series: trusty
    hardware: arch=amd64 cpu-cores=1 mem=1792M root-disk=130048M
    state-server-member-status: has-vote
services: {}
bac@chuleta:~/bzr/azure-test$ ls environments
azure-1.jenv azure-2.jenv azure.jenv
bac@chuleta:~/bzr/azure-test$ juju destroy-environment azure
WARNING! this command will destroy the "azure" environment (type: azure)
This includes all machines, services, data and other resources.

Continue [y/N]? y