Bug 749811 - repo sync fails to schedule with --start & --interval options
Summary: repo sync fails to schedule with --start & --interval options
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-28 14:24 UTC by Preethi Thomas
Modified: 2014-03-31 01:39 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

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.


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