-
Notifications
You must be signed in to change notification settings - Fork 630
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
Modifications to LB Pools being used by LBs don't follow proper sequencing #66
Comments
This is a really serious issue, by the way. It makes the load balancer resource essentially unusable. |
I hit this today. You can't force a new resource for pools as there will be LBs that depend on them. In the provider |
I am running into the same issue. Is it possible to give us an idea if this will be looked at, at some point? I was hoping to use Cloudflare's geo based load balancing for my website, but I am worried about running into these issues when I want to make changes after going to production. I am happy to work on a reproduction of the bug, if this helps speeding up the process. |
I can take a look tomorrow and see if force creating a new resource is
required or this is just an oversight.
I haven't delved into the API for load balancers but I'm assuming, like
other Cloudflare resources, this can be modified without replacement.
|
After looking into this, I can see that the However, the organisation and user load balancer pools both support in-place updates. The resource was added in #40 however the git blame doesn't really cover why Anyways, I'll put up a change for this shortly. |
The plot thickens.
|
The answer here is that organisation members cannot use |
@puckey @SteveGoldthorpe-Work I've opened a fix for this in #140. Can you please check it out and report back if it addresses your issues? I don't have a personal account with it enabled to confirm. |
Amazing, thanks! I built and installed your branch into |
Don't have a personal account either. |
@puckey I recently updated the README to include the steps on manually
building and leveraging the .terraformrc file (which I think you might've
confused with the plugin directory here). Does that help?
…On Fri, 26 Oct 2018 at 20:31, Jonathan Puckey ***@***.***> wrote:
Amazing, thanks!
I built and installed your branch into ~/.terraform.d/plugins, but I
don't think terraform is picking it up.. the log messages and errors I am
seeing are the same as before. Will try again on Monday.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/terraform-providers/terraform-provider-cloudflare/issues/66#issuecomment-433348046>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARSYjAJmGDWoiiRUxjrUScQSciiTbUAks5uotaOgaJpZM4UkJEe>
.
|
Thanks – I can verify that it is working for me. I can now add & change a monitor without it recreating the load balancer. |
Actual Behavior
When adding a monitor to a pool that is currently being used. Terraform attempts to destroy and re-create the pool. This fails as the pool is being used by the Load Balancer.
Expected Behavior
The pool would be recreated, or if necessary the LB would be recomputed as neccesary to create all resources as modified.
`
Error: Error applying plan:
1 error(s) occurred:
cloudflare_load_balancer_pool.gke_pool (destroy): 1 error(s) occurred:
cloudflare_load_balancer_pool.gke_pool: error deleting CloudFlare Load Balancer Pool: error from makeRequest: HTTP status 412: content "{\n "result": null,\n "success": false,\n "errors": [\n {\n "code": 1005,\n "message": "This object is referenced by other objects, delete them first."\n }\n ],\n "messages": []\n}\n"
`
Terraform Version
Terraform v0.11.7
Affected Resource(s)
Please list the resources as a list, for example:
The text was updated successfully, but these errors were encountered: