Project

General

Profile

Bug #34111

publishing a content view with a filter (when there is a lot of content) can show errors "Got multiple version_hrefs for pulp task:"

Added by Justin Sherrill 5 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

It seems that ::Katello::Pulp3::Task#version_href only expects a single version_href. However if we do chunked copying, we end up having more than one and errors get thrown in the logs. This doesn't seem to cause a functional problem as the 'last' version is selected which /should/ be the newest

Steps to reproduce:

1) sync down ~20,000 rpms
2) add the repo(s) to a cv
3) add a filter to block out 1 rpm
4) publish the repository

check the logs:

2021-12-09T01:44:31 [E|app|18c9cba1] Got multiple version_hrefs for pulp task: [{"pulp_href"=>"/pulp/api/v3/tasks/b3b0eaa1-3930-43be-9e67-93f134b20753/", "pulp_created"=>"2021-12-08T20:13:13.832+00:00", "state"=>"completed", "name"=>"pulpcore.app.tasks.repository.add_and_remove", "logging_cid"=>"18c9cba1-3b67-4fc0-b202-2205b446a708", "started_at"=>"2021-12-08T20:13:24.516+00:00", "finished_at"=>"2021-12-08T20:13:28.846+00:00", "worker"=>"/pulp/api/v3/workers/2d2ee623-753c-4774-932e-67a34e1cb043/", "child_tasks"=>[], "progress_reports"=>[], "created_resources"=>["/pulp/api/v3/repositories/rpm/rpm/967dcb19-5fb3-4d40-be9d-3a96ed244947/versions/6/"], "reserved_resources_record"=>["/pulp/api/v3/repositories/rpm/rpm/967dcb19-5fb3-4d40-be9d-3a96ed244947/"]}, {"pulp_href"=>"/pulp/api/v3/tasks/af56cc6e-9b51-4acf-939c-a011edc38516/", "pulp_created"=>"2021-12-08T20:13:16.336+00:00", "state"=>"completed", "name"=>"pulpcore.app.tasks.repository.add_and_remove", "logging_cid"=>"18c9cba1-3b67-4fc0-b202-2205b446a708", "started_at"=>"2021-12-08T20:13:28.923+00:00", "finished_at"=>"2021-12-08T20:13:54.256+00:00", "worker"=>"/pulp/api/v3/workers/2d2ee623-753c-4774-932e-67a34e1cb043/", "child_tasks"=>[], "progress_reports"=>[], "created_resources"=>["/pulp/api/v3/repositories/rpm/rpm/967dcb19-5fb3-4d40-be9d-3a96ed244947/versions/7/"], "reserved_resources_record"=>["/pulp/api/v3/repositories/rpm/rpm/967dcb19-5fb3-4d40-be9d-3a96ed244947/"]}, {"pulp_href"=>"/pulp/api/v3/tasks/356cf165-05b3-4d6f-9cc9-4717bd902e75/", "pulp_created"=>"2021-12-08T20:13:18.242+00:00", "state"=>"completed", "name"=>"pulpcore.app.tasks.repository.add_and_remove", "logging_cid"=>"18c9cba1-3b67-4fc0-b202-2205b446a708", "started_at"=>"2021-12-08T20:13:54.350+00:00", "finished_at"=>"2021-12-08T20:14:14.946+00:00", "worker"=>"/pulp/api/v3/workers/2d2ee623-753c-4774-932e-67a34e1cb043/", "child_tasks"=>[], "progress_reports"=>[], "created_resources"=>["/pulp/api/v3/repositories/rpm/rpm/967dcb19-5fb3-4d40-be9d-3a96ed244947/versions/8/"], "reserved_resources_record"=>["/pulp/api/v3/repositories/rpm/rpm/967dcb19-5fb3-4d40-be9d-3a96ed244947/"]}, {"pulp_href"=>"/pulp/api/v3/tasks/bd0a581b-4306-48f2-af20-75c58c0a5170/", "pulp_created"=>"2021-12-08T20:13:19.709+00:00", "state"=>"completed", "name"=>"pulpcore.app.tasks.repository.add_and_remove", "logging_cid"=>"18c9cba1-3b67-4fc0-b202-2205b446a708", "started_at"=>"2021-12-08T20:14:15.020+00:00", "finished_at"=>"2021-12-08T20:14:30.360+00:00", "worker"=>"/pulp/api/v3/workers/0fa8a00c-a4f1-48b0-8195-d12364841fc9/", "child_tasks"=>[], "progress_reports"=>[], "created_resources"=>["/pulp/api/v3/repositories/rpm/rpm/967dcb19-5fb3-4d40-be9d-3a96ed244947/versions/9/"], "reserved_resources_record"=>["/pulp/api/v3/repositories/rpm/rpm/967dcb19-5fb3-4d40-be9d-3a96ed244947/"]}]

History

#1 Updated by Justin Sherrill 5 months ago

  • Description updated (diff)
  • Subject changed from publishing a content view with a filter with lots of rpms can show errors "Got multiple version_hrefs for pulp task:" to publishing a content view with a filter (when there is a lot of content) can show errors "Got multiple version_hrefs for pulp task:"

#2 Updated by Ryan Verdile 5 months ago

  • Triaged changed from No to Yes

#3 Updated by Ian Ballou 4 months ago

Not functional, so it sounds like this can go to 4.5.0?

#4 Updated by Justin Sherrill 3 months ago

  • Target version changed from Katello 4.4.0 to Katello 4.5.0

Also available in: Atom PDF