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

backend/cos: Add TencentCloud backend cos with lock #22540

Merged
merged 7 commits into from
Feb 13, 2020
Merged

backend/cos: Add TencentCloud backend cos with lock #22540

merged 7 commits into from
Feb 13, 2020

Conversation

likexian
Copy link
Contributor

Hello,

This PR provides a new backend cos that terraform can store state remotely in TencentCloud COS with locking.

About TencentCloud

Tencent Cloud is a secure, reliable and high-performance cloud compute service provided by Tencent. It is the 2st largest Cloud Provider in China.

About TencentCloud COS

Tencent Cloud Object Storage (COS) is a distributed storage service offered by Tencent Cloud for unstructured data and accessible via HTTP/HTTPS protocols.

@likexian
Copy link
Contributor Author

likexian commented Aug 21, 2019

Test PASS

=== RUN   TestStateFile
=== PAUSE TestStateFile
=== RUN   TestRemoteClient
=== PAUSE TestRemoteClient
=== RUN   TestRemoteClientWithPrefix
=== PAUSE TestRemoteClientWithPrefix
=== RUN   TestRemoteClientWithEncryption
=== PAUSE TestRemoteClientWithEncryption
=== RUN   TestRemoteLocks
=== PAUSE TestRemoteLocks
=== RUN   TestBackend
=== PAUSE TestBackend
=== RUN   TestBackendWithPrefix
=== PAUSE TestBackendWithPrefix
=== RUN   TestBackendWithEncryption
=== PAUSE TestBackendWithEncryption
=== CONT  TestStateFile
=== CONT  TestBackendWithEncryption
=== CONT  TestBackendWithPrefix
=== CONT  TestRemoteClientWithPrefix
=== CONT  TestRemoteLocks
=== CONT  TestRemoteClientWithEncryption
=== CONT  TestRemoteClient
=== CONT  TestBackend
PASS
ok      github.com/hashicorp/terraform/backend/remote-state/cos 12.223s

Test detail

please download file for detail: test.log

@likexian likexian changed the title Add TencentCloud backend cos with lock backend/cos: Add TencentCloud backend cos with lock Aug 23, 2019
@pselle pselle requested review from a team and removed request for a team August 26, 2019 14:53
@pselle pselle closed this Sep 3, 2019
@likexian
Copy link
Contributor Author

likexian commented Sep 4, 2019

@pselle why closed?

@pselle pselle reopened this Sep 4, 2019
@pselle
Copy link
Contributor

pselle commented Sep 4, 2019

@likexian I am so sorry! This was an accident, but I'm sure that was very jarring. I apologize!

@likexian
Copy link
Contributor Author

likexian commented Sep 5, 2019

@pselle Thank you for your reply, never mind.
Would you please help processing the approve?

@likexian
Copy link
Contributor Author

likexian commented Oct 9, 2019

Hello,
Would someone please take a review of this PR?

@shawnmssu
Copy link

@likexian Could you tell me why your PR has been not merged? Is it because you can't guarantee the state consistency of the COS? (Must use consistency store like Dynamodb in AWS to ensure that the state of COS created is consistent with the state of COS queried)

@likexian
Copy link
Contributor Author

@likexian Could you tell me why your PR has been not merged? Is it because you can't guarantee the state consistency of the COS? (Must use consistency store like Dynamodb in AWS to ensure that the state of COS created is consistent with the state of COS queried)

The state consistency can be ensure.
No one reviews the code from offical so far, I don't know why.

@shawnmssu
Copy link

@likexian Could you tell me why your PR has been not merged? Is it because you can't guarantee the state consistency of the COS? (Must use consistency store like Dynamodb in AWS to ensure that the state of COS created is consistent with the state of COS queried)

The state consistency can be ensure.
No one reviews the code from offical so far, I don't know why.

Is it because someone handled this PR before, leading the official to think that this PR is in progress? Could you @ the related person to deal with the PR?

@likexian
Copy link
Contributor Author

@likexian Could you tell me why your PR has been not merged? Is it because you can't guarantee the state consistency of the COS? (Must use consistency store like Dynamodb in AWS to ensure that the state of COS created is consistent with the state of COS queried)

The state consistency can be ensure.
No one reviews the code from offical so far, I don't know why.

Is it because someone handled this PR before, leading the official to think that this PR is in progress? Could you @ the related person to deal with the PR?

Thank you for your advice.

@likexian
Copy link
Contributor Author

@likexian I am so sorry! This was an accident, but I'm sure that was very jarring. I apologize!

Hello @pselle , Would you please help processing the review?

Copy link
Contributor

@pselle pselle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preliminary review. I'll be testing this through/building and testing it on TencentCloud next week, and may have more comments then.

