Bug 740083

Summary: timeout value accepted in repo sync and repo clone are inconsistent
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: Jason Connor <jconnor>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: mmccune, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 29   
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-09-20 21:10:01 UTC
Description of problem:

see below that clone accepts year & month values while sync doesn't.

[root@preethi ~]# pulp-admin -u admin -p admin repo clone  --id=f15 --clone_id=f15-clone --feed=none --timeout=P2Y3M4DT5H6M -F
Repository [f15] is being cloned as [f15-clone]
Clone: Finished
Item Details: 
Tree_Files: 5/5
Rpms: 2935/2935

[root@preethi ~]# pulp-admin -u admin -p admin repo sync --id=f15 --timeout=P2Y3M4DT5H6M -F
error: operation failed: Timeouts specifying months or years are not supported P2Y3M4DT5H6M
[root@preethi ~]# pulp-admin -u admin -p admin repo sync --id=f15 --timeout=P2DT5H6M -F
Sync for repository f15 started
Sync: Finished
1/2941 new items downloaded
2940/2941 existing items processed

Item Details: 
Tree_Files: 6/6
Rpms: 2935/2935


Version-Release number of selected component (if applicable):
[root@katello-test ~]# rpm -q pulp
pulp-0.0.232-1.el6.noarch





Additional info:

Comment 1 Jason Connor 2011-10-11 05:06:19 UTC
added same check in clone as we have for sync, but will now error out if a month or year is specified in the timeout

Comment 2 Jeff Ortel 2011-10-13 00:49:21 UTC
build: 0.238

Comment 3 Preethi Thomas 2011-10-13 19:07:06 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.238-1.fc15.noarch


[root@preethi ~]# pulp-admin -u admin -p admin repo clone  --id=f14 --clone_id=f14-clone --feed=none --timeout=P2Y3M4DT5H6M -F
Timeout may not contain months or years
[root@preethi ~]# 
[root@preethi ~]# pulp-admin -u admin -p admin repo clone  --id=f14 --clone_id=f14-clone --feed=none --timeout=P2M4DT5H6M -F
Timeout may not contain months or years
[root@preethi ~]# pulp-admin -u admin -p admin repo clone  --id=f14 --clone_id=f14-clone --feed=none --timeout=P2Y4DT5H6M -F
Timeout may not contain months or years
[root@preethi ~]# 
root@preethi ~]# pulp-admin -u admin -p admin repo clone  --id=f14 --clone_id=f14-clone --feed=none --timeout=P2DT5H6M -F
Repository [f14] is being cloned as [f14-clone]
Clone: Finished
Item Details: 
Tree_File: 6/6
Rpm: 2766/2766

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

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