Bug 1003965

Summary: Syncing a repo that doesn't have a feed fails less than gracefully
Product: [Retired] Pulp Reporter: Randy Barlow <rbarlow>
Component: rpm-supportAssignee: Barnaby Court <bcourt>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: medium    
Version: MasterCC: bcourt, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: 2.4.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-09 06:56: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:

Description Randy Barlow 2013-09-03 15:06:25 UTC
$ pulp-admin rpm repo create --repo-id test

$ pulp-admin rpm repo sync run --repo-id test
+----------------------------------------------------------------------+
                    Synchronizing Repository [test]
+----------------------------------------------------------------------+

This command may be exited by pressing ctrl+c without affecting the actual
operation on the server.

Downloading metadata...
[-]
... failed

'NoneType' object has no attribute 'endswith'

Comment 1 Barnaby Court 2013-12-02 14:04:48 UTC
PR: https://github.com/pulp/pulp_rpm/pull/403

Comment 2 Jeff Ortel 2014-04-03 13:35:59 UTC
build: 2.4.0-0.7.beta

Comment 3 Preethi Thomas 2014-04-15 19:39:35 UTC
verified

[root@pulp-24-server ~]# rpm -qa pulp-server
pulp-server-2.4.0-0.9.beta.el6.noarch
[root@pulp-24-server ~]# pulp-admin rpm repo create --repo-id test
Successfully created repository [test]

[root@pulp-24-server ~]# pulp-admin rpm repo sync run --repo-id test
+----------------------------------------------------------------------+
                    Synchronizing Repository [test]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.


Downloading metadata...
[-]
... failed

Unable to sync a repository that has no feed


Task Failed

Importer indicated a failed response

[root@pulp-24-server ~]#

Comment 4 Randy Barlow 2014-08-09 06:56:25 UTC
This has been fixed in Pulp 2.4.0-1.