Project

General

Profile

Actions

Bug #36461

closed

'Remove orphans' task fails on DeleteOrphanAlternateContentSources step

Added by Samir Jha about 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Alternate Content Sources
Target version:
Fixed in Releases:
Found in Releases:

Description

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

Description of problem:
Remove orphans task fails on Capsule servers. It executes successfully on the Satellite server itself.

Here are task details:

  1. hammer task info --id 19c79c4f-eaea-4739-bea0-a8aec0f595c0
    ~~~
    ID: 19c79c4f-eaea-4739-bea0-a8aec0f595c0
    Action: Remove orphans
    State: paused
    Result: error
    Started at: 2023/05/14 20:00:28
    Ended at:
    Duration: 61876.254165
    Owner: foreman_admin
    Task errors: undefined method `pulp3_api' for nil:NilClass

Details:
Errors: undefined method `pulp3_api' for nil:NilClass
Action: Actions::Pulp3::OrphanCleanup::DeleteOrphanAlternateContentSources
Exception: NoMethodError: undefined method `pulp3_api' for nil:NilClass
Stack: 2023-05-14T22:00:58 [E|bac|] undefined method `pulp3_api' for nil:NilClass (NoMethodError) | /usr/share/gems/gems/katello-4.7.0.23/app/services/katello/pulp3/repository.rb:42:in `api' | /usr/share/gems/gems/katello-4.7.0.23/app/services/katello/pulp3/smart_proxy_mirror_repository.rb:82:in `delete_orphan_alternate_content_sources' | /usr/share/gems/gems/katello-4.7.0.23/app/lib/actions/pulp3/orphan_cleanup/delete_orphan_alternate_content_sources.rb:11:in `invoke_external_task' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/action/polling.rb:84:in `initiate_external_action' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/action/polling.rb:19:in `run' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/action/cancellable.rb:14:in `run' | /usr/share/gems/gems/katello-4.7.0.23/app/lib/actions/pulp3/abstract_async_task.rb:10:in `run' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/action.rb:582:in `block (3 levels) in execute_run' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware/stack.rb:27:in `pass' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware.rb:19:in `pass' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware.rb:32:in `run' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware/stack.rb:23:in `call' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware/stack.rb:27:in `pass' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware.rb:19:in `pass' | /usr/share/gems/gems/katello-4.7.0.23/app/lib/actions/middleware/remote_action.rb:16:in `block in run' | /usr/share/gems/gems/katello-4.7.0.23/app/lib/actions/middleware/remote_action.rb:40:in `block in as_remote_user' | /usr/share/gems/gems/katello-4.7.0.23/app/models/katello/concerns/user_extensions.rb:21:in `cp_config' | /usr/share/gems/gems/katello-4.7.0.23/app/lib/actions/middleware/remote_action.rb:27:in `as_cp_user' | /usr/share/gems/gems/katello-4.7.0.23/app/lib/actions/middleware/remote_action.rb:39:in `as_remote_user' | /usr/share/gems/gems/katello-4.7.0.23/app/lib/actions/middleware/remote_action.rb:16:in `run' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware/stack.rb:23:in `call' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware/stack.rb:27:in `pass' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware.rb:19:in `pass' | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/rails_executor_wrap.rb:14:in `block in run' | /usr/share/gems/gems/activesupport-6.1.7/lib/active_support/execution_wrapper.rb:91:in `wrap' | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/rails_executor_wrap.rb:13:in `run' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware/stack.rb:23:in `call' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware/stack.rb:27:in `pass' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware.rb:19:in `pass' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/action/progress.rb:31:in `with_progress_calculation' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/action/progress.rb:17:in `run' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware/stack.rb:23:in `call' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware/stack.rb:27:in `pass' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware.rb:19:in `pass' | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/load_setting_values.rb:20:in `run' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware/stack.rb:23:in `call' | /usr/share/gems/gems/dynflow-1.6.10/lib/dynflow/middleware/stack.rb:27:in `pass'
~~~

Version-Release number of selected component (if applicable):
Satellite 6.13

How reproducible:
N/A

Actions #1

Updated by The Foreman Bot about 1 year ago

  • Status changed from New to Ready For Testing
  • Assignee set to Samir Jha
  • Pull request https://github.com/Katello/katello/pull/10582 added
Actions #2

Updated by Quinn James about 1 year ago

  • Subject changed from 'Remove orphans' task fails on DeleteOrphanAlternateContentSources step to 'Remove orphans' task fails on DeleteOrphanAlternateContentSources step
  • Category set to Alternate Content Sources
  • Target version set to Katello 4.9.0
  • Triaged changed from No to Yes
Actions #3

Updated by The Foreman Bot about 1 year ago

  • Fixed in Releases Katello 4.10.0 added
Actions #4

Updated by Samir Jha about 1 year ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by The Foreman Bot 12 months ago

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

Also available in: Atom PDF