Project

Profile

Help

Issue #4521

Updated by kersom over 5 years ago

Attempt to add cert-guards to a Pulp installation VM. 

 <pre>  
 [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      

 </pre> 


 Attempt to install cert-guards on Travis. 

 Traceback: 

 <pre> 
 # 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' 
 </pre>

Back