Problem:
it is not possible according to the instructions Pulp_deb for pulp3 in Katello configure the signature of DEB repositories. I get an error at the output
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/django/db/backends/base/base.py", line 289, in ensure_connection
self.connect()
File "/usr/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/django/db/backends/base/base.py", line 270, in connect
self.connection = self.get_new_connection(conn_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/django/db/backends/postgresql/base.py", line 275, in get_new_connection
connection = self.Database.connect(**conn_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/psycopg/connection.py", line 119, in connect
raise last_ex.with_traceback(None)
psycopg.OperationalError: connection failed: database "pulp" does not exist
Expected outcome:
successful creation of a DEB signature Foreman and Proxy versions:
3.12.1 Foreman and Proxy plugin versions:
katello 4.14.1 Distribution and version:
AlmaLinux8.9 Other relevant data:
su pulp -s /bin/bash
# this is necessary for GPG's pinentry to work.
script /dev/null
# make sure to set the correct ID for the key here, this example uses 'Pulp QE'
# also either set no passphrase here (which you should not use for productive use!!!)
# or add additional code to handle the passphrase in the signing-script
gpg --gen-key
# export the public-key
gpg --export --armor "Pulp QE"
Ok, first things first, I believe the python script you created and the pulpcore-manager command are two different ways to accomplish the same thing. (Create a signing service named katello_deb_sign in Katello). You don’t need both. The preferred supported way going forwards is to use the pulpcore-manager command.
Before you try anything else try running the following to see if one of your attempts already created the signing service you want:
If you don’t yet have a signing service like this, we should try to get your pulpcore-manager command to work. The error you are getting from the pulpcore-manager command suggests it is looking for a Postgress DB named “pulp” even though the Pulp DB is always called “pulpcore” on Katello installations. This makes me think the execution environment of the pulpcore-manager command is missing some environmental variables. Try amending your command as follows:
Thanks, I checked it out. There was no signature, but when I added the line during the formation process PULP_SETTINGS=/etc/pulp/settings.py everything worked as it should! thank you very much!