Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that the network integration is refresh after network creation #224

Merged
merged 6 commits into from
Feb 23, 2024

Conversation

manjunath-batakurki
Copy link
Collaborator


manjuna@ubuntu:~/hpe-hcss/terraform$ TF_REATTACH_PROVIDERS='{"terraform.example.com/vmaas/hpegl":{"Protocol":"grpc","ProtocolVersion":5,"Pid":88915,"Test":true,"Addr":{"Network":"unix","String":"/tmp/plugin318438367"}}}' terraform apply
data.hpegl_vmaas_router.tier1_router: Reading...
data.hpegl_vmaas_network_pool.tf_pool: Reading...
data.hpegl_vmaas_transport_zone.tf_zone: Reading...
data.hpegl_vmaas_router.tier1_router: Still reading... [10s elapsed]
data.hpegl_vmaas_network_pool.tf_pool: Still reading... [10s elapsed]
data.hpegl_vmaas_transport_zone.tf_zone: Still reading... [10s elapsed]
data.hpegl_vmaas_router.tier1_router: Still reading... [20s elapsed]
data.hpegl_vmaas_network_pool.tf_pool: Still reading... [20s elapsed]
data.hpegl_vmaas_transport_zone.tf_zone: Still reading... [20s elapsed]
data.hpegl_vmaas_network_pool.tf_pool: Still reading... [30s elapsed]
data.hpegl_vmaas_router.tier1_router: Still reading... [30s elapsed]
data.hpegl_vmaas_transport_zone.tf_zone: Still reading... [30s elapsed]
data.hpegl_vmaas_network_pool.tf_pool: Read complete after 34s [id=43]
data.hpegl_vmaas_router.tier1_router: Read complete after 35s [id=10]
data.hpegl_vmaas_transport_zone.tf_zone: Read complete after 36s [id=7]

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the
following symbols:
  + create

Terraform will perform the following actions:

  # hpegl_vmaas_instance.minimal_instance will be created
  + resource "hpegl_vmaas_instance" "minimal_instance" {
      + cloud_id           = 1
      + containers         = (known after apply)
      + group_id           = 4
      + history            = (known after apply)
      + hostname           = (known after apply)
      + id                 = (known after apply)
      + instance_type_code = "vmware"
      + layout_id          = 376
      + name               = "tf_minimal1"
      + plan_id            = 856
      + server_id          = (known after apply)
      + status             = (known after apply)

      + config {
          + folder_code      = "group-v1036"
          + resource_pool_id = 4
          + template_id      = 1696
        }

      + network {
          + id          = (known after apply)
          + internal_id = (known after apply)
          + is_primary  = (known after apply)
          + name        = (known after apply)
        }

      + volume {
          + datastore_id = "auto"
          + id           = (known after apply)
          + name         = "root_vol"
          + root         = (known after apply)
          + size         = 5
        }
    }

  # hpegl_vmaas_network.test_net will be created
  + resource "hpegl_vmaas_network" "test_net" {
      + active                     = true
      + appliance_url_proxy_bypass = true
      + cidr                       = "10.200.60.1/24"
      + code                       = (known after apply)
      + connected_gateway          = "/infra/tier-1s/167c2eaa-fbd1-4860-8990-faaee6717335"
      + description                = "Network created using tf"
      + dhcp_enabled               = false
      + external_id                = (known after apply)
      + gateway                    = "10.200.60.1"
      + group_id                   = "shared"
      + id                         = (known after apply)
      + internal_id                = (known after apply)
      + name                       = "mahesh_tf_nsx_t_static_network"
      + primary_dns                = "172.20.10.4"
      + proxy_id                   = 1
      + scan_network               = false
      + scope_id                   = "/infra/sites/default/enforcement-points/default/transport-zones/2cc8e542-8c53-456d-b058-9fb00a5fae70"
      + status                     = (known after apply)
      + type_id                    = (known after apply)
      + unique_id                  = (known after apply)

      + resource_permissions {
          + all = true
        }

      + static_network {
          + pool_id = 43
        }
    }

