Issue #2236
closedUpgrading to pulp 2.9 causes sync of repos with DRPM' with a "relativepath" field to fail.
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
Updated by ipanova@redhat.com about 8 years ago
Would be good to check if rpm and srpm collection also need a migration to be written.
Updated by ipanova@redhat.com about 8 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
Updated by bmbouter about 8 years ago
The rpm collection already has this resolved, but we should do it for SRPM as part of issue #2234
Updated by amacdona@redhat.com about 8 years ago
- Priority changed from Normal to Urgent
- Severity changed from 2. Medium to 3. High
- Triaged changed from No to Yes
Updated by ipanova@redhat.com about 8 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ipanova@redhat.com
Updated by ipanova@redhat.com about 8 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 8 years ago
Updated by ipanova@redhat.com about 8 years ago
- Status changed from ASSIGNED to POST
Updated by ipanova@redhat.com about 8 years ago
- Status changed from POST to MODIFIED
Applied in changeset fb6240603cf7fa189566bc46d0f1cae743661f9e.
Added by ipanova@redhat.com about 8 years ago
Revision 8eeda311 | View on GitHub
Remove no longer used relativepath field from drpm collection.
Updated by ipanova@redhat.com about 8 years ago
Applied in changeset 8eeda31109eb882d026f8d3ca98dd600333777e5.
Updated by pthomas@redhat.com about 8 years ago
- Status changed from 5 to 6
verified
Upgrade job has been updated to cover this case
Updated by semyers about 8 years ago
- Status changed from 6 to CLOSED - CURRENTRELEASE
Remove no longer used relativepath field from drpm collection.
closes #2236 https://pulp.plan.io/issues/2236