<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I moved this convo to pulp-list since it's focused on user usage of Pulp3 versus the development of Pulp itself (on <a href="mailto:pulp-dev@redhat.com" target="_blank">pulp-dev@redhat.com</a>). See some answers to Pulp3 usage questions inline. More questions are welcome!<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 2, 2019 at 4:49 AM Juan Cabrera <<a href="mailto:juan.cabrera@unamur.be" target="_blank">juan.cabrera@unamur.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Hi,</p>
<p>Thank you for the modifications. I'm more gitlab user than github
so I'm not familiar with PR procedure. <br></p></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
<p>It is not clear if the <code class="m_-4027823593625122755gmail-m_8357536917706363537docutils m_-4027823593625122755gmail-m_8357536917706363537literal m_-4027823593625122755gmail-notranslate"><span class="m_-4027823593625122755gmail-m_8357536917706363537pre">PULP_SETTINGS</span></code>
environment is not used any more. In this case the paragraph <br>
</p>
<p>"Make
sure to substitute <code class="m_-4027823593625122755gmail-m_8357536917706363537docutils m_-4027823593625122755gmail-m_8357536917706363537literal m_-4027823593625122755gmail-notranslate"><span class="m_-4027823593625122755gmail-m_8357536917706363537pre">Environment=PULP_SETTINGS=/path/to/pulp/server.yaml</span></code>
with the real location
of <a class="m_-4027823593625122755gmail-m_8357536917706363537reference m_-4027823593625122755gmail-m_8357536917706363537internal" href="https://docs.pulpproject.org/en/3.0/nightly/installation/configuration.html#id1" target="_blank"><span class="m_-4027823593625122755gmail-m_8357536917706363537std m_-4027823593625122755gmail-m_8357536917706363537std-ref">configuration file</span></a>."</p>
<p>Should be changed by</p>
<p>Make
sure that the <a class="m_-4027823593625122755gmail-m_8357536917706363537reference m_-4027823593625122755gmail-m_8357536917706363537internal" href="https://docs.pulpproject.org/en/3.0/nightly/installation/configuration.html#id1" target="_blank"><span class="m_-4027823593625122755gmail-m_8357536917706363537std m_-4027823593625122755gmail-m_8357536917706363537std-ref">configuration file</span></a> <code class="m_-4027823593625122755gmail-m_8357536917706363537docutils m_-4027823593625122755gmail-m_8357536917706363537literal m_-4027823593625122755gmail-notranslate"><span class="m_-4027823593625122755gmail-m_8357536917706363537pre">/etc/pulp/settings</span><span class="m_-4027823593625122755gmail-m_8357536917706363537pre">.py </span></code>exist.</p></div></blockquote><div>The /etc/pulp/settings.py file isn't needed at all anymore. This change ( <a href="https://github.com/pulp/pulpcore/pull/63" target="_blank">https://github.com/pulp/pulpcore/pull/63</a> ) hopefully removes reference to it leaving this section ( <a href="https://docs.pulpproject.org/en/3.0/nightly/installation/configuration.html" target="_blank">https://docs.pulpproject.org/en/3.0/nightly/installation/configuration.html</a> ) to be the main authority. My PR tries to clarify that section also.<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
<p><br>
</p>
<p>Another difference I see with the ansible provision of my Vagran
VM is that <tt> -c 'pulpcore.rqconfig'</tt> is missing. It is not
needed any more ?</p>
<p>On the VM I have this in <tt>pulp-resource-manager.service</tt>
:<br>
</p>
<pre>ExecStart=/usr/local/lib/pulp/bin/rq worker \
-w pulpcore.tasking.worker.PulpWorker -n resource-manager@%%h \
--pid=/var/run/pulp-resource-manager/resource-manager.pid</pre></div></blockquote><div>I think we should update the docs to use the ansible-pulp defaults I can do this in my PR also after checking with @asmacdo on it. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"><pre>
</pre>
<p>And the last difference I see, is that the systemd services are
different. There are no worker in <tt> /etc/systemd/system/</tt>
but an pulp-api service<br>
</p>
<p><tt>[root@dev-pulp-server ~]# ls /etc/systemd/system/pulp-*</tt><tt><br>
</tt><tt>/etc/systemd/system/pulp-api.service</tt><tt><br>
</tt><tt>/etc/systemd/system/pulp-resource-manager.service</tt><br>
</p>
<p>The worker service seems to be moved to <tt>/usr/lib/systemd/system/</tt></p>
<p>[root@dev-pulp-server ~]# ls /usr/lib/systemd/system/pulp-*<br>
/usr/lib/systemd/system/pulp-content-app.service<br>
/usr/lib/systemd/system/pulp-worker@.service<br></p></div></blockquote><div>I'll look more into this, but I wanted to get what I had out to the list. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"><p>
</p>
<p>Sincerely</p>
<p>Juan<br>
</p>
<p> </p>
<div class="m_-4027823593625122755gmail-m_8357536917706363537moz-cite-prefix">On 1/04/19 23:13, Brian Bouterse wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>I made a docs issue [0] and a PR to adjust the systemd
settings this [1]. Since dynaconf configures it now, I
believe removing this from the systemd file is the best
resolution.<br>
</div>
<div><br>
</div>
<div>[0]: <a href="https://pulp.plan.io/issues/4622" target="_blank">https://pulp.plan.io/issues/4622</a><br>
</div>
<div>[1]: <a href="https://github.com/pulp/pulpcore/pull/63" target="_blank">https://github.com/pulp/pulpcore/pull/63</a></div>
<div><br>
</div>
<div>Please let us know if there is anything else we can
improve on.</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Mar 29, 2019 at 1:11
PM Mike DePaulo <<a href="mailto:mikedep333@redhat.com" target="_blank">mikedep333@redhat.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>On Fri, Mar 29, 2019 at 4:44 AM Juan Cabrera <<a href="mailto:juan.cabrera@unamur.be" target="_blank">juan.cabrera@unamur.be</a>>
wrote:<br>
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>At the section about Systemd :<br>
</p>
<p><a class="m_-4027823593625122755gmail-m_8357536917706363537gmail-m_2445042903040375848gmail-m_-6885100073386585232moz-txt-link-freetext" href="https://docs.pulpproject.org/en/3.0/nightly/installation/instructions.html#systemd" target="_blank">https://docs.pulpproject.org/en/3.0/nightly/installation/instructions.html#systemd</a></p>
<p>It is said that the default config file is <tt>/etc/pulp/server.yaml</tt>.</p>
<p>In the installed VM there is not a <code class="m_-4027823593625122755gmail-m_8357536917706363537gmail-m_2445042903040375848gmail-m_-6885100073386585232docutils m_-4027823593625122755gmail-m_2445042903040375848gmail-m_-6885100073386585232literal m_-4027823593625122755gmail-m_8357536917706363537gmail-m_2445042903040375848gmail-notranslate"><span class="m_-4027823593625122755gmail-m_8357536917706363537gmail-m_2445042903040375848gmail-m_-6885100073386585232pre">Environment=PULP_SETTINGS=/path/to/pulp/server.yaml
</span></code>line in the <tt>pulp-resource-manager.service
</tt>file and the configuration file is named `<tt>/etc/pulp/settings.py</tt>`.
Some thing must be updated in the documentation?<br>
</p>
<p>The file contents in the VM are:<br>
</p>
<p><tt>[root@dev-pulp-server system]# cat
/etc/systemd/system/pulp-resource-manager.service</tt><tt><br>
</tt><tt>[Unit]</tt><tt><br>
</tt><tt>Description=Pulp Resource Manager</tt><tt><br>
</tt><tt>After=network-online.target</tt><tt><br>
</tt><tt>Wants=network-online.target</tt><tt><br>
</tt><tt><br>
</tt><tt># This service will break if left running
while PostgreSQL restarts.</tt><tt><br>
</tt><tt>BindsTo=postgresql.service</tt><tt><br>
</tt><tt>After=postgresql.service</tt><tt><br>
</tt><tt><br>
</tt><tt>[Service]</tt><tt><br>
</tt><tt>Environment="DJANGO_SETTINGS_MODULE=pulpcore.app.settings"</tt><tt><br>
</tt><tt>User=pulp</tt><tt><br>
</tt><tt>WorkingDirectory=/var/run/pulp-resource-manager/</tt><tt><br>
</tt><tt>RuntimeDirectory=pulp-resource-manager</tt><tt><br>
</tt><tt>ExecStart=/usr/local/lib/pulp/bin/rq worker
\</tt><tt><br>
</tt><tt> -w
pulpcore.tasking.worker.PulpWorker -n
resource-manager@%%h \</tt><tt><br>
</tt><tt>
--pid=/var/run/pulp-resource-manager/resource-manager.pid</tt><tt><br>
</tt><tt><br>
</tt><tt>[Install]</tt><tt><br>
</tt><tt>WantedBy=multi-user.target</tt></p>
</div>
</blockquote>
<div>Hi Juan,</div>
<div><br>
</div>
<div>Sorry you ran into this issue with our docs.</div>
<div><br>
</div>
I think that specific documentation page[1] is was not
sufficiently updated to reflect the migration to dynaconf.<br>
<a href="https://pulpproject.org/2018/09/25/pulp-3-adopts-dynaconf/" target="_blank">https://pulpproject.org/2018/09/25/pulp-3-adopts-dynaconf/</a><br>
1. Dynaconf supports multiple formats; .py & .yml
included.<br>
2. The default path /etc/pulp/settings.py is in the
codebase rather than the .service file. The .service file
can still override it.<span class="m_-4027823593625122755gmail-m_8357536917706363537gmail-m_2445042903040375848sewf76u41d7qi2s"></span>
<div><br>
</div>
<div>Please submit an issue, and a pull request if you
can.</div>
<div><a href="https://github.com/pulp/pulpcore/" target="_blank">https://github.com/pulp/pulpcore/</a><br>
</div>
<div><br>
</div>
<div>[1] In contrast, <a href="https://docs.pulpproject.org/en/3.0/nightly/installation/configuration.html" target="_blank">https://docs.pulpproject.org/en/3.0/nightly/installation/configuration.html</a> was
updated sufficiently.</div>
<div><br>
</div>
<div>
<div>-Mike </div>
</div>
</div>
</div>
_______________________________________________<br>
Pulp-dev mailing list<br>
<a href="mailto:Pulp-dev@redhat.com" target="_blank">Pulp-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-dev" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-dev</a><br>
</blockquote>
</div>
</blockquote>
<div class="m_-4027823593625122755gmail-m_8357536917706363537moz-signature">-- <br>
<div style="font-family:Verdana,Helvetica,Arial,sans-serif;font-size:8pt;font-weight:normal;color:rgb(97,99,101)"> <img src="cid:169de53bb839c48d35a1" style="display:block;margin:1em 0em">
<p style="margin:1em"> <span style="font-weight:bold">Juan
CABRERA</span><br>
<span style="color:rgb(105,190,40)">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:rgb(105,190,40)" href="mailto:juan.cabrera@unamur.be" target="_blank">juan.cabrera@unamur.be</a><br>
<a style="color:rgb(105,190,40)" href="http://staff.unamur.be/jbcabrer" target="_blank">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:rgb(105,190,40)"> <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>
</div>
</blockquote></div></div></div></div>