terraform-provider-iterative icon indicating copy to clipboard operation
terraform-provider-iterative copied to clipboard

Simplify bucket emptying mechanism

Open 0x2b3bfa0 opened this issue 3 years ago • 3 comments

Follow-up of #420 and #453, closes #459

It turns out that #459 happened because when some resources are already missing, t.Read() fails and the emptying logic never runs. Still, needs extensive testing before merging.

0x2b3bfa0 avatar Mar 30 '22 22:03 0x2b3bfa0

@0x2b3bfa0 seems to be failing in GCP

The bucket you tried to delete is not empty.", Details:[]interface (nil), Body:""error":"code":409,"message":"The bucket you tried to delete is not empty.","errors":["message":"The bucket you tried to delete is not empty.","domain":"global","reason":"conflict"]", Header:http.Header(nil), Errors:[]googleapi.ErrorItemgoogleapi.ErrorItemReason:"conflict", Message:"The bucket you tried to delete is not empty."***

DavidGOrtega avatar Mar 31 '22 13:03 DavidGOrtega

Ditto: https://github.com/iterative/terraform-provider-iterative/pull/471#issuecomment-1084526316

0x2b3bfa0 avatar Mar 31 '22 13:03 0x2b3bfa0

Ditto: #471 (comment)

Ok! but not should be working rclone here also?

DavidGOrtega avatar Mar 31 '22 13:03 DavidGOrtega