Bug #19158

removing multiple subscriptions causes parallel calls to candlepin

Added by Thomas McKay 4 months ago. Updated 4 months ago.

Status:Closed
Priority:Normal
Assigned To:Thomas McKay
Category:Subscriptions
Target version:Team Tom - iteration 11
Difficulty: Pull request:https://github.com/Katello/katello/pull/6722
Bugzilla link:1438774
Story points-
Velocity based estimate-
ReleaseKatello 3.4.0Release relationshipAuto

Description

When multiple subscriptions are removed from a host in a single api call, each of those subs are sent individually to candlepin for removal. This potentially can cause race conditions if those removals are parallelized by foreman tasks. This code should make sure the plan_actions are sequential and not parallel:

https://github.com/Katello/katello/blob/master/app/lib/actions/katello/host/remove_subscriptions.rb#L18-L22

Associated revisions

Revision e95fc6d6
Added by Thomas McKay 4 months ago

fixes #19158 - sequence around sub removal

History

#1 Updated by The Foreman Bot 4 months ago

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

#2 Updated by Thomas McKay 4 months ago

  • Bugzilla link set to 1438774

#3 Updated by Walden Raines 4 months ago

  • Release set to Katello 3.4.0

#4 Updated by Thomas McKay 4 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF