Closed fernando-villalba closed 4 days ago
Hi @uzaxirr Can I work on this issue?
Hey @Praveen005 can you outline your approach here.
@uzaxirr, Here's my assessment of the problem:
civo_reserved_ip
resource with the default region, NYC1
LON1
, if unsuccessful, retries.Now, I feel, to solve this issue, we should fail at the very first instance when there is a region mismatch(add checks in resourceInstanceCreate()
) and don't retry.
While this may likely address the issue at hand, but I feel this ghost resource creation should be handled in a better way on the API side.
I'd appreciate your input on this approach.
Thank you.
Hi @uzaxirr,
Whenever you have a moment, could you please review my approach?
Thank you! Praveen
Hi @uzaxirr,
I tried recreating it, but rightly got an error:
main.tf
:
Error correctly getting logged:
Issue
By accident I forgot to set the default region to LON1 (default was NYC1) while specifying the region of the instance to LON1 and this is what happened when I applied this code:
The following happens when applying the code above:
Applying:
If you go into the quota page as you do that and keep refreshing, you will see it progressively balloon until all is filled:
Acceptance Criteria