Bug 604158

Summary: pulp-tools create repo need to catch error, and display human readable message
Product: [Retired] Pulp Reporter: wes hayutin <whayutin>
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: jconnor, pthomas, ssachdev
Target Milestone: ---Keywords: QA-Closed
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-20 16:11:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description wes hayutin 2010-06-15 14:20:22 UTC
\"Invalid type.  valid types are ['yum', 'local', 'rhn']\"\n"


[root@localhost ~]# pulp repo create --label f12_i386 --name=f12 --arch=i386 --feed=yum:http://download.devel.redhat.com/released/F-12/GOLD/Fedora/i386/os/
 Successfully created Repo [ f12_i386 ] with feed [ yum:http://download.devel.redhat.com/released/F-12/GOLD/Fedora/i386/os/ ]

[root@localhost ~]# pulp repo create --label f12_i386 --name=f12 --arch=i386 --feed=http://download.devel.redhat.com/released/F-12/GOLD/Fedora/i386/os/
"Traceback (most recent call last):\n  File \"build/bdist.linux-i686/egg/juicer/controllers/base.py\", line 45, in report_error\n    return method(self, *args, **kwargs)\n  File \"build/bdist.linux-i686/egg/juicer/controllers/repositories.py\", line 61, in POST\n    repo_data['feed'])\n  File \"build/bdist.linux-i686/egg/pulp/api/repo.py\", line 297, in create\n    r = model.Repo(id, name, arch, feed)\n  File \"build/bdist.linux-i686/egg/pulp/model.py\", line 34, in __init__\n    self.repo_source = RepoSource(source)\n  File \"build/bdist.linux-i686/egg/pulp/model.py\", line 55, in __init__\n    self.parse_feed(url)\n  File \"build/bdist.linux-i686/egg/pulp/model.py\", line 64, in parse_feed\n    % self.supported_types)\nPulpException: \"Invalid type.  valid types are ['yum', 'local', 'rhn']\"\n"

Comment 1 Pradeep Kilambi 2010-06-17 20:14:48 UTC
*** Bug 605381 has been marked as a duplicate of this bug. ***

Comment 3 Shveta 2010-08-10 10:03:29 UTC
[root@shveta ~]# pulp -u admin -p admin repo create --id=f12_x64 --name=f12 --arch=i386 --feed=yum:http://download.devel.redhat.com/released/F-12/GOLD/Fedora/i386/os/
 Successfully created Repo [ f12_x64 ]
[root@shveta ~]# pulp -u admin -p admin repo create --id=f12_x64 --name=f12 --arch=i386 --feed=yum:http://download.devel.redhat.com/released/F-12/GOLD/Fedora/i386/os/
"A repository with the id, f12_x64, already exists"

Comment 4 Preethi Thomas 2010-10-20 16:11:38 UTC
Closed after review.