Issue #1610
closedadded updated and removed count all 0 on first sync
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
Updated by jsherril@redhat.com over 7 years ago
- Subject changed from added updated and removed count all 0 on first sycn to added updated and removed count all 0 on first sync
Updated by amacdona@redhat.com over 7 years ago
- Status changed from NEW to ASSIGNED
Updated by amacdona@redhat.com over 7 years ago
- Status changed from ASSIGNED to POST
https://github.com/pulp/pulp/pull/2389
Because we are no longer using the conduit to do these actions, we needed to implement this differently. I was able to confirm that added_count and updated_count work as expected, but removed_count was not possible to to test because of https://pulp.plan.io/issues/1621. I will relate the issues and comment on #1621 that the removed_count field of the task result should be inspected for syncs that remove content.
Updated by amacdona@redhat.com over 7 years ago
- Related to Issue #1621: sync with "remove-missing" failing. added
Updated by pthomas@redhat.com over 7 years ago
Will test this once 1621 is fixed !
Added by Austin Macdonald over 7 years ago
Added by Austin Macdonald over 7 years ago
fix added, updated, and removed counts for mongoengine converted plugins
closes #1610
Updated by Anonymous over 7 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp:pulp|36ba7f5f4e998882b9b4faf69e438faaf48404b1.
Updated by dkliban@redhat.com over 7 years ago
- Status changed from MODIFIED to 5
Updated by dkliban@redhat.com about 7 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
fix added, updated, and removed counts for mongoengine converted plugins
closes #1610