Bug 706252

Summary: repo update fails to update the synch schedule with --runs
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: unspecified    
Version: unspecifiedCC: mmccune
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 13:59:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 641987    

Description Preethi Thomas 2011-05-19 20:54:28 UTC
Description of problem:

repo update fails to update the synch schedule with --runs


[root@preethi ~]# pulp-admin repo update  --id=repos1-pulp-pulp-testing-fedora-14-i386 --feed=http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-14/i386 --interval PT2H --runs 5
error: operation failed: Exception: update keyword "schedule_runs", not-supported



2011-05-19 17:06:08,107 [ERROR][Dummy-2] report_error() @ base.py:57 - Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/base.py", line 53, in report_error
    return method(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/base.py", line 132, in _auth_decorator
    value = method(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/repositories.py", line 304, in PUT
    repo = api.update(id, delta)
  File "/usr/lib/python2.7/site-packages/pulp/server/auditing.py", line 199, in _audit
    result = method(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/server/api/repo.py", line 704, in update
    'update keyword "%s", not-supported' % key
Exception: update keyword "schedule_runs", not-supported

Comment 1 Jason Connor 2011-05-20 15:50:35 UTC
added checks to NOT pass unused scheduling variables in the update delta
fix pushed in 822343f..69813f0

Comment 2 Jeff Ortel 2011-05-20 22:57:00 UTC
build: 0.179

Comment 3 Preethi Thomas 2011-05-23 12:38:37 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.179-1.fc14.noarch
[root@preethi ~]# pulp-admin repo update --id=repos-pulp-pulp-testing-fedora-14-x86_64 --feed= --interval PT1H --start=2011-05-23T09:00-06:00 --runs=2
Successfully updated repository [ repos-pulp-pulp-testing-fedora-14-x86_64 ]

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

Id                 	repos-pulp-pulp-testing-fedora-14-i386
Name               	repos-pulp-pulp-testing-fedora-14-i386
Feed URL           	http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-14/i386
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             	['pulp']                 
Filters            	[]                       
Notes              	{}                       


Id                 	repos-pulp-pulp-testing-fedora-14-x86_64
Name               	repos-pulp-pulp-testing-fedora-14-x86_64
Feed URL           	http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-14/x86_64
Feed Type          	remote                   
Feed Certs         	CA:No   Cert:No   Key:No
Consumer Certs     	CA:No   Cert:No   Key:No
Architecture       	noarch                   
Sync Schedule      	R2/2011-05-23T11:00:00-04:00/PT1H
Packages           	11                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	['pulp']                 
Filters            	[]                       
Notes              	{}

Comment 4 Preethi Thomas 2011-08-16 13:59:34 UTC
Closing with Community Release 15

pulp-0.0.223-4.