Navigation Menu

Skip to content
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

RSE-9: Fix : Job Remote Option URL "retry" connection parameter is not honored #7856

Conversation

Jesus-Osuna-M
Copy link
Contributor

@Jesus-Osuna-M Jesus-Osuna-M commented Aug 16, 2022

Rundeck does not honor the retry settings mentioned here:
https://docs.rundeck.com/docs/administration/configuration/config-file-reference.html#job-remote-option-url-connection-parameters
Or here:
https://docs.rundeck.com/docs/manual/job-options.html#url-connection-parameters
Only the Timeout is honored, no retries are made.

Fix: https://github.com/rundeckpro/rundeckpro/issues/2644

Problem:
When a job option was set from a remote URL the retry param was not taken in count, any retry was made.
There are two ways of setting those configurations, directly on the URL or the config.properties, the ones from the config.properties weren't being used.

Solution:
On the RundeckBaseConfig add the missing params to be accessible when the params are set on the rundeck-config.file

The method used to obtain the values from the remote URL is now inside a cycle where the status of the HTTP request is evaluated, if the response code obtained is different than a successful response, Rundeck will retry as many times as the user has set or until the response code is valid. If the user has set the connection timeout, this cycle will wait the time specified before making a retry.

A similar solution is already implemented on the code on rundeckapp/grails-app/services/rundeck/services/NotificationService.groovy on the postDataUrl method

@Jesus-Osuna-M Jesus-Osuna-M added this to the 4.6.0 milestone Aug 16, 2022
@mergify mergify bot added the 4.x label Aug 16, 2022
@Jesus-Osuna-M Jesus-Osuna-M changed the title RUN-1072-job-remote-option-url-retry-connection-parameter-not-honored RSE-9-job-remote-option-url-retry-connection-parameter-not-honored Aug 17, 2022
@Jesus-Osuna-M Jesus-Osuna-M added the needs documentation Requires documentation change to be submitted to the rundeck/docs repo label Aug 17, 2022
@Jesus-Osuna-M Jesus-Osuna-M marked this pull request as ready for review August 17, 2022 15:54
Copy link
Contributor

@ronaveva ronaveva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Jesus-Osuna-M Jesus-Osuna-M merged commit 95cb59f into main Aug 18, 2022
@Jesus-Osuna-M Jesus-Osuna-M deleted the RUN-1072-job-remote-option-url-retry-connection-parameter-not-honored branch August 18, 2022 15:14
@fdevans fdevans changed the title RSE-9-job-remote-option-url-retry-connection-parameter-not-honored RSE-9: job-remote-option-url-retry-connection-parameter-not-honored Aug 19, 2022
@bproverb bproverb changed the title RSE-9: job-remote-option-url-retry-connection-parameter-not-honored RSE-9: Fix : job-remote-option-url-retry-connection-parameter-not-honored Aug 23, 2022
@bproverb bproverb changed the title RSE-9: Fix : job-remote-option-url-retry-connection-parameter-not-honored RSE-9: Fix : Job Remote Option URL "retry" connection parameter is not honored Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x needs documentation Requires documentation change to be submitted to the rundeck/docs repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants