Bug 790175

Summary: Vague error message when creating a package group with an existing ID
Product: [Retired] Pulp Reporter: Jay Dobies <jason.dobies>
Component: user-experienceAssignee: Todd Sanders <tsanders>
Status: CLOSED NOTABUG QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mhrivnak, tsanders
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-27 14:06: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:

Description Jay Dobies 2012-02-13 20:24:47 UTC
I already have a package group with ID "test-group-1" when I run the following command:

[jdob@pulp1 ~]$ pulp-admin packagegroup create --id test-group-1 --repoid pulp-f16 -n "Test Group 1" -d "Test Group 1 Description"
Unable to create package group [test-group-1] in repository [pulp-f16]

That information should be very simple to derive (it'll be a 409 status code from the server) and the error message should indicate why it was unable to create the group.

Comment 1 Jay Dobies 2012-02-13 21:23:24 UTC
This isn't just for duplicate group IDs. The same error is displayed for an invalid repo ID:

[jdob@pulp1 ~]$ pulp-admin packagegroup create --repoid foo --id bar --name baz
Unable to create package group [bar] in repository [foo]



By comparison, export, in the same packagegroup section, correctly identifies the issue:

[jdob@pulp1 ~]$ pulp-admin packagegroup export --repoid foo
error:  Error:PulpException: No Repo with id: foo found

Comment 87 Michael Hrivnak 2013-09-27 14:06:38 UTC
pulp no longer has the ability to create groups.