Bug 967949
| Summary: | the options to create repos with --feed file:/// | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | user-experience | Assignee: | Jay Dobies <jason.dobies> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | Master | CC: | mmccune |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | 2.2.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-09-10 15:44:25 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 950743 | ||
is there a strong reason we can't use file:/// repos? This is useful if you mount directories locally that you want to sync into pulp? There's no reason you shouldn't be able to, you just currently can't. Regression in the move to nectar that we're gonna fix. I fixed this in the newyumimporter branch, it'll be in the next build. BTW, by "fixed" I mean we can sync repos from file:/// URLs in case that wasn't clear. build: 2.2.0-0.1.beta The following repo sync was successful.
[root@hp-dl360g6-01 ~]# pulp-admin rpm repo create --repo-id zoo-copy --feed file:///var/lib/pulp/published/https/repos/zoo/
Successfully created repository [zoo-copy]
[root@hp-dl360g6-01 ~]# hostname
hp-dl360g6-01.rhts.eng.bos.redhat.com
[root@hp-dl360g6-01 ~]# pulp-admin rpm repo sync run --repo-id zoo-copy
+----------------------------------------------------------------------+
Synchronizing Repository [zoo-copy]
+----------------------------------------------------------------------+
This command may be exited by pressing ctrl+c without affecting the actual
operation on the server.
Downloading metadata...
[-]
... completed
Downloading repository content...
[==================================================] 100%
RPMs: 32/32 items
Delta RPMs: 0/0 items
... completed
Downloading distribution files...
[==================================================] 100%
Distributions: 0/0 items
... completed
Importing errata...
[-]
... completed
Importing package groups/categories...
[-]
... completed
Publishing packages...
[==================================================] 100%
Packages: 32/32 items
... completed
Publishing distributions...
[==================================================] 100%
Distributions: 0/0 items
... completed
Generating metadata
[\]
... completed
Publishing repository over HTTPS
[-]
... completed
[root@hp-dl360g6-01 ~]#
fails-qa
because the fillowing failed when syncing distribution
[root@hp-dl360g6-01 ~]# mkdir -p /mnt/disk
[root@hp-dl360g6-01 ~]# mount -o loop Fedora-18-x86_64-DVD.iso /mnt/disk/
[root@hp-dl360g6-01 ~]# pulp-admin rpm repo create --repo-id f18-disk --feed file:///mnt/disk/
Successfully created repository [f18-disk]
[root@hp-dl360g6-01 ~]# pulp-admin rpm repo sync run --repo-id f18-disk
+----------------------------------------------------------------------+
Synchronizing Repository [f18-disk]
+----------------------------------------------------------------------+
This command may be exited by pressing ctrl+c without affecting the actual
operation on the server.
Downloading metadata...
[|]
... completed
Downloading repository content...
[==================================================] 100%
RPMs: 4165/4165 items
Delta RPMs: 0/0 items
... completed
Downloading distribution files...
[=============================== ] 62%
Distributions: 5/8 items
Importing errata...
[-]
... completed
Importing package groups/categories...
[\]
... completed
Publishing packages...
[==================================================] 100%
Packages: 4165/4165 items
... completed
Publishing distributions...
[==================================================] 100%
Distributions: 0/0 items
... completed
Generating metadata
[|]
... completed
Publishing repository over HTTPS
[-]
... completed
From pulp.log
2013-06-05 09:16:08,238 pulp_rpm.plugins.importers.yum.parse.treeinfo:ERROR: some distro file downloads failed
[root@hp-dl360g6-01 ~]# pulp-admin rpm repo create --repo-id f18-local2 --feed file:///var/lib/pulp/published/https/repos/f18-local/
Successfully created repository [f18-local2]
[root@hp-dl360g6-01 ~]# pulp-admin rpm repo sync run --repo-id f18-local2
+----------------------------------------------------------------------+
Synchronizing Repository [f18-local2]
+----------------------------------------------------------------------+
This command may be exited by pressing ctrl+c without affecting the actual
operation on the server.
Downloading metadata...
[|]
... completed
Downloading repository content...
[==================================================] 100%
RPMs: 4165/4165 items
Delta RPMs: 0/0 items
... completed
Downloading distribution files...
[==================================================] 100%
Distributions: 8/8 items
... completed
Importing errata...
[-]
... completed
Importing package groups/categories...
[\]
... completed
Publishing packages...
[==================================================] 100%
Packages: 4165/4165 items
... completed
Publishing distributions...
[==================================================] 100%
Distributions: 8/8 items
... completed
Generating metadata
[|]
... completed
Publishing repository over HTTPS
[-]
... completed
[root@hp-dl360g6-01 ~]#
moving to verified as per the above comment [root@hp-dl360g6-01 ~]# rpm -q pulp-server pulp-server-2.2.0-0.3.beta.fc18.noarch [root@hp-dl360g6-01 ~]# |
Description of problem: If you can't sync repos with --feed file:// then the option to create repos with --feed file:// should not be available either. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: [root@cloud-qe-7 ~]# pulp-admin rpm repo create --repo-id zoo-copy --feed file:///var/lib/pulp/published/https/repos/zoo/ Successfully created repository [zoo-copy] [root@cloud-qe-7 ~]# pulp-admin rpm repo sync run --repo-id zoo-copy +----------------------------------------------------------------------+ Synchronizing Repository [zoo-copy] +----------------------------------------------------------------------+ This command may be exited by pressing ctrl+c without affecting the actual operation on the server. Downloading metadata... [-] ... failed An unexpected error has occurred. More information can be found in the client log file ~/.pulp/admin.log. Actual results: Expected results: Additional info: