Project

Profile

Help

Issue #982

closed

"rpm repo export --start-date" does not generate repodata

Added by patrick.wirth over 7 years ago. Updated almost 4 years ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.6.0
Platform Release:
OS:
RHEL 6
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

1st, generate a good test with valid repodata

pulp-admin rpm repo create --repo-id=fakepulp \
--feed=https://repos.fedorapeople.org/repos/pulp/pulp/stable/2.6/fedora-21/x86_64/
pulp-admin rpm repo sync run --repo-id=fakepulp
pulp-admin rpm repo export run --repo-id=fakepulp
mkdir -p /media/foo

mount -o loop /var/lib/pulp/published/yum/https/exports/repos/fakepulp/fakepulp-2015-05-13T13.01-01.iso /media/foo/

find /media/foo |grep repodata
/media/foo/fakepulp/repodata
/media/foo/fakepulp/repodata/3aeed7b98df3f72c98cfb616e2aab652a4d4881ef16db9e570d0af3f7a9a868e-other.xml.gz
/media/foo/fakepulp/repodata/685a9837d9f328ed161556a85f6f22dc404a0681d73621f31e6b3929d48682d1-updateinfo.xml.gz
/media/foo/fakepulp/repodata/85302be28e0c299568d817859421084d167b1dff01a1dcce9a31861024fc54aa-primary.xml.gz
/media/foo/fakepulp/repodata/c57e62917f1db07c23e89f5cd2ad404d80ed9119cffa9cdac2e72f67f58c5b91-filelists.xml.gz
/media/foo/fakepulp/repodata/dfd6924bc302c3dd52a1cfa2cc36179308e2f03c529828b856c35cae635d90c7-comps.xml
/media/foo/fakepulp/repodata/repomd.xml

Now try and limit the content with --start-date
No repodata will be created for default iso or if specify --export-dir content location

pulp-admin rpm repo export run --repo-id=fakepulp --start-date "2015-03-15T00:00:00"

mount -o loop /var/lib/pulp/published/yum/https/exports/repos/fakepulp/fakepulp-2015-05-13T13.23-01.iso /media/foo/

find /media/foo |grep repodata
no results...

find /media/foo
/media/foo
/media/foo/fakepulp
/media/foo/fakepulp/createrepo-0.9.9-21.2.pulp.fc21.noarch.json
/media/foo/fakepulp/createrepo-0.9.9-21.2.pulp.fc21.noarch.rpm
/media/foo/fakepulp/gofer-2.6.1-1.fc21.noarch.json
/media/foo/fakepulp/gofer-2.6.1-1.fc21.noarch.rpm
/media/foo/fakepulp/gofer-package-2.6.1-1.fc21.noarch.json
/media/foo/fakepulp/gofer-package-2.6.1-1.fc21.noarch.rpm
/media/foo/fakepulp/gofer-system-2.6.1-1.fc21.noarch.json
.
.

No repodata folder or xml data is created which makes it impossible to import this content.

Also available in: Atom PDF