backend/remote-state/cos/backend.go Outdated Show resolved Hide resolved
"github.com/hashicorp/terraform/helper/schema"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
tag "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tag/v20180813"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This import looks a bit off -- will investigate, but we use Go modules, and wouldn't want to add code that makes it difficult for us to upgrade to future versions of Go

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine! Resolving this comment.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unresolving to add a non-blocking comment: If you can update this path to be a major version (https://github.com/golang/go/wiki/Modules#why-must-major-version-numbers-appear-in-import-paths) that would be great, but this is not a blocking comment as other imports in the project have the same issue, which we will have to visit when we upgrade to go1.14.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this work is valueable, but I have to wait for the sdk team updating the sdk before I can update the import paths. I will update it when ready.

backend/remote-state/cos/backend.go Outdated Show resolved Hide resolved
@pselle
Copy link
Contributor

pselle commented Feb 3, 2020

Hello, I was doing some cursory testing and found a bug in this backend that should be resolved, I've filed an issue for this: #24019

Hitting an error by attempting to delete a non-empty workspace results in a lingering state lock, preventing being able to do the destroy or any further operations on the workspace that require a lock (such as an apply)

Copy link
Contributor

@pselle pselle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've done a cursory walkthrough of running this backend on Tencent, which included:

  • Creating new workspaces terraform workspace new
  • Changing to those workspaces terraform workspace select
  • Building infrastructure in those workspaces (using the null provider, to rule out provider interference). Also used tencent provider to make another bucket, which worked perfectly.
  • Deleting workspaces (both with and without objects in them)

The final section led to an open issue, which should be fixed before we are able to merge this backend, in addition to the other comments on this PR.

Additionally, I tried to run the tests on my machine and got access errors like the following:

    assert.go:170: ! unexpected error: "failed to create bucket terraform-test-5a20b2e672-1258798060: PUT https://terraform-test-5a20b2e672-1258798060.cos.ap-guangzhou.myqcloud.com/: 403 AccessDenied(Message: Access Denied., RequestId: NWUzODhlM2NfOTcxYzBiMDlfODRmNV9lOGFkODA=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTA2NzIxMzRkNDExNDJiYWZmM2ExNTVhMjIxMzhjNDI2YWU1MzAwNDViZjRmYTk4YzIxYzU2YzIzZDFlM2RkYWY=)"

I'll add a comment to where I believe one part of this should be updated, but it is unclear how to run these tests without some implied set-up.

@pselle pselle self-assigned this Feb 3, 2020
@pselle pselle added the backend/tencent Issues related to Tencent Cloud COS backend label Feb 3, 2020
CODEOWNERS Outdated Show resolved Hide resolved
@likexian
Copy link
Contributor Author

Hello @pselle
Thanks very much for your reviews, I am looking into the issue #24019 and will fix it assp.

@likexian
Copy link
Contributor Author

Additionally, I tried to run the tests on my machine and got access errors like the following:

    assert.go:170: ! unexpected error: "failed to create bucket terraform-test-5a20b2e672-1258798060: PUT https://terraform-test-5a20b2e672-1258798060.cos.ap-guangzhou.myqcloud.com/: 403 AccessDenied(Message: Access Denied., RequestId: NWUzODhlM2NfOTcxYzBiMDlfODRmNV9lOGFkODA=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTA2NzIxMzRkNDExNDJiYWZmM2ExNTVhMjIxMzhjNDI2YWU1MzAwNDViZjRmYTk4YzIxYzU2YzIzZDFlM2RkYWY=)"

I'll add a comment to where I believe one part of this should be updated, but it is unclear how to run these tests without some implied set-up.

The access error is because I have hardcode the appid in tests, which you have commented and I have fixed it.

how to test

  1. set access id and access key to environment variables, region is optional
export TENCENTCLOUD_SECRET_ID=...
export TENCENTCLOUD_SECRET_KEY=...
export TENCENTCLOUD_REGION=na-ashburn
  1. run the tests
$ TF_COS_APPID=1259299171 go test -v

The 1259299171 is the appid of your account, just copy it and run. For anyone using other account, please change it.

@pselle
Copy link
Contributor

pselle commented Feb 12, 2020

@likexian Thank you for the other PR resolving the locking issue! I want to warn you, please do not rebase this PR on master, as master now represents 0.13 work, and I'll be cherry-picking this PR to the v0.12 branch for a 0.12 release once merged. I need to run the acceptance tests (thank you for the testing instructions), but once I've done that, I'll merge this.

@pselle
Copy link
Contributor

pselle commented Feb 13, 2020

Test results passed, pasting results:

$ TF_COS_APPID=[redacted] go test -v .
=== RUN   TestStateFile
=== PAUSE TestStateFile
=== RUN   TestRemoteClient
=== PAUSE TestRemoteClient
=== RUN   TestRemoteClientWithPrefix
=== PAUSE TestRemoteClientWithPrefix
=== RUN   TestRemoteClientWithEncryption
=== PAUSE TestRemoteClientWithEncryption
=== RUN   TestRemoteLocks
=== PAUSE TestRemoteLocks
=== RUN   TestBackend
=== PAUSE TestBackend
=== RUN   TestBackendWithPrefix
=== PAUSE TestBackendWithPrefix
=== RUN   TestBackendWithEncryption
=== PAUSE TestBackendWithEncryption
=== CONT  TestStateFile
=== CONT  TestBackendWithEncryption
=== CONT  TestRemoteClientWithPrefix
=== CONT  TestRemoteLocks
=== CONT  TestBackendWithPrefix
=== CONT  TestBackend
=== CONT  TestRemoteClient
--- PASS: TestStateFile (0.00s)
=== CONT  TestRemoteClientWithEncryption
2020/02/13 10:58:02 client.go:299: [DEBUG] putBucket terraform-test-6f4c585560-1259299171: code: 200, error: <nil>
2020/02/13 10:58:02 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:02 client.go:299: [DEBUG] putBucket terraform-test-ddc2949f6e-1259299171: code: 200, error: <nil>
2020/02/13 10:58:02 client.go:277: [DEBUG] getBucket terraform-test-6f4c585560-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:02 backend_state.go:31: [DEBUG] list all workspaces, objects: [], error: <nil>
2020/02/13 10:58:02 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default]
2020/02/13 10:58:02 client.go:62: [DEBUG] put remote state file terraform.tfstate
2020/02/13 10:58:02 client.go:299: [DEBUG] putBucket terraform-test-c83c93f04d-1259299171: code: 200, error: <nil>
2020/02/13 10:58:02 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:02 client.go:299: [DEBUG] putBucket terraform-test-c8aee16a1b-1259299171: code: 200, error: <nil>
2020/02/13 10:58:02 client.go:277: [DEBUG] getBucket terraform-test-c83c93f04d-1259299171/prefix/test: code: 200, error: <nil>
2020/02/13 10:58:02 backend_state.go:31: [DEBUG] list all workspaces, objects: [], error: <nil>
2020/02/13 10:58:02 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default]
2020/02/13 10:58:02 client.go:62: [DEBUG] put remote state file prefix/test/terraform.tfstate
2020/02/13 10:58:02 client.go:299: [DEBUG] putBucket terraform-test-8854d7e150-1259299171: code: 200, error: <nil>
2020/02/13 10:58:02 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:02 client.go:299: [DEBUG] putBucket terraform-test-e67277e90d-1259299171: code: 200, error: <nil>
2020/02/13 10:58:02 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:02 client.go:277: [DEBUG] getBucket terraform-test-8854d7e150-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:02 backend_state.go:31: [DEBUG] list all workspaces, objects: [], error: <nil>
2020/02/13 10:58:02 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default]
2020/02/13 10:58:02 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:02 client.go:238: [DEBUG] putObject terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:02 client.go:41: [DEBUG] get remote state file terraform.tfstate
2020/02/13 10:58:02 client.go:299: [DEBUG] putBucket terraform-test-bdb9ef3a02-1259299171: code: 200, error: <nil>
2020/02/13 10:58:02 client.go:277: [DEBUG] getBucket terraform-test-8854d7e150-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:02 backend_state.go:31: [DEBUG] list all workspaces, objects: [], error: <nil>
2020/02/13 10:58:02 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default]
2020/02/13 10:58:02 client.go:76: [DEBUG] lock remote state file terraform.tfstate.tflock
2020/02/13 10:58:02 client.go:348: [DEBUG] lock cos file terraform-test-8854d7e150-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:02 client.go:277: [DEBUG] getBucket terraform-test-e67277e90d-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:02 backend_state.go:31: [DEBUG] list all workspaces, objects: [], error: <nil>
2020/02/13 10:58:02 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default]
2020/02/13 10:58:02 client.go:62: [DEBUG] put remote state file terraform.tfstate
2020/02/13 10:58:02 client.go:178: [DEBUG] getObject terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:02 client.go:189: [DEBUG] getObject terraform.tfstate: checksum: 4605e26f6ebba5d18744ff7946584496
2020/02/13 10:58:02 client.go:197: [DEBUG] getObject terraform.tfstate: data length: 336
2020/02/13 10:58:02 client.go:204: [DEBUG] getObject terraform.tfstate: check: 4605e26f6ebba5d18744ff7946584496
2020/02/13 10:58:02 client.go:69: [DEBUG] delete remote state file terraform.tfstate
2020/02/13 10:58:02 client.go:255: [DEBUG] deleteObject terraform.tfstate: code: 204, error: <nil>
2020/02/13 10:58:02 client.go:41: [DEBUG] get remote state file terraform.tfstate
2020/02/13 10:58:02 client.go:238: [DEBUG] putObject prefix/test/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:02 client.go:41: [DEBUG] get remote state file prefix/test/terraform.tfstate
2020/02/13 10:58:02 client.go:178: [DEBUG] getObject prefix/test/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:02 client.go:189: [DEBUG] getObject prefix/test/terraform.tfstate: checksum: 4605e26f6ebba5d18744ff7946584496
2020/02/13 10:58:02 client.go:197: [DEBUG] getObject prefix/test/terraform.tfstate: data length: 336
2020/02/13 10:58:02 client.go:204: [DEBUG] getObject prefix/test/terraform.tfstate: check: 4605e26f6ebba5d18744ff7946584496
2020/02/13 10:58:02 client.go:69: [DEBUG] delete remote state file prefix/test/terraform.tfstate
2020/02/13 10:58:02 client.go:178: [DEBUG] getObject terraform.tfstate: code: 404, error: GET https://terraform-test-6f4c585560-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGFfMTI4ZjBjMDlfOGM0YV82NWRmMTE=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:02 client.go:255: [DEBUG] deleteObject prefix/test/terraform.tfstate: code: 204, error: <nil>
2020/02/13 10:58:02 client.go:41: [DEBUG] get remote state file prefix/test/terraform.tfstate
2020/02/13 10:58:02 client.go:238: [DEBUG] putObject terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:02 client.go:41: [DEBUG] get remote state file terraform.tfstate
2020/02/13 10:58:02 client.go:277: [DEBUG] getBucket terraform-test-6f4c585560-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:02 client.go:178: [DEBUG] getObject terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:02 client.go:189: [DEBUG] getObject terraform.tfstate: checksum: 4605e26f6ebba5d18744ff7946584496
2020/02/13 10:58:02 client.go:197: [DEBUG] getObject terraform.tfstate: data length: 336
2020/02/13 10:58:02 client.go:204: [DEBUG] getObject terraform.tfstate: check: 4605e26f6ebba5d18744ff7946584496
2020/02/13 10:58:02 client.go:69: [DEBUG] delete remote state file terraform.tfstate
2020/02/13 10:58:02 client.go:178: [DEBUG] getObject prefix/test/terraform.tfstate: code: 404, error: GET https://terraform-test-c83c93f04d-1259299171.cos.na-ashburn.myqcloud.com/prefix%2Ftest%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGFfMTE4ZjBjMDlfODU2NF83NTQyMTg=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:02 client.go:277: [DEBUG] getBucket terraform-test-c83c93f04d-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:02 client.go:255: [DEBUG] deleteObject terraform.tfstate: code: 204, error: <nil>
2020/02/13 10:58:02 client.go:41: [DEBUG] get remote state file terraform.tfstate
2020/02/13 10:58:02 client.go:178: [DEBUG] getObject terraform.tfstate: code: 404, error: GET https://terraform-test-e67277e90d-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGFfMTE4ZjBjMDlfODU2Y183MzU2ZmQ=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:02 client.go:277: [DEBUG] getBucket terraform-test-e67277e90d-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:03 client.go:299: [DEBUG] putBucket terraform-test-ddc2949f6e-1259299171: code: 409, error: PUT https://terraform-test-ddc2949f6e-1259299171.cos.na-ashburn.myqcloud.com/: 409 BucketAlreadyExists(Message: The requested bucket name is not available., RequestId: NWU0NTcyMGFfMTI4ZjBjMDlfOGM1NV82N2MyMWY=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODczNTBmNjMwZmQ0MTZkMjg0NjlkNTYyNmY4ZTRkZTk0NzJmZTI0ZmJhYTZmZjYyNmU5ZGNlZDI5YjkyODkwYjNhMmEyZTI4YmM4ZGNhZjMzNmE1M2FjMTlmZmU4YzNkYjc=)
2020/02/13 10:58:03 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:03 client.go:277: [DEBUG] getBucket terraform-test-ddc2949f6e-1259299171/prefix/test: code: 200, error: <nil>
2020/02/13 10:58:03 backend_state.go:31: [DEBUG] list all workspaces, objects: [], error: <nil>
2020/02/13 10:58:03 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default]
2020/02/13 10:58:03 client.go:299: [DEBUG] putBucket terraform-test-c8aee16a1b-1259299171: code: 409, error: PUT https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/: 409 BucketAlreadyExists(Message: The requested bucket name is not available., RequestId: NWU0NTcyMGFfNTM4ZjBjMDlfMzE3MF82NWZjMTg=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODczNTBmNjMwZmQ0MTZkMjg0NjlkNTYyNmY4ZTRkZTk0NzJmZTI0ZmJhYTZmZjYyNmU5ZGNlZDI5YjkyODkwYjNhMmEyZTI4YmM4ZGNhZjMzNmE1M2FjMTlmZmU4YzNkYjc=)
2020/02/13 10:58:03 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:03 client.go:277: [DEBUG] getBucket terraform-test-ddc2949f6e-1259299171/prefix/test: code: 200, error: <nil>
2020/02/13 10:58:03 backend_state.go:31: [DEBUG] list all workspaces, objects: [], error: <nil>
2020/02/13 10:58:03 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default]
2020/02/13 10:58:03 backend_state.go:78: [DEBUG] state manager, current workspace: foo
2020/02/13 10:58:03 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:03 backend_state.go:31: [DEBUG] list all workspaces, objects: [], error: <nil>
2020/02/13 10:58:03 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default]
2020/02/13 10:58:03 client.go:277: [DEBUG] getBucket terraform-test-ddc2949f6e-1259299171/prefix/test: code: 200, error: <nil>
2020/02/13 10:58:03 backend_state.go:31: [DEBUG] list all workspaces, objects: [], error: <nil>
2020/02/13 10:58:03 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default]
2020/02/13 10:58:03 backend_state.go:92: [DEBUG] workspace foo not exists
2020/02/13 10:58:03 client.go:76: [DEBUG] lock remote state file prefix/test/foo/terraform.tfstate.tflock
2020/02/13 10:58:03 client.go:348: [DEBUG] lock cos file terraform-test-ddc2949f6e-1259299171:prefix/test/foo/terraform.tfstate.tflock
2020/02/13 10:58:03 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:03 backend_state.go:31: [DEBUG] list all workspaces, objects: [], error: <nil>
2020/02/13 10:58:03 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default]
2020/02/13 10:58:03 backend_state.go:78: [DEBUG] state manager, current workspace: foo
2020/02/13 10:58:03 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:03 backend_state.go:31: [DEBUG] list all workspaces, objects: [], error: <nil>
2020/02/13 10:58:03 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default]
2020/02/13 10:58:03 backend_state.go:92: [DEBUG] workspace foo not exists
2020/02/13 10:58:03 client.go:76: [DEBUG] lock remote state file foo/terraform.tfstate.tflock
2020/02/13 10:58:03 client.go:348: [DEBUG] lock cos file terraform-test-c8aee16a1b-1259299171:foo/terraform.tfstate.tflock
2020/02/13 10:58:03 client.go:299: [DEBUG] putBucket terraform-test-bdb9ef3a02-1259299171: code: 409, error: PUT https://terraform-test-bdb9ef3a02-1259299171.cos.na-ashburn.myqcloud.com/: 409 BucketAlreadyExists(Message: The requested bucket name is not available., RequestId: NWU0NTcyMGFfNTQ4ZjBjMDlfYWQxMl82NjI0N2Q=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODczNTBmNjMwZmQ0MTZkMjg0NjlkNTYyNmY4ZTRkZTk0NzJmZTI0ZmJhYTZmZjYyNmU5ZGNlZDI5YjkyODkwYjNhMmEyZTI4YmM4ZGNhZjMzNmE1M2FjMTlmZmU4YzNkYjc=)
2020/02/13 10:58:03 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:03 client.go:277: [DEBUG] getBucket terraform-test-bdb9ef3a02-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:03 backend_state.go:31: [DEBUG] list all workspaces, objects: [], error: <nil>
2020/02/13 10:58:03 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default]
2020/02/13 10:58:03 client.go:277: [DEBUG] getBucket terraform-test-bdb9ef3a02-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:03 backend_state.go:31: [DEBUG] list all workspaces, objects: [], error: <nil>
2020/02/13 10:58:03 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default]
2020/02/13 10:58:03 backend_state.go:78: [DEBUG] state manager, current workspace: foo
2020/02/13 10:58:03 client.go:277: [DEBUG] getBucket terraform-test-bdb9ef3a02-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:03 backend_state.go:31: [DEBUG] list all workspaces, objects: [], error: <nil>
2020/02/13 10:58:03 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default]
2020/02/13 10:58:03 backend_state.go:92: [DEBUG] workspace foo not exists
2020/02/13 10:58:03 client.go:76: [DEBUG] lock remote state file foo/terraform.tfstate.tflock
2020/02/13 10:58:03 client.go:348: [DEBUG] lock cos file terraform-test-bdb9ef3a02-1259299171:foo/terraform.tfstate.tflock
2020/02/13 10:58:03 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:71bbe0e67b061b0423f728787754f26f: error: <nil>
2020/02/13 10:58:03 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-8854d7e150-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGJfNTQ4ZjBjMDlfYWQwNF82Nzg4MjA=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:03 client.go:238: [DEBUG] putObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:03 client.go:358: [DEBUG] unlock cos file terraform-test-8854d7e150-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:03 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:e78d24a23081c7fc016c4d171049f982: error: <nil>
2020/02/13 10:58:03 client.go:178: [DEBUG] getObject prefix/test/foo/terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-ddc2949f6e-1259299171.cos.na-ashburn.myqcloud.com/prefix%2Ftest%2Ffoo%2Fterraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGJfMTI4ZjBjMDlfOGMyNl82NmI2ZmY=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:03 client.go:238: [DEBUG] putObject prefix/test/foo/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:03 client.go:358: [DEBUG] unlock cos file terraform-test-ddc2949f6e-1259299171:prefix/test/foo/terraform.tfstate.tflock
2020/02/13 10:58:03 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:a8b7e636590e3309358004bbacdb2f46: error: <nil>
2020/02/13 10:58:03 client.go:178: [DEBUG] getObject foo/terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/foo%2Fterraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGJfNTM4ZjBjMDlfMzE3ZF82NjgwYjI=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:04 client.go:238: [DEBUG] putObject foo/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:04 client.go:358: [DEBUG] unlock cos file terraform-test-c8aee16a1b-1259299171:foo/terraform.tfstate.tflock
2020/02/13 10:58:04 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:db016e7a3ab194cbca380f91e32a86be: error: <nil>
2020/02/13 10:58:04 client.go:178: [DEBUG] getObject foo/terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-bdb9ef3a02-1259299171.cos.na-ashburn.myqcloud.com/foo%2Fterraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGNfNTQ4ZjBjMDlfYWQyNl82NmFkYTg=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:04 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:71bbe0e67b061b0423f728787754f26f: error: <nil>
2020/02/13 10:58:04 client.go:76: [DEBUG] lock remote state file terraform.tfstate.tflock
2020/02/13 10:58:04 client.go:348: [DEBUG] lock cos file terraform-test-8854d7e150-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:04 client.go:238: [DEBUG] putObject foo/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:04 client.go:358: [DEBUG] unlock cos file terraform-test-bdb9ef3a02-1259299171:foo/terraform.tfstate.tflock
2020/02/13 10:58:04 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:e78d24a23081c7fc016c4d171049f982: error: <nil>
2020/02/13 10:58:04 client.go:41: [DEBUG] get remote state file prefix/test/foo/terraform.tfstate
2020/02/13 10:58:04 client.go:178: [DEBUG] getObject prefix/test/foo/terraform.tfstate: code: 404, error: GET https://terraform-test-ddc2949f6e-1259299171.cos.na-ashburn.myqcloud.com/prefix%2Ftest%2Ffoo%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGNfMTI4ZjBjMDlfOGMyNl82NmI3MDA=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:04 client.go:41: [DEBUG] get remote state file prefix/test/foo/terraform.tfstate
2020/02/13 10:58:04 client.go:178: [DEBUG] getObject prefix/test/foo/terraform.tfstate: code: 404, error: GET https://terraform-test-ddc2949f6e-1259299171.cos.na-ashburn.myqcloud.com/prefix%2Ftest%2Ffoo%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGNfMTI4ZjBjMDlfOGMxZF82NzhmMzU=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:04 client.go:62: [DEBUG] put remote state file prefix/test/foo/terraform.tfstate
2020/02/13 10:58:04 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:a8b7e636590e3309358004bbacdb2f46: error: <nil>
2020/02/13 10:58:04 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:04 client.go:238: [DEBUG] putObject prefix/test/foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:04 client.go:110: [DEBUG] unlock remote state file prefix/test/foo/terraform.tfstate.tflock
2020/02/13 10:58:04 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/foo%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGNfNTM4ZjBjMDlfMzE3OV82NWZhMTc=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:04 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:04 client.go:178: [DEBUG] getObject prefix/test/foo/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:04 client.go:189: [DEBUG] getObject prefix/test/foo/terraform.tfstate.tflock: checksum: 18410c2a4725e7a4db2ec80fa45d650e
2020/02/13 10:58:04 client.go:197: [DEBUG] getObject prefix/test/foo/terraform.tfstate.tflock: data length: 215
2020/02/13 10:58:04 client.go:204: [DEBUG] getObject prefix/test/foo/terraform.tfstate.tflock: check: 18410c2a4725e7a4db2ec80fa45d650e
2020/02/13 10:58:04 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/foo%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGNfNTM4ZjBjMDlfMzE2ZV82NjkzMzM=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:04 client.go:62: [DEBUG] put remote state file foo/terraform.tfstate
2020/02/13 10:58:04 client.go:255: [DEBUG] deleteObject prefix/test/foo/terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:04 client.go:41: [DEBUG] get remote state file prefix/test/foo/terraform.tfstate
2020/02/13 10:58:04 client.go:178: [DEBUG] getObject prefix/test/foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:04 client.go:189: [DEBUG] getObject prefix/test/foo/terraform.tfstate: checksum: a1698246b4d6e8fe6ab4693c34d86b73
2020/02/13 10:58:04 client.go:197: [DEBUG] getObject prefix/test/foo/terraform.tfstate: data length: 157
2020/02/13 10:58:04 client.go:204: [DEBUG] getObject prefix/test/foo/terraform.tfstate: check: a1698246b4d6e8fe6ab4693c34d86b73
2020/02/13 10:58:04 backend_state.go:78: [DEBUG] state manager, current workspace: bar
2020/02/13 10:58:04 client.go:277: [DEBUG] getBucket terraform-test-ddc2949f6e-1259299171/prefix/test: code: 200, error: <nil>
2020/02/13 10:58:04 backend_state.go:31: [DEBUG] list all workspaces, objects: [{prefix/test/foo/terraform.tfstate "a1698246b4d6e8fe6ab4693c34d86b73" 157 0 2020-02-13T15:58:04.000Z STANDARD 0xc0001c5aa0}], error: <nil>
2020/02/13 10:58:04 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default foo]
2020/02/13 10:58:04 backend_state.go:92: [DEBUG] workspace bar not exists
2020/02/13 10:58:04 client.go:76: [DEBUG] lock remote state file prefix/test/bar/terraform.tfstate.tflock
2020/02/13 10:58:04 client.go:348: [DEBUG] lock cos file terraform-test-ddc2949f6e-1259299171:prefix/test/bar/terraform.tfstate.tflock
2020/02/13 10:58:04 client.go:238: [DEBUG] putObject foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:04 client.go:110: [DEBUG] unlock remote state file foo/terraform.tfstate.tflock
2020/02/13 10:58:04 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:71bbe0e67b061b0423f728787754f26f: error: <nil>
2020/02/13 10:58:04 client.go:178: [DEBUG] getObject foo/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:04 client.go:189: [DEBUG] getObject foo/terraform.tfstate.tflock: checksum: 6aceca246f326dab4a1d1d944db99365
2020/02/13 10:58:04 client.go:197: [DEBUG] getObject foo/terraform.tfstate.tflock: data length: 203
2020/02/13 10:58:04 client.go:204: [DEBUG] getObject foo/terraform.tfstate.tflock: check: 6aceca246f326dab4a1d1d944db99365
2020/02/13 10:58:04 client.go:255: [DEBUG] deleteObject foo/terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:04 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:04 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:04 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: c5d15bd6028583763637fea75aade2d6
2020/02/13 10:58:04 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:04 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: c5d15bd6028583763637fea75aade2d6
2020/02/13 10:58:04 client.go:131: [DEBUG] failed to lock or unlock terraform.tfstate.tflock: lock file terraform.tfstate.tflock exists
2020/02/13 10:58:04 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:04 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: c5d15bd6028583763637fea75aade2d6
2020/02/13 10:58:04 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:04 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: c5d15bd6028583763637fea75aade2d6
2020/02/13 10:58:04 client.go:358: [DEBUG] unlock cos file terraform-test-8854d7e150-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:04 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:04 client.go:189: [DEBUG] getObject foo/terraform.tfstate: checksum: 3f06ce53fa4f3acb2fa80f28bc854896
2020/02/13 10:58:04 client.go:197: [DEBUG] getObject foo/terraform.tfstate: data length: 157
2020/02/13 10:58:04 client.go:204: [DEBUG] getObject foo/terraform.tfstate: check: 3f06ce53fa4f3acb2fa80f28bc854896
2020/02/13 10:58:04 backend_state.go:78: [DEBUG] state manager, current workspace: bar
2020/02/13 10:58:04 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:04 backend_state.go:31: [DEBUG] list all workspaces, objects: [{foo/terraform.tfstate "3f06ce53fa4f3acb2fa80f28bc854896" 157 0 2020-02-13T15:58:04.000Z STANDARD 0xc0008946c0}], error: <nil>
2020/02/13 10:58:04 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default foo]
2020/02/13 10:58:04 backend_state.go:92: [DEBUG] workspace bar not exists
2020/02/13 10:58:04 client.go:76: [DEBUG] lock remote state file bar/terraform.tfstate.tflock
2020/02/13 10:58:04 client.go:348: [DEBUG] lock cos file terraform-test-c8aee16a1b-1259299171:bar/terraform.tfstate.tflock
2020/02/13 10:58:04 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:db016e7a3ab194cbca380f91e32a86be: error: <nil>
2020/02/13 10:58:04 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:04 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 404, error: GET https://terraform-test-bdb9ef3a02-1259299171.cos.na-ashburn.myqcloud.com/foo%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGNfNTQ4ZjBjMDlfYWQwN182NDk0OTc=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:04 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:04 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 404, error: GET https://terraform-test-bdb9ef3a02-1259299171.cos.na-ashburn.myqcloud.com/foo%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGNfNTQ4ZjBjMDlfYWQyMl82NmQyYjQ=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:04 client.go:62: [DEBUG] put remote state file foo/terraform.tfstate
2020/02/13 10:58:04 client.go:238: [DEBUG] putObject foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:04 client.go:110: [DEBUG] unlock remote state file foo/terraform.tfstate.tflock
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject foo/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:189: [DEBUG] getObject foo/terraform.tfstate.tflock: checksum: 29a723c3a2a565ef927fb6fa85dd8db3
2020/02/13 10:58:05 client.go:197: [DEBUG] getObject foo/terraform.tfstate.tflock: data length: 203
2020/02/13 10:58:05 client.go:204: [DEBUG] getObject foo/terraform.tfstate.tflock: check: 29a723c3a2a565ef927fb6fa85dd8db3
2020/02/13 10:58:05 client.go:255: [DEBUG] deleteObject foo/terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:05 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:05 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:71bbe0e67b061b0423f728787754f26f: error: <nil>
2020/02/13 10:58:05 client.go:110: [DEBUG] unlock remote state file terraform.tfstate.tflock
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: c5d15bd6028583763637fea75aade2d6
2020/02/13 10:58:05 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:05 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: c5d15bd6028583763637fea75aade2d6
2020/02/13 10:58:05 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:d100e63724350c8808154ce4d0d8cc6a: error: <nil>
2020/02/13 10:58:05 client.go:255: [DEBUG] deleteObject terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:05 client.go:76: [DEBUG] lock remote state file terraform.tfstate.tflock
2020/02/13 10:58:05 client.go:348: [DEBUG] lock cos file terraform-test-8854d7e150-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:189: [DEBUG] getObject foo/terraform.tfstate: checksum: fd14e792358e70bcc443c83ea46173ad
2020/02/13 10:58:05 client.go:197: [DEBUG] getObject foo/terraform.tfstate: data length: 157
2020/02/13 10:58:05 client.go:204: [DEBUG] getObject foo/terraform.tfstate: check: fd14e792358e70bcc443c83ea46173ad
2020/02/13 10:58:05 backend_state.go:78: [DEBUG] state manager, current workspace: bar
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject prefix/test/bar/terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-ddc2949f6e-1259299171.cos.na-ashburn.myqcloud.com/prefix%2Ftest%2Fbar%2Fterraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGRfMTI4ZjBjMDlfOGMzZV82NjNkYWM=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:05 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:3140aa37e9de68f528deab1727feef3f: error: <nil>
2020/02/13 10:58:05 client.go:277: [DEBUG] getBucket terraform-test-bdb9ef3a02-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:05 backend_state.go:31: [DEBUG] list all workspaces, objects: [{foo/terraform.tfstate "fd14e792358e70bcc443c83ea46173ad" 157 0 2020-02-13T15:58:04.000Z STANDARD 0xc0008954a0}], error: <nil>
2020/02/13 10:58:05 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default foo]
2020/02/13 10:58:05 backend_state.go:92: [DEBUG] workspace bar not exists
2020/02/13 10:58:05 client.go:76: [DEBUG] lock remote state file bar/terraform.tfstate.tflock
2020/02/13 10:58:05 client.go:348: [DEBUG] lock cos file terraform-test-bdb9ef3a02-1259299171:bar/terraform.tfstate.tflock
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject bar/terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/bar%2Fterraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGRfNTM4ZjBjMDlfMzE2Zl82NTY0Nzg=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:05 client.go:238: [DEBUG] putObject prefix/test/bar/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:358: [DEBUG] unlock cos file terraform-test-ddc2949f6e-1259299171:prefix/test/bar/terraform.tfstate.tflock
2020/02/13 10:58:05 client.go:238: [DEBUG] putObject bar/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:358: [DEBUG] unlock cos file terraform-test-c8aee16a1b-1259299171:bar/terraform.tfstate.tflock
2020/02/13 10:58:05 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:71bbe0e67b061b0423f728787754f26f: error: <nil>
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-8854d7e150-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGRfNTQ4ZjBjMDlfYWQyOF82NWMwNzY=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:05 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:d100e63724350c8808154ce4d0d8cc6a: error: <nil>
2020/02/13 10:58:05 client.go:41: [DEBUG] get remote state file prefix/test/bar/terraform.tfstate
2020/02/13 10:58:05 client.go:238: [DEBUG] putObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:358: [DEBUG] unlock cos file terraform-test-8854d7e150-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:05 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:e40e40c52753fc143e49a0598a744454: error: <nil>
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject prefix/test/bar/terraform.tfstate: code: 404, error: GET https://terraform-test-ddc2949f6e-1259299171.cos.na-ashburn.myqcloud.com/prefix%2Ftest%2Fbar%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGRfMTI4ZjBjMDlfOGMxZl82NWExZDM=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:05 client.go:41: [DEBUG] get remote state file prefix/test/bar/terraform.tfstate
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject prefix/test/bar/terraform.tfstate: code: 404, error: GET https://terraform-test-ddc2949f6e-1259299171.cos.na-ashburn.myqcloud.com/prefix%2Ftest%2Fbar%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGRfMTI4ZjBjMDlfOGMxN182NzNiY2I=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:05 client.go:62: [DEBUG] put remote state file prefix/test/bar/terraform.tfstate
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject bar/terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-bdb9ef3a02-1259299171.cos.na-ashburn.myqcloud.com/bar%2Fterraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGRfNTQ4ZjBjMDlfYWQwN182NDk0OTg=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:05 client.go:238: [DEBUG] putObject prefix/test/bar/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:110: [DEBUG] unlock remote state file prefix/test/bar/terraform.tfstate.tflock
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject prefix/test/bar/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:189: [DEBUG] getObject prefix/test/bar/terraform.tfstate.tflock: checksum: f983b8f8701f06d36b66d66aba07b86f
2020/02/13 10:58:05 client.go:197: [DEBUG] getObject prefix/test/bar/terraform.tfstate.tflock: data length: 215
2020/02/13 10:58:05 client.go:204: [DEBUG] getObject prefix/test/bar/terraform.tfstate.tflock: check: f983b8f8701f06d36b66d66aba07b86f
2020/02/13 10:58:05 client.go:255: [DEBUG] deleteObject prefix/test/bar/terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:05 client.go:41: [DEBUG] get remote state file prefix/test/bar/terraform.tfstate
2020/02/13 10:58:05 client.go:238: [DEBUG] putObject bar/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:358: [DEBUG] unlock cos file terraform-test-bdb9ef3a02-1259299171:bar/terraform.tfstate.tflock
2020/02/13 10:58:05 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:3140aa37e9de68f528deab1727feef3f: error: <nil>
2020/02/13 10:58:05 client.go:41: [DEBUG] get remote state file bar/terraform.tfstate
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject prefix/test/bar/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:189: [DEBUG] getObject prefix/test/bar/terraform.tfstate: checksum: a1b4e0b21d3fcf3afc99762e189d58b4
2020/02/13 10:58:05 client.go:197: [DEBUG] getObject prefix/test/bar/terraform.tfstate: data length: 157
2020/02/13 10:58:05 client.go:204: [DEBUG] getObject prefix/test/bar/terraform.tfstate: check: a1b4e0b21d3fcf3afc99762e189d58b4
2020/02/13 10:58:05 client.go:62: [DEBUG] put remote state file prefix/test/bar/terraform.tfstate
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject bar/terraform.tfstate: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/bar%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGRfNTM4ZjBjMDlfMzE4Yl82NjNhMDk=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:05 client.go:41: [DEBUG] get remote state file bar/terraform.tfstate
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject bar/terraform.tfstate: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/bar%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGRfNTM4ZjBjMDlfMzE2Ml82NWI2ZDk=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:05 client.go:62: [DEBUG] put remote state file bar/terraform.tfstate
2020/02/13 10:58:05 client.go:238: [DEBUG] putObject prefix/test/bar/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:41: [DEBUG] get remote state file prefix/test/foo/terraform.tfstate
2020/02/13 10:58:05 client.go:238: [DEBUG] putObject bar/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:110: [DEBUG] unlock remote state file bar/terraform.tfstate.tflock
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject prefix/test/foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:189: [DEBUG] getObject prefix/test/foo/terraform.tfstate: checksum: a1698246b4d6e8fe6ab4693c34d86b73
2020/02/13 10:58:05 client.go:197: [DEBUG] getObject prefix/test/foo/terraform.tfstate: data length: 157
2020/02/13 10:58:05 client.go:204: [DEBUG] getObject prefix/test/foo/terraform.tfstate: check: a1698246b4d6e8fe6ab4693c34d86b73
2020/02/13 10:58:05 backend_state.go:78: [DEBUG] state manager, current workspace: foo
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject bar/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:189: [DEBUG] getObject bar/terraform.tfstate.tflock: checksum: 88817b4ab0221d3539b1e26d14f22f84
2020/02/13 10:58:05 client.go:197: [DEBUG] getObject bar/terraform.tfstate.tflock: data length: 203
2020/02/13 10:58:05 client.go:204: [DEBUG] getObject bar/terraform.tfstate.tflock: check: 88817b4ab0221d3539b1e26d14f22f84
2020/02/13 10:58:05 client.go:277: [DEBUG] getBucket terraform-test-ddc2949f6e-1259299171/prefix/test: code: 200, error: <nil>
2020/02/13 10:58:05 backend_state.go:31: [DEBUG] list all workspaces, objects: [{prefix/test/bar/terraform.tfstate "f48885c292e7a094fb95cca860c2922a" 388 0 2020-02-13T15:58:05.000Z STANDARD 0xc0002b0300} {prefix/test/foo/terraform.tfstate "a1698246b4d6e8fe6ab4693c34d86b73" 157 0 2020-02-13T15:58:04.000Z STANDARD 0xc0002b0330}], error: <nil>
2020/02/13 10:58:05 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar foo]
2020/02/13 10:58:05 client.go:41: [DEBUG] get remote state file prefix/test/foo/terraform.tfstate
2020/02/13 10:58:05 client.go:255: [DEBUG] deleteObject bar/terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:05 client.go:41: [DEBUG] get remote state file bar/terraform.tfstate
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject prefix/test/foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:189: [DEBUG] getObject prefix/test/foo/terraform.tfstate: checksum: a1698246b4d6e8fe6ab4693c34d86b73
2020/02/13 10:58:05 client.go:197: [DEBUG] getObject prefix/test/foo/terraform.tfstate: data length: 157
2020/02/13 10:58:05 client.go:204: [DEBUG] getObject prefix/test/foo/terraform.tfstate: check: a1698246b4d6e8fe6ab4693c34d86b73
2020/02/13 10:58:05 backend_state.go:78: [DEBUG] state manager, current workspace: bar
2020/02/13 10:58:05 client.go:178: [DEBUG] getObject bar/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:05 client.go:189: [DEBUG] getObject bar/terraform.tfstate: checksum: f2943d2ea74cb9c706df08a34a8ced5f
2020/02/13 10:58:05 client.go:197: [DEBUG] getObject bar/terraform.tfstate: data length: 157
2020/02/13 10:58:05 client.go:204: [DEBUG] getObject bar/terraform.tfstate: check: f2943d2ea74cb9c706df08a34a8ced5f
2020/02/13 10:58:05 client.go:62: [DEBUG] put remote state file bar/terraform.tfstate
2020/02/13 10:58:06 client.go:277: [DEBUG] getBucket terraform-test-ddc2949f6e-1259299171/prefix/test: code: 200, error: <nil>
2020/02/13 10:58:06 backend_state.go:31: [DEBUG] list all workspaces, objects: [{prefix/test/bar/terraform.tfstate "f48885c292e7a094fb95cca860c2922a" 388 0 2020-02-13T15:58:05.000Z STANDARD 0xc00037dbf0} {prefix/test/foo/terraform.tfstate "a1698246b4d6e8fe6ab4693c34d86b73" 157 0 2020-02-13T15:58:04.000Z STANDARD 0xc00037dc20}], error: <nil>
2020/02/13 10:58:06 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar foo]
2020/02/13 10:58:06 client.go:41: [DEBUG] get remote state file prefix/test/bar/terraform.tfstate
2020/02/13 10:58:06 client.go:178: [DEBUG] getObject prefix/test/bar/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:06 client.go:189: [DEBUG] getObject prefix/test/bar/terraform.tfstate: checksum: f48885c292e7a094fb95cca860c2922a
2020/02/13 10:58:06 client.go:197: [DEBUG] getObject prefix/test/bar/terraform.tfstate: data length: 388
2020/02/13 10:58:06 client.go:204: [DEBUG] getObject prefix/test/bar/terraform.tfstate: check: f48885c292e7a094fb95cca860c2922a
2020/02/13 10:58:06 client.go:238: [DEBUG] putObject bar/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:06 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:06 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:06 client.go:189: [DEBUG] getObject foo/terraform.tfstate: checksum: 3f06ce53fa4f3acb2fa80f28bc854896
2020/02/13 10:58:06 client.go:197: [DEBUG] getObject foo/terraform.tfstate: data length: 157
2020/02/13 10:58:06 client.go:204: [DEBUG] getObject foo/terraform.tfstate: check: 3f06ce53fa4f3acb2fa80f28bc854896
2020/02/13 10:58:06 client.go:277: [DEBUG] getBucket terraform-test-ddc2949f6e-1259299171/prefix/test: code: 200, error: <nil>
2020/02/13 10:58:06 backend_state.go:78: [DEBUG] state manager, current workspace: foo
2020/02/13 10:58:06 backend_state.go:31: [DEBUG] list all workspaces, objects: [{prefix/test/bar/terraform.tfstate "f48885c292e7a094fb95cca860c2922a" 388 0 2020-02-13T15:58:05.000Z STANDARD 0xc0002b0e10} {prefix/test/foo/terraform.tfstate "a1698246b4d6e8fe6ab4693c34d86b73" 157 0 2020-02-13T15:58:04.000Z STANDARD 0xc0002b0e40}], error: <nil>
2020/02/13 10:58:06 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar foo]
2020/02/13 10:58:06 backend_state.go:62: [DEBUG] delete workspace, workspace: foo
2020/02/13 10:58:06 client.go:69: [DEBUG] delete remote state file prefix/test/foo/terraform.tfstate
2020/02/13 10:58:06 client.go:255: [DEBUG] deleteObject prefix/test/foo/terraform.tfstate: code: 204, error: <nil>
2020/02/13 10:58:06 backend_state.go:62: [DEBUG] delete workspace, workspace: default
2020/02/13 10:58:06 backend_state.go:78: [DEBUG] state manager, current workspace: foo
2020/02/13 10:58:06 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:06 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b8594333ca32a34bbd835e608f359c7c" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc0005c67b0} {foo/terraform.tfstate "3f06ce53fa4f3acb2fa80f28bc854896" 157 0 2020-02-13T15:58:04.000Z STANDARD 0xc0005c67e0}], error: <nil>
2020/02/13 10:58:06 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar foo]
2020/02/13 10:58:06 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:06 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:71bbe0e67b061b0423f728787754f26f: error: <nil>
2020/02/13 10:58:06 client.go:110: [DEBUG] unlock remote state file terraform.tfstate.tflock
2020/02/13 10:58:06 client.go:277: [DEBUG] getBucket terraform-test-ddc2949f6e-1259299171/prefix/test: code: 200, error: <nil>
2020/02/13 10:58:06 backend_state.go:31: [DEBUG] list all workspaces, objects: [{prefix/test/bar/terraform.tfstate "f48885c292e7a094fb95cca860c2922a" 388 0 2020-02-13T15:58:05.000Z STANDARD 0xc0002b11d0}], error: <nil>
2020/02/13 10:58:06 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:06 backend_state.go:92: [DEBUG] workspace foo not exists
2020/02/13 10:58:06 client.go:76: [DEBUG] lock remote state file prefix/test/foo/terraform.tfstate.tflock
2020/02/13 10:58:06 client.go:348: [DEBUG] lock cos file terraform-test-ddc2949f6e-1259299171:prefix/test/foo/terraform.tfstate.tflock
2020/02/13 10:58:06 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:06 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: 5ba8c25afc55bd7ad9fb24c49c5022b6
2020/02/13 10:58:06 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:06 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: 5ba8c25afc55bd7ad9fb24c49c5022b6
2020/02/13 10:58:06 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:06 client.go:189: [DEBUG] getObject foo/terraform.tfstate: checksum: 3f06ce53fa4f3acb2fa80f28bc854896
2020/02/13 10:58:06 client.go:197: [DEBUG] getObject foo/terraform.tfstate: data length: 157
2020/02/13 10:58:06 client.go:204: [DEBUG] getObject foo/terraform.tfstate: check: 3f06ce53fa4f3acb2fa80f28bc854896
2020/02/13 10:58:06 backend_state.go:78: [DEBUG] state manager, current workspace: bar
2020/02/13 10:58:06 client.go:255: [DEBUG] deleteObject terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:06 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:06 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b8594333ca32a34bbd835e608f359c7c" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc0002b1860} {foo/terraform.tfstate "3f06ce53fa4f3acb2fa80f28bc854896" 157 0 2020-02-13T15:58:04.000Z STANDARD 0xc0002b1890}], error: <nil>
2020/02/13 10:58:06 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar foo]
2020/02/13 10:58:06 client.go:41: [DEBUG] get remote state file bar/terraform.tfstate
2020/02/13 10:58:06 client.go:277: [DEBUG] getBucket terraform-test-8854d7e150-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:06 client.go:178: [DEBUG] getObject bar/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:06 client.go:189: [DEBUG] getObject bar/terraform.tfstate: checksum: b8594333ca32a34bbd835e608f359c7c
2020/02/13 10:58:06 client.go:197: [DEBUG] getObject bar/terraform.tfstate: data length: 388
2020/02/13 10:58:06 client.go:204: [DEBUG] getObject bar/terraform.tfstate: check: b8594333ca32a34bbd835e608f359c7c
2020/02/13 10:58:06 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:06 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b8594333ca32a34bbd835e608f359c7c" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc0002846f0} {foo/terraform.tfstate "3f06ce53fa4f3acb2fa80f28bc854896" 157 0 2020-02-13T15:58:04.000Z STANDARD 0xc000284720}], error: <nil>
2020/02/13 10:58:06 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar foo]
2020/02/13 10:58:06 backend_state.go:62: [DEBUG] delete workspace, workspace: foo
2020/02/13 10:58:06 client.go:69: [DEBUG] delete remote state file foo/terraform.tfstate
2020/02/13 10:58:06 client.go:255: [DEBUG] deleteObject foo/terraform.tfstate: code: 204, error: <nil>
2020/02/13 10:58:06 backend_state.go:62: [DEBUG] delete workspace, workspace: default
2020/02/13 10:58:06 backend_state.go:78: [DEBUG] state manager, current workspace: foo
2020/02/13 10:58:06 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:06 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b8594333ca32a34bbd835e608f359c7c" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc000284b70}], error: <nil>
2020/02/13 10:58:06 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:06 backend_state.go:92: [DEBUG] workspace foo not exists
2020/02/13 10:58:06 client.go:76: [DEBUG] lock remote state file foo/terraform.tfstate.tflock
2020/02/13 10:58:06 client.go:348: [DEBUG] lock cos file terraform-test-c8aee16a1b-1259299171:foo/terraform.tfstate.tflock
2020/02/13 10:58:06 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:e40e40c52753fc143e49a0598a744454: error: <nil>
2020/02/13 10:58:06 client.go:41: [DEBUG] get remote state file bar/terraform.tfstate
2020/02/13 10:58:06 client.go:178: [DEBUG] getObject bar/terraform.tfstate: code: 404, error: GET https://terraform-test-bdb9ef3a02-1259299171.cos.na-ashburn.myqcloud.com/bar%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGVfNTQ4ZjBjMDlfYWQyNF82NmNmY2Y=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:06 client.go:41: [DEBUG] get remote state file bar/terraform.tfstate
2020/02/13 10:58:06 client.go:178: [DEBUG] getObject bar/terraform.tfstate: code: 404, error: GET https://terraform-test-bdb9ef3a02-1259299171.cos.na-ashburn.myqcloud.com/bar%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGVfNTQ4ZjBjMDlfYWQyNV82N2EzMDY=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:06 client.go:62: [DEBUG] put remote state file bar/terraform.tfstate
2020/02/13 10:58:06 client.go:238: [DEBUG] putObject bar/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:06 client.go:110: [DEBUG] unlock remote state file bar/terraform.tfstate.tflock
2020/02/13 10:58:06 client.go:178: [DEBUG] getObject bar/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:06 client.go:189: [DEBUG] getObject bar/terraform.tfstate.tflock: checksum: e53b2777114d623f6005a98f03e7f430
2020/02/13 10:58:06 client.go:197: [DEBUG] getObject bar/terraform.tfstate.tflock: data length: 203
2020/02/13 10:58:06 client.go:204: [DEBUG] getObject bar/terraform.tfstate.tflock: check: e53b2777114d623f6005a98f03e7f430
2020/02/13 10:58:06 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:e78d24a23081c7fc016c4d171049f982: error: <nil>
2020/02/13 10:58:06 client.go:178: [DEBUG] getObject prefix/test/foo/terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-ddc2949f6e-1259299171.cos.na-ashburn.myqcloud.com/prefix%2Ftest%2Ffoo%2Fterraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGVfMTI4ZjBjMDlfOGMyZV82NTM2NzM=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:06 client.go:255: [DEBUG] deleteObject bar/terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:06 client.go:41: [DEBUG] get remote state file bar/terraform.tfstate
2020/02/13 10:58:06 client.go:178: [DEBUG] getObject bar/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:06 client.go:189: [DEBUG] getObject bar/terraform.tfstate: checksum: e66e51fa602a07ad1c4fc9e879582b60
2020/02/13 10:58:06 client.go:197: [DEBUG] getObject bar/terraform.tfstate: data length: 157
2020/02/13 10:58:06 client.go:204: [DEBUG] getObject bar/terraform.tfstate: check: e66e51fa602a07ad1c4fc9e879582b60
2020/02/13 10:58:06 client.go:62: [DEBUG] put remote state file bar/terraform.tfstate
2020/02/13 10:58:06 client.go:238: [DEBUG] putObject prefix/test/foo/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:06 client.go:358: [DEBUG] unlock cos file terraform-test-ddc2949f6e-1259299171:prefix/test/foo/terraform.tfstate.tflock
2020/02/13 10:58:06 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:a8b7e636590e3309358004bbacdb2f46: error: <nil>
2020/02/13 10:58:06 client.go:178: [DEBUG] getObject foo/terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/foo%2Fterraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGVfNTM4ZjBjMDlfMzE4NF82NTg0Mjc=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:06 client.go:238: [DEBUG] putObject bar/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:06 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:06 client.go:238: [DEBUG] putObject foo/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:06 client.go:358: [DEBUG] unlock cos file terraform-test-c8aee16a1b-1259299171:foo/terraform.tfstate.tflock
2020/02/13 10:58:06 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:06 client.go:189: [DEBUG] getObject foo/terraform.tfstate: checksum: fd14e792358e70bcc443c83ea46173ad
2020/02/13 10:58:06 client.go:197: [DEBUG] getObject foo/terraform.tfstate: data length: 157
2020/02/13 10:58:06 client.go:204: [DEBUG] getObject foo/terraform.tfstate: check: fd14e792358e70bcc443c83ea46173ad
2020/02/13 10:58:06 backend_state.go:78: [DEBUG] state manager, current workspace: foo
2020/02/13 10:58:06 client.go:277: [DEBUG] getBucket terraform-test-bdb9ef3a02-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:06 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b65b69c50934448ed8c5613b394ba989" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc000515ce0} {foo/terraform.tfstate "fd14e792358e70bcc443c83ea46173ad" 157 0 2020-02-13T15:58:04.000Z STANDARD 0xc000515d10}], error: <nil>
2020/02/13 10:58:06 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar foo]
2020/02/13 10:58:06 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:06 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:06 client.go:189: [DEBUG] getObject foo/terraform.tfstate: checksum: fd14e792358e70bcc443c83ea46173ad
2020/02/13 10:58:06 client.go:197: [DEBUG] getObject foo/terraform.tfstate: data length: 157
2020/02/13 10:58:06 client.go:204: [DEBUG] getObject foo/terraform.tfstate: check: fd14e792358e70bcc443c83ea46173ad
2020/02/13 10:58:06 backend_state.go:78: [DEBUG] state manager, current workspace: bar
2020/02/13 10:58:07 client.go:277: [DEBUG] getBucket terraform-test-bdb9ef3a02-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:07 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b65b69c50934448ed8c5613b394ba989" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc000285740} {foo/terraform.tfstate "fd14e792358e70bcc443c83ea46173ad" 157 0 2020-02-13T15:58:04.000Z STANDARD 0xc000285770}], error: <nil>
2020/02/13 10:58:07 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar foo]
2020/02/13 10:58:07 client.go:41: [DEBUG] get remote state file bar/terraform.tfstate
2020/02/13 10:58:07 client.go:178: [DEBUG] getObject bar/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:07 client.go:189: [DEBUG] getObject bar/terraform.tfstate: checksum: b65b69c50934448ed8c5613b394ba989
2020/02/13 10:58:07 client.go:197: [DEBUG] getObject bar/terraform.tfstate: data length: 388
2020/02/13 10:58:07 client.go:204: [DEBUG] getObject bar/terraform.tfstate: check: b65b69c50934448ed8c5613b394ba989
2020/02/13 10:58:07 client.go:277: [DEBUG] getBucket terraform-test-bdb9ef3a02-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:07 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b65b69c50934448ed8c5613b394ba989" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc00078de90} {foo/terraform.tfstate "fd14e792358e70bcc443c83ea46173ad" 157 0 2020-02-13T15:58:04.000Z STANDARD 0xc00078dec0}], error: <nil>
2020/02/13 10:58:07 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar foo]
2020/02/13 10:58:07 backend_state.go:62: [DEBUG] delete workspace, workspace: foo
2020/02/13 10:58:07 client.go:69: [DEBUG] delete remote state file foo/terraform.tfstate
2020/02/13 10:58:07 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:e78d24a23081c7fc016c4d171049f982: error: <nil>
2020/02/13 10:58:07 client.go:41: [DEBUG] get remote state file prefix/test/foo/terraform.tfstate
2020/02/13 10:58:07 client.go:178: [DEBUG] getObject prefix/test/foo/terraform.tfstate: code: 404, error: GET https://terraform-test-ddc2949f6e-1259299171.cos.na-ashburn.myqcloud.com/prefix%2Ftest%2Ffoo%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGZfMTI4ZjBjMDlfOGMxY182NGI4MGE=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:07 client.go:41: [DEBUG] get remote state file prefix/test/foo/terraform.tfstate
2020/02/13 10:58:07 client.go:255: [DEBUG] deleteObject foo/terraform.tfstate: code: 204, error: <nil>
2020/02/13 10:58:07 backend_state.go:62: [DEBUG] delete workspace, workspace: default
2020/02/13 10:58:07 backend_state.go:78: [DEBUG] state manager, current workspace: foo
2020/02/13 10:58:07 client.go:178: [DEBUG] getObject prefix/test/foo/terraform.tfstate: code: 404, error: GET https://terraform-test-ddc2949f6e-1259299171.cos.na-ashburn.myqcloud.com/prefix%2Ftest%2Ffoo%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGZfMTI4ZjBjMDlfOGMzZV82NjNkYWU=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:07 client.go:62: [DEBUG] put remote state file prefix/test/foo/terraform.tfstate
2020/02/13 10:58:07 client.go:277: [DEBUG] getBucket terraform-test-bdb9ef3a02-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:07 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b65b69c50934448ed8c5613b394ba989" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc0007d0960}], error: <nil>
2020/02/13 10:58:07 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:07 backend_state.go:92: [DEBUG] workspace foo not exists
2020/02/13 10:58:07 client.go:76: [DEBUG] lock remote state file foo/terraform.tfstate.tflock
2020/02/13 10:58:07 client.go:348: [DEBUG] lock cos file terraform-test-bdb9ef3a02-1259299171:foo/terraform.tfstate.tflock
2020/02/13 10:58:07 client.go:238: [DEBUG] putObject prefix/test/foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:07 client.go:110: [DEBUG] unlock remote state file prefix/test/foo/terraform.tfstate.tflock
2020/02/13 10:58:07 client.go:178: [DEBUG] getObject prefix/test/foo/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:07 client.go:189: [DEBUG] getObject prefix/test/foo/terraform.tfstate.tflock: checksum: bb480c39aea2f36af3975b2d24c84545
2020/02/13 10:58:07 client.go:197: [DEBUG] getObject prefix/test/foo/terraform.tfstate.tflock: data length: 215
2020/02/13 10:58:07 client.go:204: [DEBUG] getObject prefix/test/foo/terraform.tfstate.tflock: check: bb480c39aea2f36af3975b2d24c84545
2020/02/13 10:58:07 client.go:255: [DEBUG] deleteObject prefix/test/foo/terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:07 client.go:41: [DEBUG] get remote state file prefix/test/foo/terraform.tfstate
2020/02/13 10:58:07 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:a8b7e636590e3309358004bbacdb2f46: error: <nil>
2020/02/13 10:58:07 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:07 client.go:178: [DEBUG] getObject prefix/test/foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:07 client.go:189: [DEBUG] getObject prefix/test/foo/terraform.tfstate: checksum: 1539f3328c0adec5a61547eac41af8f0
2020/02/13 10:58:07 client.go:197: [DEBUG] getObject prefix/test/foo/terraform.tfstate: data length: 157
2020/02/13 10:58:07 client.go:204: [DEBUG] getObject prefix/test/foo/terraform.tfstate: check: 1539f3328c0adec5a61547eac41af8f0
2020/02/13 10:58:07 backend_state.go:62: [DEBUG] delete workspace, workspace: foo
2020/02/13 10:58:07 client.go:69: [DEBUG] delete remote state file prefix/test/foo/terraform.tfstate
2020/02/13 10:58:07 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/foo%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGZfNTM4ZjBjMDlfMzE3MF82NWZjMWM=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:07 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:07 client.go:255: [DEBUG] deleteObject prefix/test/foo/terraform.tfstate: code: 204, error: <nil>
2020/02/13 10:58:07 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/foo%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGZfNTM4ZjBjMDlfMzE4YV82NzFmZjQ=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:07 client.go:62: [DEBUG] put remote state file foo/terraform.tfstate
2020/02/13 10:58:07 client.go:277: [DEBUG] getBucket terraform-test-ddc2949f6e-1259299171/prefix/test: code: 200, error: <nil>
2020/02/13 10:58:07 backend_state.go:31: [DEBUG] list all workspaces, objects: [{prefix/test/bar/terraform.tfstate "f48885c292e7a094fb95cca860c2922a" 388 0 2020-02-13T15:58:05.000Z STANDARD 0xc0004a3e30}], error: <nil>
2020/02/13 10:58:07 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:07 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:07 client.go:277: [DEBUG] getBucket terraform-test-ddc2949f6e-1259299171/prefix/test: code: 200, error: <nil>
2020/02/13 10:58:07 backend_state.go:31: [DEBUG] list all workspaces, objects: [{prefix/test/bar/terraform.tfstate "f48885c292e7a094fb95cca860c2922a" 388 0 2020-02-13T15:58:05.000Z STANDARD 0xc0007d7aa0}], error: <nil>
2020/02/13 10:58:07 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:07 client.go:41: [DEBUG] get remote state file prefix/test/terraform.tfstate
2020/02/13 10:58:07 client.go:178: [DEBUG] getObject prefix/test/terraform.tfstate: code: 404, error: GET https://terraform-test-ddc2949f6e-1259299171.cos.na-ashburn.myqcloud.com/prefix%2Ftest%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGZfMTI4ZjBjMDlfOGM0OF82NTkxOTc=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:07 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:07 client.go:277: [DEBUG] getBucket terraform-test-ddc2949f6e-1259299171/prefix/test/: code: 200, error: <nil>
2020/02/13 10:58:07 backend_state.go:31: [DEBUG] list all workspaces, objects: [{prefix/test/bar/terraform.tfstate "f48885c292e7a094fb95cca860c2922a" 388 0 2020-02-13T15:58:05.000Z STANDARD 0xc0007d1110}], error: <nil>
2020/02/13 10:58:07 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:07 client.go:41: [DEBUG] get remote state file prefix/test/terraform.tfstate
2020/02/13 10:58:07 client.go:238: [DEBUG] putObject foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:07 client.go:110: [DEBUG] unlock remote state file foo/terraform.tfstate.tflock
2020/02/13 10:58:07 client.go:178: [DEBUG] getObject prefix/test/terraform.tfstate: code: 404, error: GET https://terraform-test-ddc2949f6e-1259299171.cos.na-ashburn.myqcloud.com/prefix%2Ftest%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGZfMTI4ZjBjMDlfOGMyNF82NjBiYzg=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:07 client.go:76: [DEBUG] lock remote state file prefix/test/terraform.tfstate.tflock
2020/02/13 10:58:07 client.go:348: [DEBUG] lock cos file terraform-test-ddc2949f6e-1259299171:prefix/test/terraform.tfstate.tflock
2020/02/13 10:58:07 client.go:178: [DEBUG] getObject foo/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:07 client.go:189: [DEBUG] getObject foo/terraform.tfstate.tflock: checksum: 3a600e82e30bd7e051d945f7b5480019
2020/02/13 10:58:07 client.go:197: [DEBUG] getObject foo/terraform.tfstate.tflock: data length: 203
2020/02/13 10:58:07 client.go:204: [DEBUG] getObject foo/terraform.tfstate.tflock: check: 3a600e82e30bd7e051d945f7b5480019
2020/02/13 10:58:07 client.go:255: [DEBUG] deleteObject foo/terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:07 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:07 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:07 client.go:189: [DEBUG] getObject foo/terraform.tfstate: checksum: c4b8e86db48da1764995bd46e4f1f24f
2020/02/13 10:58:07 client.go:197: [DEBUG] getObject foo/terraform.tfstate: data length: 157
2020/02/13 10:58:07 client.go:204: [DEBUG] getObject foo/terraform.tfstate: check: c4b8e86db48da1764995bd46e4f1f24f
2020/02/13 10:58:07 backend_state.go:62: [DEBUG] delete workspace, workspace: foo
2020/02/13 10:58:07 client.go:69: [DEBUG] delete remote state file foo/terraform.tfstate
2020/02/13 10:58:07 client.go:255: [DEBUG] deleteObject foo/terraform.tfstate: code: 204, error: <nil>
2020/02/13 10:58:07 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:07 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b8594333ca32a34bbd835e608f359c7c" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc0008708a0}], error: <nil>
2020/02/13 10:58:07 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:07 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:07 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:07 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b8594333ca32a34bbd835e608f359c7c" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc0007d1bc0}], error: <nil>
2020/02/13 10:58:07 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:07 client.go:41: [DEBUG] get remote state file terraform.tfstate
2020/02/13 10:58:07 client.go:178: [DEBUG] getObject terraform.tfstate: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGZfNTM4ZjBjMDlfMzE4Y182NjhkNDg=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:07 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:07 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:07 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b8594333ca32a34bbd835e608f359c7c" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc0008860c0}], error: <nil>
2020/02/13 10:58:07 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:07 client.go:41: [DEBUG] get remote state file terraform.tfstate
2020/02/13 10:58:07 client.go:178: [DEBUG] getObject terraform.tfstate: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGZfNTM4ZjBjMDlfMzE3MV82Njg0NzQ=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:07 client.go:76: [DEBUG] lock remote state file terraform.tfstate.tflock
2020/02/13 10:58:07 client.go:348: [DEBUG] lock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:07 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:db016e7a3ab194cbca380f91e32a86be: error: <nil>
2020/02/13 10:58:07 client.go:178: [DEBUG] getObject foo/terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-bdb9ef3a02-1259299171.cos.na-ashburn.myqcloud.com/foo%2Fterraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGZfNTQ4ZjBjMDlfYWQwN182NDk0OWI=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:07 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:0c668de9ac1a476ebd8253cab611fee1: error: <nil>
2020/02/13 10:58:07 client.go:238: [DEBUG] putObject foo/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:07 client.go:358: [DEBUG] unlock cos file terraform-test-bdb9ef3a02-1259299171:foo/terraform.tfstate.tflock
2020/02/13 10:58:07 client.go:178: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-ddc2949f6e-1259299171.cos.na-ashburn.myqcloud.com/prefix%2Ftest%2Fterraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMGZfMTI4ZjBjMDlfOGMzNF82ODM4ZTk=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:07 client.go:238: [DEBUG] putObject prefix/test/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:07 client.go:358: [DEBUG] unlock cos file terraform-test-ddc2949f6e-1259299171:prefix/test/terraform.tfstate.tflock
2020/02/13 10:58:08 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:08 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMTBfNTM4ZjBjMDlfMzE4Ml82NjI4NmE=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:08 client.go:238: [DEBUG] putObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:08 client.go:358: [DEBUG] unlock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:08 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:db016e7a3ab194cbca380f91e32a86be: error: <nil>
2020/02/13 10:58:08 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:08 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 404, error: GET https://terraform-test-bdb9ef3a02-1259299171.cos.na-ashburn.myqcloud.com/foo%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMTBfNTQ4ZjBjMDlfYWQyMV82NTZiM2Y=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:08 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:08 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 404, error: GET https://terraform-test-bdb9ef3a02-1259299171.cos.na-ashburn.myqcloud.com/foo%2Fterraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMTBfNTQ4ZjBjMDlfYWQwYl82NmViZWQ=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:08 client.go:62: [DEBUG] put remote state file foo/terraform.tfstate
2020/02/13 10:58:08 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:0c668de9ac1a476ebd8253cab611fee1: error: <nil>
2020/02/13 10:58:08 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:08 client.go:277: [DEBUG] getBucket terraform-test-ddc2949f6e-1259299171/prefix/test/: code: 200, error: <nil>
2020/02/13 10:58:08 backend_state.go:31: [DEBUG] list all workspaces, objects: [{prefix/test/bar/terraform.tfstate "f48885c292e7a094fb95cca860c2922a" 388 0 2020-02-13T15:58:05.000Z STANDARD 0xc0002b0ae0} {prefix/test/terraform.tfstate.tflock "ac85272209096f2dd8da8c0d10e90d65" 196 0 2020-02-13T15:58:07.000Z STANDARD 0xc0002b0b10}], error: <nil>
2020/02/13 10:58:08 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:08 client.go:76: [DEBUG] lock remote state file prefix/test/terraform.tfstate.tflock
2020/02/13 10:58:08 client.go:348: [DEBUG] lock cos file terraform-test-ddc2949f6e-1259299171:prefix/test/terraform.tfstate.tflock
2020/02/13 10:58:08 client.go:238: [DEBUG] putObject foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:08 client.go:110: [DEBUG] unlock remote state file foo/terraform.tfstate.tflock
2020/02/13 10:58:08 client.go:178: [DEBUG] getObject foo/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:08 client.go:189: [DEBUG] getObject foo/terraform.tfstate.tflock: checksum: f018571a992d84da0abf0b5f93476c80
2020/02/13 10:58:08 client.go:197: [DEBUG] getObject foo/terraform.tfstate.tflock: data length: 203
2020/02/13 10:58:08 client.go:204: [DEBUG] getObject foo/terraform.tfstate.tflock: check: f018571a992d84da0abf0b5f93476c80
2020/02/13 10:58:08 client.go:255: [DEBUG] deleteObject foo/terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:08 client.go:41: [DEBUG] get remote state file foo/terraform.tfstate
2020/02/13 10:58:08 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:08 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:08 client.go:178: [DEBUG] getObject foo/terraform.tfstate: code: 200, error: <nil>
2020/02/13 10:58:08 client.go:189: [DEBUG] getObject foo/terraform.tfstate: checksum: 87438ecf29be4aa14a84481645406ed3
2020/02/13 10:58:08 client.go:197: [DEBUG] getObject foo/terraform.tfstate: data length: 157
2020/02/13 10:58:08 client.go:204: [DEBUG] getObject foo/terraform.tfstate: check: 87438ecf29be4aa14a84481645406ed3
2020/02/13 10:58:08 backend_state.go:62: [DEBUG] delete workspace, workspace: foo
2020/02/13 10:58:08 client.go:69: [DEBUG] delete remote state file foo/terraform.tfstate
2020/02/13 10:58:08 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:08 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b8594333ca32a34bbd835e608f359c7c" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc0002846f0} {terraform.tfstate.tflock "bf39cbdba021d8c48a654972606e5a76" 184 0 2020-02-13T15:58:08.000Z STANDARD 0xc000284720}], error: <nil>
2020/02/13 10:58:08 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:08 client.go:76: [DEBUG] lock remote state file terraform.tfstate.tflock
2020/02/13 10:58:08 client.go:348: [DEBUG] lock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:08 client.go:255: [DEBUG] deleteObject foo/terraform.tfstate: code: 204, error: <nil>
2020/02/13 10:58:08 client.go:277: [DEBUG] getBucket terraform-test-bdb9ef3a02-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:08 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b65b69c50934448ed8c5613b394ba989" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc0004a29f0}], error: <nil>
2020/02/13 10:58:08 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:08 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:08 client.go:277: [DEBUG] getBucket terraform-test-bdb9ef3a02-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:08 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b65b69c50934448ed8c5613b394ba989" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc0005c73b0}], error: <nil>
2020/02/13 10:58:08 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:08 client.go:41: [DEBUG] get remote state file terraform.tfstate
2020/02/13 10:58:08 client.go:178: [DEBUG] getObject terraform.tfstate: code: 404, error: GET https://terraform-test-bdb9ef3a02-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMTBfNTQ4ZjBjMDlfYWQxYl82NjBmMmM=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:08 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:08 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:0c668de9ac1a476ebd8253cab611fee1: error: <nil>
2020/02/13 10:58:08 client.go:178: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:08 client.go:189: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: checksum: ac85272209096f2dd8da8c0d10e90d65
2020/02/13 10:58:08 client.go:197: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: data length: 196
2020/02/13 10:58:08 client.go:204: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: check: ac85272209096f2dd8da8c0d10e90d65
2020/02/13 10:58:08 client.go:131: [DEBUG] failed to lock or unlock prefix/test/terraform.tfstate.tflock: lock file prefix/test/terraform.tfstate.tflock exists
2020/02/13 10:58:08 client.go:277: [DEBUG] getBucket terraform-test-bdb9ef3a02-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:08 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b65b69c50934448ed8c5613b394ba989" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc0002b1680}], error: <nil>
2020/02/13 10:58:08 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:08 client.go:41: [DEBUG] get remote state file terraform.tfstate
2020/02/13 10:58:08 client.go:178: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:08 client.go:189: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: checksum: ac85272209096f2dd8da8c0d10e90d65
2020/02/13 10:58:08 client.go:197: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: data length: 196
2020/02/13 10:58:08 client.go:204: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: check: ac85272209096f2dd8da8c0d10e90d65
2020/02/13 10:58:08 client.go:358: [DEBUG] unlock cos file terraform-test-ddc2949f6e-1259299171:prefix/test/terraform.tfstate.tflock
2020/02/13 10:58:08 client.go:178: [DEBUG] getObject terraform.tfstate: code: 404, error: GET https://terraform-test-bdb9ef3a02-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMTBfNTQ4ZjBjMDlfYWQwNF82Nzg4MjU=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:08 client.go:76: [DEBUG] lock remote state file terraform.tfstate.tflock
2020/02/13 10:58:08 client.go:348: [DEBUG] lock cos file terraform-test-bdb9ef3a02-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:09 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:09 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:09 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: bf39cbdba021d8c48a654972606e5a76
2020/02/13 10:58:09 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:09 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: bf39cbdba021d8c48a654972606e5a76
2020/02/13 10:58:09 client.go:131: [DEBUG] failed to lock or unlock terraform.tfstate.tflock: lock file terraform.tfstate.tflock exists
2020/02/13 10:58:09 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:09 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: bf39cbdba021d8c48a654972606e5a76
2020/02/13 10:58:09 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:09 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: bf39cbdba021d8c48a654972606e5a76
2020/02/13 10:58:09 client.go:358: [DEBUG] unlock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:09 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:331352f10b8cba2d6a18760c08e60b62: error: <nil>
2020/02/13 10:58:09 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:0c668de9ac1a476ebd8253cab611fee1: error: <nil>
2020/02/13 10:58:09 client.go:110: [DEBUG] unlock remote state file prefix/test/terraform.tfstate.tflock
2020/02/13 10:58:09 client.go:178: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:09 client.go:189: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: checksum: ac85272209096f2dd8da8c0d10e90d65
2020/02/13 10:58:09 client.go:197: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: data length: 196
2020/02/13 10:58:09 client.go:204: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: check: ac85272209096f2dd8da8c0d10e90d65
2020/02/13 10:58:09 client.go:255: [DEBUG] deleteObject prefix/test/terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:09 client.go:76: [DEBUG] lock remote state file prefix/test/terraform.tfstate.tflock
2020/02/13 10:58:09 client.go:348: [DEBUG] lock cos file terraform-test-ddc2949f6e-1259299171:prefix/test/terraform.tfstate.tflock
2020/02/13 10:58:09 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-bdb9ef3a02-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMTFfNTQ4ZjBjMDlfYWQwNV82NWUxMWQ=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:09 client.go:238: [DEBUG] putObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:09 client.go:358: [DEBUG] unlock cos file terraform-test-bdb9ef3a02-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:09 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:09 client.go:110: [DEBUG] unlock remote state file terraform.tfstate.tflock
2020/02/13 10:58:09 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:09 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: bf39cbdba021d8c48a654972606e5a76
2020/02/13 10:58:09 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:09 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: bf39cbdba021d8c48a654972606e5a76
2020/02/13 10:58:09 client.go:255: [DEBUG] deleteObject terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:09 client.go:76: [DEBUG] lock remote state file terraform.tfstate.tflock
2020/02/13 10:58:09 client.go:348: [DEBUG] lock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:09 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:0c668de9ac1a476ebd8253cab611fee1: error: <nil>
2020/02/13 10:58:09 client.go:178: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-ddc2949f6e-1259299171.cos.na-ashburn.myqcloud.com/prefix%2Ftest%2Fterraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMTFfMTI4ZjBjMDlfOGMzZV82NjNkYjE=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:09 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:331352f10b8cba2d6a18760c08e60b62: error: <nil>
2020/02/13 10:58:09 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:10 client.go:238: [DEBUG] putObject prefix/test/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:10 client.go:358: [DEBUG] unlock cos file terraform-test-ddc2949f6e-1259299171:prefix/test/terraform.tfstate.tflock
2020/02/13 10:58:10 client.go:277: [DEBUG] getBucket terraform-test-bdb9ef3a02-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:10 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b65b69c50934448ed8c5613b394ba989" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc00037cb10} {terraform.tfstate.tflock "7cbde150e98449f8c9a794f791e3178d" 184 0 2020-02-13T15:58:09.000Z STANDARD 0xc00037cb40}], error: <nil>
2020/02/13 10:58:10 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:10 client.go:76: [DEBUG] lock remote state file terraform.tfstate.tflock
2020/02/13 10:58:10 client.go:348: [DEBUG] lock cos file terraform-test-bdb9ef3a02-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:10 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:10 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMTJfNTM4ZjBjMDlfMzE3NF82NmMzMTY=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:10 client.go:238: [DEBUG] putObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:10 client.go:358: [DEBUG] unlock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:10 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:331352f10b8cba2d6a18760c08e60b62: error: <nil>
2020/02/13 10:58:10 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:0c668de9ac1a476ebd8253cab611fee1: error: <nil>
2020/02/13 10:58:10 client.go:110: [DEBUG] unlock remote state file prefix/test/terraform.tfstate.tflock
2020/02/13 10:58:10 client.go:178: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:10 client.go:189: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: checksum: a0f8140ce4456c08267a8ab5d773c3f3
2020/02/13 10:58:10 client.go:197: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: data length: 196
2020/02/13 10:58:10 client.go:204: [DEBUG] getObject prefix/test/terraform.tfstate.tflock: check: a0f8140ce4456c08267a8ab5d773c3f3
2020/02/13 10:58:10 client.go:255: [DEBUG] deleteObject prefix/test/terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:10 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:10 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: 7cbde150e98449f8c9a794f791e3178d
2020/02/13 10:58:10 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:10 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: 7cbde150e98449f8c9a794f791e3178d
2020/02/13 10:58:10 client.go:131: [DEBUG] failed to lock or unlock terraform.tfstate.tflock: lock file terraform.tfstate.tflock exists
2020/02/13 10:58:10 client.go:277: [DEBUG] getBucket terraform-test-ddc2949f6e-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:10 client.go:255: [DEBUG] deleteObject prefix/test/bar/terraform.tfstate: code: 204, error: <nil>
2020/02/13 10:58:10 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:10 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: 7cbde150e98449f8c9a794f791e3178d
2020/02/13 10:58:10 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:10 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: 7cbde150e98449f8c9a794f791e3178d
2020/02/13 10:58:10 client.go:358: [DEBUG] unlock cos file terraform-test-bdb9ef3a02-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:10 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:10 client.go:110: [DEBUG] unlock remote state file terraform.tfstate.tflock
2020/02/13 10:58:10 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:10 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: 31547fb97ba7e91dd4a731de16789910
2020/02/13 10:58:10 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:10 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: 31547fb97ba7e91dd4a731de16789910
2020/02/13 10:58:10 client.go:255: [DEBUG] deleteObject terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:10 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:10 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:10 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b8594333ca32a34bbd835e608f359c7c" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc00037d4d0}], error: <nil>
2020/02/13 10:58:10 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:10 client.go:41: [DEBUG] get remote state file terraform.tfstate
2020/02/13 10:58:10 client.go:178: [DEBUG] getObject terraform.tfstate: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMTJfNTM4ZjBjMDlfMzE2MV82NmZkNDM=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:10 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:10 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:10 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b8594333ca32a34bbd835e608f359c7c" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc0001c5830}], error: <nil>
2020/02/13 10:58:10 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:10 client.go:41: [DEBUG] get remote state file terraform.tfstate
2020/02/13 10:58:10 client.go:178: [DEBUG] getObject terraform.tfstate: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMTJfNTM4ZjBjMDlfMzE1ZF82NjY2YTE=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:10 client.go:76: [DEBUG] lock remote state file terraform.tfstate.tflock
2020/02/13 10:58:10 client.go:348: [DEBUG] lock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:11 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:331352f10b8cba2d6a18760c08e60b62: error: <nil>
2020/02/13 10:58:11 client.go:110: [DEBUG] unlock remote state file terraform.tfstate.tflock
2020/02/13 10:58:11 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:11 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: 7cbde150e98449f8c9a794f791e3178d
2020/02/13 10:58:11 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:11 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: 7cbde150e98449f8c9a794f791e3178d
2020/02/13 10:58:11 client.go:255: [DEBUG] deleteObject terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:11 client.go:76: [DEBUG] lock remote state file terraform.tfstate.tflock
2020/02/13 10:58:11 client.go:348: [DEBUG] lock cos file terraform-test-bdb9ef3a02-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:11 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:11 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMTNfNTM4ZjBjMDlfMzE2MV82NmZkNDU=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:11 client.go:238: [DEBUG] putObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:11 client.go:358: [DEBUG] unlock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:11 client.go:334: [DEBUG] deleteBucket terraform-test-6f4c585560-1259299171: code: 204, error: <nil>
--- PASS: TestRemoteClient (11.48s)
    backend_test.go:55: TestBackendConfig on *cos.Backend with configs.synthBody{Filename:"<TestWrapConfig>", Values:map[string]cty.Value{"bucket":cty.StringVal("terraform-test-6f4c585560-1259299171"), "key":cty.StringVal("terraform.tfstate"), "prefix":cty.StringVal(""), "region":cty.StringVal("na-ashburn")}}
