Bug 706252 - repo update fails to update the synch schedule with --runs
Summary: repo update fails to update the synch schedule with --runs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: pulp-verified
TreeView+ depends on / blocked
 
Reported: 2011-05-19 20:54 UTC by Preethi Thomas
Modified: 2014-03-31 01:39 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 13:59:34 UTC
Embargoed:


Attachments (Terms of Use)

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.


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