Project

General

Profile

Actions

Bug #15183

closed

Actions::Candlepin::Environment::SetContent called multiple times when publishing CV after repo remove

Added by Justin Sherrill almost 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Content Views
Target version:
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1197710
Description of problem:
Publishing a Content View after Removing a repository (or component in a Composite View) calls Actions::Candlepin::Environment::SetContent multiple times. One for each Delete repository and then a final call at the end.

See steps 76. and 81. in the dynflow output below:

70: Actions::Pulp::Repository::Destroy (success) [ 12.22s / 2.64s ]
Started at: 2015-03-02 12:43:18 UTC
Ended at: 2015-03-02 12:43:30 UTC
Real time: 12.22s
Execution time (excluding suspended state): 2.64s
Input:
---
pulp_id: Hilti-Library-Test-HOICI-HOICI-1_0_0-sp17
remote_user: hoici-b11965af
locale: en
Output:
---
pulp_tasks:
- exception:
task_type: pulp.server.tasks.repository.delete
_href: /pulp/api/v2/tasks/cdf5d4bd-9061-4417-be44-4a90899e3816/
task_id: cdf5d4bd-9061-4417-be44-4a90899e3816
tags:
- pulp:repository:Hilti-Library-Test-HOICI-HOICI-1_0_0-sp17
- pulp:action:delete
finish_time: '2015-03-02T12:43:29Z'
_ns: task_status
start_time: '2015-03-02T12:43:19Z'
traceback:
spawned_tasks: []
progress_report: {}
queue:
state: finished
result:
error:
_id:
$oid: 54f45ae7b354357289fc53c0
id: 54f45ae7f540aa14f5134372
poll_attempts:
total: 11
failed: 0
73: Actions::ElasticSearch::Repository::Destroy (success) [ 1.32s / 1.32s ]
Started at: 2015-03-02 12:43:18 UTC
Ended at: 2015-03-02 12:43:19 UTC
Real time: 1.32s
Execution time (excluding suspended state): 1.32s
Input:
---
pulp_id: Hilti-Library-Test-HOICI-HOICI-1_0_0-sp17
remote_user: hoici-b11965af
locale: en
Output:
--- {}
76: Actions::Candlepin::Environment::SetContent (success) [ 0.67s / 0.67s ]
Started at: 2015-03-02 12:43:18 UTC
Ended at: 2015-03-02 12:43:19 UTC
Real time: 0.67s
Execution time (excluding suspended state): 0.67s
Input:
---
cp_environment_id: 2-41
content_ids:
- '1421224072547'
remote_user: hoici-b11965af
locale: en
Output:
---
add_ids: []
delete_ids:
- '1424770949654'
delete_response: 202
81: Actions::Candlepin::Environment::SetContent (success) [ 0.15s / 0.15s ]
Started at: 2015-03-02 12:44:18 UTC
Ended at: 2015-03-02 12:44:18 UTC
Real time: 0.15s
Execution time (excluding suspended state): 0.15s
Input:
---
cp_environment_id: 2-41
content_ids:
- '1421224072547'
remote_user: hoici-b11965af
locale: en
Output:
---
add_ids: []
delete_ids: []
85: Actions::Katello::ContentView::Publish (success) [ 0.60s / 0.60s ]

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

How reproducible:

Steps to Reproduce:
1. Create Content View
2. Add Repository
3. Publish Content View
4. Remove Repository
5. Publish Content View

Alternative is the 22 step process from BZ1196156

Actual results:
Duplicate call to SetContent

Expected results:
Single call to SetContent

Additional info:

Actions #1

Updated by Justin Sherrill almost 8 years ago

  • translation missing: en.field_release set to 144
  • Difficulty set to easy
Actions #2

Updated by The Foreman Bot almost 8 years ago

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

Updated by Justin Sherrill almost 8 years ago

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

Also available in: Atom PDF