Bug 1247308 - katello-disconnected date range export includes extra rpms
Summary: katello-disconnected date range export includes extra rpms
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Inter Satellite Sync
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Chris Duryee
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-27 18:25 UTC by Mike McCune
Modified: 2018-08-31 15:19 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-08 18:23:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.