Bug 2043719

Summary: Incremental publish content view doesn't copy any contents
Product: Red Hat Satellite Reporter: Brad Buckingham <bbuckingham>
Component: Content ViewsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lai <ltran>
Severity: high Docs Contact:
Priority: high    
Version: 6.10.0CC: ahumbe, ben.formosa, bhoefer, iballou, momran, osousa, pmendezh, saydas
Target Milestone: 6.10.3Keywords: Patch, Triaged, WorkAround
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-4.1.1.43-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2032098 Environment:
Last Closed: 2022-03-08 21:26:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 6 Lai 2022-02-16 21:20:56 UTC
Steps to reproduce:

1) Download the test repository here to the Satellite's local filesystem: https://github.com/Katello/katello/tree/master/test/fixtures/test_repos/zoo (you can clone the entire dir to your satellite)
2) Host it with python3 -m http.server 33333 (after you cd to the zoo test repo)
3) Create a custom repo and sync the repo at http://localhost:33333
4) Select an erratum from the repo to be your test erratum.
5) Create a cv, add the repo, and filter out the chosen test erratum
6) publish the cv
7) Stop the Python web server with ctrl+c
8) Add a "pushcount" for one (or more) erratum in updateinfo.xml: <pushcount>3</pushcount> (put it in the scoped erratum)
9) Delete the old repodata:

> rm -rf repodata/*

10) Run create.sh in the repository directory to regenerate the repodata. (might have to register to dogfood and do a yum install on createrepo in order to run the create.sh script)
11) Serve the Python web server again from step 2
12) Sync the repository again.
13) Run incremental update on the chosen test errata: hammer content-view version incremental-update --content-view-version-id=<cvv-id> --errata-ids=<errata-id>

Expected result:
should be able to see the errata and content being added

Actual result:
Able to see the errata and content being added

[................................................................................................................................] [100%]
Content View: cv version 1.1
Added Content:
  Errata:
        KATELLO-RHEA-2012:0059
  Module Streams:
        duck:0:20180730233102
        kangaroo:0:20180730223407
  Packages:
        duck-0.7-1.noarch
        kangaroo-0.3-1.noarch


Saw this on both the cli and UI

Verified on 6.10.3 snap 1 with tfm-rubygem-katello-4.1.1.45-1.el7sat.noarch

Comment 14 errata-xmlrpc 2022-03-08 21:26:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Low: Satellite 6.10.3 Async Bug Fix Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0790