Bug 754743

Summary: repo clone doesn't validate if the value is other than parent/origin/none
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: cperry, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 30   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Preethi Thomas 2011-11-17 15:54:08 UTC
Description of problem:

Needs an error message if the value for --feed is other than parent/origin/none

Looks like it just ignores it now.

[root@preethi ~]# pulp-admin repo clone  --id=pulp --clone_id=pulp-clone --feed=clone -F
Repository [pulp] is being cloned as [pulp-clone]
Clone: Finished
Item Details: 
RPMs: 18/18



[root@preethi ~]# pulp-admin repo clone  --id=pulp --clone_id=pulp-clone --feed=test -F
error:  error: operation failed: A repository with the id, pulp-clone, already exists
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo clone  --id=pulp --clone_id=pulp-clone1 --feed=test -F
Repository [pulp] is being cloned as [pulp-clone1]
Clone: Finished
Item Details: 
RPMs: 18/18


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Sayli Karmarkar 2011-11-18 08:12:08 UTC
$ sudo pulp-admin repo clone --id test1 --clone_id test1-clone-foo --feed foo -F 
error:  error: operation failed: Invalid feed, foo, see --help

Comment 2 Jeff Ortel 2011-11-18 23:23:08 UTC
build: 0.251

Comment 3 Preethi Thomas 2011-11-21 13:12:29 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.251-1.fc15.noarch
[root@preethi ~]# 

[root@preethi ~]#  pulp-admin repo clone  --id=pulp --clone_id=pulp-clone2 --feed=foo -F
error:  error: operation failed: Invalid feed, foo, see --help
[root@preethi ~]#

Comment 4 Preethi Thomas 2012-02-24 20:18:22 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 5 Preethi Thomas 2012-02-24 20:19:01 UTC
Pulp v1.0 is released.