juju destroy-environment also destroys nodes that are not in a ready state

Bug #1272013 reported by Joshua on 2014-01-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Undecided
Unassigned

Bug Description

Related to these bugs.
https://bugs.launchpad.net/bugs/1229275
https://bugs.launchpad.net/bugs/1081247

Commands:
juju bootstrap
administrator@maasmaster:~/.ssh$ juju destroy-environment --debug
2014-01-23 17:42:07 DEBUG juju.environs open.go:75 ConfigForName found bootstrap config map[string]interface
2014-01-23 17:42:07 DEBUG juju.provider.maas environprovider.go:33 opening environment "maas".
WARNING: this command will destroy the "maas" environment (type: maas)
This includes all machines, services, data and other resources.

Continue [y/N]? y
2014-01-23 17:42:11 INFO juju.provider.common destroy.go:14 destroying environment "maas"
2014-01-23 17:42:13 DEBUG juju.provider.maas environ.go:315 error releasing instance maasnode16.master:/MAAS/api/1.0/nodes/node-84de1d1c-844f-11e3-8aa9-0013727c971e/
2014-01-23 17:42:13 ERROR juju supercommand.go:282 gomaasapi: got error back from server: 409 CONFLICT
administrator@maasmaster:~/.ssh$

Running:
juju: 1.16.5-precise-i386
Maas: 1.3.1

List of nodes:
administrator@maasmaster:~/.ssh$ maas-cli maas nodes list
[
    {
        "status": 4,
        "macaddress_set": [
            {
                "resource_uri": "/MAAS/api/1.0/nodes/node-c7959cd8-82bb-11e3-a43 d-0013727c971e/macs/00:0f:fe:d3:6f:5c/",
                "mac_address": "00:0f:fe:d3:6f:5c"
            }
        ],
        "netboot": true,
        "hostname": "maasnode11.master",
        "power_type": "ether_wake",
        "system_id": "node-c7959cd8-82bb-11e3-a43d-0013727c971e",
        "architecture": "amd64/generic",
        "tag_names": [],
        "resource_uri": "/MAAS/api/1.0/nodes/node-c7959cd8-82bb-11e3-a43d-001372 7c971e/"
    },
    {
        "status": 4,
        "macaddress_set": [
            {
                "resource_uri": "/MAAS/api/1.0/nodes/node-308d31aa-82bd-11e3-a43 d-0013727c971e/macs/00:0f:fe:e9:5c:0a/",
                "mac_address": "00:0f:fe:e9:5c:0a"
            }
        ],
        "netboot": true,
        "hostname": "maasnode12.master",
        "power_type": "",
        "system_id": "node-308d31aa-82bd-11e3-a43d-0013727c971e",
        "architecture": "amd64/generic",
        "tag_names": [],
        "resource_uri": "/MAAS/api/1.0/nodes/node-308d31aa-82bd-11e3-a43d-001372 7c971e/"
    },
    {
        "status": 4,
        "macaddress_set": [
            {
                "resource_uri": "/MAAS/api/1.0/nodes/node-d34a9490-82cd-11e3-a43 d-0013727c971e/macs/00:0f:fe:d1:b6:7c/",
                "mac_address": "00:0f:fe:d1:b6:7c"
            }
        ],
        "netboot": true,
        "hostname": "maasnode13.master",
        "power_type": "",
        "system_id": "node-d34a9490-82cd-11e3-a43d-0013727c971e",
        "architecture": "amd64/generic",
        "tag_names": [],
        "resource_uri": "/MAAS/api/1.0/nodes/node-d34a9490-82cd-11e3-a43d-001372 7c971e/"
    },
    {
        "status": 4,
        "macaddress_set": [
            {
                "resource_uri": "/MAAS/api/1.0/nodes/node-eb3475e4-82cd-11e3-a43 d-0013727c971e/macs/00:0f:fe:9f:b3:46/",
                "mac_address": "00:0f:fe:9f:b3:46"
            }
        ],
        "netboot": true,
        "hostname": "maasnode14.master",
        "power_type": "",
        "system_id": "node-eb3475e4-82cd-11e3-a43d-0013727c971e",
        "architecture": "amd64/generic",
        "tag_names": [],
        "resource_uri": "/MAAS/api/1.0/nodes/node-eb3475e4-82cd-11e3-a43d-001372 7c971e/"
    },
    {
        "status": 4,
        "macaddress_set": [
            {
                "resource_uri": "/MAAS/api/1.0/nodes/node-0665ca8e-82ce-11e3-a43 d-0013727c971e/macs/00:0f:fe:d1:b2:5b/",
                "mac_address": "00:0f:fe:d1:b2:5b"
            }
        ],
        "netboot": true,
        "hostname": "maasnode15.master",
        "power_type": "",
        "system_id": "node-0665ca8e-82ce-11e3-a43d-0013727c971e",
        "architecture": "amd64/generic",
        "tag_names": [],
        "resource_uri": "/MAAS/api/1.0/nodes/node-0665ca8e-82ce-11e3-a43d-001372 7c971e/"
    },
    {
        "status": 1,
        "macaddress_set": [
            {
                "resource_uri": "/MAAS/api/1.0/nodes/node-84de1d1c-844f-11e3-8aa 9-0013727c971e/macs/00:0f:fe:7b:cf:d2/",
                "mac_address": "00:0f:fe:7b:cf:d2"
            }
        ],
        "netboot": true,
        "hostname": "maasnode16.master",
        "power_type": "",
        "system_id": "node-84de1d1c-844f-11e3-8aa9-0013727c971e",
        "architecture": "amd64/generic",
        "tag_names": [],
        "resource_uri": "/MAAS/api/1.0/nodes/node-84de1d1c-844f-11e3-8aa9-001372 7c971e/"
    }
]

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers