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

Allow setting parameters on the API and Content Apache proxy #160

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

ehelms
Copy link
Member

@ehelms ehelms commented Jan 7, 2021

Adds a default timeout of 5 minutes to the parameters to address
issues seen when syncing from a Pulp 3 to a Pulp 3 mirror.

The default proxy timeout is 60 seconds, and we have seen in nightly, proxy syncing fail right at the one minute mark. This is a bit of tuning problem so I figured let's start with a higher default of 5 minutes and monitor.

Adds a default timeout of 5 minutes to the parameters to address
issues seen when syncing from a Pulp 3 to a Pulp 3 mirror.
@ehelms
Copy link
Member Author

ehelms commented Jan 7, 2021

Example failure:

10:31:48  # (in test file fb-katello-proxy.bats, line 26)
10:31:48  #   `hammer capsule content synchronize --id=$PROXY_ID' failed with status 70
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.0/1, 0%, elapsed: 00:00:00
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.0/1, 0%, 0.0/s, elapsed: 00:00:02
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.0/1, 0%, 0.0/s, elapsed: 00:00:04
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.07/1, 7%, 0.0/s, elapsed: 00:00:06, ETA: 00:01:32
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:09, ETA: 00:01:24
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:11, ETA: 00:01:45
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:13, ETA: 00:02:06
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:15, ETA: 00:02:06
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:18, ETA: 00:02:06
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:20, ETA: 00:07:18
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:22
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:25
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:27
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:29
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:32
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:35
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:37
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:39
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:41
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.1/1, 10%, 0.0/s, elapsed: 00:00:44
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.17/1, 17%, 0.0/s, elapsed: 00:00:47, ETA: 00:02:44
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.17/1, 17%, 0.0/s, elapsed: 00:00:49, ETA: 00:02:44
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.49/1, 49%, 0.0/s, elapsed: 00:00:51, ETA: 00:00:18
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.49/1, 49%, 0.0/s, elapsed: 00:00:54, ETA: 00:00:18
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.49/1, 49%, 0.0/s, elapsed: 00:00:56, ETA: 00:00:18
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced running: 0.55/1, 55%, 0.0/s, elapsed: 00:00:58, ETA: 00:00:15
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced warning: 1.0/1, 100%, 0.0/s, elapsed: 00:01:01
10:31:48  # Task af4481c5-01ea-421a-88e5-c2da4d35bced warning: 1.0/1, 100%, 0.0/s, elapsed: 00:01:01
10:31:48  # Error: RPM1004: Error retrieving metadata: Error 'Proxy Error' for https://pipe-up-katello-nightly-centos7.n45.example.com/pulp/repos/Test_Organization/Library/Composite/custom/Test_Product/Zoo/repodata/f0b5cbda6294f1b484c862127f504daaa68efcbd1060dfb7ab48c7b9dba5154d-other.xml.gz.

@ekohl ekohl merged commit da8f775 into theforeman:master Jan 8, 2021
@ekohl ekohl added the Enhancement New feature or request label Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Needs testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants