dmacvicar / terraform-provider-libvirt

Terraform provider to provision infrastructure with Linux's KVM using libvirt
Apache License 2.0
1.59k stars 458 forks source link

Networks are always re-created #160

Closed grahamhayes closed 7 years ago

grahamhayes commented 7 years ago

Version Reports:

Distro version of host:

openSUSE 42.2

Terraform Version Report

Terraform v0.9.4

Libvirt version

2.0.0

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

commit 92ff08670041c50b22c380599585b9efca4000fb
Merge: d9c8d155 23ae32e0
Author: Thomas Hipp <thomashipp@gmail.com>
Date:   Wed Aug 9 10:13:48 2017 +0200

    Merge pull request #157 from monstermunchkin/fix/dhcp-host

    fix XML name of DHCP host element

Description of Issue/Question

Setup

https://github.com/kubic-project/automation/blob/master/caasp-kvm/cluster.tf

Steps to Reproduce Issue

terraform apply terraform plan

We get the following output:

-/+ libvirt_network.network
    addresses.#: "1" => "1"
    addresses.0: "10.17.0.0/%!d(string=22)" => "10.17.0.0/22" (forces new resource)
    bridge:      "virbr1" => "<computed>"
    domain:      "devenv.caasp.suse.net" => "devenv.caasp.suse.net"
    mode:        "nat" => "nat"
    name:        "caasp-net" => "caasp-net"
    running:     "true" => "true"
grahamhayes commented 7 years ago

Looks like it was introduced in f6a859c2f91d3adef137270879e936271adaaf01