Project

General

Profile

Bug #32786

[pulp3] aborting pulp3 content-migration step fails with "NoMethodError: undefined method fetch_from_list"

Added by Justin Sherrill over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Repositories
Target version:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1970868

Description of problem:
Aborting the pulp3 content-migration rake task via `satellite-maintain content prepare-abort`

Version-Release number of selected component (if applicable):
Katello 3.18.1

How reproducible:

Steps to Reproduce:
1. start the content migration step `satellite-maintain content prepare`
2. abort the content migration step `satellite-maintain content prepare-abort` from a different terminal
3.

Actual results:

Prepare content for Pulp 3:
Checking for valid Katello configuraton.
Starting task.
2021-06-10 14:54:21 +0000: Migrating rpm content to Pulp 3 5978/167886Migration failed, You will want to investigate: https://<redacted>/foreman_tasks/tasks/9026d986-1b11-41b4-96b1-642a5073bfbe
rake aborted!
ForemanTasks::TaskError: Task 9026d986-1b11-41b4-96b1-642a5073bfbe: NoMethodError: undefined method fetch_from_list' for #<Katello::Pulp3::Api::Core:0x000000001f7a7ed8>

/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.29/lib/katello/tasks/pulp3_migration.rake:35:inblock (2 levels) in '
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.3/exe/rake:27:in `'
Tasks: TOP => katello:pulp3_migration
(See full trace by running task with --trace)
[FAIL]

Expected results:
The task will stop, and the rake command will exit cleanly telling so.

Additional info:

Associated revisions

Revision 4506271b (diff)
Added by Justin Sherrill over 1 year ago

Fixes #32786 - fix pulp task group cancel

History

#1 Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9401 added

#2 Updated by Brad Buckingham over 1 year ago

  • Assignee changed from Anurag Patel to Justin Sherrill

#3 Updated by Justin Sherrill over 1 year ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.18.4
  • Category set to Repositories

#4 Updated by The Foreman Bot over 1 year ago

  • Pull request https://github.com/Katello/katello/pull/9420 added

#5 Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases Katello 4.2.0 added

#6 Updated by Justin Sherrill over 1 year ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF