Project

Profile

Help

Issue #2236

closed

Upgrading to pulp 2.9 causes sync of repos with DRPM' with a "relativepath" field to fail.

Added by akegata@gmail.com about 6 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Urgent
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.9.2
Platform Release:
2.9.3
OS:
RHEL 6
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 8
Quarter:

Description

I'm hitting this error while publishing a repo after upgrading to 2.9.2:

Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776) Exception caught from plugin during publish for repo [CentOS6_Updates_x86_64]
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776) Traceback (most recent call last):
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)   File "/usr/lib/python2.6/site-packages/pulp/server/controllers/repository.py", line 1090, in _do_publish
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)     publish_report = publish_repo(transfer_repo, conduit, call_config)
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)   File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 669, in wrap_f
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)     return f(*args, **kwargs)
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)   File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/distributors/yum/distributor.py", line 174, in publish_repo
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)     return self._publisher.process_lifecycle()
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)   File "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py", line 562, in process_lifecycle
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)     super(PluginStep, self).process_lifecycle()
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)   File "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py", line 159, in process_lifecycle
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)     step.process()
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)   File "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py", line 228, in process
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)     for item in item_iterator:
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)   File "/usr/lib/python2.6/site-packages/mongoengine/queryset/base.py", line 1411, in next
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)     _auto_dereference=self._auto_dereference, only_fields=self.only_fields)
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)   File "/usr/lib/python2.6/site-packages/mongoengine/base/document.py", line 730, in _from_son
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)     obj = cls(__auto_convert=False, _created=created, __only_fields=only_fields, **data)
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)   File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/db/models.py", line 149, in __init__
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)     super(NonMetadataPackage, self).__init__(*args, **kwargs)
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)   File "/usr/lib/python2.6/site-packages/pulp/server/db/model/__init__.py", line 55, in __init__
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)     super(AutoRetryDocument, self).__init__(*args, **kwargs)
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)   File "/usr/lib/python2.6/site-packages/mongoengine/base/document.py", line 80, in __init__
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776)     raise FieldDoesNotExist(msg)
Sep  7 16:08:00 vinf0002 pulp: pulp.server.controllers.repository:ERROR: (3161-59776) FieldDoesNotExist: The field 'relativepath' does not exist on the document 'DRPM'
Sep  7 16:08:00 vinf0002 pulp: pulp.server.async.tasks:INFO: Task failed : [da646553-9448-43c8-9289-6356298c1f51]
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776) Task pulp.server.managers.repo.publish.publish[da646553-9448-43c8-9289-6356298c1f51] raised unexpected: FieldDoesNotExist("The field 'relativepath' does not exist on the document 'DRPM'",)
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776) Traceback (most recent call last):
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 240, in trace_task
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     R = retval = fun(*args, **kwargs)
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 484, in __call__
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     return super(Task, self).__call__(*args, **kwargs)
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 103, in __call__
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     return super(PulpTask, self).__call__(*args, **kwargs)
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 437, in __protected_call__
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     return self.run(*args, **kwargs)
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/pulp/server/controllers/repository.py", line 971, in publish
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     result = check_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/pulp/server/controllers/repository.py", line 1038, in check_publish
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     result = _do_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/pulp/server/controllers/repository.py", line 1090, in _do_publish
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     publish_report = publish_repo(transfer_repo, conduit, call_config)
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 669, in wrap_f
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     return f(*args, **kwargs)
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/distributors/yum/distributor.py", line 174, in publish_repo
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     return self._publisher.process_lifecycle()
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py", line 562, in process_lifecycle
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     super(PluginStep, self).process_lifecycle()
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py", line 159, in process_lifecycle
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     step.process()
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py", line 228, in process
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     for item in item_iterator:
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/mongoengine/queryset/base.py", line 1411, in next
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     _auto_dereference=self._auto_dereference, only_fields=self.only_fields)
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/mongoengine/base/document.py", line 730, in _from_son
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     obj = cls(__auto_convert=False, _created=created, __only_fields=only_fields, **data)
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/db/models.py", line 149, in __init__
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     super(NonMetadataPackage, self).__init__(*args, **kwargs)
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/pulp/server/db/model/__init__.py", line 55, in __init__
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     super(AutoRetryDocument, self).__init__(*args, **kwargs)
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)   File "/usr/lib/python2.6/site-packages/mongoengine/base/document.py", line 80, in __init__
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776)     raise FieldDoesNotExist(msg)
Sep  7 16:08:00 vinf0002 pulp: celery.worker.job:ERROR: (2882-59776) FieldDoesNotExist: The field 'relativepath' does not exist on the document 'DRPM'

Related issues

Related to RPM Support - Issue #2234: Upgrading to pulp 2.9 causes sync of repos with SRPM's with a filelist field to fail.CLOSED - CURRENTRELEASEipanova@redhat.comActions
Actions #1

Updated by ipanova@redhat.com about 6 years ago

Would be good to check if rpm and srpm collection also need a migration to be written.

Actions #2

Updated by ipanova@redhat.com about 6 years ago

  • Related to Issue #2234: Upgrading to pulp 2.9 causes sync of repos with SRPM's with a filelist field to fail. added
Actions #3

Updated by bmbouter about 6 years ago

The rpm collection already has this resolved, but we should do it for SRPM as part of issue #2234

Actions #4

Updated by amacdona@redhat.com about 6 years ago

  • Priority changed from Normal to Urgent
  • Severity changed from 2. Medium to 3. High
  • Triaged changed from No to Yes
Actions #5

Updated by ttereshc about 6 years ago

  • Sprint/Milestone set to 26
Actions #6

Updated by ipanova@redhat.com about 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ipanova@redhat.com
Actions #7

Updated by ipanova@redhat.com about 6 years ago

bmbouter wrote:

The rpm collection already has this resolved, but we should do it for SRPM as part of issue #2234

We need to write the migration just for DRPM, because RPM and SRPM still have 'relativepath' field on the model.

Added by ipanova@redhat.com about 6 years ago

Revision fb624060

Remove no longer used relativepath field from drpm collection.

closes #2236 https://pulp.plan.io/issues/2236

Actions #8

Updated by ipanova@redhat.com about 6 years ago

  • Status changed from ASSIGNED to POST
Actions #9

Updated by ipanova@redhat.com about 6 years ago

  • Status changed from POST to MODIFIED
Actions #10

Updated by semyers about 6 years ago

  • Platform Release set to 2.9.3

Added by ipanova@redhat.com about 6 years ago

Revision 8eeda311

Remove no longer used relativepath field from drpm collection.

closes #2236 https://pulp.plan.io/issues/2236

Actions #12

Updated by semyers about 6 years ago

  • Status changed from MODIFIED to 5
Actions #13

Updated by pthomas@redhat.com about 6 years ago

  • Status changed from 5 to 6

verified
Upgrade job has been updated to cover this case

Actions #14

Updated by semyers about 6 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE
Actions #16

Updated by bmbouter over 4 years ago

  • Sprint set to Sprint 8
Actions #17

Updated by bmbouter over 4 years ago

  • Sprint/Milestone deleted (26)
Actions #18

Updated by bmbouter over 3 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF