Issue #995
Updated by mhrivnak over 9 years ago
Unpack the attached tar gz file in /tmp you should see a /tmp/zoo5 try the following commands <pre> pulp-admin rpm repo create --repo-id=synergism --feed=file:///var/www/repositories/zoo5 pulp-admin rpm repo sync run --repo-id=synergism cat /var/log/messages </pre> You see the following the stack trace. Note in particular this error May 20 17:32:42 katello-wisdom pulp: nectar.downloaders.local:ERROR: (2921-33184) [Errno 2] No such file or directory: u'///var/www/repositories/zoo5/PULP_DISTRIBUTION.xml' This causes katello to think there is a 500 in pulp. Causing integration tests to fail. <pre> May 20 17:32:42 katello-wisdom pulp: celery.worker.strategy:INFO: Received task: pulp.server.async.tasks._queue_reserved_task[c0a60ed2-b5a4-41ef-a888-d8d6a3684b07] May 20 17:32:42 katello-wisdom pulp: celery.worker.strategy:INFO: Received task: pulp.server.managers.repo.sync.sync[cd811a9c-be90-4ff3-aa04-d1b6fd0b35a6] May 20 17:32:42 katello-wisdom pulp: celery.worker.job:INFO: Task pulp.server.async.tasks._queue_reserved_task[c0a60ed2-b5a4-41ef-a888-d8d6a3684b07] succeeded in 0.036162881006s: None May 20 17:32:42 katello-wisdom pulp: celery.worker.strategy:INFO: Received task: pulp.server.async.tasks._release_resource[ac1d87a3-a26a-427d-8fde-119cf670e9dd] May 20 17:32:42 katello-wisdom pulp: pulp_rpm.plugins.importers.yum.sync:INFO: Downloading metadata from file:///var/www/repositories/zoo5/. May 20 17:32:42 katello-wisdom pulp: pulp_rpm.plugins.importers.yum.sync:INFO: Parsing metadata. May 20 17:32:42 katello-wisdom pulp: pulp_rpm.plugins.importers.yum.sync:INFO: Downloading metadata files. May 20 17:32:42 katello-wisdom pulp: pulp_rpm.plugins.importers.yum.sync:INFO: Generating metadata databases. May 20 17:32:42 katello-wisdom pulp: pulp_rpm.plugins.importers.yum.sync:INFO: Determining which units need to be downloaded. May 20 17:32:42 katello-wisdom pulp: pulp_rpm.plugins.importers.yum.sync:INFO: Downloading 0 RPMs. May 20 17:32:42 katello-wisdom pulp: pulp_rpm.plugins.importers.yum.repomd.alternate:INFO: The content container reported: {'downloads': {}, 'total_sources': 0} for base URL: file:///var/www/repositories/zoo5/ May 20 17:32:42 katello-wisdom pulp: pulp_rpm.plugins.importers.yum.sync:INFO: Downloading additional units. May 20 17:32:42 katello-wisdom pulp: nectar.downloaders.local:ERROR: (2921-33184) [Errno 2] No such file or directory: u'///var/www/repositories/zoo5/PULP_DISTRIBUTION.xml' May 20 17:32:42 katello-wisdom pulp: nectar.downloaders.local:ERROR: (2921-33184) Traceback (most recent call last): May 20 17:32:42 katello-wisdom pulp: nectar.downloaders.local:ERROR: (2921-33184) File "/usr/lib/python2.7/site-packages/nectar/downloaders/local.py", line 144, in _copy May 20 17:32:42 katello-wisdom pulp: nectar.downloaders.local:ERROR: (2921-33184) src_handle = open(src_path, 'rb') May 20 17:32:42 katello-wisdom pulp: nectar.downloaders.local:ERROR: (2921-33184) IOError: [Errno 2] No such file or directory: u'///var/www/repositories/zoo5/PULP_DISTRIBUTION.xml' May 20 17:32:42 katello-wisdom pulp: pulp_rpm.plugins.importers.yum.sync:INFO: Sync complete. May 20 17:32:42 katello-wisdom pulp: pulp.server.event.http:INFO: {'call_report': <TaskStatus: TaskStatus object>, 'event_type': 'repo.sync.finish', 'payload': {'importer_id': u'yum_importer', 'exception': None, 'repo_id': u'partello', 'traceback': None, 'started': '2015-05-20T21:32:42Z', '_ns': u'repo_sync_results', 'completed': '2015-05-20T21:32:42Z', 'importer_type_id': u'yum_importer', 'error_message': None, 'summary': {'content': {'state': 'FINISHED'}, 'comps': {'state': 'FINISHED'}, 'distribution': {'state': 'FINISHED'}, 'errata': {'state': 'FINISHED'}, 'metadata': {'state': 'FINISHED'}}, 'added_count': 3, 'result': 'success', 'updated_count': 11, 'details': {'content': {'size_total': 0, 'items_left': 0, 'items_total': 0, 'state': 'FINISHED', 'size_left': 0, 'details': {'rpm_total': 0, 'rpm_done': 0, 'drpm_total': 0, 'drpm_done': 0}, 'error_details': []}, 'comps': {'state': 'FINISHED'}, 'distribution': {'items_total': 3, 'state': 'FINISHED', 'error_details': [], 'items_left': 0}, 'errata': {'state': 'FINISHED'}, 'metadata': {'state': 'FINISHED'}}, 'id': '555cfd7ad01ec00b69cae7f4', 'removed_count': 0}} May 20 17:32:42 katello-wisdom pulp: pulp.server.managers.event.fire:ERROR: (2921-33184) Exception from notifier of type [http] May 20 17:32:42 katello-wisdom pulp: pulp.server.managers.event.fire:ERROR: (2921-33184) Traceback (most recent call last): May 20 17:32:42 katello-wisdom pulp: pulp.server.managers.event.fire:ERROR: (2921-33184) File "/usr/lib/python2.7/site-packages/pulp/server/managers/event/fire.py", line 76, in _do_fire May 20 17:32:42 katello-wisdom pulp: pulp.server.managers.event.fire:ERROR: (2921-33184) f(l['notifier_config'], event) May 20 17:32:42 katello-wisdom pulp: pulp.server.managers.event.fire:ERROR: (2921-33184) File "/usr/lib/python2.7/site-packages/pulp/server/event/http.py", line 33, in handle_event May 20 17:32:42 katello-wisdom pulp: pulp.server.managers.event.fire:ERROR: (2921-33184) body = json.dumps(data, default=json_util.default) May 20 17:32:42 katello-wisdom pulp: pulp.server.managers.event.fire:ERROR: (2921-33184) File "/usr/lib64/python2.7/json/__init__.py", line 250, in dumps May 20 17:32:42 katello-wisdom pulp: pulp.server.managers.event.fire:ERROR: (2921-33184) sort_keys=sort_keys, **kw).encode(obj) May 20 17:32:42 katello-wisdom pulp: pulp.server.managers.event.fire:ERROR: (2921-33184) File "/usr/lib64/python2.7/json/encoder.py", line 207, in encode May 20 17:32:42 katello-wisdom pulp: pulp.server.managers.event.fire:ERROR: (2921-33184) chunks = self.iterencode(o, _one_shot=True) May 20 17:32:42 katello-wisdom pulp: pulp.server.managers.event.fire:ERROR: (2921-33184) File "/usr/lib64/python2.7/json/encoder.py", line 270, in iterencode May 20 17:32:42 katello-wisdom pulp: pulp.server.managers.event.fire:ERROR: (2921-33184) return _iterencode(o, 0) May 20 17:32:42 katello-wisdom pulp: pulp.server.managers.event.fire:ERROR: (2921-33184) File "/usr/lib64/python2.7/site-packages/bson/json_util.py", line 220, in default May 20 17:32:42 katello-wisdom pulp: pulp.server.managers.event.fire:ERROR: (2921-33184) raise TypeError("%%r is not JSON serializable" %% obj) May 20 17:32:42 katello-wisdom pulp: pulp.server.managers.event.fire:ERROR: (2921-33184) TypeError: <TaskStatus: TaskStatus object> is not JSON serializable May 20 17:32:42 katello-wisdom pulp: celery.worker.job:INFO: Task pulp.server.managers.repo.sync.sync[cd811a9c-be90-4ff3-aa04-d1b6fd0b35a6] succeeded in 0.201764149999s: <pulp.server.async.tasks.TaskResult object at 0x4dd95d0> May 20 17:32:42 katello-wisdom pulp: celery.worker.job:INFO: Task pulp.server.async.tasks._release_resource[ac1d87a3-a26a-427d-8fde-119cf670e9dd] succeeded in 0.00725326400425s: None May 20 17:32:42 katello-wisdom pulp: celery.worker.strategy:INFO: Received task: pulp.server.async.tasks._queue_reserved_task[ad5774d9-3534-42ef-9748-557e21b75ec5] May 20 17:32:42 katello-wisdom pulp: celery.worker.strategy:INFO: Received task: pulp.server.managers.repo.publish.publish[09707c71-c404-433b-86c6-0e0f28a3557b] May 20 17:32:42 katello-wisdom pulp: celery.worker.job:INFO: Task pulp.server.async.tasks._queue_reserved_task[ad5774d9-3534-42ef-9748-557e21b75ec5] succeeded in 0.0815736520017s: None May 20 17:32:42 katello-wisdom pulp: celery.worker.strategy:INFO: Received task: pulp.server.async.tasks._release_resource[9b4fd858-bf97-4de4-ad7d-a8b9be66adc6] May 20 17:32:42 katello-wisdom pulp: celery.worker.job:INFO: Task pulp.server.managers.repo.publish.publish[09707c71-c404-433b-86c6-0e0f28a3557b] succeeded in 0.157991663989s: {'exception': None, 'repo_id': u'partello', 'traceback': None, 'started': '2015-05-20T21:32:42Z', '_ns':... May 20 17:32:42 katello-wisdom pulp: celery.worker.job:INFO: Task pulp.server.async.tasks._release_resource[9b4fd858-bf97-4de4-ad7d-a8b9be66adc6] succeeded in 0.00436354399426s: None </pre>