Increase foreman ping timeout from default 30 secs to ~120 secs

Open Beginner friendly
#665 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
84/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
ansible
Domain
devops

Research direction

Open src/roles/foreman/tasks/main.yaml around line 309 and inspect the ping endpoint task and its timeout setting. Adjust the timeout to approximately 120 seconds, then verify that the task permits slow ping responses without changing other service checks.

Written by the indexing model from the issue text.

Description

The https://github.com/theforeman/foremanctl/blob/master/src/roles/foreman/tasks/main.yaml#L309 step here requires the ping endpoint to respond within the default timeout of 30 seconds. In some cases, especially when some services are failing the response time maybe longer than 30 secs..In a local setup where rh_cloud service was failing, that RH cloud check alone lasted around 20 secs and it took ping around 60 secs to respond..We should probably use a timeout of 120 secs or so to give enough time for the ping endpoint to respond.

Dominant language
Python
Stars
27
Forks
47
Avg merge
1d 12h
Merged PRs (30d)
40

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from theforeman/foremanctl

All issues in theforeman/foremanctl

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.