Project

Profile

Help

Issue #2236

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

Added by akegata@gmail.com almost 3 years ago. Updated 2 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Urgent
Category:
-
Sprint/Milestone:
-
Severity:
3. High
Version:
2.9.2
Platform Release:
2.9.3
Blocks Release:
OS:
RHEL 6
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
QA Contact:
Complexity:
Smash Test:
Verified:
Yes
Verification Required:
No
Sprint:
Sprint 8

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 - CURRENTRELEASE Actions

Associated revisions

Revision fb624060 View on GitHub
Added by ipanova@redhat.com almost 3 years ago

Remove no longer used relativepath field from drpm collection.

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

Revision 8eeda311 View on GitHub
Added by ipanova@redhat.com almost 3 years ago

Remove no longer used relativepath field from drpm collection.

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

History

#1 Updated by ipanova@redhat.com almost 3 years ago

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

#2 Updated by ipanova@redhat.com almost 3 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

#3 Updated by bmbouter almost 3 years ago

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

#4 Updated by amacdona@redhat.com almost 3 years ago

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

#5 Updated by ttereshc almost 3 years ago

  • Sprint/Milestone set to 26

#6 Updated by ipanova@redhat.com almost 3 years ago

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

#7 Updated by ipanova@redhat.com almost 3 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.

#8 Updated by ipanova@redhat.com almost 3 years ago

  • Status changed from ASSIGNED to POST

#9 Updated by ipanova@redhat.com almost 3 years ago

  • Status changed from POST to MODIFIED

#10 Updated by semyers almost 3 years ago

  • Platform Release set to 2.9.3

#12 Updated by semyers almost 3 years ago

  • Status changed from MODIFIED to ON_QA

#13 Updated by pthomas@redhat.com almost 3 years ago

  • Status changed from ON_QA to VERIFIED

verified
Upgrade job has been updated to cover this case

#14 Updated by semyers almost 3 years ago

  • Status changed from VERIFIED to CLOSED - CURRENTRELEASE

#15 Updated by pulpbot over 2 years ago

  • Verified changed from No to Yes

#16 Updated by bmbouter over 1 year ago

  • Sprint set to Sprint 8

#17 Updated by bmbouter over 1 year ago

  • Sprint/Milestone deleted (26)

#18 Updated by bmbouter 2 months ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF