Skip to content

bug: Modifying VLAN on a TF-managed tenant deletes other manually created tenants #104

@leonseng

Description

@leonseng

Encountered bug where modifying VLAN on a TF-managed tenant deletes other manually created tenants

Version

Platform: r4000, r5000
F5OS-A 1.8.0
Provider version: 1.8.0

Steps to reproduce

  1. Manually create a tenant via F5OS WebUI, e.g. named lseng-manual-bigip
  2. Use Terraform to deploy a new tenant, e.g. lseng-tf-bigip, with some VLANs.
resource "f5os_tenant" "bigip" {
        name              = lseng-tf-bigip
        image_name        = "BIGIP-17.1.1.3-0.0.5.ALL-F5OS.qcow2.zip.bundle"
        mgmt_ip           = "10.176.10.250"
        mgmt_gateway      = "10.176.10.1"
        mgmt_prefix       = 24
        type              = "BIG-IP"
        cpu_cores         = 4
        memory            = 12288
        nodes             = [1]
        vlans             = [100, 200]
        cryptos           = "enabled"
        running_state     = "deployed"
        virtual_disk_size = 87
}
  1. Use Terraform to modify VLAN assigned to lseng-tf-bigip, e.g. delete vlan 200
resource "f5os_tenant" "bigip" {
        name              = lseng-tf-bigip
        image_name        = "BIGIP-17.1.1.3-0.0.5.ALL-F5OS.qcow2.zip.bundle"
        mgmt_ip           = "10.176.10.250"
        mgmt_gateway      = "10.176.10.1"
        mgmt_prefix       = 24
        type              = "BIG-IP"
        cpu_cores         = 4
        memory            = 12288
        nodes             = [1]
        vlans             = [100]
        cryptos           = "enabled"
        running_state     = "deployed"
        virtual_disk_size = 87
}
  1. Observe manually created tenant lseng-manual-bigip deleted.

Full Terraform logs with debug flag enabled:

tf.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogbacklogbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions