Project

Profile

Help

Issue #1272

Sync for repo Fedora22 updates fails due to updateinfo.xml missing fields

Added by lfisher047@gmail.com about 6 years ago. Updated over 2 years ago.

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

Description

After making the code change in issue #1264, the following error occured when syncing http://dl.fedoraproject.org/pub/fedora/linux/updates/22/x86_64/ using katello 2.3 which has pulp version 2.6.2 on RHEL6.

Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) sync failed
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) Traceback (most recent call last):
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 160, in run
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) self.get_errata(metadata_files)
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) File "/usr/lib64/python2.6/contextlib.py", line 34, in exit
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) self.gen.throw(type, value, traceback)
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 119, in update_state
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) yield skip
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 160, in run
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) self.get_errata(metadata_files)
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 534, in get_errata
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) updateinfo.process_package_element, additive_type=True)
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 614, in save_fileless_units
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) for model in package_info_generator:
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/importers/yum/repomd/packages.py", line 63, in package_list_generator
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) package_info = process_func(element)
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/importers/yum/repomd/updateinfo.py", line 35, in process_package_element
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) 'issued': element.find('issued').attrib['date'],
Sep 25 00:18:55 katello pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (3858-69376) AttributeError: 'NoneType' object has no attribute 'attrib'
Sep 25 00:18:55 katello pulp: pulp.server.event.http:INFO: (3858-69376) {'call_report': {u'exception': None, u'task_type': u'pulp.server.managers.repo.sync.sync', u'task_id': u'f6c54640-343a-4981-91b3-a9edc1f88bfa', u'tags': [u'pulp:repository:Default_Organization-Fedora_22-updates', u'pulp:action:sync'], u'finish_time': None, u'_ns': u'task_status', u'start_time': u'2015-09-24T19:49:45Z', u'traceback': None, u'spawned_tasks': [], u'progress_report': {u'yum_importer': {u'content': {u'size_total': 19953763810L, u'items_left': 0, u'items_total': 19458, u'state': u'FINISHED', u'size_left': 0, u'details': {u'rpm_total': 10205, u'rpm_done': 10205, u'drpm_total': 9253, u'drpm_done': 9253}, u'error_details': []}, u'comps': {u'state': u'NOT_STARTED'}, u'distribution': {u'items_total': 0, u'state': u'FINISHED', u'error_details': [], u'items_left': 0}, u'errata': {u'state': u'FAILED', u'error': u"'NoneType' object has no attribute 'attrib'"}, u'metadata': {u'state': u'FINISHED'}}}, u'state': u'running', u'worker_name': u'reserved_resource_worker-1@katello', u'result': None, u'error': None, u'_id': ObjectId('560453d9208b749330361280'), u'id': u'560453d908087110036a4d85'}, 'event_type': 'repo.sync.finish', 'payload': {'importer_id': u'yum_importer', 'exception': None, 'repo_id': u'Default_Organization-Fedora_22-updates', 'traceback': None, 'started': '2015-09-24T19:49:45Z', '_ns': u'repo_sync_results', 'completed': '2015-09-25T04:18:55Z', 'importer_type_id': u'yum_importer', 'error_message': None, 'summary': {'content': {'state': 'FINISHED'}, 'comps': {'state': 'NOT_STARTED'}, 'distribution': {'state': 'FINISHED'}, 'errata': {'state': 'FAILED'}, 'metadata': {'state': 'FINISHED'}}, 'added_count': 20796, 'result': 'failed', 'updated_count': 0, 'details': {'content': {'size_total': 19953763810, 'items_left': 0, 'items_total': 19458, 'state': 'FINISHED', 'size_left': 0, 'details': {'rpm_total': 10205, 'rpm_done': 10205, 'drpm_total': 9253, 'drpm_done': 9253}, 'error_details': []}, 'comps': {'state': 'NOT_STARTED'}, 'distribution': {'items_total'
Sep 25 00:18:55 katello pulp: pulp.server.event.http:INFO: (3858-69376) : 0, 'state': 'FINISHED', 'error_details': [], 'items_left': 0}, 'errata': {'state': 'FAILED', 'error': "'NoneType' object has no attribute 'attrib'"}, 'metadata': {'state': 'FINISHED'}}, 'id': '5604cb2f0808710f12f5b201', 'removed_count': 0}}
Sep 25 00:18:57 katello pulp: celery.worker.job:ERROR: (3823-69376) Task pulp.server.managers.repo.sync.sync[f6c54640-343a-4981-91b3-a9edc1f88bfa] raised unexpected: PulpExecutionException('Importer indicated a failed response',)
Sep 25 00:18:57 katello pulp: celery.worker.job:ERROR: (3823-69376) Traceback (most recent call last):
Sep 25 00:18:57 katello pulp: celery.worker.job:ERROR: (3823-69376) File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 240, in trace_task
Sep 25 00:18:57 katello pulp: celery.worker.job:ERROR: (3823-69376) R = retval = fun(*args, **kwargs)
Sep 25 00:18:57 katello pulp: celery.worker.job:ERROR: (3823-69376) File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 328, in call
Sep 25 00:18:57 katello pulp: celery.worker.job:ERROR: (3823-69376) return super(Task, self).__call__(*args, **kwargs)
Sep 25 00:18:57 katello pulp: celery.worker.job:ERROR: (3823-69376) File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 437, in protected_call
Sep 25 00:18:57 katello pulp: celery.worker.job:ERROR: (3823-69376) return self.run(*args, **kwargs)
Sep 25 00:18:57 katello pulp: celery.worker.job:ERROR: (3823-69376) File "/usr/lib/python2.6/site-packages/pulp/server/managers/repo/sync.py", line 114, in sync
Sep 25 00:18:57 katello pulp: celery.worker.job:ERROR: (3823-69376) raise PulpExecutionException(_('Importer indicated a failed response'))
Sep 25 00:18:57 katello pulp: celery.worker.job:ERROR: (3823-69376) PulpExecutionException: Importer indicated a failed response
Sep 25 00:18:57 katello pulp: celery.worker.job:INFO: Task pulp.server.async.tasks._release_resource[fd0011fe-13bc-4563-87d0-72d010010d7e] succeeded in 0.256652650001s: None

