You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version
docker.io/pulp/pulp latest (= version 3.50.0 I think)
Describe the bug
Hi
I built a new podman container from scratch, and activated the following option in my settings.py file
ALLOWED_CONTENT_CHECKSUMS = ["md5","sha224","sha256","sha384","sha512"]
I added md5, for the pulp-deb module, as md5 seems to be still used for debian/ubuntu
Then I added a few redhat/ubuntu repository
Each time, the container start, the following error is displayed
ALTER DATABASE
[oneshot] postgres-prepare: running Pulp migrations
error: Failed to initialize NSS library
Traceback (most recent call last):
File "/usr/local/bin/pulpcore-manager", line 8, in <module>
sys.exit(manage())
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/manage.py", line 11, in manage
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 416, in execute
django.setup()
File "/usr/local/lib/python3.9/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python3.9/site-packages/django/apps/registry.py", line 116, in populate
app_config.import_models()
File "/usr/local/lib/python3.9/site-packages/django/apps/config.py", line 269, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/models/__init__.py", line 34, in <module>
from .exporter import (
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/models/exporter.py", line 11, in <module>
from pulpcore.app.models.repository import Repository
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/models/repository.py", line 33, in <module>
from pulpcore.cache import Cache
File "/usr/local/lib/python3.9/site-packages/pulpcore/cache/__init__.py", line 1, in <module>
from .cache import (
File "/usr/local/lib/python3.9/site-packages/pulpcore/cache/cache.py", line 17, in <module>
from pulpcore.app.settings import settings
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/settings.py", line 505, in <module>
raise e
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/settings.py", line 478, in <module>
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: There have been identified artifacts with forbidden checksum 'md5'. Run 'pulpcore-manager handle-artifact-checksums' first to unset forbidden checksums.
Traceback (most recent call last):
File "/usr/local/bin/pulpcore-manager", line 8, in <module>
sys.exit(manage())
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/manage.py", line 11, in manage
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 416, in execute
django.setup()
File "/usr/local/lib/python3.9/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python3.9/site-packages/django/apps/registry.py", line 116, in populate
app_config.import_models()
File "/usr/local/lib/python3.9/site-packages/django/apps/config.py", line 269, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/models/__init__.py", line 34, in <module>
from .exporter import (
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/models/exporter.py", line 11, in <module>
from pulpcore.app.models.repository import Repository
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/models/repository.py", line 33, in <module>
from pulpcore.cache import Cache
File "/usr/local/lib/python3.9/site-packages/pulpcore/cache/__init__.py", line 1, in <module>
from .cache import (
File "/usr/local/lib/python3.9/site-packages/pulpcore/cache/cache.py", line 17, in <module>
from pulpcore.app.settings import settings
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/settings.py", line 505, in <module>
raise e
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/settings.py", line 478, in <module>
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: There have been identified artifacts with forbidden checksum 'md5'. Run 'pulpcore-manager handle-artifact-checksums' first to unset forbidden checksums.
Database migrated!
It doesn't seem to impact anything
If I check manually, no checksum error, so the error seems to be displayed just because md5 is activated
root@2bf6ddaf7a40 /]# pulpcore-manager handle-artifact-checksums --report
error: Failed to initialize NSS library
Found 0 on-demand content units with forbidden checksums.
Found 0 downloaded content units with forbidden or missing checksums.
To Reproduce
Add ALLOWED_CONTENT_CHECKSUMS = ["md5","sha224","sha256","sha384","sha512"] in the settings.py file
Create one repo
Expected behavior
may be generate a warning instead of an exception ?
Additional context
The text was updated successfully, but these errors were encountered:
bash-5.1$ dynaconf list -k ALLOWED_CONTENT_CHECKSUMS
error: Failed to initialize NSS library
Django app detected
Working in development environment
ALLOWED_CONTENT_CHECKSUMS<BoxList> <BoxList: ['md5', 'sha224', 'sha256', 'sha384', 'sha512']>
Version
docker.io/pulp/pulp latest (= version 3.50.0 I think)
Describe the bug
Hi
I built a new podman container from scratch, and activated the following option in my settings.py file
ALLOWED_CONTENT_CHECKSUMS = ["md5","sha224","sha256","sha384","sha512"]
I added md5, for the pulp-deb module, as md5 seems to be still used for debian/ubuntu
Then I added a few redhat/ubuntu repository
Each time, the container start, the following error is displayed
It doesn't seem to impact anything
If I check manually, no checksum error, so the error seems to be displayed just because md5 is activated
To Reproduce
Add ALLOWED_CONTENT_CHECKSUMS = ["md5","sha224","sha256","sha384","sha512"] in the settings.py file
Create one repo
Expected behavior
may be generate a warning instead of an exception ?
Additional context
The text was updated successfully, but these errors were encountered: