Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1247308

Summary: katello-disconnected date range export includes extra rpms
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: Inter Satellite SyncAssignee: Chris Duryee <cduryee>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bbuckingham, cwelton, jammcder, mmccune, rjerrido, tbiggs
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-08 18:23:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike McCune 2015-07-27 18:25:10 UTC
From:

https://bugzilla.redhat.com/show_bug.cgi?id=1226740#c11

Synced "rhel-6-server-sam-rpms-6_4-x86_64" repo and checked build times of katello-common package:

# find /var/lib/pulp/ -name katello-common\*.rpm
/var/lib/pulp/content/rpm/katello-common/1.4.3.23/1.el6sam_splice/noarch/418bd42eb948e20af902352fc0c46cab6d81c4f3/katello-common-1.4.3.23-1.el6sam_splice.noarch.rpm
/var/lib/pulp/content/rpm/katello-common/1.4.3/18.el6sam_splice/noarch/e08f68f8d5279bd87ad19390e79afcc878a14410/katello-common-1.4.3-18.el6sam_splice.noarch.rpm
/var/lib/pulp/content/rpm/katello-common/1.4.3/16.el6sam_splice/noarch/a1ba6af5a7de58b31d709afec0967bdbc607bdc3/katello-common-1.4.3-16.el6sam_splice.noarch.rpm
/var/lib/pulp/content/rpm/katello-common/1.2.1/15h.el6_3/noarch/254d37cccd3866ed26d6e18bc8f21d48d45be7f1/katello-common-1.2.1-15h.el6_3.noarch.rpm
/var/lib/pulp/content/rpm/katello-common/1.2.1.1/1h.el6_4/noarch/364cdf4eecacba159be351daa88e61a9abe1883c/katello-common-1.2.1.1-1h.el6_4.noarch.rpm
/var/lib/pulp/content/rpm/katello-common/1.4.3.20/1.el6sam_splice/noarch/1e1f703e08686c6653e7f6ac4cb7d61da9e87749/katello-common-1.4.3.20-1.el6sam_splice.noarch.rpm
/var/lib/pulp/content/rpm/katello-common/1.4.3.19/1.el6sam_splice/noarch/ade9c6fde7291dd0c944a5bff7cd4f4d7b3c11e3/katello-common-1.4.3.19-1.el6sam_splice.noarch.rpm
/var/lib/pulp/content/rpm/katello-common/0.3.3/1.el6_2/noarch/dcca347b99c7bc177b8426aef2b14035e76da81b/katello-common-0.3.3-1.el6_2.noarch.rpm
/var/lib/pulp/content/rpm/katello-common/0.1.307/1.el6/noarch/001f87bc7a7d2ebe13fc04e085a1355433a39c49/katello-common-0.1.307-1.el6.noarch.rpm
/var/lib/pulp/content/rpm/katello-common/0.3.4/1.el6_2/noarch/a8288fa0e011b7e27c69902afb410f70500d1c12/katello-common-0.3.4-1.el6_2.noarch.rpm

Build date (via `rpm -qpi ...`):

katello-common-0.1.307-1.el6.noarch.rpm
  Build Date: Thu 29 Mar 2012 12:58:38 AM EDT
katello-common-1.4.3.23-1.el6sam_splice.noarch.rpm
  Build Date:   Tue 29 Oct 2013 11:49:41 AM EDT

So I have exported the content using these boundaries:


# katello-disconnected export -t /var/tmp/export -s '1970-01-01 00:00:00' -n '2013-01-01 00:00:00'
Waiting for repos to finish publishing
Watching... (this may be safely interrupted with Ctrl+C)
State: waiting:
  repo: [rhel-6-server-sam-rpms-6_4-x86_64] packages remaining: [unknown]

State: finished:
  repo: [rhel-6-server-sam-rpms-6_4-x86_64] packages remaining: [unknown]


Watching finished
Done watching ...
 Archiving contents of /var/tmp/export into 4600M tar archives.
 NOTE: This may take a while.

Done exporting content, please copy /var/tmp/export/* to your disconnected host


I know that build date is most probably not a date used to determine which package to export and which not, but with some tolerancy it should give us some basic image.

Unfortunately both of the packages are there:

# cd /var/tmp/export/content/dist/rhel/server/6/6.4/x86_64/subscription-asset-manager/1/os
# ls katello-common-0.1.307-1.el6.noarch.rpm katello-common-1.4.3.23-1.el6sam_splice.noarch.rpm
katello-common-0.1.307-1.el6.noarch.rpm
katello-common-1.4.3.23-1.el6sam_splice.noarch.rpm

And in the bug description there is "only the content that is within the date ranges specified above", I consider this a FailsQA (although please feel free to let me know what I did incorrectly).

Comment 4 Bryan Kearney 2016-02-08 18:23:19 UTC
The katello-disconnected server synchronization and export functions are being moved into the Satellite server itself. With 6.2, the katello-disconnected command will no longer be delivered and instead will be replaced with a new export and import functions delivered via the UI and hammer CLI. This bug is being closed as "WONTFIX" since it relates only to the existing katello-disconnected tooling. Please check the Satellite docs with the release of Satellite 6.2 on how to use the new content export and import features.