Pulp3 status landing in 502 error after reboot

Hello All,

We had setup Pulp3 on RHEL 9.5. everything looks good and pulp services are working fine after reboot. But after configuring the SSL certs if the server get rebooted then pulp status is landing at 502 error. we have to run “ansible-playbook install.yml” with just container in it to get the services back online. and every time we run install.yml we are losing these 3 lines in /etc/pulp/settings.py we are adding back those and doing nginix reload. since there are lot of pulp hosts and reboots happen unexpected. This is not stable which is causing lot of issues. Could you please suggest a permanent solution to make it stable after reboot ?

losing these 3 lines after running “ansible-playbook install.yml” in /etc/pulp/settings.py:

ALLOWED_CONTENT_CHECKSUMS = [“md5”, “sha1”, “sha224”, “sha256”, “sha384”, “sha512”]
SECURE_PROXY_SSL_CERTIFICATE = ‘/etc/pulp/certs/pulp_webserver.crt’
SECURE_PROXY_SSL_PRIVATE_KEY = ‘/etc/pulp/certs/pulp_webserver.key’

(pulp) [root@prodeu-yumrepo-s1-z2-0 a_reghatte_sap_com]# pip list |grep -i pulp
pulp-cli 0.21.4
pulp-container 2.14.8
pulp-file 1.12.0
pulp-glue 0.21.4
pulp-rpm 3.19.11

(pulp) [root@prodeu-yumrepo-s1-z2-0 pulp3-install]# cat install.yml

  • hosts: localhost
    force_handlers: True
    collections:
    • pulp.pulp_installer
      vars:
      pulp_settings:
      secret_key: “XXXXXXXXXXXXXXX”
      content_origin: “https://prodeu-yumrepo-s1-z2-0
      pulp_default_admin_password: “XXXXXXXX”
      ansible_python_interpreter: /usr/bin/python3
      pulp_install_plugins:

      galaxy-ng:

      pulp-2to3-migration:

      pulp-ansible:

      pulp-certguard:

      pulp-container:
      version: “2.14.8”
      #pulp-cli:

      version: “0.21.4”

      pulp-cookbook:

      pulp-deb:

      pulp-file:

      pulp-gem:

      #pulp-glue:

      version: “0.21.4”

      pulp-maven:

      pulp-npm:

      pulp-python:

      #pulp-rpm:

      version: “3.19.11”

    roles:
    • pulp_all_services
      environment:
      DJANGO_SETTINGS_MODULE: pulpcore.app.settings

      [py3_hosts:vars]

Hello @abhinandan8055
First, looks like you are using pulp_installer, which is deprecated since 2022. We encourage you to switch to a container-based version, have a look in this post.

Anyway, looks like (I’ve never really used pulp_installer myself) you should define these 3 custom settings on the pulp_settings section of the install.yml file. Probably the ansible run is overriding whathever change you did in the settings.py (manually or via sed or something) with what is declared there.

You could also define it as environment variables by prefixing the settings with PULP_, like PULP_ALLOWED_CONTENT_CHECKSUMS. You can learn more about defining settings here.