Project

Profile

Help

Issue #4521

Pulp cert-guards does not work with pulpcore

Added by kersom 8 months ago. Updated 3 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 50

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'

History

#1 Updated by kersom 8 months ago

  • Description updated (diff)

#2 Updated by CodeHeeler 8 months ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 50

#3 Updated by amacdona@redhat.com 8 months 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.

#4 Updated by rochacbruno 8 months ago

  • Status changed from NEW to MODIFIED
  • Assignee set to rochacbruno

#5 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#6 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

#7 Updated by rochacbruno 3 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF