Bug 705394 - repo update fails to update the synch schedule with --start
Summary: repo update fails to update the synch schedule with --start
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: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-05-17 15:11 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 12:08:40 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2011-05-17 15:11:51 UTC
Description of problem:
getting error: operation failed: Exception: update keyword "schedule_start", not-supported when trying to update repo with schedules

Version-Release number of selected component (if applicable):
[root@preethi ~]# rpm -q pulp
pulp-0.0.177-1.fc14.noarch


How reproducible:


Steps to Reproduce:
[root@preethi ~]# pulp-admin repo update --id=repos-pulp-pulp-testing-fedora-14-i386 --interval P1D --start=2011-05-17T11:30:00-0:6:00
error: operation failed: Exception: update keyword "schedule_start", not-supported
[root@preethi ~]# 

  
Actual results:


Expected results:


Additional info:

Comment 1 Preethi Thomas 2011-05-18 16:50:50 UTC
client.log

2011-05-18 13:01:34,657 [ERROR][MainThread] main() @ base.py:216 - error: (500, 'Exception: update keyword "schedule_start", not-supported', 'Traceback (most recent call last):\n  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/base.py", line 53, in report_error\n    return method(self, *args, **kwargs)\n  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/base.py", line 132, in _auth_decorator\n    value = method(self, *args, **kwargs)\n  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/repositories.py", line 300, in PUT\n    repo = api.update(id, delta)\n  File "/usr/lib/python2.7/site-packages/pulp/server/auditing.py", line 199, in _audit\n    result = method(*args, **kwargs)\n  File "/usr/lib/python2.7/site-packages/pulp/server/api/repo.py", line 704, in update\n    \'update keyword "%s", not-supported\' % key')

pulp.log

2011-05-18 13:02:52,147 [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 300, 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_start", not-supported

Comment 2 Jason Connor 2011-05-19 21:04:24 UTC
added checks to NOT pass unused scheduling variables in the update delta
fix pushed in 822343f..69813f0

Comment 3 Jeff Ortel 2011-05-20 22:57:01 UTC
build: 0.179

Comment 4 Preethi Thomas 2011-05-23 12:36:53 UTC
verified
[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-05:00Successfully 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      	2011-05-23T10:00:00-04:00/PT1H
Packages           	11                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	['pulp']                 
Filters            	[]                       
Notes              	{}

Comment 5 Preethi Thomas 2011-08-16 12:08:40 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 6 Preethi Thomas 2011-08-16 12:21:36 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.