Problem:
After new errata are present, an incremental update of the CV version (for example 1.1) fail for checksum type error:
RPM1008: Checksum type “sha256” is not available for all units in the repository. Make sure those units have been downloaded.
If I’ll create a new CV version (for example 2) it’ll work.
Expected outcome:
The incremental update terminate w/out errors
Foreman and Proxy versions:
Foreman 1.18.2
foreman-1.18.2-1.el7.noarch
foreman-release-1.18.2-1.el7.noarch
Foreman and Proxy plugin versions:
katello 3.7.0
katello-common-3.7.0-4.el7.noarch
Other relevant data:
2018-10-15T14:32:45 [I|kat|] GET: https://mysatelliteserver.local.net/pulp/api/v2/tasks/ec15962c-034e-4486-8e75-e7ef1e045934/: {"content_type"=>"application/json", "accept"=>"application/json"}
Response: 200: {"exception": null, "task_type": "pulp.server.managers.repo.unit_association.associate_from_repo", "_href": "/pulp/api/v2/tasks/ec15962c-034e-4486-8e75-e7ef1e045934/", "task_id": "ec15962c-034e-4486-8e75-e7ef1e045934", "tags": ["pulp:repository:1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686", "pulp:repository:2732f7f1-620c-48ad-9f31-fecdcef60686", "pulp:action:associate"], "finish_time": null, "_ns": "task_status", "start_time": "2018-10-15T13:21:44Z", "traceback": null, "spawned_tasks": [], "progress_report": {}, "queue": "reserved_resource_worker-1@mysatelliteserver.dq2", "state": "running", "worker_name": "reserved_resource_worker-1@mysatelliteserver", "result": null, "error": null, "_id": {"$oid": "5bc4946099569390e449afd7"}, "id": "5bc4946099569390e449afd7"}
2018-10-15T14:33:01 [I|kat|] GET: https://mysatelliteserver.local.net/pulp/api/v2/tasks/ec15962c-034e-4486-8e75-e7ef1e045934/: {"content_type"=>"application/json", "accept"=>"application/json"}
Response: 200: {"exception": null, "task_type": "pulp.server.managers.repo.unit_association.associate_from_repo", "_href": "/pulp/api/v2/tasks/ec15962c-034e-4486-8e75-e7ef1e045934/", "task_id": "ec15962c-034e-4486-8e75-e7ef1e045934", "tags": ["pulp:repository:1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686", "pulp:repository:2732f7f1-620c-48ad-9f31-fecdcef60686", "pulp:action:associate"], "finish_time": null, "_ns": "task_status", "start_time": "2018-10-15T13:21:44Z", "traceback": null, "spawned_tasks": [], "progress_report": {}, "queue": "reserved_resource_worker-1@mysatelliteserver.dq2", "state": "running", "worker_name": "reserved_resource_worker-1@mysatelliteserver", "result": null, "error": null, "_id": {"$oid": "5bc4946099569390e449afd7"}, "id": "5bc4946099569390e449afd7"}
2018-10-15T14:33:17 [I|kat|] GET: https://mysatelliteserver.local.net/pulp/api/v2/tasks/ec15962c-034e-4486-8e75-e7ef1e045934/: {"content_type"=>"application/json", "accept"=>"application/json"}
Response: 200: {"exception": null, "task_type": "pulp.server.managers.repo.unit_association.associate_from_repo", "_href": "/pulp/api/v2/tasks/ec15962c-034e-4486-8e75-e7ef1e045934/", "task_id": "ec15962c-034e-4486-8e75-e7ef1e045934", "tags": ["pulp:repository:1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686", "pulp:repository:2732f7f1-620c-48ad-9f31-fecdcef60686", "pulp:action:associate"], "finish_time": null, "_ns": "task_status", "start_time": "2018-10-15T13:21:44Z", "traceback": null, "spawned_tasks": [], "progress_report": {}, "queue": "reserved_resource_worker-1@mysatelliteserver.dq2", "state": "running", "worker_name": "reserved_resource_worker-1@mysatelliteserver", "result": null, "error": null, "_id": {"$oid": "5bc4946099569390e449afd7"}, "id": "5bc4946099569390e449afd7"}
2018-10-15T14:33:35 [I|kat|] GET: https://mysatelliteserver.local.net/pulp/api/v2/tasks/ec15962c-034e-4486-8e75-e7ef1e045934/: {"content_type"=>"application/json", "accept"=>"application/json"}
Response: 200: {"exception": null, "task_type": "pulp.server.managers.repo.unit_association.associate_from_repo", "_href": "/pulp/api/v2/tasks/ec15962c-034e-4486-8e75-e7ef1e045934/", "task_id": "ec15962c-034e-4486-8e75-e7ef1e045934", "tags": ["pulp:repository:1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686", "pulp:repository:2732f7f1-620c-48ad-9f31-fecdcef60686", "pulp:action:associate"], "finish_time": null, "_ns": "task_status", "start_time": "2018-10-15T13:21:44Z", "traceback": null, "spawned_tasks": [], "progress_report": {}, "queue": "reserved_resource_worker-1@mysatelliteserver.dq2", "state": "running", "worker_name": "reserved_resource_worker-1@mysatelliteserver", "result": null, "error": null, "_id": {"$oid": "5bc4946099569390e449afd7"}, "id": "5bc4946099569390e449afd7"}
2018-10-15T14:33:51 [I|kat|] GET: https://mysatelliteserver.local.net/pulp/api/v2/tasks/ec15962c-034e-4486-8e75-e7ef1e045934/: {"content_type"=>"application/json", "accept"=>"application/json"}
Response: 200: {"exception": null, "task_type": "pulp.server.managers.repo.unit_association.associate_from_repo", "_href": "/pulp/api/v2/tasks/ec15962c-034e-4486-8e75-e7ef1e045934/", "task_id": "ec15962c-034e-4486-8e75-e7ef1e045934", "tags": ["pulp:repository:1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686", "pulp:repository:2732f7f1-620c-48ad-9f31-fecdcef60686", "pulp:action:associate"], "finish_time": null, "_ns": "task_status", "start_time": "2018-10-15T13:21:44Z", "traceback": null, "spawned_tasks": [], "progress_report": {}, "queue": "reserved_resource_worker-1@mysatelliteserver.dq2", "state": "running", "worker_name": "reserved_resource_worker-1@mysatelliteserver", "result": null, "error": null, "_id": {"$oid": "5bc4946099569390e449afd7"}, "id": "5bc4946099569390e449afd7"}
2018-10-15T14:34:07 [I|kat|] GET: https://mysatelliteserver.local.net/pulp/api/v2/tasks/ec15962c-034e-4486-8e75-e7ef1e045934/: {"content_type"=>"application/json", "accept"=>"application/json"}
Response: 200: {"exception": null, "task_type": "pulp.server.managers.repo.unit_association.associate_from_repo", "_href": "/pulp/api/v2/tasks/ec15962c-034e-4486-8e75-e7ef1e045934/", "task_id": "ec15962c-034e-4486-8e75-e7ef1e045934", "tags": ["pulp:repository:1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686", "pulp:repository:2732f7f1-620c-48ad-9f31-fecdcef60686", "pulp:action:associate"], "finish_time": "2018-10-15T13:34:02Z", "_ns": "task_status", "start_time": "2018-10-15T13:21:44Z", "traceback": null, "spawned_tasks": [], "progress_report": {}, "queue": "reserved_resource_worker-1@mysatelliteserver.dq2", "state": "finished", "worker_name": "reserved_resource_worker-1@mysatelliteserver", "result": {"units_successful": [{"unit_key": {"id": "RHSA-2018:2884"}, "type_id": "erratum"}, {"signing_key": null, "unit_key": {"name": "firefox", "checksum": "84cf742f0e694dd0350b19b7f21a953a1c328a86", "epoch": "0", "version": "60.2.2", "release": "1.el7_5", "arch": "x86_64", "checksumtype": "sha1"}, "type_id": "rpm"}], "units_failed_signature_filter": []}, "error": null, "_id": {"$oid": "5bc4946099569390e449afd7"}, "id": "5bc4946099569390e449afd7"}
2018-10-15T14:34:10 [I|kat|] GET: https://mysatelliteserver.local.net/pulp/api/v2/repositories/1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686/?details=true: {"content_type"=>"application/json", "accept"=>"application/json"}
Response: 200: {"scratchpad": {}, "display_name": "Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server", "description": null, "distributors": [{"repo_id": "1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686", "last_updated": "2018-10-15T13:18:55Z", "_href": "/pulp/api/v2/repositories/1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686/distributors/export_distributor/", "last_override_config": {}, "last_publish": null, "distributor_type_id": "export_distributor", "auto_publish": false, "scratchpad": {}, "_ns": "repo_distributors", "_id": {"$oid": "5bc493bf10f8e019046433bb"}, "config": {"http": false, "relative_url": "mycompany-vCentre/content_views/RHEL_Views/9.3/content/dist/rhel/server/7/7Server/x86_64/os", "https": false}, "id": "export_distributor"}, {"repo_id": "1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686", "last_updated": "2018-10-15T13:18:55Z", "_href": "/pulp/api/v2/repositories/1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686/distributors/1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686_clone/", "last_override_config": {}, "last_publish": null, "distributor_type_id": "yum_clone_distributor", "auto_publish": false, "scratchpad": {}, "_ns": "repo_distributors", "_id": {"$oid": "5bc493bf10f8e019046433bd"}, "config": {"destination_distributor_id": "1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686"}, "id": "1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686_clone"}, {"repo_id": "1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686", "last_updated": "2018-10-15T13:18:55Z", "_href": "/pulp/api/v2/repositories/1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686/distributors/1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686/", "last_override_config": {}, "last_publish": null, "distributor_type_id": "yum_distributor", "auto_publish": true, "scratchpad": {}, "_ns": "repo_distributors", "_id": {"$oid": "5bc493bf10f8e019046433b8"}, "config": {"checksum_type": "sha256", "protected": true, "http": false, "https": true, "relative_url": "mycompany-vCentre/content_views/RHEL_Views/9.3/content/dist/rhel/server/7/7Server/x86_64/os"}, "id": "1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686"}], "last_unit_added": "2018-10-15T13:34:02Z", "notes": {"_repo-type": "rpm-repo"}, "last_unit_removed": null, "content_unit_counts": {"package_group": 76, "rpm": 21065, "yum_repo_metadata_file": 1, "erratum": 3102}, "_ns": "repos", "importers": [{"repo_id": "1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686", "last_updated": "2018-10-15T13:18:55Z", "_href": "/pulp/api/v2/repositories/1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686/importers/yum_importer/", "_ns": "repo_importers", "importer_type_id": "yum_importer", "last_override_config": {}, "last_sync": null, "scratchpad": null, "_id": {"$oid": "5bc493bf10f8e019046433b4"}, "config": {"ssl_validation": true, "remove_missing": true, "download_policy": "on_demand"}, "id": "yum_importer"}], "locally_stored_units": 4491, "_id": {"$oid": "5bc493bf10f8e019046433af"}, "total_repository_units": 24244, "id": "1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686", "_href": "/pulp/api/v2/repositories/1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686/"}
2018-10-15T14:34:10 [I|kat|] POST: https://mysatelliteserver.local.net/pulp/api/v2/repositories/1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686/actions/publish/: {"id":"1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686","override_config":{"force_full":false}}: {"content_type"=>"application/json", "accept"=>"application/json"}
Response: 202: {"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/756d46bb-b79f-4b46-9b93-20632ca2aa59/", "task_id": "756d46bb-b79f-4b46-9b93-20632ca2aa59"}], "result": null, "error": null}
2018-10-15T14:34:10 [I|kat|] GET: https://mysatelliteserver.local.net/pulp/api/v2/tasks/756d46bb-b79f-4b46-9b93-20632ca2aa59/: {"content_type"=>"application/json", "accept"=>"application/json"}
Response: 200: {"exception": null, "task_type": "pulp.server.managers.repo.publish.publish", "_href": "/pulp/api/v2/tasks/756d46bb-b79f-4b46-9b93-20632ca2aa59/", "task_id": "756d46bb-b79f-4b46-9b93-20632ca2aa59", "tags": ["pulp:repository:1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686", "pulp:action:publish"], "finish_time": null, "_ns": "task_status", "start_time": null, "traceback": null, "spawned_tasks": [], "progress_report": {}, "queue": "reserved_resource_worker-3@mysatelliteserver.dq2", "state": "waiting", "worker_name": "reserved_resource_worker-3@mysatelliteserver", "result": null, "error": null, "_id": {"$oid": "5bc4975299569390e449df13"}, "id": "5bc4975299569390e449df13"}
2018-10-15T14:34:11 [I|kat|] GET: https://mysatelliteserver.local.net/pulp/api/v2/tasks/756d46bb-b79f-4b46-9b93-20632ca2aa59/: {"content_type"=>"application/json", "accept"=>"application/json"}
Response: 200: {"exception": null, "task_type": "pulp.server.managers.repo.publish.publish", "_href": "/pulp/api/v2/tasks/756d46bb-b79f-4b46-9b93-20632ca2aa59/", "task_id": "756d46bb-b79f-4b46-9b93-20632ca2aa59", "tags": ["pulp:repository:1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686", "pulp:action:publish"], "finish_time": null, "_ns": "task_status", "start_time": "2018-10-15T13:34:10Z", "traceback": null, "spawned_tasks": [], "progress_report": {"1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686": [{"num_success": 1, "description": "Initializing repo metadata", "step_type": "initialize_repo_metadata", "items_total": 1, "state": "FINISHED", "error_details": [], "details": "", "num_failures": 0, "step_id": "831c34a4-7067-4c40-b85f-9bcf3ff84687", "num_processed": 1}, {"num_success": 0, "description": "Publishing Distribution files", "step_type": "distribution", "items_total": 0, "state": "FINISHED", "error_details": [], "details": "", "num_failures": 0, "step_id": "ad10d658-3d25-46d9-8e53-bb043d1a0b95", "num_processed": 0}, {"num_success": 0, "description": "Publishing RPMs", "step_type": "rpms", "items_total": 21065, "state": "IN_PROGRESS", "error_details": [], "details": "", "num_failures": 0, "step_id": "5fa3613e-2910-4059-9a23-6393ebd9490d", "num_processed": 0}, {"num_success": 0, "description": "Publishing Delta RPMs", "step_type": "drpms", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "a3024f1a-adc0-4d9f-8278-98bf8210dd21", "num_processed": 0}, {"num_success": 0, "description": "Publishing Errata", "step_type": "errata", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "8a8c42a6-b2fb-4efd-86e6-e44c451f8a4f", "num_processed": 0}, {"num_success": 0, "description": "Publishing Comps file", "step_type": "comps", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "53d13c84-8330-4088-b459-5cd074a2e0f1", "num_processed": 0}, {"num_success": 0, "description": "Publishing Metadata.", "step_type": "metadata", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "02b850c5-2da5-42e6-b439-28cf18eee949", "num_processed": 0}, {"num_success": 0, "description": "Closing repo metadata", "step_type": "close_repo_metadata", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "11d95bfa-d7b6-43b2-9f6e-b5df10159c9f", "num_processed": 0}, {"num_success": 0, "description": "Generating sqlite files", "step_type": "generate sqlite", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "e43d0be3-88ec-4be8-9adc-426774a2e735", "num_processed": 0}, {"num_success": 0, "description": "Removing old repodata", "step_type": "remove_old_repodata", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "07568048-daed-474c-833d-d56d755a3d8a", "num_processed": 0}, {"num_success": 0, "description": "Generating HTML files", "step_type": "repoview", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "d4b6cf24-f12a-4c83-b913-24bf268c8db4", "num_processed": 0}, {"num_success": 0, "description": "Publishing files to web", "step_type": "publish_directory", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "561e3532-af9d-4f68-a329-cefadc4f4aef", "num_processed": 0}, {"num_success": 0, "description": "Writing Listings File", "step_type": "initialize_repo_metadata", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "185aeba5-7938-46ef-8943-21dc68a68471", "num_processed": 0}]}, "queue": "reserved_resource_worker-3@mysatelliteserver.dq2", "state": "running", "worker_name": "reserved_resource_worker-3@mysatelliteserver", "result": null, "error": null, "_id": {"$oid": "5bc4975299569390e449df13"}, "id": "5bc4975299569390e449df13"}
2018-10-15T14:34:12 [I|kat|] GET: https://mysatelliteserver.local.net/pulp/api/v2/tasks/756d46bb-b79f-4b46-9b93-20632ca2aa59/: {"content_type"=>"application/json", "accept"=>"application/json"}
Response: 200: {"exception": null, "task_type": "pulp.server.managers.repo.publish.publish", "_href": "/pulp/api/v2/tasks/756d46bb-b79f-4b46-9b93-20632ca2aa59/", "task_id": "756d46bb-b79f-4b46-9b93-20632ca2aa59", "tags": ["pulp:repository:1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686", "pulp:action:publish"], "finish_time": "2018-10-15T13:34:11Z", "_ns": "task_status", "start_time": "2018-10-15T13:34:10Z", "traceback": "Traceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 367, in trace_task\n R = retval = fun(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 529, in __call__\n return super(Task, self).__call__(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 107, in __call__\n return super(PulpTask, self).__call__(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 622, in __protected_call__\n return self.run(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 1109, in publish\n result = check_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)\n File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 1206, in check_publish\n result = _do_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)\n File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 1258, in _do_publish\n publish_report = publish_repo(transfer_repo, conduit, call_config)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 737, in wrap_f\n return f(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/distributor.py\", line 174, in publish_repo\n return self._publisher.process_lifecycle()\n File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 572, in process_lifecycle\n super(PluginStep, self).process_lifecycle()\n File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 163, in process_lifecycle\n step.process()\n File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 239, in process\n self._process_block(item=item)\n File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 301, in _process_block\n self.process_main(item=item)\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/publish.py\", line 496, in process_main\n context.add_unit_metadata(unit)\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/metadata/filelists.py\", line 42, in add_unit_metadata\n self.metadata_file_handle.write(unit.render_filelists(self.checksum_type))\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/db/models.py\", line 863, in render_filelists\n context = Context({'pkgid': self.get_or_calculate_and_save_checksum(checksumtype)})\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/db/models.py\", line 258, in get_or_calculate_and_save_checksum\n checksumtype=checksumtype)\nPulpCodedException: Checksum type \"sha256\" is not available for all units in the repository. Make sure those units have been downloaded.\n", "spawned_tasks": [], "progress_report": {"1-RHEL_Views-v9_3-2732f7f1-620c-48ad-9f31-fecdcef60686": [{"num_success": 1, "description": "Initializing repo metadata", "step_type": "initialize_repo_metadata", "items_total": 1, "state": "FINISHED", "error_details": [], "details": "", "num_failures": 0, "step_id": "831c34a4-7067-4c40-b85f-9bcf3ff84687", "num_processed": 1}, {"num_success": 0, "description": "Publishing Distribution files", "step_type": "distribution", "items_total": 0, "state": "FINISHED", "error_details": [], "details": "", "num_failures": 0, "step_id": "ad10d658-3d25-46d9-8e53-bb043d1a0b95", "num_processed": 0}, {"num_success": 0, "description": "Publishing RPMs", "step_type": "rpms", "items_total": 21065, "state": "FAILED", "error_details": [{"traceback": " File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 239, in process\n self._process_block(item=item)\n\n File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 301, in _process_block\n self.process_main(item=item)\n\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/publish.py\", line 496, in process_main\n context.add_unit_metadata(unit)\n\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/metadata/filelists.py\", line 42, in add_unit_metadata\n self.metadata_file_handle.write(unit.render_filelists(self.checksum_type))\n\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/db/models.py\", line 863, in render_filelists\n context = Context({'pkgid': self.get_or_calculate_and_save_checksum(checksumtype)})\n\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/db/models.py\", line 258, in get_or_calculate_and_save_checksum\n checksumtype=checksumtype)\n", "error": "Checksum type \"sha256\" is not available for all units in the repository. Make sure those units have been downloaded."}], "details": "", "num_failures": 1, "step_id": "5fa3613e-2910-4059-9a23-6393ebd9490d", "num_processed": 1}, {"num_success": 0, "description": "Publishing Delta RPMs", "step_type": "drpms", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "a3024f1a-adc0-4d9f-8278-98bf8210dd21", "num_processed": 0}, {"num_success": 0, "description": "Publishing Errata", "step_type": "errata", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "8a8c42a6-b2fb-4efd-86e6-e44c451f8a4f", "num_processed": 0}, {"num_success": 0, "description": "Publishing Comps file", "step_type": "comps", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "53d13c84-8330-4088-b459-5cd074a2e0f1", "num_processed": 0}, {"num_success": 0, "description": "Publishing Metadata.", "step_type": "metadata", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "02b850c5-2da5-42e6-b439-28cf18eee949", "num_processed": 0}, {"num_success": 0, "description": "Closing repo metadata", "step_type": "close_repo_metadata", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "11d95bfa-d7b6-43b2-9f6e-b5df10159c9f", "num_processed": 0}, {"num_success": 0, "description": "Generating sqlite files", "step_type": "generate sqlite", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "e43d0be3-88ec-4be8-9adc-426774a2e735", "num_processed": 0}, {"num_success": 0, "description": "Removing old repodata", "step_type": "remove_old_repodata", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "07568048-daed-474c-833d-d56d755a3d8a", "num_processed": 0}, {"num_success": 0, "description": "Generating HTML files", "step_type": "repoview", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "d4b6cf24-f12a-4c83-b913-24bf268c8db4", "num_processed": 0}, {"num_success": 0, "description": "Publishing files to web", "step_type": "publish_directory", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "561e3532-af9d-4f68-a329-cefadc4f4aef", "num_processed": 0}, {"num_success": 0, "description": "Writing Listings File", "step_type": "initialize_repo_metadata", "items_total": 1, "state": "NOT_STARTED", "error_details": [], "details": "", "num_failures": 0, "step_id": "185aeba5-7938-46ef-8943-21dc68a68471", "num_processed": 0}]}, "queue": "reserved_resource_worker-3@mysatelliteserver.dq2", "state": "error", "worker_name": "reserved_resource_worker-3@mysatelliteserver", "result": null, "error": {"code": "RPM1008", "data": {"checksumtype": "sha256"}, "description": "Checksum type \"sha256\" is not available for all units in the repository. Make sure those units have been downloaded.", "sub_errors": []}, "_id": {"$oid": "5bc4975299569390e449df13"}, "id": "5bc4975299569390e449df13"}
2018-10-15T14:34:12 [E|bac|] RPM1008: Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded. (Katello::Errors::PulpError)
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/pulp/abstract_async_task.rb:121:in `block in external_task='
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/pulp/abstract_async_task.rb:119:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/pulp/abstract_async_task.rb:119:in `external_task='
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/action/polling.rb:98:in `poll_external_task_with_rescue'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/action/polling.rb:21:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/action/cancellable.rb:13:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/pulp/abstract_async_task.rb:45:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/action.rb:538:in `block (3 levels) in execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware.rb:18:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/middleware/skip_if_matching_content.rb:5:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware.rb:18:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware.rb:31:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware.rb:18:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/middleware/remote_action.rb:16:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/middleware/remote_action.rb:40:in `block in as_remote_user'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/models/katello/concerns/user_extensions.rb:21:in `cp_config'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/middleware/remote_action.rb:27:in `as_cp_user'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/middleware/remote_action.rb:39:in `as_remote_user'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/middleware/remote_action.rb:16:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware.rb:18:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.13.4/app/lib/actions/middleware/rails_executor_wrap.rb:14:in `block in run'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.6/lib/active_support/execution_wrapper.rb:85:in `wrap'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.13.4/app/lib/actions/middleware/rails_executor_wrap.rb:13:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware.rb:18:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/action/progress.rb:30:in `with_progress_calculation'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/action/progress.rb:16:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware.rb:18:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/middleware/keep_locale.rb:11:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/middleware/keep_locale.rb:22:in `with_locale'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/middleware/keep_locale.rb:11:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware.rb:18:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.13.4/app/lib/actions/middleware/keep_current_user.rb:15:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.13.4/app/lib/actions/middleware/keep_current_user.rb:43:in `restore_curent_user'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.13.4/app/lib/actions/middleware/keep_current_user.rb:15:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware.rb:18:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware.rb:31:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/middleware/world.rb:30:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/action.rb:537:in `block (2 levels) in execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/action.rb:536:in `catch'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/action.rb:536:in `block in execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/action.rb:451:in `block in with_error_handling'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/action.rb:451:in `catch'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/action.rb:451:in `with_error_handling'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/action.rb:531:in `execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/action.rb:278:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:17:in `block (2 levels) in execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/execution_plan/steps/abstract.rb:162:in `with_meta_calculation'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:16:in `block in execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:30:in `open_action'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:15:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/director.rb:56:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/executors/parallel/worker.rb:12:in `block in on_message'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/executors.rb:12:in `run_user_code'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/executors/parallel/worker.rb:11:in `on_message'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/context.rb:46:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/executes_context.rb:7:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.0/lib/dynflow/actor.rb:26:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/awaits.rb:15:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/sets_results.rb:14:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/buffer.rb:38:in `process_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/buffer.rb:31:in `process_envelopes?'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/buffer.rb:20:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/termination.rb:55:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/removes_child.rb:10:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/sets_results.rb:14:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/core.rb:161:in `process_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/core.rb:95:in `block in on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/core.rb:118:in `block (2 levels) in schedule_execution'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `block in synchronize'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/core.rb:115:in `block in schedule_execution'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/serialized_execution.rb:18:in `call'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/serialized_execution.rb:96:in `work'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/serialized_execution.rb:77:in `block in call_job'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
After sync & errata calculation I tried to apply the errata, I tried to generate an incremental update of CV but foreman fail at 66% with this error:
RPM1008: Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded.
RPM1008: Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded.
RPM1008: Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded.
RPM1008: Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded.
RPM1008: Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded.
RPM1008: Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded.
RPM1008: Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded.
RPM1008: Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded.
RPM1008: Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded.
RPM1008: Checksum type "sha256" is not available for all units in the repository. Make sure those units have been downloaded.
I tried to set up my repo as written on rh documentation:
repo = Katello::Repository.find_by_pulp_id("<IDENTIFIER>")
repo.checksum_type = "sha256"
repo.save!
but nothing changed.
Following Bug #24730: unable to publish a content view including RH repo with a filter - Katello - Foreman it’s a bug, there’s a way/fix to solve the issue before the katello package upgrade (and w/out patching the code)?
Thanks !