Problem:
task “pulp.pulp_installer.pulp_health_check : Ensure Pulp is up and healthy” fail
Expected outcome:
task ends ok
Pulpcore version:
pulpcore 3.18.17
Pulp plugins installed and their versions:
pulp-ansible 0.13.6
galaxy-ng 4.5.0
Operating system - distribution and version:
Red Hat Enterprise Linux release 8.7 (Ootpa)
Other relevant data:
Ansible install.yml:
—
- hosts: all
become: true
force_handlers: True
collections:
- pulp.pulp_installer
vars:
mypassword: “pass123!”
pulp_default_admin_password: ‘{{ mypassword }}’
pulp_install_selinux_policies: false
pulp_settings:
secret_key: ‘{{ mypassword }}’
content_origin: “https://vm04”
redis_host: localhost
redis_port: 6379
redis_password: ‘{{ mypassword }}’
databases:
default:
HOST: localhost
PORT: 5432
NAME: pulp
USER: pulp
PASSWORD: ‘{{ mypassword }}’
pulp_workers: 4
# pulpcore_update: true
pulpcore_version: 3.18
pulp_install_plugins:
galaxy-ng:
version: 4.5.0
# pulp-2to3-migration:
pulp-ansible:
version: 0.13.6
# pulp-certguard:
# pulp-container:
# pulp-cookbook:
# pulp-deb:
# pulp-file:
# pulp-gem:
# pulp-maven:
# pulp-npm:
# pulp-python:
# pulp-rpm:
roles:
- pulp_all_services
- pulp_health_check
- pulp_webserver
environment:
DJANGO_SETTINGS_MODULE: pulpcore.app.settings
api status:
# curl http://127.0.0.1:24817/pulp/api/v3/status/ | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1936 100 1936 0 0 62451 0 --:--:-- --:--:-- --:--:-- 62451
{
"versions": [
{
"component": "core",
"version": "3.18.17"
},
{
"component": "container",
"version": "2.10.12"
},
{
"component": "ansible",
"version": "0.13.6"
},
{
"component": "galaxy",
"version": "4.5.0"
}
],
"online_workers": [
{
"pulp_href": "/pulp/api/v3/workers/24077020-88cf-4746-88d9-d2f505666180/",
"pulp_created": "2023-05-16T14:14:32.625436Z",
"name": "1170@vm04.laboratorio.com",
"last_heartbeat": "2023-05-16T14:15:43.028089Z",
"current_task": null
},
{
"pulp_href": "/pulp/api/v3/workers/53fedd39-d302-406e-9fb2-bc5690351821/",
"pulp_created": "2023-05-16T14:14:32.786988Z",
"name": "1165@vm04.laboratorio.com",
"last_heartbeat": "2023-05-16T14:15:43.038571Z",
"current_task": null
},
{
"pulp_href": "/pulp/api/v3/workers/b10d71d1-e248-4c8f-a669-7d6fce1815d3/",
"pulp_created": "2023-05-16T14:14:32.789272Z",
"name": "1168@vm04.laboratorio.com",
"last_heartbeat": "2023-05-16T14:15:43.085504Z",
"current_task": null
},
{
"pulp_href": "/pulp/api/v3/workers/a90b3feb-eb79-4943-8423-065b82da1909/",
"pulp_created": "2023-05-16T14:14:32.882566Z",
"name": "1167@vm04.laboratorio.com",
"last_heartbeat": "2023-05-16T14:15:43.221473Z",
"current_task": null
}
],
"online_content_apps": [
{
"name": "1629@vm04.laboratorio.com",
"last_heartbeat": "2023-05-16T14:15:45.959317Z"
},
{
"name": "1681@vm04.laboratorio.com",
"last_heartbeat": "2023-05-16T14:15:45.973061Z"
},
{
"name": "1709@vm04.laboratorio.com",
"last_heartbeat": "2023-05-16T14:15:45.973921Z"
},
{
"name": "1635@vm04.laboratorio.com",
"last_heartbeat": "2023-05-16T14:15:46.542779Z"
},
{
"name": "1605@vm04.laboratorio.com",
"last_heartbeat": "2023-05-16T14:15:46.739194Z"
},
{
"name": "1725@vm04.laboratorio.com",
"last_heartbeat": "2023-05-16T14:15:47.330556Z"
},
{
"name": "1647@vm04.laboratorio.com",
"last_heartbeat": "2023-05-16T14:15:47.866791Z"
},
{
"name": "1717@vm04.laboratorio.com",
"last_heartbeat": "2023-05-16T14:15:47.991216Z"
}
],
"database_connection": {
"connected": true
},
"redis_connection": {
"connected": false
},
"storage": {
"total": 10619924480,
"used": 3573891072,
"free": 7046033408
}
}
Note that redis_connection are failed.
The redis service looks fine and i can connect to the redis db, create keys and get it
(pulp) [root@vm04 ~]# redis-cli
127.0.0.1:6379>
127.0.0.1:6379> set test asd123
OK
127.0.0.1:6379> get test
"asd123"
when i try to use the commands pulp-content, pulpcore-manager ot pulpcore-worker, i get the next error:
(pulp) [root@vm04 ~]# pulp-content
Traceback (most recent call last):
File "/usr/local/lib/pulp/bin/pulp-content", line 5, in <module>
from pulpcore.content import server
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/pulpcore/content/__init__.py", line 15, in <module>
django.setup()
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/django/__init__.py", line 19, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/django/conf/__init__.py", line 170, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/pulpcore/app/settings.py", line 303, in <module>
settings = dynaconf.DjangoDynaconf(
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/dynaconf/contrib/django_dynaconf_v2.py", line 84, in load
lazy_settings.populate_obj(django_settings_module)
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/dynaconf/base.py", line 115, in __getattr__
self._setup()
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/dynaconf/base.py", line 174, in _setup
self._wrapped = Settings(
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/dynaconf/base.py", line 253, in __init__
self.execute_loaders()
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/dynaconf/base.py", line 1025, in execute_loaders
self.pre_load(env, silent=silent, key=key)
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/dynaconf/base.py", line 1044, in pre_load
self.load_file(path=preloads, env=env, silent=silent, key=key)
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/dynaconf/base.py", line 1071, in load_file
if py_loader.try_to_load_from_py_module_name(
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/dynaconf/loaders/py_loader.py", line 68, in try_to_load_from_py_module_name
mod = importlib.import_module(str(name))
File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/pulp_ansible/app/settings.py", line 24, in <module>
ANSIBLE_CONTENT_HOSTNAME = settings.CONTENT_ORIGIN + "/pulp/content"
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/dynaconf/base.py", line 138, in __getattr__
value = getattr(self._wrapped, name)
File "/usr/local/lib/pulp/lib64/python3.9/site-packages/dynaconf/base.py", line 300, in __getattribute__
return super().__getattribute__(name)
AttributeError: 'Settings' object has no attribute 'CONTENT_ORIGIN'