Bug 706953

Summary: repo schedule start time can not be updated without updating --interval
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Jason Connor <jconnor>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: medium    
Version: unspecifiedCC: mmccune, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 25   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-24 20:14:51 UTC 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-05-23 15:07:25 UTC
Description of problem:


Looks like start time in repo schedule can not be updated  without giving --interval as well. It doesn't error out. In fact it say successfully updated but if you do repo list you can see that it hasn't changed.

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

                

                   



Id                 	fedora-15                
Name               	fedora-15                
Feed URL           	http://download.devel.redhat.com/released/F-15/Beta/Fedora/x86_64/os/
Feed Type          	remote                   
Feed Certs         	CA:No   Cert:No   Key:No
Consumer Certs     	CA:No   Cert:No   Key:No
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	0                        
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     
Filters            	[]                       
Notes              	{}                       



[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo update --id=fedora-15   --start=2011-05-23T10:00:00-05:00
Successfully updated repository [ fedora-15 ]

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

Id                 	fedora-15                
Name               	fedora-15                
Feed URL           	http://download.devel.redhat.com/released/F-15/Beta/Fedora/x86_64/os/
Feed Type          	remote                   
Feed Certs         	CA:No   Cert:No   Key:No
Consumer Certs     	CA:No   Cert:No   Key:No
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	0                        
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     
Filters            	[]                       
Notes              	{}                       



[root@preethi ~]# pulp-admin repo update --id=fedora-15  --interval PT1H --start=2011-05-23T10:00:00-05:00
Successfully updated repository [ fedora-15 ]

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



Id                 	fedora-15                
Name               	fedora-15                
Feed URL           	http://download.devel.redhat.com/released/F-15/Beta/Fedora/x86_64/os/
Feed Type          	remote                   
Feed Certs         	CA:No   Cert:No   Key:No
Consumer Certs     	CA:No   Cert:No   Key:No
Architecture       	noarch                   
Sync Schedule      	2011-05-23T11:00:00-04:00/PT1H
Packages           	0                        
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     
Filters            	[]                       
Notes              	{}

Comment 1 Jason Connor 2011-06-21 01:43:23 UTC
fix pushed in ba548daf4c622f293f4490282b38e421c0cdc282

Comment 2 Jeff Ortel 2011-06-22 21:12:21 UTC
build: 0.196

Comment 3 Preethi Thomas 2011-08-17 19:50:27 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.224-1.fc14.noarch

[root@preethi ~]# pulp-admin repo update --id=f14   --start=2011-08-20T09:10:00-04:00 
Interval required if start specified
[root@preethi ~]#

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

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