2020/02/13 10:58:11 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:331352f10b8cba2d6a18760c08e60b62: error: <nil>
2020/02/13 10:58:11 client.go:334: [DEBUG] deleteBucket terraform-test-c83c93f04d-1259299171: code: 204, error: <nil>
--- PASS: TestRemoteClientWithPrefix (11.64s)
    backend_test.go:73: TestBackendConfig on *cos.Backend with configs.synthBody{Filename:"<TestWrapConfig>", Values:map[string]cty.Value{"bucket":cty.StringVal("terraform-test-c83c93f04d-1259299171"), "key":cty.StringVal("terraform.tfstate"), "prefix":cty.StringVal("prefix/test"), "region":cty.StringVal("na-ashburn")}}
2020/02/13 10:58:11 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-bdb9ef3a02-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMTNfNTQ4ZjBjMDlfYWQxZF82NWZlMjY=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:11 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:11 backend_state.go:78: [DEBUG] state manager, current workspace: default
2020/02/13 10:58:11 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:11 backend_state.go:31: [DEBUG] list all workspaces, objects: [{bar/terraform.tfstate "b8594333ca32a34bbd835e608f359c7c" 388 0 2020-02-13T15:58:06.000Z STANDARD 0xc00078c3c0} {terraform.tfstate.tflock "c3f63dfb22e35ae25018d92cc2b9e180" 184 0 2020-02-13T15:58:11.000Z STANDARD 0xc00078c3f0}], error: <nil>
2020/02/13 10:58:11 backend_state.go:55: [DEBUG] list all workspaces, workspaces: [default bar]
2020/02/13 10:58:11 client.go:76: [DEBUG] lock remote state file terraform.tfstate.tflock
2020/02/13 10:58:11 client.go:348: [DEBUG] lock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:11 client.go:238: [DEBUG] putObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:11 client.go:358: [DEBUG] unlock cos file terraform-test-bdb9ef3a02-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:11 client.go:334: [DEBUG] deleteBucket terraform-test-e67277e90d-1259299171: code: 204, error: <nil>
--- PASS: TestRemoteClientWithEncryption (11.86s)
    backend_test.go:90: TestBackendConfig on *cos.Backend with configs.synthBody{Filename:"<TestWrapConfig>", Values:map[string]cty.Value{"bucket":cty.StringVal("terraform-test-e67277e90d-1259299171"), "key":cty.StringVal("terraform.tfstate"), "prefix":cty.StringVal(""), "region":cty.StringVal("na-ashburn")}}
