Bug 662247 - pulp-admin repo clone should *require* that --clone_id be passed.
Summary: pulp-admin repo clone should *require* that --clone_id be passed.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2010-12-11 00:30 UTC by Todd Sanders
Modified: 2011-07-15 19:32 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-02-17 16:52:15 UTC
Embargoed:


Attachments (Terms of Use)

Description Todd Sanders 2010-12-11 00:30:01 UTC
Description of problem:

*Fedora14
*Pulp v0.109

[ec2-user@ip-10-203-21-224 ~]$ sudo pulp-admin repo clone --id=rhel5-i386
Repository [rhel5-i386] is being cloned as [None]

*Both --help and functionality need to be updated to *require* id of cloned repo -> --clone_id

We should check this on the pulp-client as well.

Comment 1 Pradeep Kilambi 2010-12-22 19:58:50 UTC
commit 2e295b7656e5a4b4f7c72135da2184a37fd20876
Author: Pradeep Kilambi <pkilambi>
Date:   Wed Dec 22 14:58:03 2010 -0500

    662247 - making clone_id a required option

$ sudo pulp-admin -u admin -p admin repo clone  --help
Usage: pulp-admin <options> repo clone <options>

Options:
  -h, --help            show this help message and exit
  --id=ID               repository id (required)
  --clone_id=CLONE_ID   id of cloned repo (required)

$ sudo pulp-admin -u admin -p admin repo clone --id=foo123 
Usage: pulp-admin <options> repo clone <options>

pulp-admin: error: Option --clone_id is required; please see --help

Comment 2 Jay Dobies 2010-12-22 20:56:29 UTC
Fixed in 0.119.

Comment 3 Preethi Thomas 2010-12-23 15:22:13 UTC
verified


[root@pulp ~]# rpm -q pulp
pulp-0.0.119-1.fc14.noarch
[root@pulp ~]# 
[root@pulp ~]# 
[root@pulp ~]# 
[root@pulp ~]# pulp-admin repo clone
Usage: pulp-admin <options> repo clone <options>

pulp-admin: error: Option --id is required; please see --help
[root@pulp ~]# pulp-admin repo clone --help
Usage: pulp-admin <options> repo clone <options>

Options:
  -h, --help            show this help message and exit
  --id=ID               repository id (required)
  --clone_id=CLONE_ID   id of cloned repo (required)
  --clone_name=CLONE_NAME
                        common repository name for cloned repo
  --feed=FEED           feed of cloned_repo: parent/origin/none
  --groupid=GROUPID     a group to which the repository belongs; this is just
                        a string identifier
  --timeout=TIMEOUT     repository clone timeout
  -F, --foreground      clone repository in the foreground
[root@pulp ~]# pulp-admin repo clone --clone_id=test 
Usage: pulp-admin <options> repo clone <options>

pulp-admin: error: Option --id is required; please see --help
[root@pulp ~]# pulp-admin repo clone --id=f13test --clone_name=test --feed=none
Usage: pulp-admin <options> repo clone <options>

pulp-admin: error: Option --clone_id is required; please see --help
[root@pulp ~]#

Comment 4 Preethi Thomas 2011-02-17 16:52:15 UTC
Closing with community release 

pulp-0.0.139-1.fc14.noarch


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