Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Increase timeout on vagrant tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fao89 committed Apr 1, 2021
1 parent e8f8fea commit 318c9ae
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/scripts/install.sh
Expand Up @@ -64,6 +64,8 @@ if /bin/false ; then
sudo vagrant plugin install vagrant-sshfs
fi

sed -i "s/pulp_service_timeout: 90/pulp_service_timeout: 180/g" roles/pulp_common/defaults/main.yml

if sudo kvm-ok ; then
# Speed up disk writes by switching qemu-kvm from writeback to unsafe.
ln -s $PWD/vagrant/settings.ci.yaml forklift/vagrant/settings.yaml
Expand Down
1 change: 1 addition & 0 deletions CHANGES/8498.feature
@@ -0,0 +1 @@
Introduce advanced variable: ``pulp_service_timeout``
2 changes: 0 additions & 2 deletions example.dev-config.yml
Expand Up @@ -2,8 +2,6 @@
# Options
pulp_devel_supplement_bashrc: true
pulp_default_admin_password: password
pulp_api_bind: "unix:/var/run/pulpcore-api/pulpcore-api.sock"
pulp_content_bind: "unix:/var/run/pulpcore-content/pulpcore-content.sock"
pulp_install_plugins:
# galaxy-ng:
# source_dir: "/home/vagrant/devel/galaxy_ng"
Expand Down
4 changes: 2 additions & 2 deletions roles/pulp_api/templates/pulpcore-api.service.j2
Expand Up @@ -15,12 +15,12 @@ Group={{ pulp_group }}
PIDFile=/run/pulpcore-api.pid
RuntimeDirectory=pulpcore-api

# timeout 90 is needed Pulp to service its 1st request on extremely slow
# timeout is needed Pulp to service its 1st request on extremely slow
# machines, such as qemu-emulated 2-core machines
ExecStart={{ __pulp_daemons_dir }}/gunicorn pulpcore.app.wsgi:application \
--bind '{{ pulp_api_bind }}' \
--workers {{ pulp_api_workers }} \
--timeout 90 \
--timeout {{ pulp_service_timeout }} \
--access-logfile - \
--access-logformat 'pulp [%({correlation-id}o)s]: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'

Expand Down
1 change: 1 addition & 0 deletions roles/pulp_common/README.md
Expand Up @@ -161,6 +161,7 @@ Role Variables for advanced usage
* `pulpcore_version`: Specify a specific version of pulpcore one would like to install or upgrade to.
By default the installer will do the right thing by using the version of pulpcore it is designed
for and tested with. It is strongly advised against setting.
* `pulp_service_timeout`: Set timeout value for pulp services. Defaults to 90.

Shared Variables
----------------
Expand Down
1 change: 1 addition & 0 deletions roles/pulp_common/defaults/main.yml
Expand Up @@ -8,6 +8,7 @@ pulp_settings_file: '{{ pulp_config_dir }}/settings.py'
pulp_install_source: pip
pulp_install_dir: '{{ (pulp_install_source == "packages") | ternary("/usr", "/usr/local/lib/pulp") }}'
__pulp_daemons_dir: '{{ (pulp_install_source == "packages") | ternary("/usr/libexec/pulpcore", pulp_install_dir ~ "/bin") }}'
pulp_service_timeout: 90
pulp_install_api_service: true
# Deprecated unused. Variables for dependency upgrades are TBD
pulp_upgrade: false
Expand Down
4 changes: 2 additions & 2 deletions roles/pulp_content/templates/pulpcore-content.service.j2
Expand Up @@ -15,13 +15,13 @@ Group={{ pulp_group }}
WorkingDirectory=/var/run/pulpcore-content/
RuntimeDirectory=pulpcore-content

# timeout 90 is needed Pulp to service its 1st request on extremely slow
# timeout is needed Pulp to service its 1st request on extremely slow
# machines, such as qemu-emulated 2-core machines
ExecStart={{ __pulp_daemons_dir }}/gunicorn pulpcore.content:server \
--bind '{{ pulp_content_bind }}' \
--worker-class 'aiohttp.GunicornWebWorker' \
--workers {{ pulp_content_workers }} \
--timeout 90 \
--timeout {{ pulp_service_timeout }} \
--access-logfile -

# Enables tracking of process resource consumption at a unit & cgroup level.
Expand Down

0 comments on commit 318c9ae

Please sign in to comment.