Skip to content

Destroying a domain should try to power it off first #356

Closed
@multani

Description

@multani

Version Reports:

Distro version of host:

Debian stretch

Terraform Version Report

v0.11.7

Libvirt version

3.0.0

terraform-provider-libvirt plugin version (git-hash)

58cc06611667bbbdddafacb411cd6bc8da1c2b00


Description of Issue/Question

When a domain is destroyed by Terraform, it should be possible to send it a "power-off" signal so that it has the chance to shut down properly.

Althoug the current method is very fast at replacing VMs, it is also very brutal and doesn't offer any chance for the VM to react correctly before disappearing (such as deregistering services upon shutdown, etc.).

This is the last part of that wiki paragraph:

An inelegant shutdown, also known as hard-stop:

# virsh destroy <domain>

This is equivalent to unplugging the power cable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions