Bug 749811

Summary: repo sync fails to schedule with --start & --interval options
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: 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: 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-10-28 14:24:54 UTC
Description of problem:

Trying to schedule repo sync with --start and --interval is failing

[root@preethi ~]# pulp-admin -u admin -p admin repo sync  --id=f14-new --start=2011-10-29T10:30:00-04:00:00 --interval=P1DT1H5M
error:  error: operation failed: KeyError: 'content_types'
2011-10-28 10:33:30,492 1939:140463046637312: pulp.server.webservices.controllers.decorators:ERROR: decorators:52 Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py", line 48, in report_error
    return method(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py", line 127, in _auth_decorator
    value = method(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/repositories.py", line 529, in PUT
    scheduled_sync.update_repo_schedule(repo, new_schedule, new_options)
  File "/usr/lib/python2.7/site-packages/pulp/server/api/scheduled_sync.py", line 252, in update_repo_schedule
    _add_repo_scheduled_sync_task(repo)
  File "/usr/lib/python2.7/site-packages/pulp/server/api/scheduled_sync.py", line 170, in _add_repo_scheduled_sync_task
    content_type = repo['content_types']
KeyError: 'content_types'

Version-Release number of selected component (if applicable):

[root@preethi ~]# rpm -q pulp
pulp-0.0.243-1.fc15.noarch

Comment 1 Jason Connor 2011-10-28 20:39:48 UTC
added content_types to the fields being fetched from the database

Comment 2 Jeff Ortel 2011-10-28 23:12:48 UTC
build: 0.244

Comment 3 Preethi Thomas 2011-10-31 15:06:18 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.244-1.fc15.noarch
[root@preethi ~]#  pulp-admin -u admin -p admin repo sync  --id=f15 --start=2011-10-31T12:31:00-04:00:00 --interval=P1DT1H5M
Sync schedule for repo [ f15 ] changed to [ 2011-10-31T12:31:00-04:00/P1DT1H5M ]
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]#  pulp-admin -u admin -p admin repo sync  --id=f15 --start=2011-10-31T12:31:00-04:00:00 --interval=P1DT1H5M --runs=2
Sync schedule for repo [ f15 ] changed to [ R2/2011-10-31T12:31:00-04:00/P1DT1H5M ]

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

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