Closed andrescolodrero closed 4 years ago
`2020/05/14 14:49:42 [INFO] Terraform version: 0.12.24
2020/05/14 14:49:42 [INFO] Go runtime version: go1.12.13
2020/05/14 14:49:42 [INFO] CLI args: []string{"C:\ProgramData\chocolatey\lib\terraform\tools\terraform.exe", "apply"}
2020/05/14 14:49:42 [DEBUG] Attempting to open CLI config file: C:\Users\x-ou-andres\AppData\Roaming\terraform.rc
2020/05/14 14:49:42 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/05/14 14:49:42 [INFO] CLI command args: []string{"apply"}
2020/05/14 14:49:42 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2020/05/14 14:49:42 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2020/05/14 14:49:42 [DEBUG] New state was assigned lineage "f723e0af-f8ed-73b7-b434-50c9677f8d4e"
2020/05/14 14:49:42 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2020/05/14 14:49:42 [TRACE] Meta.Backend: instantiated backend of type
2020/05/14 14:49:46 [TRACE] Executing graph transform terraform.OrphanResourceCountTransformer
2020/05/14 14:49:46 [TRACE] Completed graph transform terraform.OrphanResourceCountTransformer (no changes)
2020/05/14 14:49:46 [TRACE] Executing graph transform terraform.AttachStateTransformer
2020/05/14 14:49:46 [DEBUG] Resource state not found for node "bigip_as3.as3-example", instance bigip_as3.as3-example
2020/05/14 14:49:46 [TRACE] Completed graph transform terraform.AttachStateTransformer (no changes)
2020/05/14 14:49:46 [TRACE] Executing graph transform terraform.TargetsTransformer
2020/05/14 14:49:46 [TRACE] Completed graph transform terraform.TargetsTransformer (no changes)
2020/05/14 14:49:46 [TRACE] Executing graph transform terraform.ReferenceTransformer
2020/05/14 14:49:46 [DEBUG] ReferenceTransformer: "bigip_as3.as3-example" references: []
2020/05/14 14:49:46 [TRACE] Completed graph transform terraform.ReferenceTransformer (no changes)
2020/05/14 14:49:46 [TRACE] Executing graph transform terraform.RootTransformer
2020/05/14 14:49:46 [TRACE] Completed graph transform terraform.RootTransformer (no changes)
2020/05/14 14:49:46 [TRACE] vertex "bigip_as3.as3-example": entering dynamic subgraph
2020/05/14 14:49:46 [TRACE] dag/walk: updating graph
2020/05/14 14:49:46 [TRACE] dag/walk: added new vertex: "bigip_as3.as3-example"
2020/05/14 14:49:46 [TRACE] dag/walk: visiting "bigip_as3.as3-example"
2020/05/14 14:49:46 [TRACE] vertex "bigip_as3.as3-example": starting visit (terraform.NodeRefreshableManagedResourceInstance)
2020/05/14 14:49:46 [TRACE] NodeRefreshableManagedResourceInstance: bigip_as3.as3-example has no existing state to refresh
2020/05/14 14:49:46 [TRACE] vertex "bigip_as3.as3-example": evaluating
2020/05/14 14:49:46 [TRACE] [walkRefresh] Entering eval tree: bigip_as3.as3-example
2020/05/14 14:49:46 [TRACE]
2020/05/14 14:49:47 [TRACE] Executing graph transform terraform.OrphanResourceCountTransformer
2020/05/14 14:49:47 [TRACE] Completed graph transform terraform.OrphanResourceCountTransformer (no changes)
2020/05/14 14:49:47 [TRACE] Executing graph transform terraform.AttachStateTransformer
2020/05/14 14:49:47 [DEBUG] Resource instance state not found for node "bigip_as3.as3-example", instance bigip_as3.as3-example
2020/05/14 14:49:47 [TRACE] Completed graph transform terraform.AttachStateTransformer (no changes)
2020/05/14 14:49:47 [TRACE] Executing graph transform terraform.TargetsTransformer
2020/05/14 14:49:47 [TRACE] Completed graph transform terraform.TargetsTransformer (no changes)
2020/05/14 14:49:47 [TRACE] Executing graph transform terraform.ReferenceTransformer
2020/05/14 14:49:47 [DEBUG] ReferenceTransformer: "bigip_as3.as3-example" references: []
2020/05/14 14:49:47 [TRACE] Completed graph transform terraform.ReferenceTransformer (no changes)
2020/05/14 14:49:47 [TRACE] Executing graph transform terraform.RootTransformer
2020/05/14 14:49:47 [TRACE] Completed graph transform terraform.RootTransformer (no changes)
2020/05/14 14:49:47 [TRACE] vertex "bigip_as3.as3-example": entering dynamic subgraph
2020/05/14 14:49:47 [TRACE] dag/walk: updating graph
2020/05/14 14:49:47 [TRACE] dag/walk: added new vertex: "bigip_as3.as3-example"
2020/05/14 14:49:47 [TRACE] dag/walk: visiting "bigip_as3.as3-example"
2020/05/14 14:49:47 [TRACE] vertex "bigip_as3.as3-example": starting visit (terraform.NodePlannableResourceInstance)
2020/05/14 14:49:47 [TRACE] vertex "bigip_as3.as3-example": evaluating
2020/05/14 14:49:47 [TRACE] [walkPlan] Entering eval tree: bigip_as3.as3-example
2020/05/14 14:49:47 [TRACE]
2020/05/14 14:49:51 [DEBUG] Starting graph walk: walkApply
2020/05/14 14:49:51 [TRACE] dag/walk: updating graph
2020/05/14 14:49:51 [TRACE] dag/walk: added new vertex: "provider.template"
2020/05/14 14:49:51 [TRACE] dag/walk: added new vertex: "provider.template (close)"
2020/05/14 14:49:51 [TRACE] dag/walk: added new vertex: "meta.count-boundary (EachMode fixup)"
2020/05/14 14:49:51 [TRACE] dag/walk: added new vertex: "root"
2020/05/14 14:49:51 [TRACE] dag/walk: added new vertex: "bigip_as3.as3-example"
2020/05/14 14:49:51 [TRACE] dag/walk: added new vertex: "provider.bigip"
2020/05/14 14:49:51 [TRACE] dag/walk: added new vertex: "provider.bigip (close)"
2020/05/14 14:49:51 [TRACE] dag/walk: added new vertex: "var.bigip_password"
2020/05/14 14:49:51 [TRACE] dag/walk: added new vertex: "bigip_as3.as3-example (prepare state)"
2020/05/14 14:49:51 [TRACE] dag/walk: added new vertex: "var.tenant"
2020/05/14 14:49:51 [TRACE] dag/walk: added new vertex: "var.bigip_address"
2020/05/14 14:49:51 [TRACE] dag/walk: added new vertex: "data.template_file.init (prepare state)"
2020/05/14 14:49:51 [TRACE] dag/walk: added new vertex: "var.vip_address"
2020/05/14 14:49:51 [TRACE] dag/walk: added edge: "meta.count-boundary (EachMode fixup)" waiting on "var.vip_address"
2020/05/14 14:49:51 [TRACE] dag/walk: added edge: "data.template_file.init (prepare state)" waiting on "provider.template"
2020/05/14 14:49:51 [TRACE] dag/walk: added edge: "provider.bigip (close)" waiting on "bigip_as3.as3-example"
2020/05/14 14:49:51 [TRACE] dag/walk: added edge: "provider.bigip" waiting on "var.bigip_password"
2020/05/14 14:49:51 [TRACE] dag/walk: added edge: "bigip_as3.as3-example (prepare state)" waiting on "provider.bigip"
2020/05/14 14:49:51 [TRACE] dag/walk: added edge: "provider.template (close)" waiting on "data.template_file.init (prepare state)"
2020/05/14 14:49:51 [TRACE] dag/walk: added edge: "bigip_as3.as3-example" waiting on "data.template_file.init (prepare state)"
2020/05/14 14:49:51 [TRACE] dag/walk: added edge: "meta.count-boundary (EachMode fixup)" waiting on "var.tenant"
2020/05/14 14:49:51 [TRACE] dag/walk: added edge: "meta.count-boundary (EachMode fixup)" waiting on "bigip_as3.as3-example"
2020/05/14 14:49:51 [TRACE] dag/walk: added edge: "provider.bigip" waiting on "var.bigip_address"
2020/05/14 14:49:51 [TRACE] dag/walk: added edge: "bigip_as3.as3-example" waiting on "bigip_as3.as3-example (prepare state)"
2020/05/14 14:49:51 [TRACE] dag/walk: added edge: "root" waiting on "meta.count-boundary (EachMode fixup)"
2020/05/14 14:49:51 [TRACE] dag/walk: added edge: "root" waiting on "provider.bigip (close)"
2020/05/14 14:49:51 [TRACE] dag/walk: added edge: "root" waiting on "provider.template (close)"
2020/05/14 14:49:51 [TRACE] dag/walk: dependencies changed for "provider.template (close)", sending new deps
2020/05/14 14:49:51 [TRACE] dag/walk: dependencies changed for "bigip_as3.as3-example", sending new deps
2020/05/14 14:49:51 [TRACE] dag/walk: dependencies changed for "root", sending new deps
2020/05/14 14:49:51 [TRACE] dag/walk: dependencies changed for "meta.count-boundary (EachMode fixup)", sending new deps
2020/05/14 14:49:51 [TRACE] dag/walk: dependencies changed for "data.template_file.init (prepare state)", sending new deps
2020/05/14 14:49:51 [TRACE] dag/walk: dependencies changed for "provider.bigip (close)", sending new deps
2020/05/14 14:49:51 [TRACE] dag/walk: dependencies changed for "provider.bigip", sending new deps
2020/05/14 14:49:51 [TRACE] dag/walk: dependencies changed for "bigip_as3.as3-example (prepare state)", sending new deps
2020/05/14 14:49:51 [TRACE] dag/walk: visiting "var.vip_address"
2020/05/14 14:49:51 [TRACE] vertex "var.vip_address": starting visit (terraform.NodeRootVariable)
2020/05/14 14:49:51 [TRACE] vertex "var.vip_address": evaluating
2020/05/14 14:49:51 [TRACE] [walkApply] Entering eval tree: var.vip_address
2020/05/14 14:49:51 [TRACE]
@andrescolodrero Can you please verify is AS3 RPM installed on BIGIP?? from the Error it looks when we try to get AS3 version it is returned Nil value. Please confirm
2020-05-14T14:49:52.897Z [DEBUG] plugin.terraform-provider-bigip_v1.2.0_x4.exe: 2020/05/14 14:49:52 [INFO] Creating As3 config
2020-05-14T14:49:53.604Z [DEBUG] plugin.terraform-provider-bigip_v1.2.0_x4.exe: 2020/05/14 14:49:53 [DEBUG] AS3 Version:
2020-05-14T14:49:53.604Z [DEBUG] plugin.terraform-provider-bigip_v1.2.0_x4.exe: 2020/05/14 14:49:53 [DEBUG] Terraform Version:Terraform/0.12.24
2020-05-14T14:49:53.606Z [DEBUG] plugin.terraform-provider-bigip_v1.2.0_x4.exe: panic: runtime error: index out of range
we are tracking TER-344 for handling this Error Condition Scenario.
@RavinderReddyF5 Yes, the rpm is installed.
i attached a new log. terraform apply fail after 6 minutes running. A warning messages is logging that the provider generated an invalid plan "2020-05-15T15:30:20.4782002Z 2020/05/15 15:30:20 [WARN] Provider "registry.terraform.io/-/bigip" produced an invalid plan for bigip_as3.as3-example, but we are tolerating it because it is using the legacy plugin SDK. 2020-05-15T15:30:20.4782563Z The following problems may be the cause of any confusing errors from downstream operations: 2020-05-15T15:30:20.4783444Z - .as3_json: planned value cty.StringVal("{\"action\":\"deploy\",\"class\":\"AS3\",\"declaration\":{\"as3\":{\"AAA1\":{\"class\":\"Application\",\"serviceMain\":{\"class\":\"Service_HTTP\",\"pool\":\"web_pool\",\"virtualAddresses\":[\"10.0.1.10\"]},\"template\":\"http\",\"web_pool\":{\"class\":\"Pool\",\"members\":[{\"serverAddresses\":[\"192.0.1.10\",\"192.0.1.11\"],\"servicePort\":80}],\"monitors\":[\"http\"]}},\"class\":\"Tenant\"},\"class\":\"ADC\",\"id\":\"urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d\",\"label\":\"Sample 1\",\"remark\":\"Simple HTTP application with RR pool\",\"schemaVersion\":\"3.0.0\"},\"persist\":true}") does not match config value cty.StringVal("{\r\n \"class\": \"AS3\",\r\n \"action\": \"deploy\",\r\n \"persist\": true,\r\n \"declaration\": {\r\n \"class\": \"ADC\",\r\n \"schemaVersion\": \"3.0.0\",\r\n \"id\": \"urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d\",\r\n \"label\": \"Sample 1\",\r\n \"remark\": \"Simple HTTP application with RR pool\",\r\n \"as3\": {\r\n \"class\": \"Tenant\",\r\n \"AAA1\": {\r\n \"class\": \"Application\",\r\n \"template\": \"http\",\r\n \"serviceMain\": {\r\n \"class\": \"Service_HTTP\",\r\n \"virtualAddresses\": [\r\n \"10.0.1.10\"\r\n ],\r\n \"pool\": \"web_pool\"\r\n },\r\n \"web_pool\": {\r\n \"class\": \"Pool\",\r\n \"monitors\": [\r\n \"http\"\r\n ],\r\n \"members\": [{\r\n \"servicePort\": 80,\r\n \"serverAddresses\": [\r\n \"192.0.1.10\",\r\n \"192.0.1.11\"\r\n ]\r\n }]\r\n }\r\n }\r\n }\r\n }\r\n}") " i attach full log on next post
2020-05-15T15:30:10.0797307Z ##[section]Starting: Terraform apply as3
2020-05-15T15:30:10.0878178Z ==============================================================================
2020-05-15T15:30:10.0878261Z Task : Run Terraform
2020-05-15T15:30:10.0878325Z Description : Run a Terraform on the build agent
2020-05-15T15:30:10.0878371Z Version : 2.4.0
2020-05-15T15:30:10.0878415Z Author : Peter Groenewegen - Xpirit
2020-05-15T15:30:10.0878476Z Help : More Information
2020-05-15T15:30:10.0878522Z ==============================================================================
2020-05-15T15:30:13.1316835Z ##[command]"terraform" apply -auto-approve -input=false -no-color
2020-05-15T15:30:16.8310238Z 2020/05/15 15:30:16 [INFO] Terraform version: 0.12.24
2020-05-15T15:30:16.8311468Z 2020/05/15 15:30:16 [INFO] Go runtime version: go1.12.13
2020-05-15T15:30:16.8311764Z 2020/05/15 15:30:16 [INFO] CLI args: []string{"C:\ProgramData\chocolatey\lib\terraform\tools\terraform.exe", "apply", "-auto-approve", "-input=false", "-no-color"}
2020-05-15T15:30:16.8312055Z 2020/05/15 15:30:16 [DEBUG] Attempting to open CLI config file: C:\Users\x-ou-andres\AppData\Roaming\terraform.rc
2020-05-15T15:30:16.8312217Z 2020/05/15 15:30:16 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020-05-15T15:30:16.8312377Z 2020/05/15 15:30:16 [INFO] CLI command args: []string{"apply", "-auto-approve", "-input=false", "-no-color"}
2020-05-15T15:30:16.8312563Z 2020/05/15 15:30:16 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2020-05-15T15:30:16.8312723Z 2020/05/15 15:30:16 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2020-05-15T15:30:16.8312900Z 2020/05/15 15:30:16 [DEBUG] New state was assigned lineage "ae4f0410-1167-32ab-f5df-5da6416027b8"
2020-05-15T15:30:16.8313063Z 2020/05/15 15:30:16 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2020-05-15T15:30:16.8313236Z 2020/05/15 15:30:16 [TRACE] Meta.Backend: instantiated backend of type
@andrescolodrero Previous Problem and present problem is different. present logs shows we are getting AS3 version
2020-05-15T15:30:22.2435173Z 2020-05-15T15:30:22.242Z [DEBUG] plugin.terraform-provider-bigip_v1.2.0_x4.exe: 2020/05/15 15:30:22 [INFO] Creating As3 config
2020-05-15T15:30:23.0565186Z 2020-05-15T15:30:23.056Z [DEBUG] plugin.terraform-provider-bigip_v1.2.0_x4.exe: 2020/05/15 15:30:23 [DEBUG] AS3 Version:3.19.0
2020-05-15T15:30:23.0565455Z 2020-05-15T15:30:23.056Z [DEBUG] plugin.terraform-provider-bigip_v1.2.0_x4.exe: 2020/05/15 15:30:23 [DEBUG] Terraform Version:Terraform/0.12.24
Looks we have not received any error response from BIGIP for 6 mins, is it possible to share configuration which you are trying to use?
@andrescolodrero you can use Slack Channel :https://github.com/terraform-providers/terraform-provider-bigip#community-help
Looks like timeout because of save config
2020-05-15T15:37:05.3549914Z 2020-05-15T15:37:05.354Z [DEBUG] plugin.terraform-provider-bigip_v1.2.0_x4.exe: 2020/05/15 15:37:05 [ERROR] : HTTP 500 :: failed to save BIG-IP config (connection to http://admin:XXXXXX@localhost:8100/mgmt/tm/task/sys/config create task save sys config timed out) for tenant
HI, @RavinderReddyF5
It is the basic template:
{ "class": "AS3", "action": "deploy", "persist": true, "declaration": { "class": "ADC", "schemaVersion": "3.0.0", "id": "urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d", "label": "Sample 1", "remark": "Simple HTTP application with RR pool", "as3": { "class": "Tenant", "AAA1": { "class": "Application", "template": "http", "serviceMain": { "class": "Service_HTTP", "virtualAddresses": [ "10.0.1.10" ], "pool": "web_pool" }, "web_pool": { "class": "Pool", "monitors": [ "http" ], "members": [{ "servicePort": 80, "serverAddresses": [ "192.0.1.10", "192.0.1.11" ] }] } } } } }
and tf code:
data "template_file" "init" { template = "${file("test.json")}" }
resource "bigip_as3" "as3-example" { as3_json = data.template_file.init.rendered }
@andrescolodrero We dont see any issues in posting same config on BIGIP,Did u tried posting same using Postman client??
HYD-ML-00064448:terraform-provider-bigip chinthalapalli$ terraform apply
2020/05/15 23:01:10 [INFO] Terraform version: 0.12.12
2020/05/15 23:01:10 [INFO] Go runtime version: go1.12.9
2020/05/15 23:01:10 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2020/05/15 23:01:10 [DEBUG] Attempting to open CLI config file: /Users/chinthalapalli/.terraformrc
2020/05/15 23:01:10 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/05/15 23:01:10 [INFO] CLI command args: []string{"apply"}
2020/05/15 23:01:10 [DEBUG] New state was assigned lineage "7dfe7747-9a66-b89d-9596-e50d59f209b4"
2020/05/15 23:01:10 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2020/05/15 23:01:10 [TRACE] Meta.Backend: instantiated backend of type <nil>
2020/05/15 23:01:10 [DEBUG] checking for provider in "."
2020/05/15 23:01:10 [WARN] found legacy provider "terraform-provider-bigip"
2020/05/15 23:01:10 [DEBUG] checking for provider in "/usr/local/bin"
2020/05/15 23:01:10 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2020/05/15 23:01:10 [DEBUG] found provider "terraform-provider-template_v2.1.2_x4"
2020/05/15 23:01:10 [DEBUG] found valid plugin: "template", "2.1.2", "/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4"
2020/05/15 23:01:10 [DEBUG] found valid plugin: "bigip", "0.0.0", "/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip"
2020/05/15 23:01:10 [DEBUG] checking for provisioner in "."
2020/05/15 23:01:10 [DEBUG] checking for provisioner in "/usr/local/bin"
2020/05/15 23:01:10 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2020/05/15 23:01:10 [INFO] backend/local: starting Apply operation
2020-05-15T23:01:10.479+0530 [INFO] plugin: configuring client automatic mTLS
2020-05-15T23:01:10.502+0530 [DEBUG] plugin: starting plugin: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip args=[/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip]
2020-05-15T23:01:10.505+0530 [DEBUG] plugin: plugin started: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip pid=18143
2020-05-15T23:01:10.505+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip
2020-05-15T23:01:10.555+0530 [INFO] plugin.terraform-provider-bigip: configuring server automatic mTLS: timestamp=2020-05-15T23:01:10.555+0530
2020-05-15T23:01:10.581+0530 [DEBUG] plugin.terraform-provider-bigip: plugin address: address=/var/folders/1j/48gxz3m16cg8rmqg2c3sh2p864j1zq/T/plugin138527402 network=unix timestamp=2020-05-15T23:01:10.580+0530
2020-05-15T23:01:10.581+0530 [DEBUG] plugin: using plugin: version=5
2020-05-15T23:01:10.638+0530 [DEBUG] plugin: plugin process exited: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip pid=18143
2020-05-15T23:01:10.638+0530 [DEBUG] plugin: plugin exited
2020-05-15T23:01:10.638+0530 [INFO] plugin: configuring client automatic mTLS
2020-05-15T23:01:10.661+0530 [DEBUG] plugin: starting plugin: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 args=[/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4]
2020-05-15T23:01:10.664+0530 [DEBUG] plugin: plugin started: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 pid=18144
2020-05-15T23:01:10.664+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4
2020-05-15T23:01:10.673+0530 [INFO] plugin.terraform-provider-template_v2.1.2_x4: configuring server automatic mTLS: timestamp=2020-05-15T23:01:10.673+0530
2020-05-15T23:01:10.699+0530 [DEBUG] plugin: using plugin: version=5
2020-05-15T23:01:10.699+0530 [DEBUG] plugin.terraform-provider-template_v2.1.2_x4: plugin address: address=/var/folders/1j/48gxz3m16cg8rmqg2c3sh2p864j1zq/T/plugin768299951 network=unix timestamp=2020-05-15T23:01:10.699+0530
2020-05-15T23:01:10.748+0530 [DEBUG] plugin: plugin process exited: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 pid=18144
2020-05-15T23:01:10.748+0530 [DEBUG] plugin: plugin exited
2020/05/15 23:01:10 [INFO] terraform: building graph: GraphTypeValidate
2020/05/15 23:01:10 [DEBUG] adding implicit provider configuration provider.template, implied first by data.template_file.init
2020/05/15 23:01:10 [DEBUG] ReferenceTransformer: "bigip_as3.as3-example01" references: [data.template_file.init]
2020/05/15 23:01:10 [DEBUG] ReferenceTransformer: "data.template_file.init" references: []
2020/05/15 23:01:10 [DEBUG] ReferenceTransformer: "provider.bigip" references: []
2020/05/15 23:01:10 [DEBUG] ReferenceTransformer: "provider.template" references: []
2020/05/15 23:01:10 [TRACE] Completed graph transform *terraform.ReferenceTransformer with new graph:
bigip_as3.as3-example01 - *terraform.NodeValidatableResource
data.template_file.init - *terraform.NodeValidatableResource
provider.bigip - *terraform.NodeApplyableProvider
data.template_file.init - *terraform.NodeValidatableResource
provider.template - *terraform.NodeApplyableProvider
provider.bigip - *terraform.NodeApplyableProvider
provider.template - *terraform.NodeApplyableProvider
------
2020/05/15 23:01:10 [TRACE] Executing graph transform *terraform.CountBoundaryTransformer
2020/05/15 23:01:10 [DEBUG] Starting graph walk: walkValidate
2020/05/15 23:01:10 [TRACE] dag/walk: updating graph
2020-05-15T23:01:10.751+0530 [INFO] plugin: configuring client automatic mTLS
2020-05-15T23:01:10.772+0530 [DEBUG] plugin: starting plugin: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 args=[/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4]
2020-05-15T23:01:10.775+0530 [DEBUG] plugin: plugin started: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 pid=18145
2020-05-15T23:01:10.775+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4
2020-05-15T23:01:10.784+0530 [INFO] plugin.terraform-provider-template_v2.1.2_x4: configuring server automatic mTLS: timestamp=2020-05-15T23:01:10.783+0530
2020-05-15T23:01:10.810+0530 [DEBUG] plugin: using plugin: version=5
2020-05-15T23:01:10.810+0530 [DEBUG] plugin.terraform-provider-template_v2.1.2_x4: plugin address: address=/var/folders/1j/48gxz3m16cg8rmqg2c3sh2p864j1zq/T/plugin343705420 network=unix timestamp=2020-05-15T23:01:10.809+0530
2020-05-15T23:01:10.810+0530 [INFO] plugin: configuring client automatic mTLS
2020-05-15T23:01:10.835+0530 [DEBUG] plugin: starting plugin: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip args=[/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip]
2020-05-15T23:01:10.839+0530 [DEBUG] plugin: plugin started: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip pid=18146
2020-05-15T23:01:10.839+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip
2020-05-15T23:01:10.857+0530 [INFO] plugin.terraform-provider-bigip: configuring server automatic mTLS: timestamp=2020-05-15T23:01:10.857+0530
2020-05-15T23:01:10.880+0530 [DEBUG] plugin.terraform-provider-bigip: plugin address: address=/var/folders/1j/48gxz3m16cg8rmqg2c3sh2p864j1zq/T/plugin835906057 network=unix timestamp=2020-05-15T23:01:10.880+0530
2020-05-15T23:01:10.880+0530 [DEBUG] plugin: using plugin: version=5
2020-05-15T23:01:10.885+0530 [DEBUG] plugin: plugin process exited: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 pid=18145
2020-05-15T23:01:10.885+0530 [DEBUG] plugin: plugin exited
2020-05-15T23:01:10.944+0530 [DEBUG] plugin: plugin process exited: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip pid=18146
2020-05-15T23:01:10.944+0530 [DEBUG] plugin: plugin exited
2020/05/15 23:01:10 [TRACE] [walkValidate] Exiting eval tree: provider.bigip (close)
2020/05/15 23:01:10 [TRACE] vertex "provider.bigip (close)": visit complete
2020/05/15 23:01:10 [INFO] backend/local: apply calling Refresh
2020/05/15 23:01:10 [INFO] terraform: building graph: GraphTypeRefresh
2020/05/15 23:01:10 [DEBUG] ReferenceTransformer: "provider.template" references: []
2020/05/15 23:01:10 [DEBUG] ReferenceTransformer: "data.template_file.init" references: []
2020/05/15 23:01:10 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2020/05/15 23:01:10 [TRACE] Executing graph transform *terraform.TargetsTransformer
2020-05-15T23:01:10.945+0530 [INFO] plugin: configuring client automatic mTLS
2020-05-15T23:01:10.969+0530 [DEBUG] plugin: starting plugin: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 args=[/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4]
2020-05-15T23:01:10.972+0530 [DEBUG] plugin: plugin started: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 pid=18147
2020-05-15T23:01:10.972+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4
2020-05-15T23:01:10.988+0530 [INFO] plugin.terraform-provider-template_v2.1.2_x4: configuring server automatic mTLS: timestamp=2020-05-15T23:01:10.987+0530
2020-05-15T23:01:11.019+0530 [DEBUG] plugin: using plugin: version=5
2020-05-15T23:01:11.019+0530 [DEBUG] plugin.terraform-provider-template_v2.1.2_x4: plugin address: address=/var/folders/1j/48gxz3m16cg8rmqg2c3sh2p864j1zq/T/plugin109497486 network=unix timestamp=2020-05-15T23:01:11.019+0530
2020/05/15 23:01:11 [DEBUG] Resource state not found for node "data.template_file.init", instance data.template_file.init
2020/05/15 23:01:11 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2020/05/15 23:01:11 [DEBUG] ReferenceTransformer: "data.template_file.init" references: []
2020/05/15 23:01:11 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2020/05/15 23:01:11 [TRACE] Executing graph transform *terraform.RootTransformer
2020/05/15 23:01:11 [TRACE] Completed graph transform *terraform.RootTransformer (no changes)
2020/05/15 23:01:11 [TRACE] vertex "data.template_file.init": entering dynamic subgraph
data.template_file.init: Refreshing state...
2020-05-15T23:01:11.077+0530 [DEBUG] plugin: plugin process exited: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 pid=18147
2020-05-15T23:01:11.077+0530 [DEBUG] plugin: plugin exited
2020/05/15 23:01:11 [INFO] backend/local: apply calling Plan
2020/05/15 23:01:11 [INFO] terraform: building graph: GraphTypePlan
2020/05/15 23:01:11 [TRACE] Executing graph transform *terraform.ConfigTransformer
2020/05/15 23:01:11 [TRACE] ConfigTransformer: Starting for path:
2020/05/15 23:01:11 [DEBUG] ReferenceTransformer: "bigip_as3.as3-example01" references: [data.template_file.init]
2020/05/15 23:01:11 [DEBUG] ReferenceTransformer: "data.template_file.init" references: []
2020/05/15 23:01:11 [DEBUG] ReferenceTransformer: "provider.bigip" references: []
2020/05/15 23:01:11 [DEBUG] ReferenceTransformer: "provider.template" references: []
2020/05/15 23:01:11 [DEBUG] Starting graph walk: walkPlan
2020-05-15T23:01:11.078+0530 [INFO] plugin: configuring client automatic mTLS
2020-05-15T23:01:11.104+0530 [DEBUG] plugin: starting plugin: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip args=[/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip]
2020-05-15T23:01:11.109+0530 [DEBUG] plugin: plugin started: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip pid=18148
2020-05-15T23:01:11.109+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip
2020-05-15T23:01:11.128+0530 [INFO] plugin.terraform-provider-bigip: configuring server automatic mTLS: timestamp=2020-05-15T23:01:11.128+0530
2020-05-15T23:01:11.155+0530 [DEBUG] plugin: using plugin: version=5
2020-05-15T23:01:11.155+0530 [DEBUG] plugin.terraform-provider-bigip: plugin address: address=/var/folders/1j/48gxz3m16cg8rmqg2c3sh2p864j1zq/T/plugin529004523 network=unix timestamp=2020-05-15T23:01:11.155+0530
2020-05-15T23:01:11.156+0530 [INFO] plugin: configuring client automatic mTLS
2020-05-15T23:01:11.184+0530 [DEBUG] plugin: starting plugin: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 args=[/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4]
2020-05-15T23:01:11.187+0530 [DEBUG] plugin: plugin started: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 pid=18149
2020-05-15T23:01:11.187+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4
2020-05-15T23:01:11.196+0530 [INFO] plugin.terraform-provider-template_v2.1.2_x4: configuring server automatic mTLS: timestamp=2020-05-15T23:01:11.196+0530
2020-05-15T23:01:11.226+0530 [DEBUG] plugin: using plugin: version=5
2020-05-15T23:01:11.226+0530 [DEBUG] plugin.terraform-provider-template_v2.1.2_x4: plugin address: address=/var/folders/1j/48gxz3m16cg8rmqg2c3sh2p864j1zq/T/plugin411510528 network=unix timestamp=2020-05-15T23:01:11.226+0530
2020-05-15T23:01:11.231+0530 [DEBUG] plugin.terraform-provider-bigip: 2020/05/15 23:01:11 [INFO] Initializing BigIP connection
2020/05/15 23:01:11 [DEBUG] ReferenceTransformer: "data.template_file.init" references: []
2020/05/15 23:01:11 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2020/05/15 23:01:11 [TRACE] Executing graph transform *terraform.RootTransformer
2020/05/15 23:01:11 [TRACE] Completed graph transform *terraform.RootTransformer (no changes)
2020/05/15 23:01:11 [TRACE] vertex "data.template_file.init": entering dynamic subgraph
2020-05-15T23:01:11.287+0530 [DEBUG] plugin: plugin process exited: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 pid=18149
2020-05-15T23:01:11.287+0530 [DEBUG] plugin: plugin exited
2020/05/15 23:01:13 [DEBUG] ReferenceTransformer: "bigip_as3.as3-example01" references: []
2020/05/15 23:01:13 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2020/05/15 23:01:13 [TRACE] Executing graph transform *terraform.RootTransformer
2020/05/15 23:01:13 [WARN] Provider "bigip" produced an invalid plan for bigip_as3.as3-example01, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .as3_json: planned value cty.StringVal("{\"action\":\"deploy\",\"class\":\"AS3\",\"declaration\":{\"as3\":{\"AAA1\":{\"class\":\"Application\",\"serviceMain\":{\"class\":\"Service_HTTP\",\"pool\":\"web_pool\",\"virtualAddresses\":[\"10.0.1.10\"]},\"template\":\"http\",\"web_pool\":{\"class\":\"Pool\",\"members\":[{\"serverAddresses\":[\"192.0.1.10\",\"192.0.1.11\"],\"servicePort\":80}],\"monitors\":[\"http\"]}},\"class\":\"Tenant\"},\"class\":\"ADC\",\"id\":\"urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d\",\"label\":\"Sample 1\",\"remark\":\"Simple HTTP application with RR pool\",\"schemaVersion\":\"3.0.0\"},\"persist\":true}") does not match config value cty.StringVal("{\n \"class\": \"AS3\",\n \"action\": \"deploy\",\n \"persist\": true,\n \"declaration\": {\n \"class\": \"ADC\",\n \"schemaVersion\": \"3.0.0\",\n \"id\": \"urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d\",\n \"label\": \"Sample 1\",\n \"remark\": \"Simple HTTP application with RR pool\",\n \"as3\": {\n \"class\": \"Tenant\",\n \"AAA1\": {\n \"class\": \"Application\",\n \"template\": \"http\",\n \"serviceMain\": {\n \"class\": \"Service_HTTP\",\n \"virtualAddresses\": [\n \"10.0.1.10\"\n ],\n \"pool\": \"web_pool\"\n },\n \"web_pool\": {\n \"class\": \"Pool\",\n \"monitors\": [\n \"http\"\n ],\n \"members\": [\n {\n \"servicePort\": 80,\n \"serverAddresses\": [\n \"192.0.1.10\",\n \"192.0.1.11\"\n ]\n }\n ]\n }\n }\n }\n }\n}")
2020-05-15T23:01:13.410+0530 [DEBUG] plugin: plugin process exited: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip pid=18148
2020-05-15T23:01:13.410+0530 [DEBUG] plugin: plugin exited
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
2020/05/15 23:01:13 [DEBUG] command: asking for input: "Do you want to perform these actions?"
# bigip_as3.as3-example01 will be created
+ resource "bigip_as3" "as3-example01" {
+ as3_json = jsonencode(
{
+ action = "deploy"
+ class = "AS3"
+ declaration = {
+ as3 = {
+ AAA1 = {
+ class = "Application"
+ serviceMain = {
+ class = "Service_HTTP"
+ pool = "web_pool"
+ virtualAddresses = [
+ "10.0.1.10",
]
}
+ template = "http"
+ web_pool = {
+ class = "Pool"
+ members = [
+ {
+ serverAddresses = [
+ "192.0.1.10",
+ "192.0.1.11",
]
+ servicePort = 80
},
]
+ monitors = [
+ "http",
]
}
}
+ class = "Tenant"
}
+ class = "ADC"
+ id = "urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d"
+ label = "Sample 1"
+ remark = "Simple HTTP application with RR pool"
+ schemaVersion = "3.0.0"
}
+ persist = true
}
)
+ id = (known after apply)
+ tenant_list = (known after apply)
}
Plan: 1 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
2020/05/15 23:01:15 [INFO] backend/local: apply calling Apply
2020/05/15 23:01:15 [INFO] terraform: building graph: GraphTypeApply
2020/05/15 23:01:15 [DEBUG] Resource state not found for node "bigip_as3.as3-example01", instance bigip_as3.as3-example01
2020/05/15 23:01:15 [DEBUG] ReferenceTransformer: "bigip_as3.as3-example01" references: [data.template_file.init (prepare state)]
2020/05/15 23:01:15 [DEBUG] ReferenceTransformer: "provider.bigip" references: []
2020/05/15 23:01:15 [DEBUG] ReferenceTransformer: "provider.template" references: []
2020/05/15 23:01:15 [DEBUG] ReferenceTransformer: "bigip_as3.as3-example01 (prepare state)" references: []
2020/05/15 23:01:15 [DEBUG] ReferenceTransformer: "data.template_file.init (prepare state)" references: []
2020/05/15 23:01:15 [DEBUG] Starting graph walk: walkApply
2020/05/15 23:01:15 [TRACE] dag/walk: updating graph
2020-05-15T23:01:15.903+0530 [INFO] plugin: configuring client automatic mTLS
2020-05-15T23:01:15.934+0530 [DEBUG] plugin: starting plugin: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip args=[/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip]
2020-05-15T23:01:15.939+0530 [DEBUG] plugin: plugin started: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip pid=18150
2020-05-15T23:01:15.939+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip
2020-05-15T23:01:15.959+0530 [INFO] plugin.terraform-provider-bigip: configuring server automatic mTLS: timestamp=2020-05-15T23:01:15.958+0530
2020-05-15T23:01:15.983+0530 [DEBUG] plugin: using plugin: version=5
2020-05-15T23:01:15.983+0530 [DEBUG] plugin.terraform-provider-bigip: plugin address: address=/var/folders/1j/48gxz3m16cg8rmqg2c3sh2p864j1zq/T/plugin903515973 network=unix timestamp=2020-05-15T23:01:15.983+0530
2020-05-15T23:01:15.984+0530 [INFO] plugin: configuring client automatic mTLS
2020-05-15T23:01:16.012+0530 [DEBUG] plugin: starting plugin: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 args=[/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4]
2020-05-15T23:01:16.015+0530 [DEBUG] plugin: plugin started: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 pid=18151
2020-05-15T23:01:16.015+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4
2020-05-15T23:01:16.025+0530 [INFO] plugin.terraform-provider-template_v2.1.2_x4: configuring server automatic mTLS: timestamp=2020-05-15T23:01:16.025+0530
2020-05-15T23:01:16.051+0530 [DEBUG] plugin: using plugin: version=5
2020-05-15T23:01:16.051+0530 [DEBUG] plugin.terraform-provider-template_v2.1.2_x4: plugin address: address=/var/folders/1j/48gxz3m16cg8rmqg2c3sh2p864j1zq/T/plugin787805242 network=unix timestamp=2020-05-15T23:01:16.051+0530
2020-05-15T23:01:16.058+0530 [DEBUG] plugin.terraform-provider-bigip: 2020/05/15 23:01:16 [INFO] Initializing BigIP connection
2020-05-15T23:01:16.107+0530 [DEBUG] plugin: plugin process exited: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 pid=18151
2020-05-15T23:01:16.107+0530 [DEBUG] plugin: plugin exited
2020/05/15 23:01:16 [TRACE] [walkApply] Exiting eval tree: provider.template (close)
2020/05/15 23:01:16 [TRACE] vertex "provider.template (close)": visit complete
2020/05/15 23:01:17 [WARN] Provider "bigip" produced an invalid plan for bigip_as3.as3-example01, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .as3_json: planned value cty.StringVal("{\"action\":\"deploy\",\"class\":\"AS3\",\"declaration\":{\"as3\":{\"AAA1\":{\"class\":\"Application\",\"serviceMain\":{\"class\":\"Service_HTTP\",\"pool\":\"web_pool\",\"virtualAddresses\":[\"10.0.1.10\"]},\"template\":\"http\",\"web_pool\":{\"class\":\"Pool\",\"members\":[{\"serverAddresses\":[\"192.0.1.10\",\"192.0.1.11\"],\"servicePort\":80}],\"monitors\":[\"http\"]}},\"class\":\"Tenant\"},\"class\":\"ADC\",\"id\":\"urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d\",\"label\":\"Sample 1\",\"remark\":\"Simple HTTP application with RR pool\",\"schemaVersion\":\"3.0.0\"},\"persist\":true}") does not match config value cty.StringVal("{\n \"class\": \"AS3\",\n \"action\": \"deploy\",\n \"persist\": true,\n \"declaration\": {\n \"class\": \"ADC\",\n \"schemaVersion\": \"3.0.0\",\n \"id\": \"urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d\",\n \"label\": \"Sample 1\",\n \"remark\": \"Simple HTTP application with RR pool\",\n \"as3\": {\n \"class\": \"Tenant\",\n \"AAA1\": {\n \"class\": \"Application\",\n \"template\": \"http\",\n \"serviceMain\": {\n \"class\": \"Service_HTTP\",\n \"virtualAddresses\": [\n \"10.0.1.10\"\n ],\n \"pool\": \"web_pool\"\n },\n \"web_pool\": {\n \"class\": \"Pool\",\n \"monitors\": [\n \"http\"\n ],\n \"members\": [\n {\n \"servicePort\": 80,\n \"serverAddresses\": [\bigip_as3.as3-example01: Creating...
n 2020/05/15 23:01:17 [DEBUG] bigip_as3.as3-example01: applying the planned Create change
2020/05/15 23:01:17 [TRACE] GRPCProvider: ApplyResourceChange
2020-05-15T23:01:17.225+0530 [DEBUG] plugin.terraform-provider-bigip: 2020/05/15 23:01:17 [INFO] Creating As3 config
2020-05-15T23:01:19.211+0530 [DEBUG] plugin.terraform-provider-bigip: 2020/05/15 23:01:19 [DEBUG] AS3 Version:3.19.1
2020-05-15T23:01:19.211+0530 [DEBUG] plugin.terraform-provider-bigip: 2020/05/15 23:01:19 [DEBUG] Terraform Version:Terraform/0.12.12
2020-05-15T23:01:19.211+0530 [DEBUG] plugin.terraform-provider-bigip: 2020/05/15 23:01:19 [INFO] Creating as3 config in bigip:{"action":"deploy","class":"AS3","declaration":{"as3":{"AAA1":{"class":"Application","serviceMain":{"class":"Service_HTTP","pool":"web_pool","virtualAddresses":["10.0.1.10"]},"template":"http","web_pool":{"class":"Pool","members":[{"serverAddresses":["192.0.1.10","192.0.1.11"],"servicePort":80}],"monitors":["http"]}},"class":"Tenant"},"class":"ADC","controls":{"class":"Controls","userAgent":"Terraform/0.12.12"},"id":"urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d","label":"Sample 1","remark":"Simple HTTP application with RR pool","schemaVersion":"3.0.0"},"persist":true}
2020-05-15T23:01:20.023+0530 [DEBUG] plugin.terraform-provider-bigip: 2020/05/15 23:01:20 [DEBUG]Code = 0,ID = 3707ea42-f28b-43eb-b9c3-381357564663
bigip_as3.as3-example01: Still creating... [10s elapsed]
bigip_as3.as3-example01: Still creating... [20s elapsed]
2020-05-15T23:01:42.665+0530 [DEBUG] plugin.terraform-provider-bigip: 2020/05/15 23:01:42 [DEBUG]Sucessfully Created Application with ID = 3707ea42-f28b-43eb-b9c3-381357564663
2020-05-15T23:01:42.665+0530 [DEBUG] plugin.terraform-provider-bigip: 2020/05/15 23:01:42 [INFO] Reading As3 config
bigip_as3.as3-example01: Still creating... [30s elapsed]
bigip_as3.as3-example01: Creation complete after 33s [id=as3]
2020-05-15T23:01:49.705+0530 [DEBUG] plugin: plugin process exited: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip pid=18150
2020-05-15T23:01:49.705+0530 [DEBUG] plugin: plugin exited
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
HYD-ML-00064448:terraform-provider-bigip chinthalapalli$ terraform show
2020/05/15 23:01:57 [INFO] Terraform version: 0.12.12
2020/05/15 23:01:57 [INFO] Go runtime version: go1.12.9
2020/05/15 23:01:57 [INFO] CLI args: []string{"/usr/local/bin/terraform", "show"}
2020/05/15 23:01:57 [DEBUG] Attempting to open CLI config file: /Users/chinthalapalli/.terraformrc
2020/05/15 23:01:57 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/05/15 23:01:57 [INFO] CLI command args: []string{"show"}
2020/05/15 23:01:57 [DEBUG] checking for provider in "."
2020/05/15 23:01:57 [WARN] found legacy provider "terraform-provider-bigip"
2020/05/15 23:01:57 [DEBUG] checking for provider in "/usr/local/bin"
2020/05/15 23:01:57 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2020/05/15 23:01:57 [DEBUG] found provider "terraform-provider-template_v2.1.2_x4"
2020/05/15 23:01:57 [DEBUG] found valid plugin: "bigip", "0.0.0", "/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip"
2020/05/15 23:01:57 [DEBUG] found valid plugin: "template", "2.1.2", "/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4"
2020/05/15 23:01:57 [DEBUG] checking for provisioner in "."
2020/05/15 23:01:57 [DEBUG] checking for provisioner in "/usr/local/bin"
2020/05/15 23:01:57 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2020-05-15T23:01:57.544+0530 [INFO] plugin: configuring client automatic mTLS
2020-05-15T23:01:57.565+0530 [DEBUG] plugin: starting plugin: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip args=[/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip]
2020-05-15T23:01:57.569+0530 [DEBUG] plugin: plugin started: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip pid=18155
2020-05-15T23:01:57.569+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip
2020-05-15T23:01:57.587+0530 [INFO] plugin.terraform-provider-bigip: configuring server automatic mTLS: timestamp=2020-05-15T23:01:57.587+0530
2020-05-15T23:01:57.614+0530 [DEBUG] plugin: using plugin: version=5
2020-05-15T23:01:57.614+0530 [DEBUG] plugin.terraform-provider-bigip: plugin address: network=unix address=/var/folders/1j/48gxz3m16cg8rmqg2c3sh2p864j1zq/T/plugin971417238 timestamp=2020-05-15T23:01:57.614+0530
2020-05-15T23:01:57.678+0530 [DEBUG] plugin: plugin process exited: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/terraform-provider-bigip pid=18155
2020-05-15T23:01:57.678+0530 [DEBUG] plugin: plugin exited
2020/05/15 23:01:57 [TRACE] LoadSchemas: retrieving schema for provider type "template"
2020-05-15T23:01:57.678+0530 [INFO] plugin: configuring client automatic mTLS
2020-05-15T23:01:57.703+0530 [DEBUG] plugin: starting plugin: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 args=[/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4]
2020-05-15T23:01:57.705+0530 [DEBUG] plugin: plugin started: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 pid=18156
2020-05-15T23:01:57.706+0530 [DEBUG] plugin: waiting for RPC address: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4
2020-05-15T23:01:57.714+0530 [INFO] plugin.terraform-provider-template_v2.1.2_x4: configuring server automatic mTLS: timestamp=2020-05-15T23:01:57.714+0530
2020-05-15T23:01:57.742+0530 [DEBUG] plugin: using plugin: version=5
2020-05-15T23:01:57.742+0530 [DEBUG] plugin.terraform-provider-template_v2.1.2_x4: plugin address: address=/var/folders/1j/48gxz3m16cg8rmqg2c3sh2p864j1zq/T/plugin228067803 network=unix timestamp=2020-05-15T23:01:57.741+0530
2020-05-15T23:01:57.798+0530 [DEBUG] plugin: plugin process exited: path=/Users/chinthalapalli/go/src/github.com/terraform-providers/terraform-provider-bigip/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4 pid=18156
2020-05-15T23:01:57.798+0530 [DEBUG] plugin: plugin exited
2020/05/15 23:01:57 [TRACE] terraform.NewContext: complete
2020/05/15 23:01:57 [TRACE] backend/local: finished building terraform.Context
# bigip_as3.as3-example01:
resource "bigip_as3" "as3-example01" {
as3_json = jsonencode(
{
action = "deploy"
class = "AS3"
declaration = {
as3 = {
AAA1 = {
class = "Application"
serviceMain = {
class = "Service_HTTP"
pool = "web_pool"
virtualAddresses = [
"10.0.1.10",
]
}
template = "http"
web_pool = {
class = "Pool"
members = [
{
serverAddresses = [
"192.0.1.10",
"192.0.1.11",
]
servicePort = 80
},
]
monitors = [
"http",
]
}
}
class = "Tenant"
}
class = "ADC"
id = "urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d"
label = "Sample 1"
remark = "Simple HTTP application with RR pool"
schemaVersion = "3.0.0"
}
persist = true
}
)
id = "as3"
tenant_list = "as3"
}
# data.template_file.init:
data "template_file" "init" {
id = "817bcb18affb8d2f37df75fb0eb641927c9e9bd04245f1c1b3aa969b23af7661"
rendered = jsonencode(
{
action = "deploy"
class = "AS3"
declaration = {
as3 = {
AAA1 = {
class = "Application"
serviceMain = {
class = "Service_HTTP"
pool = "web_pool"
virtualAddresses = [
"10.0.1.10",
]
}
template = "http"
web_pool = {
class = "Pool"
members = [
{
serverAddresses = [
"192.0.1.10",
"192.0.1.11",
]
servicePort = 80
},
]
monitors = [
"http",
]
}
}
class = "Tenant"
}
class = "ADC"
id = "urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d"
label = "Sample 1"
remark = "Simple HTTP application with RR pool"
schemaVersion = "3.0.0"
}
persist = true
}
)
template = jsonencode(
{
action = "deploy"
class = "AS3"
declaration = {
as3 = {
AAA1 = {
class = "Application"
serviceMain = {
class = "Service_HTTP"
pool = "web_pool"
virtualAddresses = [
"10.0.1.10",
]
}
template = "http"
web_pool = {
class = "Pool"
members = [
{
serverAddresses = [
"192.0.1.10",
"192.0.1.11",
]
servicePort = 80
},
]
monitors = [
"http",
]
}
}
class = "Tenant"
}
class = "ADC"
id = "urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d"
label = "Sample 1"
remark = "Simple HTTP application with RR pool"
schemaVersion = "3.0.0"
}
persist = true
}
)
}
@RavinderReddyF5 Yes, i post to BIGIP with that config works, and it is really fast.
Are you testing with F5 15x?
@andrescolodrero
AS3 version Installed :
BIGIP Version:
i have this config already:
@RavinderReddyF5 i figured out that the UUID in the template was incorrect.
Now im having this error: Error: Error creating json Sample_01: Get https://10.21.65.11/mgmt/shared/appsvcs/task/c720b45b-6438-44f9-ab6e-f25ec9558158: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
on main.tf line 7, in resource "bigip_as3" "as3-example1": 7: resource "bigip_as3" "as3-example1" {
2020-05-21T13:39:23.602Z [DEBUG] plugin: plugin process exited: path=C:\Build-agents\agent20_work\16\s\AS3\declaration.terraform\plugins\windows_amd64\terraform-provider-bigip_v1.2.0_x4.exe pid=9148 2020-05-21T13:39:23.602Z [DEBUG] plugin: plugin exited
amd i missing some license or module? i did a DO before. (with terraform, not manual)
Examople of as3: { "class": "AS3", "action": "deploy", "persist": true, "declaration": { "class": "ADC", "schemaVersion": "3.0.0", "id": "urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d", "label": "Sample 1", "remark": "Simple HTTP application with RR pool", "Sample_01": { "class": "Tenant", "A1": { "class": "Application", "template": "http", "serviceMain": { "class": "Service_HTTP", "virtualAddresses": [ "10.0.1.10" ], "pool": "web_pool" }, "web_pool": { "class": "Pool", "monitors": [ "http" ], "members": [{ "servicePort": 80, "serverAddresses": [ "192.0.1.10", "192.0.1.11" ] }] } } } } }
here my last error after redeploying a new F5 box: {"id":"4b778509-6eeb-4c24-94c5-aabaae12662e","results":[{"code":500,"declarationFullId":"urn:uuid:b0474831-8b93-4af1-8fad-319b9b6bbe8c","message":"failed to save BIG-IP config (connection to http://admin:XXXXXX@localhost:8100/mgmt/tm/task/sys/config create task save sys config timed out)"}],"declaration":{}}
@andrescolodrero are u seeing this same issue with postman client also on new F5 Box? please let us know as3 version.
yes @RavinderReddyF5 , i tried from postman, powershell and terraform. same errror { "class": "AS3", "action": "deploy", "declaration": { "class": "ADC", "schemaVersion": "3.0.0", "id": "urn:uuid:b0474831-8b93-4af1-8fad-319b9b6bbe8c", "Tenant1": { "class": "Tenant", "HTTP_Service": { "class": "Application", "template": "http", "serviceMain": { "class": "Service_HTTP", "virtualAddresses": [ "10.1.20.121" ], "pool": "Pool1" }, "Pool1": { "class": "Pool", "monitors": [ "http" ], "members": [ { "servicePort": 80, "serverAddresses": [ "10.1.10.100", "10.1.10.101" ] } ] } } } } }
If you see same issue with postman client also means then it will be issue with as3 rpm installed. Can you please try with as3 v3.19.1 ?? if you still see issue you can open issue with : https://github.com/F5Networks/f5-appsvcs-extension/issues
@RavinderReddyF5 thanks i upgrde the latest f5 appsvcs and add some memory changes. now it works from powershell, but not for TF
rror: Error creating json Cooltenant1: Tenant Creation fail
Not sure if i can find logs somewhere in f5?
I still have this message:
2020/05/21 18:28:05 [WARN] Provider "registry.terraform.io/-/bigip" produced an invalid plan for bigip_as3.as3-example1, but we are tolerating it because it is using the legacy plugin SDK. The following problems may be the cause of any confusing errors from downstream operations:
i will close the issue when things seems fixed from using POST commands, updating to late appsvc.
Im still having issues with Terraform, but i will add another issue, so it doesnt confuse with this one
closing.
HI, is it unsuported for F5 VE 15? data "template_file" "init" { template = "${file("test.json")}" } resource "bigip_as3" "as3-example" { as3_json = data.template_file.init.rendered }
And im having this crash:
2020/05/14 14:49:52 [WARN] Provider "registry.terraform.io/-/bigip" produced an invalid plan for bigip_as3.as3-example, but we are tolerating it because it is using the legacy plugin SDK. The following problems may be the cause of any confusing errors from downstream operations:
...
020/05/14 14:49:53 [TRACE]: eval: terraform.EvalApplyPost
2020/05/14 14:49:53 [ERROR] : eval: terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing
2020/05/14 14:49:53 [ERROR] : eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing
2020/05/14 14:49:53 [TRACE] [walkApply] Exiting eval tree: bigip_as3.as3-example
2020/05/14 14:49:53 [TRACE] vertex "bigip_as3.as3-example": visit complete