Bug 967949

Summary: the options to create repos with --feed file:///
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: Jay Dobies <jason.dobies>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: MasterCC: 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    

Description Preethi Thomas 2013-05-28 16:07:29 UTC
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:

Comment 1 Mike McCune 2013-05-30 13:34:15 UTC
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?

Comment 2 Jay Dobies 2013-05-30 13:37:02 UTC
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.

Comment 3 Jay Dobies 2013-05-30 14:35:00 UTC
I fixed this in the newyumimporter branch, it'll be in the next build.

Comment 4 Jay Dobies 2013-05-30 14:35:21 UTC
BTW, by "fixed" I mean we can sync repos from file:/// URLs in case that wasn't clear.

Comment 5 Jeff Ortel 2013-06-04 15:54:39 UTC
build: 2.2.0-0.1.beta

Comment 6 Preethi Thomas 2013-06-05 13:22:50 UTC
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 ~]#

Comment 7 Preethi Thomas 2013-06-05 13:25:20 UTC
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

Comment 8 Preethi Thomas 2013-06-12 13:23:36 UTC
[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 ~]#

Comment 9 Preethi Thomas 2013-06-12 14:07:14 UTC
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 ~]#

Comment 10 Preethi Thomas 2013-09-10 15:44:25 UTC
2.2 released
http://repos.fedorapeople.org/repos/pulp/pulp/stable/2.2/