Plan: 2 to add, 0 to change, 0 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

hpegl_vmaas_network.test_net: Creating...
hpegl_vmaas_network.test_net: Still creating... [10s elapsed]
hpegl_vmaas_network.test_net: Still creating... [20s elapsed]
hpegl_vmaas_network.test_net: Still creating... [30s elapsed]
hpegl_vmaas_network.test_net: Still creating... [40s elapsed]
hpegl_vmaas_network.test_net: Still creating... [50s elapsed]
hpegl_vmaas_network.test_net: Still creating... [1m0s elapsed]
hpegl_vmaas_network.test_net: Still creating... [1m10s elapsed]
hpegl_vmaas_network.test_net: Still creating... [1m20s elapsed]
hpegl_vmaas_network.test_net: Still creating... [1m30s elapsed]
hpegl_vmaas_network.test_net: Still creating... [1m40s elapsed]
hpegl_vmaas_network.test_net: Still creating... [1m50s elapsed]
hpegl_vmaas_network.test_net: Still creating... [2m0s elapsed]
hpegl_vmaas_network.test_net: Still creating... [2m10s elapsed]
hpegl_vmaas_network.test_net: Still creating... [2m20s elapsed]
hpegl_vmaas_network.test_net: Still creating... [2m30s elapsed]
hpegl_vmaas_network.test_net: Still creating... [2m40s elapsed]
hpegl_vmaas_network.test_net: Still creating... [2m50s elapsed]
hpegl_vmaas_network.test_net: Still creating... [3m0s elapsed]
hpegl_vmaas_network.test_net: Still creating... [3m10s elapsed]
hpegl_vmaas_network.test_net: Still creating... [3m20s elapsed]
hpegl_vmaas_network.test_net: Still creating... [3m30s elapsed]
hpegl_vmaas_network.test_net: Still creating... [3m40s elapsed]
hpegl_vmaas_network.test_net: Still creating... [3m50s elapsed]
hpegl_vmaas_network.test_net: Still creating... [4m0s elapsed]
hpegl_vmaas_network.test_net: Still creating... [4m10s elapsed]
hpegl_vmaas_network.test_net: Still creating... [4m20s elapsed]
hpegl_vmaas_network.test_net: Still creating... [4m30s elapsed]
hpegl_vmaas_network.test_net: Still creating... [4m40s elapsed]
hpegl_vmaas_network.test_net: Still creating... [4m50s elapsed]
hpegl_vmaas_network.test_net: Still creating... [5m0s elapsed]
hpegl_vmaas_network.test_net: Still creating... [5m10s elapsed]
hpegl_vmaas_network.test_net: Still creating... [5m20s elapsed]
hpegl_vmaas_network.test_net: Still creating... [5m30s elapsed]
hpegl_vmaas_network.test_net: Still creating... [5m40s elapsed]
hpegl_vmaas_network.test_net: Still creating... [5m50s elapsed]
hpegl_vmaas_network.test_net: Creation complete after 5m58s [id=589]
hpegl_vmaas_instance.minimal_instance: Creating...
hpegl_vmaas_instance.minimal_instance: Still creating... [10s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [20s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [30s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [40s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [50s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [1m0s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [1m10s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [1m20s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [1m30s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [1m40s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [1m50s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [2m0s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [2m10s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [2m20s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [2m30s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [2m40s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [2m50s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [3m0s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [3m10s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [3m20s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [3m30s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [3m40s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [3m50s elapsed]
hpegl_vmaas_instance.minimal_instance: Still creating... [4m0s elapsed]
hpegl_vmaas_instance.minimal_instance: Creation complete after 4m2s [id=750850]

Apply complete! Resources: 2 added, 0 changed, 0 destroyed.
manjuna@ubuntu:~/hpe-hcss/terraform$

image image image image

@manjunath-batakurki
Copy link
Collaborator Author

image

@manjunath-batakurki manjunath-batakurki merged commit 33bf3a2 into master Feb 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants