Actions
Issue #1610
closedadded updated and removed count all 0 on first sync
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
2.8.0
OS:
CentOS 7
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
When syncing a yum repo, the 'results' hash which contains:
"added_count"=>0,
"removed_count"=>0,
"updated_count"=>0,
is all 0 even if units are synced.
Steps to reproduce:
a) create a yum repo pointing to some feed with at least one package
b) sync the repo
c) examine the task output:
"result"=>
{"result"=>"success",
"importer_id"=>{"$oid"=>"56af754a0555153b7f89d879"},
"exception"=>nil,
"repo_id"=>"Default_Organization-tester-tester",
"traceback"=>nil,
"started"=>"2016-02-01T15:10:37Z",
"_ns"=>"repo_sync_results",
"completed"=>"2016-02-01T15:11:20Z",
"importer_type_id"=>"yum_importer",
"error_message"=>nil,
"summary"=>
{"content"=>{"state"=>"FINISHED"},
"comps"=>{"state"=>"FINISHED"},
"distribution"=>{"state"=>"FINISHED"},
"errata"=>{"state"=>"FINISHED"},
"metadata"=>{"state"=>"FINISHED"}},
"added_count"=>0,
"removed_count"=>0,
"updated_count"=>0,
"id"=>"56af75980555153c4bd1774e",
"details"=>
{"content"=>
{"size_total"=>103477800,
"items_left"=>0,
"items_total"=>367,
"state"=>"FINISHED",
"size_left"=>0,
"details"=>
{"rpm_total"=>367,
"rpm_done"=>367,
"drpm_total"=>0,
"drpm_done"=>0},
"error_details"=>[]},
"comps"=>{"state"=>"FINISHED"},
"distribution"=>
{"items_total"=>0,
"state"=>"FINISHED",
"error_details"=>[],
"items_left"=>0},
"errata"=>{"state"=>"FINISHED"},
"metadata"=>{"state"=>"FINISHED"}}},
"error"=>nil,
"_id"=>{"$oid"=>"56af756ddeeba77d7fad3d51"},
"id"=>"56af756ddeeba77d7fad3d51"},
Related issues
Actions
fix added, updated, and removed counts for mongoengine converted plugins
closes #1610