2020/02/13 10:58:12 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:12 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:12 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: c3f63dfb22e35ae25018d92cc2b9e180
2020/02/13 10:58:12 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:12 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: c3f63dfb22e35ae25018d92cc2b9e180
2020/02/13 10:58:12 client.go:131: [DEBUG] failed to lock or unlock terraform.tfstate.tflock: lock file terraform.tfstate.tflock exists
2020/02/13 10:58:12 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:12 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: c3f63dfb22e35ae25018d92cc2b9e180
2020/02/13 10:58:12 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:12 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: c3f63dfb22e35ae25018d92cc2b9e180
2020/02/13 10:58:12 client.go:358: [DEBUG] unlock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:12 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:331352f10b8cba2d6a18760c08e60b62: error: <nil>
2020/02/13 10:58:12 client.go:110: [DEBUG] unlock remote state file terraform.tfstate.tflock
2020/02/13 10:58:12 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:12 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: f54a98a780bab55b6df3ad2cd488ebf2
2020/02/13 10:58:12 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:12 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: f54a98a780bab55b6df3ad2cd488ebf2
2020/02/13 10:58:12 client.go:255: [DEBUG] deleteObject terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:12 client.go:277: [DEBUG] getBucket terraform-test-bdb9ef3a02-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:12 client.go:255: [DEBUG] deleteObject bar/terraform.tfstate: code: 204, error: <nil>
2020/02/13 10:58:12 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:12 client.go:110: [DEBUG] unlock remote state file terraform.tfstate.tflock
2020/02/13 10:58:12 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:12 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: c3f63dfb22e35ae25018d92cc2b9e180
2020/02/13 10:58:12 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:12 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: c3f63dfb22e35ae25018d92cc2b9e180
2020/02/13 10:58:12 client.go:255: [DEBUG] deleteObject terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:12 client.go:76: [DEBUG] lock remote state file terraform.tfstate.tflock
2020/02/13 10:58:12 client.go:348: [DEBUG] lock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:12 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:13 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMTVfNTM4ZjBjMDlfMzE3OV82NWZhMWU=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:13 client.go:238: [DEBUG] putObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:13 client.go:358: [DEBUG] unlock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:13 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:13 client.go:110: [DEBUG] unlock remote state file terraform.tfstate.tflock
2020/02/13 10:58:13 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:13 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: 49a28ebbb5354ddb7c8f545d417b077c
2020/02/13 10:58:13 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:13 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: 49a28ebbb5354ddb7c8f545d417b077c
2020/02/13 10:58:13 client.go:255: [DEBUG] deleteObject terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:13 client.go:76: [DEBUG] lock remote state file terraform.tfstate.tflock
2020/02/13 10:58:13 client.go:348: [DEBUG] lock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:14 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:14 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 404, error: GET https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/terraform.tfstate.tflock: 404 NoSuchKey(Message: The specified key does not exist., RequestId: NWU0NTcyMTZfNTM4ZjBjMDlfMzE2YV82NjQzY2U=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjNjIyOGVlZmJlNDg4NDQ1MzAzMjA2ZDg4OGQ3MDhlNWVmNmY2NmM3MTY2ZmZmNzQxMTJmMGU3MTQ0ZTc1MWM=)
2020/02/13 10:58:14 client.go:238: [DEBUG] putObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:14 client.go:358: [DEBUG] unlock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:14 client.go:334: [DEBUG] deleteBucket terraform-test-8854d7e150-1259299171: code: 204, error: <nil>
--- PASS: TestRemoteLocks (14.54s)
    backend_test.go:107: TestBackendConfig on *cos.Backend with configs.synthBody{Filename:"<TestWrapConfig>", Values:map[string]cty.Value{"bucket":cty.StringVal("terraform-test-8854d7e150-1259299171"), "key":cty.StringVal("terraform.tfstate"), "prefix":cty.StringVal(""), "region":cty.StringVal("na-ashburn")}}
