| Summary: | repo create of local repo with schedule error | ||
|---|---|---|---|
| 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: | 1.0.0 | CC: | mmccune, skarmark |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-24 20:15:36 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
It looks like the code has changed since this bug has been filed. I now get the following message: operation failed: PulpException: Cannot add schedule to repository without sync source build: 0.255 verified [root@preethi ~]# rpm -q pulp pulp-0.0.255-1.fc15.noarch [root@preethi ~]# [root@preethi ~]# pulp-admin repo sync --id=test-local-interval1 --interval=PT1H --start=2011-12-22T09:00:00-06:00 error: error: operation failed: PulpException: Cannot add schedule to repository without sync source [root@preethi ~]# Pulp v1.0 is released Closed Current Release. Pulp v1.0 is released. |
Description of problem: I am not sure if the local repos are supposed to have schedules. But currently it gives an error but still continue to create the repo with the schedule provided Version-Release number of selected component (if applicable): 178 How reproducible: [root@preethi ~]# pulp-admin repo create --id=test-local-interval1 --interval=PT1H --start=2011-05-20T00:02:00-06:00 error: operation failed: TypeError: 'NoneType' object is not subscriptable 2011-05-20 09:46:39,168 [WARNING][Dummy-2] __init__() @ scheduler.py:124 - IntervalScheduler created with start time more than one interval in the past: 2011-05-20 00:02:00-06:00, 1:00:00 2011-05-20 09:46:39,169 [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 218, in POST notes=repo_data.get('notes', None)) 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 217, in create update_repo_schedule(r, sync_schedule) File "/usr/lib/python2.7/site-packages/pulp/server/api/scheduled_sync.py", line 151, in update_repo_schedule _add_repo_scheduled_sync_task(repo) File "/usr/lib/python2.7/site-packages/pulp/server/api/scheduled_sync.py", line 78, in _add_repo_scheduled_sync_task synchronizer = api.get_synchronizer(repo['source']['type']) TypeError: 'NoneType' object is not subscriptable [root@preethi ~]# pulp-admin repo list +------------------------------------------+ List of Available Repositories +------------------------------------------+ Id test-local-interval1 Name test-local-interval1 Feed URL None Feed Type None Feed Certs CA:No Cert:No Key:No Consumer Certs CA:No Cert:No Key:No Architecture noarch Sync Schedule 2011-05-20T00:02:00-06:00/PT1H Packages 0 Files 0 Distributions None Publish False Clones [] Groups None Filters [] Notes {}