David K. Bainbridge | 528b318 | 2017-01-23 08:51:59 -0800 | [diff] [blame] | 1 | // Copyright 2012-2016 Canonical Ltd. |
| 2 | // Licensed under the LGPLv3, see LICENCE file for details. |
| 3 | |
| 4 | package gomaasapi |
| 5 | |
| 6 | const ( |
| 7 | // NodeStatus* values represent the vocabulary of a Node‘s possible statuses. |
| 8 | |
| 9 | // The node has been created and has a system ID assigned to it. |
| 10 | NodeStatusDeclared = "0" |
| 11 | |
| 12 | //Testing and other commissioning steps are taking place. |
| 13 | NodeStatusCommissioning = "1" |
| 14 | |
| 15 | // Smoke or burn-in testing has a found a problem. |
| 16 | NodeStatusFailedTests = "2" |
| 17 | |
| 18 | // The node can’t be contacted. |
| 19 | NodeStatusMissing = "3" |
| 20 | |
| 21 | // The node is in the general pool ready to be deployed. |
| 22 | NodeStatusReady = "4" |
| 23 | |
| 24 | // The node is ready for named deployment. |
| 25 | NodeStatusReserved = "5" |
| 26 | |
| 27 | // The node is powering a service from a charm or is ready for use with a fresh Ubuntu install. |
| 28 | NodeStatusDeployed = "6" |
| 29 | |
| 30 | // The node has been removed from service manually until an admin overrides the retirement. |
| 31 | NodeStatusRetired = "7" |
| 32 | |
| 33 | // The node is broken: a step in the node lifecyle failed. More details |
| 34 | // can be found in the node's event log. |
| 35 | NodeStatusBroken = "8" |
| 36 | |
| 37 | // The node is being installed. |
| 38 | NodeStatusDeploying = "9" |
| 39 | |
| 40 | // The node has been allocated to a user and is ready for deployment. |
| 41 | NodeStatusAllocated = "10" |
| 42 | |
| 43 | // The deployment of the node failed. |
| 44 | NodeStatusFailedDeployment = "11" |
| 45 | |
| 46 | // The node is powering down after a release request. |
| 47 | NodeStatusReleasing = "12" |
| 48 | |
| 49 | // The releasing of the node failed. |
| 50 | NodeStatusFailedReleasing = "13" |
| 51 | |
| 52 | // The node is erasing its disks. |
| 53 | NodeStatusDiskErasing = "14" |
| 54 | |
| 55 | // The node failed to erase its disks. |
| 56 | NodeStatusFailedDiskErasing = "15" |
| 57 | ) |