Bug 790189

Summary: Pulp allows non-existent groups to be added to a category
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: jmatthew, 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:12:42 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 21:08:49 UTC
There may be a reason this is desired, but I was able to add test-group-foo, which doesn't exist, to a category:

[jdob@pulp1 ~]$ pulp-admin packagegroup add_group --repoid pulp-f16 --categoryid test-category-1 --id test-group-foo
Package group [test-group-foo] added to category [test-category-1] in repository [pulp-f16]


In comps.xml:

<comps>

  <group>
   <id>test-group-2</id>
   <default>true</default>
   <uservisible>true</uservisible>
   <display_order>1024</display_order>
   <name>Test Category 2</name>
   <description></description>
    <packagelist>
    </packagelist>
  </group>
  <category>
   <id>test-category-1</id>
   <display_order>99</display_order>
   <name>Test Category 1</name>
   <description></description>
    <grouplist>
     <groupid>test-group-foo</groupid>
    </grouplist>
  </category>

</comps>

Comment 1 John Matthews 2012-02-14 01:41:00 UTC
Categories and Groups and even references of packages in a group are not a strong linkage.  It's valid to have a group reference in a Category and the group doesn't exist.

The reason is that the data from comps.xml may be aggregated across repos and a group defined in a category may exist in a diff repo from where the category is.  

I recommend we moved this to NOT_A_BUG

Comment 88 Michael Hrivnak 2013-09-27 14:12:42 UTC
pulp no longer has this feature.