Bug 604158 - pulp-tools create repo need to catch error, and display human readable message
Summary: pulp-tools create repo need to catch error, and display human readable message
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact:
URL:
Whiteboard:
: 605381 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-15 14:20 UTC by wes hayutin
Modified: 2011-07-15 19:32 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-10-20 16:11:38 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.