2020/02/13 10:58:14 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:14 client.go:76: [DEBUG] lock remote state file terraform.tfstate.tflock
2020/02/13 10:58:14 client.go:348: [DEBUG] lock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:14 client.go:382: [DEBUG] create tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:15 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:15 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: cb327993820e5671cf1c795aa10c9d5d
2020/02/13 10:58:15 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:15 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: cb327993820e5671cf1c795aa10c9d5d
2020/02/13 10:58:15 client.go:131: [DEBUG] failed to lock or unlock terraform.tfstate.tflock: lock file terraform.tfstate.tflock exists
2020/02/13 10:58:15 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:15 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: cb327993820e5671cf1c795aa10c9d5d
2020/02/13 10:58:15 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:15 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: cb327993820e5671cf1c795aa10c9d5d
2020/02/13 10:58:15 client.go:358: [DEBUG] unlock cos file terraform-test-c8aee16a1b-1259299171:terraform.tfstate.tflock
2020/02/13 10:58:15 client.go:397: [DEBUG] delete tag tencentcloud-terraform-lock:5ef8fe00d5aad9ab7f9074106d70239b: error: <nil>
2020/02/13 10:58:15 client.go:110: [DEBUG] unlock remote state file terraform.tfstate.tflock
2020/02/13 10:58:15 client.go:178: [DEBUG] getObject terraform.tfstate.tflock: code: 200, error: <nil>
2020/02/13 10:58:15 client.go:189: [DEBUG] getObject terraform.tfstate.tflock: checksum: cb327993820e5671cf1c795aa10c9d5d
2020/02/13 10:58:15 client.go:197: [DEBUG] getObject terraform.tfstate.tflock: data length: 184
2020/02/13 10:58:15 client.go:204: [DEBUG] getObject terraform.tfstate.tflock: check: cb327993820e5671cf1c795aa10c9d5d
2020/02/13 10:58:15 client.go:255: [DEBUG] deleteObject terraform.tfstate.tflock: code: 204, error: <nil>
2020/02/13 10:58:15 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:15 client.go:255: [DEBUG] deleteObject bar/terraform.tfstate: code: 204, error: <nil>
2020/02/13 10:58:19 client.go:334: [DEBUG] deleteBucket terraform-test-ddc2949f6e-1259299171: code: 204, error: <nil>
2020/02/13 10:58:19 client.go:277: [DEBUG] getBucket terraform-test-ddc2949f6e-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:20 client.go:334: [DEBUG] deleteBucket terraform-test-bdb9ef3a02-1259299171: code: 204, error: <nil>
2020/02/13 10:58:20 client.go:277: [DEBUG] getBucket terraform-test-bdb9ef3a02-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:21 client.go:334: [DEBUG] deleteBucket terraform-test-ddc2949f6e-1259299171: code: 404, error: DELETE https://terraform-test-ddc2949f6e-1259299171.cos.na-ashburn.myqcloud.com/: 404 NoSuchBucket(Message: The specified bucket does not exist., RequestId: NWU0NTcyMWJfMTI4ZjBjMDlfOGMxZl82NWExZDk=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjYzE2MjAxN2M1MzJiOTdkZjMxMDVlYTZjN2FiMmI0ZmE5MGQwNDk5NGRlOGI1NjBhZDg0ZDkyZjk5ZThlYmY=)
--- PASS: TestBackendWithPrefix (21.04s)
    backend_test.go:155: TestBackendConfig on *cos.Backend with configs.synthBody{Filename:"<TestWrapConfig>", Values:map[string]cty.Value{"bucket":cty.StringVal("terraform-test-ddc2949f6e-1259299171"), "key":cty.StringVal("terraform.tfstate"), "prefix":cty.StringVal("prefix/test"), "region":cty.StringVal("na-ashburn")}}
    backend_test.go:158: TestBackendConfig on *cos.Backend with configs.synthBody{Filename:"<TestWrapConfig>", Values:map[string]cty.Value{"bucket":cty.StringVal("terraform-test-ddc2949f6e-1259299171"), "key":cty.StringVal("terraform.tfstate"), "prefix":cty.StringVal("prefix/test/"), "region":cty.StringVal("na-ashburn")}}
    backend_test.go:162: TestBackend: testing state locking for *cos.Backend
