Actually, this should be taken care of by the ansible installer. If you do cannot re-run the ansible installer for any reason: 1. Set that env var before running the django-admin migrate command like Dennis said.
2. Add the line: Environment="PULP_SETTINGS=/etc/pulp/settings.py" (where /etc/pulp/settings.py is the path to the settings file) To your systemd units within the [Service] section: /etc/systemd/system/multi-user.target.wants/pulpcore-content.service /etc/systemd/system/multi-user.target.wants/[email protected] /etc/systemd/system/multi-user.target.wants/pulpcore-api.service /etc/systemd/system/multi-user.target.wants/pulpcore-resource-manager.service /etc/systemd/system/multi-user.target.wants/[email protected] -Mike On Wed, Nov 20, 2019 at 4:15 PM Dennis Kliban <[email protected]> wrote: > 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. > > On Wed, Nov 20, 2019 at 11:28 AM Bin Li (BLOOMBERG/ 120 PARK) < > [email protected]> wrote: > >> I got the following error when rerun 'django-admin migrate --noinput' to >> reset database: >> django.db.utils.OperationalError: FATAL: no pg_hba.conf entry for host >> "[local]", user "pulp", database "pulp", SSL off >> >> It looks like the database setting in /etc/pulp/settings.py below is >> ignored. >> DATABASES = {"default": {"ENGINE": >> "django.db.backends.postgresql_psycopg2", "NAME": "pulp", "HOST": >> "pulpdbhost", "USER": >> "pulp", "PASSWORD": "pulp", "PORT": 5432}} >> >> This has been working for all previous rc releases. Is there an >> additional steps to reset a external database? >> >> >> >> _______________________________________________ >> Pulp-list mailing list >> [email protected] >> https://www.redhat.com/mailman/listinfo/pulp-list > > _______________________________________________ > Pulp-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/pulp-list -- Mike DePaulo He / Him / His Service Reliability Engineer, Pulp Red Hat <https://www.redhat.com/> IM: mikedep333 GPG: 51745404 <https://www.redhat.com/>
_______________________________________________ Pulp-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/pulp-list
