error.datacenter.not_empty
- Text in the console
- Datacenter {datacenter} still holds clusters, hosts, virtual machines, networks or datastores. Move or remove them first.
- Meaning for API clients
- The datacenter still holds clusters, hosts, virtual machines, networks or datastores.
- Code
FAILED_PRECONDITION, HTTP 412
| Argument | What it holds |
|---|---|
datacenter | the name of the datacenter. |
Cause. A datacenter is deleted only when it is empty: no clusters, hosts, virtual machines, templates, networks or datastores below it. Its own folders for virtual machines, hosts, networks and datastores (and empty folders inside them) go with it.
Remedy.
- Look at what the datacenter holds:
kyvernon inventory children <id>, and the same for its folders. - Move virtual machines and hosts to another datacenter, or remove them:
kyvernon vm relocate <id> --host <host>,kyvernon host destroy <id>. - Remove networks and datastores:
kyvernon network delete <id>,kyvernon datastore remove <id>. - Delete the datacenter again:
kyvernon inventory delete-datacenter <id>.