2020/02/13 10:58:22 client.go:334: [DEBUG] deleteBucket terraform-test-bdb9ef3a02-1259299171: code: 404, error: DELETE https://terraform-test-bdb9ef3a02-1259299171.cos.na-ashburn.myqcloud.com/: 404 NoSuchBucket(Message: The specified bucket does not exist., RequestId: NWU0NTcyMWNfNTQ4ZjBjMDlfYWQxM182NWJkMTM=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjYzE2MjAxN2M1MzJiOTdkZjMxMDVlYTZjN2FiMmI0ZmE5MGQwNDk5NGRlOGI1NjBhZDg0ZDkyZjk5ZThlYmY=)
--- PASS: TestBackendWithEncryption (22.99s)
    backend_test.go:170: TestBackendConfig on *cos.Backend with configs.synthBody{Filename:"<TestWrapConfig>", Values:map[string]cty.Value{"bucket":cty.StringVal("terraform-test-bdb9ef3a02-1259299171"), "key":cty.StringVal("terraform.tfstate"), "prefix":cty.StringVal(""), "region":cty.StringVal("na-ashburn")}}
    backend_test.go:173: TestBackendConfig on *cos.Backend with configs.synthBody{Filename:"<TestWrapConfig>", Values:map[string]cty.Value{"bucket":cty.StringVal("terraform-test-bdb9ef3a02-1259299171"), "key":cty.StringVal("terraform.tfstate"), "prefix":cty.StringVal(""), "region":cty.StringVal("na-ashburn")}}
    backend_test.go:177: TestBackend: testing state locking for *cos.Backend
