Bug 692669

Summary: groupid created with clone repo treats each letter as a groupid
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedKeywords: Triaged
Target Milestone: ---   
Target Release: Sprint 22   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 14:02:22 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:
Bug Depends On:    
Bug Blocks: 641987    

Description Preethi Thomas 2011-03-31 19:39:38 UTC
Description of problem:
[root@preethi ~]# rpm -q pulp
pulp-0.0.159-1.fc14.noarch

See the groupid=grp2 below. but when created groupid is listed as 
g,r,p,2

[root@preethi ~]# pulp-admin repo clone --id=f14 --clone_id=f14-clone1 --clone_name=f14-clone1 --feed=parent --groupid=grp2 -F 
error: operation failed: Invalid SSL Certificate
[root@preethi ~]# pulp-admin -u admin -p admin repo clone --id=f14 --clone_id=f14-clone1 --clone_name=f14-clone1 --feed=parent --groupid=grp2 -F 
Repository [f14] is being cloned as [f14-clone1]
Clone: Finished
Item Details: 
Tree_Files: 6/6
Rpms: 2766/2766


[root@preethi ~]# pulp-admin -u admin -p admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Id                 	upload                   
Name               	upload                   
Feed URL           	None                     
Feed Type          	None                     
Feed Certs         	No                       
Consumer Certs     	No                       
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	0                        
Files              	1                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     
Filters            	[]                       


Id                 	repo-withgrpid           
Name               	repo-withgrpid           
Feed URL           	None                     
Feed Type          	None                     
Feed Certs         	No                       
Consumer Certs     	No                       
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	0                        
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	['grpid']                
Filters            	[]                       


Id                 	f14                      
Name               	f14                      
Feed URL           	http://download.devel.redhat.com/released/F-14/GOLD/Fedora/x86_64/os/
Feed Type          	yum                      
Feed Certs         	No                       
Consumer Certs     	No                       
Architecture       	x86_64                   
Sync Schedule      	None                     
Packages           	2766                     
Files              	0                        
Distributions      	ks-f14-x86_64            
Publish            	True                     
Clones             	['f14-clone', 'f14-clone1']
Groups             	['test']                 
Filters            	[]                       


Id                 	f14-clone                
Name               	f14-clone                
Feed URL           	file:///var/lib/pulp//repos/released/F-14/GOLD/Fedora/x86_64/os
Feed Type          	local                    
Feed Certs         	No                       
Consumer Certs     	No                       
Architecture       	x86_64                   
Sync Schedule      	None                     
Packages           	2764                     
Files              	0                        
Distributions      	ks-f14-clone-x86_64      
Publish            	True                     
Clones             	[]                       
Groups             	['g', 'r', 'p', '1']     
Filters            	['fliter-black']         


Id                 	f14-clone1               
Name               	f14-clone1               
Feed URL           	file:///var/lib/pulp//repos/released/F-14/GOLD/Fedora/x86_64/os
Feed Type          	local                    
Feed Certs         	No                       
Consumer Certs     	No                       
Architecture       	x86_64                   
Sync Schedule      	None                     
Packages           	2766                     
Files              	0                        
Distributions      	ks-f14-clone1-x86_64     
Publish            	True                     
Clones             	[]                       
Groups             	['g', 'r', 'p', '2']     
Filters            	[]

Comment 1 Pradeep Kilambi 2011-03-31 20:28:50 UTC
commit fe52339928d61905dc0c654a6962c6cdaa0f326e

$ sudo pulp-admin -u admin -p admin repo clone --id=testpulp --clone_id=f14-clone2 --clone_name=f14-clone1 --feed=parent --groupid=grp2 -F
Repository [testpulp] is being cloned as [f14-clone2]
Clone: Finished
Item Details: 
Rpms: 10/10


$ sudo pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+                    


Id                 	testpulp                 
Name               	testpulp                 
Feed URL           	http://repos.fedorapeople.org/repos/pulp/pulp/fedora-14/x86_64/
Feed Type          	yum                      
Feed Certs         	No                       
Consumer Certs     	No                       
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	10                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	['f14-clone2']
Groups             	None                     
Filters            	[]                                             


Id                 	f14-clone2               
Name               	f14-clone1               
Feed URL           	file:///var/lib/pulp//repos/repos/pulp/pulp/fedora-14/x86_64
Feed Type          	local                    
Feed Certs         	No                       
Consumer Certs     	No                       
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	10                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	['grp2']                 
Filters            	[]

Comment 2 Jeff Ortel 2011-04-01 21:44:43 UTC
build: 0.160

Comment 3 Preethi Thomas 2011-04-08 13:44:04 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.160-1.fc14.noarch



[root@preethi ~]# pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Id                 	f14                      
Name               	f14                      
Feed URL           	http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-14/x86_64/
Feed Type          	yum                      
Feed Certs         	No                       
Consumer Certs     	No                       
Architecture       	x86_64                   
Sync Schedule      	None                     
Packages           	10                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     
Filters            	[]                       


Id                 	f13                      
Name               	f13                      
Feed URL           	http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-13/x86_64/
Feed Type          	yum                      
Feed Certs         	No                       
Consumer Certs     	Yes                      
Architecture       	x86_64                   
Sync Schedule      	None                     
Packages           	10                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	['f13-clone']            
Groups             	None                     
Filters            	[]                       


Id                 	f13-clone                
Name               	f13-clone                
Feed URL           	http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-13/x86_64/
Feed Type          	yum                      
Feed Certs         	No                       
Consumer Certs     	Yes                      
Architecture       	x86_64                   
Sync Schedule      	None                     
Packages           	10                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	['test-grp']             
Filters            	[]

Comment 4 Preethi Thomas 2011-08-16 14:02:22 UTC
Closing with Community Release 15

pulp-0.0.223-4.