Bug 754743 - repo clone doesn't validate if the value is other than parent/origin/none
Summary: repo clone doesn't validate if the value is other than parent/origin/none
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 30
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-17 15:54 UTC by Preethi Thomas
Modified: 2015-03-23 01:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

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.


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