2020/02/13 10:58:23 client.go:334: [DEBUG] deleteBucket terraform-test-c8aee16a1b-1259299171: code: 204, error: <nil>
2020/02/13 10:58:23 client.go:277: [DEBUG] getBucket terraform-test-c8aee16a1b-1259299171/: code: 200, error: <nil>
2020/02/13 10:58:25 client.go:334: [DEBUG] deleteBucket terraform-test-c8aee16a1b-1259299171: code: 404, error: DELETE https://terraform-test-c8aee16a1b-1259299171.cos.na-ashburn.myqcloud.com/: 404 NoSuchBucket(Message: The specified bucket does not exist., RequestId: NWU0NTcyMWZfNTM4ZjBjMDlfMzE2N182NTBlMDI=, TraceId: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTBjYzE2MjAxN2M1MzJiOTdkZjMxMDVlYTZjN2FiMmI0ZmE5MGQwNDk5NGRlOGI1NjBhZDg0ZDkyZjk5ZThlYmY=)
--- PASS: TestBackend (25.82s)
    backend_test.go:138: TestBackendConfig on *cos.Backend with configs.synthBody{Filename:"<TestWrapConfig>", Values:map[string]cty.Value{"bucket":cty.StringVal("terraform-test-c8aee16a1b-1259299171"), "key":cty.StringVal("terraform.tfstate"), "prefix":cty.StringVal(""), "region":cty.StringVal("na-ashburn")}}
    backend_test.go:141: TestBackendConfig on *cos.Backend with configs.synthBody{Filename:"<TestWrapConfig>", Values:map[string]cty.Value{"bucket":cty.StringVal("terraform-test-c8aee16a1b-1259299171"), "key":cty.StringVal("terraform.tfstate"), "prefix":cty.StringVal(""), "region":cty.StringVal("na-ashburn")}}
    backend_test.go:145: TestBackend: testing state locking for *cos.Backend
    backend_test.go:146: TestBackend: testing state locking for *cos.Backend
PASS
ok  	github.com/hashicorp/terraform/backend/remote-state/cos	25.946s

@pselle pselle merged commit 76e5b44 into hashicorp:master Feb 13, 2020
pselle pushed a commit that referenced this pull request Feb 13, 2020
* add TencentCloud COS backend for remote state

* add vendor of dependence

* fixed error not handle and remove default value for prefix argument

* get appid from TF_COS_APPID environment variables
@ghost
Copy link

ghost commented Apr 1, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backend/tencent Issues related to Tencent Cloud COS backend enhancement new-backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants