<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi David,</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 5/07/19 20:41, David Davis wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAHa=2WkdkiS7BaNL73zN5G+zxO-KRqc8c2nUwbiYp0fynxxzjw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Juan,
<div><br>
</div>
<div>You'll want to
edit /usr/lib/systemd/system/pulp-api.service and set the
timeout option. This worked for me:</div>
<div><br>
</div>
<div>ExecStart=/usr/local/lib/pulp/bin/gunicorn
pulpcore.app.wsgi:application \<br>
--bind 'localhost:24817' \<br>
--access-logfile - \<br>
--timeout 180<br>
</div>
</div>
</blockquote>
<p>Thanks, this worked for me too.</p>
<p>I added this to my playbook<br>
</p>
<p><tt>- hosts: pulp_server</tt><tt><br>
</tt><tt> vars:</tt><tt><br>
</tt><tt> pulp_api_worker_timeout: 180</tt><tt><br>
</tt></p>
<p><tt> roles<br>
</tt></p>
<p><tt> .....</tt><tt><br>
</tt></p>
<p><tt> post_tasks:</tt><tt><br>
</tt><tt><br>
</tt><tt> - name: prepare to add timeout in pulp-api service</tt><tt><br>
</tt><tt> lineinfile:</tt><tt><br>
</tt><tt> path: /lib/systemd/system/pulp-api.service</tt><tt><br>
</tt><tt> regexp: '^.*--access-logfile -'</tt><tt><br>
</tt><tt> line: ' --access-logfile - \'</tt><tt><br>
</tt><tt> notify: restart pulp-api</tt><tt><br>
</tt><tt><br>
</tt><tt> - name: add timeout in pulp-api service</tt><tt><br>
</tt><tt> lineinfile:</tt><tt><br>
</tt><tt> path: /lib/systemd/system/pulp-api.service</tt><tt><br>
</tt><tt> regexp: '^.*--timeout'</tt><tt><br>
</tt><tt> insertafter: '^.*--access-logfile -'</tt><tt><br>
</tt><tt> line: ' --timeout {{
pulp_api_worker_timeout }}'</tt><tt><br>
</tt><tt> notify: restart pulp-api</tt><br>
<br>
</p>
<p>Like this I do not touch the ansible-pulp roles</p>
<p>Juan<br>
</p>
<blockquote type="cite"
cite="mid:CAHa=2WkdkiS7BaNL73zN5G+zxO-KRqc8c2nUwbiYp0fynxxzjw@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>Make sure you run 'systemctl daemon-reload'.<br clear="all">
<div>
<div dir="ltr"
class="m_7536245053618922813m_-363845646300078228gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div><br>
</div>
<div>David<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote"><br>
</div>
</blockquote>
<div class="moz-signature">-- <br>
<div style="font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 8pt; font-weight: normal; color: #616365;"> <img
src="cid:part1.382419D0.5443B13C@unamur.be" style="display:
block; margin: 1em 0em;">
<p style="margin: 1em;"> <span style="font-weight: bold;">Juan
CABRERA</span><br>
<span style="color: #69BE28;">Correspondant informatique</span><br>
<span>Département de Mathématiques</span> </p>
<p style="margin: 1em;">
<span style="font-weight: bold;">T.</span> 081724919<br>
<a style="color: #69BE28;"
href="mailto:juan.cabrera@unamur.be">juan.cabrera@unamur.be</a><br>
<a style="color: #69BE28;"
href="http://staff.unamur.be/jbcabrer">http://staff.unamur.be/jbcabrer</a>
</p>
<p style="margin: 1em;"> <span style="font-weight: bold;
font-size: 8pt;">Université de Namur ASBL</span><br>
<span>Rue de Bruxelles 61 - 5000 Namur</span><br>
<span>Belgique</span><br>
</p>
<p style="margin: 1em; font-size: 6pt; color: #69BE28;"> <span>Let’s
respect the environment together.</span><br>
<span style="font-weight: bold;">Only print this message if
necessary!</span><br>
</p>
</div>
</div>
</body>
</html>