Associated revisions

Revision 9084e52f View on GitHub
Added by ipanova@redhat.com about 6 years ago

Sync for repo Fedora22 updates fails due to updateinfo.xml missing fields

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

History

#1 Updated by jortel@redhat.com about 6 years ago

  • Priority changed from Normal to High
  • Severity changed from 2. Medium to 3. High
  • Platform Release set to 2.6.5
  • Triaged changed from No to Yes

#2 Updated by ipanova@redhat.com about 6 years ago

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

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

Issue consisted in the fact that when updateinfo.xml was parsed in some packages 'issued' was missing.
I downloaded the xml file and checked:
```
$ less 6a3c09dda8740c97d3d004e7f601e8d486b87837befa8a824d1d56a96c2a8e9b-updateinfo.xml|grep "<id>"|wc -l
2248
$ less 6a3c09dda8740c97d3d004e7f601e8d486b87837befa8a824d1d56a96c2a8e9b-updateinfo.xml|grep "<issued"|wc -l
2247

#4 Updated by ipanova@redhat.com about 6 years ago

  • Subject changed from Metadata failed to sync on RHEL6 for repo Fedora22 updates to Sync on RHEL6 for repo Fedora22 updates fails due to updateinfo.xml missing fields

#6 Updated by ipanova@redhat.com about 6 years ago

  • Status changed from ASSIGNED to POST

#7 Updated by ipanova@redhat.com about 6 years ago

  • Subject changed from Sync on RHEL6 for repo Fedora22 updates fails due to updateinfo.xml missing fields to Sync for repo Fedora22 updates fails due to updateinfo.xml missing fields

I checked it also fails on fedora

#8 Updated by ipanova@redhat.com about 6 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#9 Updated by dkliban@redhat.com about 6 years ago

  • Status changed from MODIFIED to 5

#10 Updated by dkliban@redhat.com about 6 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#11 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF