Project

Profile

Help

Issue #2485

Updated by elyezer almost 8 years ago

The documentation should state When upgrading Pulp, if the need of stopping pulp_streamer service is not restarted (stopped before upgrading upgrade and starting it after started after) Pulp will start raising 500 errors whenever the upgrade when upgrading from older versions. lazy sync feature is used. 

 If that The error raised is not done, then Pulp will raise errors something like the following which was raised on a RHEL7 system where Pulp was upgraded from 2.10 to 2.11 RC2: following: 

 <pre> 
 [-] 127.0.0.1 - - [13/Dec/2016:13:32:52 +0000] "GET /var/lib/pulp/content/units/rpm/69/1a5163e40406d94c52213ff3cb5b015028d06569c1dd1bf05a41aefe2659b3/giraffe-0.67-2.noarch.rpm HTTP/1.1" 500 - "-" "python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-514.el7.x86_64" 
 Download of /var/lib/pulp/content/units/rpm/69/1a5163e40406d94c52213ff3cb5b015028d06569c1dd1bf05a41aefe2659b3/giraffe-0.67-2.noarch.rpm failed: Internal Server Error. 
 An unexpected error occurred while handling the request. 
 Traceback (most recent call last): 
   File "/usr/lib/python2.7/site-packages/pulp/streamer/server.py", line 187, in _handle_get 
     self._download(catalog_entry, request, responder) 
   File "/usr/lib/python2.7/site-packages/pulp/streamer/server.py", line 216, in _download 
     catalog_entry.importer_id) 
   File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 475, in get_importer_by_id 
     try: 
   File "/usr/lib/python2.7/site-packages/mongoengine/queryset/base.py", line 238, in get 
     result = queryset.next() 
   File "/usr/lib/python2.7/site-packages/mongoengine/queryset/base.py", line 1411, in next 
     _auto_dereference=self._auto_dereference, only_fields=self.only_fields) 
   File "/usr/lib/python2.7/site-packages/mongoengine/base/document.py", line 730, in _from_son 
     obj = cls(__auto_convert=False, _created=created, __only_fields=only_fields, **data) 
   File "/usr/lib/python2.7/site-packages/pulp/server/db/model/__init__.py", line 55, in __init__ 
     super(AutoRetryDocument, self).__init__(*args, **kwargs) 
   File "/usr/lib/python2.7/site-packages/mongoengine/base/document.py", line 80, in __init__ 
     raise FieldDoesNotExist(msg) 
 FieldDoesNotExist: The field 'last_updated' does not exist on the document 'Importer' 
 Dec 13 08:32:52 pulp-server.example.com pulp_streamer[13363]: [-] 127.0.0.1 - - [13/Dec/2016:13:32:52 +0000] "GET /var/lib/pulp/content/units/rpm/c1/c792701121eeb0dc728fa7cb93389a2185048fe406c0ce101f3e4d742148a0/crow-0.8-1.noarch.rpm HTTP/1.1" 500 - "-" "python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-514.el7.x86_64" 
 Download of /var/lib/pulp/content/units/rpm/c1/c792701121eeb0dc728fa7cb93389a2185048fe406c0ce101f3e4d742148a0/crow-0.8-1.noarch.rpm failed: Internal Server Error. 
 </pre> 

 The pulp_streamer can above error was raised on a RHEL7 system where Pulp was upgraded from 2.10 to 2.11 RC2. 

 The documentation should also state that pulp_steamer service will only be done after the upgrade available only if that is missed during upgrade time. That can also be stated in the documentation. lazy sync was previously setup.

Back