Project

General

Profile

Bug #25918

500 ISE on fetching task during capsule sync

Added by Justin Sherrill 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

a 3.11 pipeline syncing a capsule threw an 500 with:
```
500 Internal Server Error: <h1>Server Error (500)</h1>
2019-01-24T17:33:57 [E|bac|] Error in progress calculation
2019-01-24T17:33:57 [E|bac|] undefined method `all?' for nil:NilClass (NoMethodError)
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.11.0.rc2/app/lib/actions/pulp/abstract_async_task.rb:69:in `done?'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.11.0.rc2/app/lib/actions/pulp/consumer/sync_capsule.rb:22:in `run_progress'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.2.0/lib/dynflow/action/progress.rb:17:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.2.0/lib/dynflow/action/progress.rb:33:in `ensure in with_progress_calculation'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.2.0/lib/dynflow/action/progress.rb:32:in `with_progress_calculation'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.2.0/lib/dynflow/action/progress.rb:16:in `run'
```

This may be some sort of race condition

Associated revisions

Revision d849c962 (diff)
Added by Justin Sherrill 7 months ago

Fixes #25918 - handle task rendering before task has started

There could be a race condition where the status of a
task is fetched, but the pulp task itself has not been
saved yet.

History

#1 Updated by The Foreman Bot 7 months ago

  • Assignee set to Justin Sherrill
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7944 added

#2 Updated by Justin Sherrill 7 months ago

  • Status changed from Ready For Testing to Closed

#3 Updated by Jonathon Turel 7 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.11.1

Also available in: Atom PDF