Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Support for new pulpcore-api and pulpcore-content entrypoints #1486

Closed
lanky opened this issue Oct 16, 2023 · 1 comment
Closed

Support for new pulpcore-api and pulpcore-content entrypoints #1486

lanky opened this issue Oct 16, 2023 · 1 comment

Comments

@lanky
Copy link
Contributor

lanky commented Oct 16, 2023

Version
pulp_installer - latest (3.22?)
pulpcore - 3.24.1, 3.37.0

Describe the bug
If using the installer to upgrade to latest (beyond 3.33) pulpcore-api refuses to start because the systemd unit files do not support the new entrypoints

systemd[1]: Started pulpcore-api.service - Pulp WSGI Server.                                                                                                                                                                                                  
gunicorn[92371]: [2023-10-10 17:34:07 +0100] [92371] [INFO] Booting worker with pid: 92371                                                                                                                                                                    
gunicorn[92371]: [2023-10-10 17:34:07 +0100] [92371] [ERROR] Exception in worker process                                                                                                                                                                      
gunicorn[92371]: Traceback (most recent call last):                                                                                                                                                                                                           
gunicorn[92371]:   File "/usr/local/lib/pulp/lib64/python3.10/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker                                                                                                                                   
gunicorn[92371]:     worker.init_process()                                                                                                                                                                                                                    
gunicorn[92371]:   File "/usr/local/lib/pulp/lib64/python3.10/site-packages/gunicorn/workers/base.py", line 134, in init_process                                                                                                                              
gunicorn[92371]:     self.load_wsgi()                                                                                                                                                                                                                         
gunicorn[92371]:   File "/usr/local/lib/pulp/lib64/python3.10/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi                                                                                                                                 
gunicorn[92371]:     self.wsgi = self.app.wsgi()                                                                                                                                                                                                              
gunicorn[92371]:   File "/usr/local/lib/pulp/lib64/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi                                                                                                                                           
gunicorn[92371]:     self.callable = self.load()                                                                                                                                                                                                              
gunicorn[92371]:   File "/usr/local/lib/pulp/lib64/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load                                                                                                                                        
gunicorn[92371]:     return self.load_wsgiapp()                                                                                                                                                                                                               
gunicorn[92371]:   File "/usr/local/lib/pulp/lib64/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp                                                                                                                                
gunicorn[92371]:     return util.import_app(self.app_uri)                                                                                                                                                                                                     
gunicorn[92371]:   File "/usr/local/lib/pulp/lib64/python3.10/site-packages/gunicorn/util.py", line 359, in import_app                                                                                                                                        
gunicorn[92371]:     mod = importlib.import_module(module)                                                                                                                                                                                                    
gunicorn[92371]:   File "/usr/lib64/python3.10/importlib/__init__.py", line 126, in import_module                                                                                                                                                             
gunicorn[92371]:     return _bootstrap._gcd_import(name[level:], package, level)                                                                                                                                                                              
gunicorn[92371]:   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import                                                                                                                                                                            
gunicorn[92371]:   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load                                                                                                                                                                         
gunicorn[92371]:   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked                                                                                                                                                                
gunicorn[92371]:   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked                                                                                                                                                                          
gunicorn[92371]:   File "<frozen importlib._bootstrap_external>", line 883, in exec_module                                                                                                                                                                    
gunicorn[92371]:   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed                                                                                                                                                               
gunicorn[92371]:   File "/usr/local/lib/pulp/lib64/python3.10/site-packages/pulpcore/app/wsgi.py", line 17, in <module>                                                                                                                                       
gunicorn[92371]:     raise RuntimeError("This app must be executed using pulpcore-api entrypoint.")                                                                                                                                                           
gunicorn[92371]: RuntimeError: This app must be executed using pulpcore-api entrypoint.                                                                                                                                                                       
gunicorn[92371]: [2023-10-10 17:34:07 +0100] [92371] [INFO] Worker exiting (pid: 92371)                                                                                                                                                                       
gunicorn[92342]: [2023-10-10 17:34:07 +0100] [92342] [INFO] Shutting down: Master                                                                                                                                                                             
gunicorn[92342]: [2023-10-10 17:34:07 +0100] [92342] [INFO] Reason: Worker failed to boot.      

To Reproduce
run the ansible installer with pulpcore_version set to a new release, in my case 3.37.0

Expected behavior
The installer deploys systemd unit files that use the new entrypoints

Additional context
We have a production pulp deployment installed this way, migrating to containers is not really an option at the moment, and I'm sure we are not alone in wanting to be able to upgrade to newer versions - this is a simple fix that works for now at least

lanky added a commit to lanky/pulp_installer that referenced this issue Nov 12, 2023
Copy link

stale bot commented Jan 14, 2024

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

@stale stale bot added the stale label Jan 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Archived in project
Development

No branches or pull requests

1 participant