Open rich-boyce opened 1 year ago
I believe there were some bugs fixed in the 4.17 release that might address this. Can you try that version please?
@fdevans Thanks for the reply. I've tried 4.17 and it doesn't address the issue I was seeing.
After a lot more investigation it became clear that the root cause of the problem I describe was as follows: A project setting, for a job execution plugin, had always been omitted from the configuration applied by terraform. That setting has a default in the plugin, which previous versions of Rundeck would use without error. Starting with the 4.15 release, however, Rundeck started throwing the errors given in my post above, when project configuration was set by terraform.
The solution I've applied was to modify the terraform provider to include the default for that project setting in the settings it applies, unless overridden.
Feel free to close this, however I would like to point out that the errors thrown by Rundeck in this situation could have been a lot more helpful.
What setting needed a better default value? I can look into whether it's a product side or provider side issue.
That wasn't the issue here - the default value was correct, the failure was that Rundeck was rejecting (with status 500) any attempt at setting project configuration via the API that did not include an explicit value for that key. It's worth noting that the UI shows the default value when creating a new project, so that information was being propagated through to Rundeck successfully; the error was just when attempting to configure a project via the API.
The actual job execution plugin in question is one we've put together ourselves.
Hi,
I’m facing quite the same issue. Could you give an example of what you did added on your provider ?
Thanks,
@rich-boyce Is there still an issue to be figured out here?
@fdevans Apologies for the late reply - no, this seems to have been resolved one way or another.
Starting with some release between 4.13.0 and 4.16.0, project update and create operations using terraform-provider-rundeck fail. The bug seems to be with the configuration step, since a create operation will result in a project being created but not configured.
Terraform reports this error:
Rundeck reports errors like this:
Rundeck reports warnings like this:
Rolling the Rundeck container back to 4.13.0 allows the changes to be applied successfully.