How to enable debug logging for pulp In Red Hat Private Automation Hub ?

Solution Verified - Updated -

Environment

  • Red Hat® Ansible Automation Platform 2.x
    • Private Automation Hub 4.3 and later.

Issue

  • How to enable debug loggingfor pulp In Private Automation Hub ?

Resolution

  • Run below command in the Private Automation Hub:

    # echo "LOGGING = {'dynaconf_merge': True, 'loggers': {'': {'handlers': ['console'], 'level': 'DEBUG'}}}" >> /etc/pulp/settings.py
    
  • Restart both pulpcore-api.service and nginx.service services for the changes to take effect.

    # systemctl restart pulpcore* nginx
    
  • Monitor debug logs:

    #tail -f  /var/log/messages        OR
    #journalctl -u pulp* -f
    

Diagnostic Steps

  • Check if debug logging parameter is already set:

    # cat /etc/pulp/settings.py | grep LOGGING
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments