-
Notifications
You must be signed in to change notification settings - Fork 579
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
Hostgroup using assign for Host with groups = null segfault #5288
Comments
Terraform issue reference: Terraform Issue #14819 |
Is this still broken? When trying to use this with the example syntax, I'm getting:
And if I try to add:
|
This is still broken and an underlying issue with go-icinga2-api library. I am working on a patch to that ( https://github.com/lrsmith/go-icinga2-api/tree/pr3_create_host_with_group_bug ) and will propaget it forward to the icigna2 provider. |
This has been patched in go-icinga2-api so it no longer passed nil, but will pass an empty list. |
@koppel please create a new issue, this seems to be a different problem. It would be helpful to see the exact API call/URL, as we don't have any Terraform setups around to test :) |
Hostgroup objects that use
assign where
for Host objects that are apparently incorrectly created withgroups = null
causes a segfault.I suspect the
groups = null
isn't valid syntax, however this was created by the Terraform Icinga2 Provider. I'll report a bug to Terraform as well.Config validation also segfaults as seen below.
Expected Behavior
No segfault. Perhaps an error message on start? Maybe the API should also produce an error that the syntax isn't valid?
Current Behavior
Segfault produced:
Steps to Reproduce (for bugs)
Create the following config files. Icinga2 segfaults on start.
Your Environment
icinga2 feature list
):icinga2 daemon -C
):The text was updated successfully, but these errors were encountered: