-
Notifications
You must be signed in to change notification settings - Fork 982
phpipam set to "INTERNAL" for load balancing crashes the terraform creation #2222
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
Comments
I manually tried to create a Private Service Connect endpoint, to no avail. |
@simonebruzzechesse can you TAL? |
Hi @PapaPeskwo ! Thanks for reaching out, I just reviewed the code and I noticed a couple of issues with the internal exposure of the application. One was a regression due to a module upgrade while the other was probably a missing proxy subnet in the VPC, you can find the latest version in my PR #2226 During my test I didn't experience the issue you are reporting. I did some research on the error reported and it might be related to the fact that you are trying to setup a private service connection in a VPC where there is already an existing connection (not sure if that is the case). Could you please try to setup the phpIPAM service in a brand new vpc or project and let me know if the version of the code in the PR works properly? |
Hello @simonebruzzechesse Also, thanks for the quick fix :) |
Hi @PapaPeskwo , yes I'm quite sure you spotted the errors I should have fixed today. The connection error is strange, I still would recommend to setup everything again from scratch and double check if you still experience the same issue. Then let me know! Thanks to you for opening the issue and letting us know of those errors! |
Hi again @simonebruzzechesse I was also successful in using this command to fix the project that had issues:
This issue was discussed here and here. Perhaps something that can be added to the README? (I can open a PR with that added). Another note; when destroying, I get:
Manually deleting the VPC network peering works. Is this something that can be solved in the Terraform configuration? Either way it works now and I'm very grateful. |
Hi @PapaPeskwo, thanks for all the info shared and happy the newer version worked properly. That really looks like some kind of issues with PSA so I don't think we can manage this in a different way via Terraform, ofc feel free to add a dedicated section on the README.md warning users of such a possible issue when deleting and re-creating the blueprint. That would be appreciated. I removed also the ingress setting "all" which was causing the Cloud Run service still being accessible via default URL when being deployed privately. Regarding the latest issue on deprovisioning resources we were able to identity (and solve) the issue. We were missing the deletion_policy parameter in the google_service_networking_connection terraform resource. Now everything should work properly, please let me know if you manage to give it a try and check everything is fine now. I just closed the PR so you can reference the main branch now. Thanks for sharing and hope you won't experience any further issue in your next deployment :) |
Describe the bug
When trying to deploy the phpipam blueprint with "internal" set, i get:
Nothing is inside the project.
This is the terraform.tfvars:
I tried chaing the IP addresses in ilb.tf:
but that did not help.
Environment
I tried with two environments:
To Reproduce
Set the phpipam_exposure = "INTERNAL" in your tfvars file.
Expected behavior
Everything to be set up without errors.
Result
Additional context
Add any other context about the problem here
The text was updated successfully, but these errors were encountered: