| Summary: | repo sync fails to schedule with --start & --interval options | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | user-experience | Assignee: | Jason Connor <jconnor> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | 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: | |
added content_types to the fields being fetched from the database build: 0.244 [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 ] Pulp v1.0 is released Closed Current Release. Pulp v1.0 is released. |
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