Actions
Issue #4521
closedPulp cert-guards does not work with pulpcore
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 50
Quarter:
Description
Attempt to add cert-guards to a Pulp installation VM.
[root@p3 lib]# source pulp/bin/activate
git clone https://github.com/pulp/pulp-certguard.git
cd pulp-certguard
pip install -e .
(pulp) [root@p3 pulp-certguard]# pulp-manager makemigrations pulp_certguard
App 'pulp_certguard' could not be found. Is it in INSTALLED_APPS?
(pulp) [root@p3 pulp-certguard]# pulp-manager migrate pulp_certguard
CommandError: App 'pulp_certguard' does not have migrations.
(pulp) [root@p3 pulp-certguard]# pip list | grep pulp
pulp-certguard 0.1.0 /usr/local/lib/pulp-certguard
pulp-docker 4.0.0b1
pulp-file 0.0.1b8
pulp-rpm 3.0.0b1
pulpcore 3.0.0b21
pulpcore-plugin 0.1.0b20
Attempt to install cert-guards on Travis.
Traceback:
# Run migrations.
export DJANGO_SETTINGS_MODULE=pulpcore.app.settings
export PULP_CONTENT_HOST=localhost:8080
pulp-manager migrate --noinput
Traceback (most recent call last):
File "/home/travis/virtualenv/python3.6.7/bin/pulp-manager", line 11, in <module>
load_entry_point('pulpcore', 'console_scripts', 'pulp-manager')()
File "/home/travis/build/kersommoura/pulpcore/pulpcore/app/entry_points.py", line 11, in pulp_manager_entry_point
execute_from_command_line(sys.argv)
File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/django/core/management/__init__.py", line 357, in execute
django.setup()
File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/django/apps/registry.py", line 89, in populate
app_config = AppConfig.create(entry)
File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/django/apps/config.py", line 116, in create
mod = import_module(mod_path)
File "/home/travis/virtualenv/python3.6.7/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pulp_certguard.app'
Updated by CodeHeeler almost 6 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 50
Updated by amacdona@redhat.com almost 6 years ago
The app label for a the plugin is not "pulp_certguard" it is just "certguard"
https://github.com/pulp/pulp-certguard/blob/master/pulp_certguard/app/__init__.py#L6
`pulp-manager makemigrations certguard` ought to do it.
Updated by rochacbruno almost 6 years ago
- Status changed from NEW to MODIFIED
- Assignee set to rochacbruno
One more fix needed
https://github.com/pulp/pulp-certguard/pull/6
Updated by rochacbruno over 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions