-
Notifications
You must be signed in to change notification settings - Fork 30
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
terraform crashes when trying to use "custom_field_filter" #17
Comments
Hi @diamconoa , |
Thanks for the reply @lord-kyron! This code is enough to get a crash:
I was thinking that perhaps the name of the custom field is important but no combination of name/value makes any difference. I would be really grateful if you could perhaps point me to a possible solution to this. Also if you can suggest another way to simply get all registered addresses in a subnet without a filter it would be good enough for me. Right now I manage to get addresses only if description matches exactly. Otherwise I get an empty list. |
Hi @diamconoa , inside PHPIPAM API configuration should be enabled option Please provide here results. |
Hi @pavel-z1,
|
Issue is replicated on my side. |
Hello @pavel-z1, can we expect any solution to this problem in the foreseeable future? |
Hi @basic39 , I will try to look this week on this. |
I've updated phpipam-sdk-go - pavel-z1/phpipam-sdk-go@c193c4a Issue fixed. My example:
Result:
Please note, that option @diamconoa , @basic39 try to rebuild phpipam provider and check now. |
Hello @pavel-z1 , Terraform still crashes. My goal is to identify the subnet by VLAN Number. Here my code:
How I made the rebuild:
Here the output:
My colleagues, that are responsible for PHPIPAM couldnt find this option. Can you please clarify how to check if this option is enabled? |
Hello @pavel-z1, I've tried to rebuild the provider and so far it looks promising. It didn't crash on 'terraform plan' of a test job. Haven't tried the real application yet but plan to try it out soon. @basic39 perhaps you need to install a new version of phpipam-sdk-go module before building the provider. I had to update the version of it to 'latest' in terraform-provider-phpipam/go.mod, it pointed to the old version otherwise. |
Hello everyone, I've now tested the new build more thoroughly and it works as expected. I suppose this repository should be updated to use the latest version of phpipam-sdk-go and then we can close this issue. |
Hello everyone, I checked, that "Nest custom fields" is disabled. Thank you @diamconoa. But terraform still crashes.
Did I something wrong?
This code:
produces the same error. phpipam-tf-crash_2020-10-02.txt Terraform v0.12.26 |
Hi @basic39 , Perhaps @diamconoa is right about for your case. Version of github.com/pavel-z1/phpipam-sdk-go module should be updated, then you will get the latest and actual code during build process. I've updated github.com/pavel-z1/phpipam-sdk-go module version. @basic39 try to build phpipam provider with this source code https://github.com/lord-kyron/terraform-provider-phpipam/tree/v1.1.1 |
I've pushed changes to the master branch. @basic39 , If your error persists, let us know. |
Terraform Version
Terraform v0.12.26 and v.0.12.25
provider-phpipam v1.1
Terraform Configuration Files
https://github.com/diamconoa/terra-crash/blob/master/main.tf
https://github.com/diamconoa/terra-crash/blob/master/variables.tf
Crash Output
https://github.com/diamconoa/terra-crash/blob/master/crash.log
Expected Behavior
terraform apply with output from search request
Actual Behavior
terraform crashed
Steps to Reproduce
Also note that I'm not using the documented syntax for "custom_field_filter", when copying an example from the documentation I get the following error:
The text was updated successfully, but these errors were encountered: