<div dir="ltr">Actually, this should be taken care of by the ansible installer.<div><br></div><div>If you do cannot re-run the ansible installer for any reason:</div><div>1. Set that env var before running the django-admin migrate command like Dennis said.</div><div><br></div><div>2. Add the line:</div><div>Environment="PULP_SETTINGS=/etc/pulp/settings.py"</div><div>(where /etc/pulp/settings.py is the path to the settings file)<br></div><div>To your systemd units within the [Service] section:</div><div>/etc/systemd/system/multi-user.target.wants/pulpcore-content.service<br>/etc/systemd/system/multi-user.target.wants/pulpcore-worker@1.service<br>/etc/systemd/system/multi-user.target.wants/pulpcore-api.service<br>/etc/systemd/system/multi-user.target.wants/pulpcore-resource-manager.service<br>/etc/systemd/system/multi-user.target.wants/pulpcore-worker@2.service<br></div><div><br></div><div>-Mike</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 20, 2019 at 4:15 PM Dennis Kliban <<a href="mailto:dkliban@redhat.com">dkliban@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">You have to set the PULP_SETTINGS environment variable. It is now required and does not default to /etc/pulp/settings.py. The value should be the path to your settings file. <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 20, 2019 at 11:28 AM Bin Li (BLOOMBERG/ 120 PARK) <<a href="mailto:bli111@bloomberg.net" target="_blank">bli111@bloomberg.net</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><div style="white-space:pre-wrap;font-size:small;font-family:"Courier New",Courier,"BB.FixedWidth"">I got the following error when rerun 'django-admin migrate --noinput' to reset database:<div>django.db.utils.OperationalError: FATAL:  no pg_hba.conf entry for host "[local]", user "pulp", database "pulp", SSL off</div><div><br></div><div>It looks like the database setting in /etc/pulp/settings.py below is ignored.</div><div>DATABASES = {"default": {"ENGINE": "django.db.backends.postgresql_psycopg2", "NAME": "pulp", "HOST": "pulpdbhost", "USER": </div><div>"pulp", "PASSWORD": "pulp", "PORT": 5432}}</div><div><br></div><div>This has been working for all previous rc releases. Is there an additional steps to reset a external database?</div><div><br></div><div><br></div><div><br></div></div></div>_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div>
_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:capitalize"><span>Mike</span> <span>DePaulo</span><span style="text-transform:uppercase;color:rgb(170,170,170);margin:0px"></span></p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:12px;margin:0px 0px 4px;text-transform:capitalize">He / Him / His</p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:12px;margin:0px;text-transform:capitalize"><span>Service Reliability Engineer, Pulp</span></p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;margin:0px 0px 4px;font-size:12px"><a href="https://www.redhat.com/" style="color:rgb(0,136,206);margin:0px" target="_blank">Red Hat<span></span></a></p><div style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:medium;margin-bottom:4px"></div><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;margin:0px;font-size:12px"><span>IM: <span>mikedep333</span></span></p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:12px;margin:0px"><span>GPG: 51745404</span></p><div style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:medium;margin-top:12px"><table border="0"><tbody><tr><td width="100px"><a href="https://www.redhat.com/" target="_blank"><img src="https://marketing-outfit-prod-images.s3-us-west-2.amazonaws.com/f5445ae0c9ddafd5b2f1836854d7416a/Logo-RedHat-Email.png" width="90" height="auto"></a></td></tr></tbody></table></div></div></div>