Created
August 29, 2022 20:50
-
-
Save pierzapin/d18c74158bf3ed6cebdb7eff033f7149 to your computer and use it in GitHub Desktop.
Terraform workflow debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2022-08-30T08:45:19.980+1200 [INFO] Starting apply for rootly_workflow_incident.tftest | |
2022-08-30T08:45:19.980+1200 [DEBUG] rootly_workflow_incident.tftest: applying the planned Update change | |
2022-08-30T08:45:19.983+1200 [DEBUG] provider.terraform-provider-rootly_v0.1.24.exe: adding value: &client.Workflow{ID:"", Name:"TF Test", Description:"", Enabled:(*bool)(nil), WorkflowGroupId:"", Position:0, Command:"", TriggerParams:map[string]interface {}(nil), Wait:"", RepeatEveryDuration:"", RepeatOn:[]interface {}(nil), EnvironmentIds:[]interface {}(nil), SeverityIds:[]interface {}(nil), IncidentTypeIds:[]interface {}(nil), ServiceIds:[]interface {}(nil), GroupIds:[]interface {}{"4566dd9a-e368-4288-8be7-b32eab46270f", "908af556-aab3-4372-94f4-91aee86c2081", "1661805916"}}: @caller=github.com/rootlyhq/terraform-provider-rootly/provider/resource_workflow_incident.go:447 tf_resource_type=rootly_workflow_incident @module=provider tf_provider_addr=provider tf_req_id=410389b3-7728-ef04-3da1-e87ac1da527b tf_rpc=ApplyResourceChange timestamp=2022-08-30T08:45:19.983+1200 | |
2022-08-30T08:45:19.983+1200 [INFO] provider.terraform-provider-rootly_v0.1.24.exe: 2022/08/30 08:45:19 [DEBUG] Rootly API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
PUT /v1/workflows/aeb16d30-0a38-45e0-8306-35123d6a18e6 HTTP/1.1 | |
Host: api.rootly.com | |
User-Agent: terraform-provider-rootly/v0.1.18 | |
Content-Length: 167 | |
Authorization: Bearer 1596ff7bd4599379efb8253964a0c9172911120f447c71cd48f6fd4b90104c9c | |
Content-Type: application/vnd.api+json | |
Accept-Encoding: gzip | |
{ | |
"data": { | |
"type": "workflows", | |
"attributes": { | |
"group_ids": [ | |
"4566dd9a-e368-4288-8be7-b32eab46270f", | |
"908af556-aab3-4372-94f4-91aee86c2081", | |
"1661805916" | |
], | |
"name": "TF Test" | |
} | |
} | |
} | |
-----------------------------------------------------: timestamp=2022-08-30T08:45:19.983+1200 | |
2022-08-30T08:45:19.983+1200 [DEBUG] provider.terraform-provider-rootly_v0.1.24.exe: 2022/08/30 08:45:19 [DEBUG] PUT https://api.rootly.com/v1/workflows/aeb16d30-0a38-45e0-8306-35123d6a18e6 | |
2022-08-30T08:45:20.984+1200 [INFO] provider.terraform-provider-rootly_v0.1.24.exe: 2022/08/30 08:45:20 [DEBUG] Rootly API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/2.0 401 Unauthorized | |
Connection: close | |
Cache-Control: no-cache | |
Cf-Cache-Status: DYNAMIC | |
Cf-Ray: 74282138ee51aac3-SYD | |
Content-Type: application/json; charset=utf-8 | |
Date: Mon, 29 Aug 2022 20:45:20 GMT | |
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" | |
Nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800} | |
Referrer-Policy: strict-origin-when-cross-origin | |
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=WjcaHw484wZM3lNpu%2BovuWdM3numDsTtmKv4aKMFs5njWNMm%2FUMWS8OIyzsydNr70G3cE8kcU8Xo4ZS7ErpMY55xEGOxrv6YNQ5iH1i4RUwLlPj9AJycMXyEDMbjtRoL"}],"group":"cf-nel","max_age":604800} | |
Server: cloudflare | |
Set-Cookie: ahoy_visitor=a0ad7e7f-715f-4b4f-b641-dbfafbbce0fb; path=/; expires=Thu, 29 Aug 2024 20:45:20 GMT; SameSite=Lax | |
Set-Cookie: ahoy_visit=319b96d4-981c-41ce-9aeb-86e76e1e929d; path=/; expires=Tue, 30 Aug 2022 00:45:20 GMT; SameSite=Lax | |
Set-Cookie: _rootly_session=Qs5o5mHYRXa9UnmWXJoltlrMMBikQA0i1%2BIAT5wTfkoLbFqOxvZg8MwS3qC7H%2FrcNn1CTJuwr%2BXtjmTYaMvKPsnlGHWliWEWRp3LQljUPVmzp1fg0Pbj8WrbE5ZpOBy3cT7bJrVL17VgKTV7H%2Bs%2BEeX7QnG59a50cEsoeok3xgwsIAYI0q8pAfdQnI%2F8sOzrSMQhpSUSeITM685Q9YmXDMaCrCRZQZtjHvrCmDXAwbS2bQ5VOPgt6PeaZc2neeyjswU9%2BIDQFjle7CJwMYzBCxRPAGqkdjYPZN0yWVD3MHD%2BWEGJNayTPjxgXejXwtWpfP9PTsOJu%2B9J0ur6Y8DFwuzcmobxbXZYSX1Wo9ut96KYZV7BGuHUABlGGvT4--h%2B6LpxoipPynEgPH--Z26lgrCLWjZfZvrBJ%2F5whQ%3D%3D; path=/; expires=Thu, 01 Sep 2022 20:45:20 GMT; secure; HttpOnly; SameSite=Lax | |
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | |
Vary: Origin | |
Via: 1.1 vegur | |
X-Content-Type-Options: nosniff | |
X-Download-Options: noopen | |
X-Frame-Options: SAMEORIGIN | |
X-Permitted-Cross-Domain-Policies: none | |
X-Request-Id: 1cfca0f0-874d-47db-8d63-fd3bbc743f4c | |
X-Runtime: 0.088799 | |
X-Xss-Protection: 1; mode=block | |
{ | |
"errors": [ | |
{ | |
"title": "Not found or unauthorized", | |
"status": "401" | |
} | |
] | |
} | |
-----------------------------------------------------: timestamp=2022-08-30T08:45:20.983+1200 | |
2022-08-30T08:45:20.986+1200 [ERROR] provider.terraform-provider-rootly_v0.1.24.exe: Response contains error diagnostic: tf_resource_type=rootly_workflow_incident tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-go@v0.10.0/tfprotov5/internal/diag/diagnostics.go:56 diagnostic_detail= diagnostic_severity=ERROR tf_proto_version=5.2 tf_provider_addr=provider @module=sdk.proto diagnostic_summary="Error updating workflow: Failed to make request to update workflow: aeb16d30-0a38-45e0-8306-35123d6a18e6" tf_req_id=410389b3-7728-ef04-3da1-e87ac1da527b timestamp=2022-08-30T08:45:20.985+1200 | |
2022-08-30T08:45:20.987+1200 [ERROR] vertex "rootly_workflow_incident.tftest" error: Error updating workflow: Failed to make request to update workflow: aeb16d30-0a38-45e0-8306-35123d6a18e6 | |
2022-08-30T08:45:20.995+1200 [DEBUG] POST https://gitlab.com/api/v4/projects/37529965/terraform/state/migrated?ID=a3c3b9b7-2d04-e6b5-0436-69b71499c0c8 | |
╷ | |
│ Error: Error updating workflow: Failed to make request to update workflow: aeb16d30-0a38-45e0-8306-35123d6a18e6 | |
│ | |
│ with rootly_workflow_incident.tftest, | |
│ on workflow.tf line 1, in resource "rootly_workflow_incident" "tftest": | |
│ 1: resource "rootly_workflow_incident" "tftest" { | |
│ | |
╵ | |
2022-08-30T08:45:21.802+1200 [DEBUG] DELETE https://gitlab.com/api/v4/projects/37529965/terraform/state/migrated/lock | |
Releasing state lock. This may take a few moments... | |
2022-08-30T08:45:22.206+1200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing" | |
2022-08-30T08:45:22.233+1200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/rootlyhq/rootly/0.1.24/windows_amd64/terraform-provider-rootly_v0.1.24.exe pid=15844 | |
2022-08-30T08:45:22.233+1200 [DEBUG] provider: plugin exited |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment