sacloud / libsacloud

[Deprecated] Library for SAKURA Cloud API with Go
Apache License 2.0
18 stars 13 forks source link

builder/mobilegatewayでのリトライできないプロビジョニングの扱い #527

Closed yamamoto-febc closed 3 years ago

yamamoto-febc commented 4 years ago

from https://github.com/sacloud/terraform-provider-sakuracloud/issues/715

builder/mobilegatewayからsetup.RetryableSetupを利用している箇所でプロビジョングリトライ回数を1とし冪等性を考慮しない簡略な実装となっている。

https://github.com/sacloud/libsacloud/blob/700a0c468bf643ff53788aecc6c984b58caa447b/utils/builder/mobilegateway/builder.go#L208

しかし https://github.com/sacloud/terraform-provider-sakuracloud/issues/715 のようなケースがあることを踏まえると、builder/mobilegatewayでのプロビジョニングに冪等性を持たせた上でリトライ可能(回数を1より大きく設定)にした方がよいかもしれない。

yamamoto-febc commented 4 years ago

同様の問題がbuilder/vpcrouterにもある。

yamamoto-febc commented 3 years ago

問題になるケースは限定的なため現状維持とする。 必要に応じて再オープンする。