Project

Profile

Help

Issue #2485

closed

Add documentation about the need of restart pulp_streamer when upgrading to Pulp 2.11 from old versions

Added by elyezer almost 8 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.11.0
Platform Release:
2.11.0
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

The documentation should state the need of stopping pulp_streamer before upgrading and starting it after the upgrade when upgrading from older versions.

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

[-] 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.

The pulp_streamer can be done after the upgrade if that is missed during upgrade time. That can also be stated in the documentation.

Also available in: Atom PDF