Bug 790175 - Vague error message when creating a package group with an existing ID
Summary: Vague error message when creating a package group with an existing ID
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Todd Sanders
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-13 20:24 UTC by Jay Dobies
Modified: 2013-09-27 14:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-27 14:06:38 UTC


Attachments (Terms of Use)

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.


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