| Summary: | Error retrieving a repo that has a schedule on it | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Jay Dobies <jason.dobies> |
| Component: | z_other | Assignee: | Jason Connor <jconnor> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | urgent | ||
| Version: | unspecified | CC: | mmccune |
| 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:10:47 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 688298 | ||
Added comparisons between tasks with None scheduled_time Fixed in build 0.163. verified [root@preethi ~]# rpm -q pulp pulp-0.0.229-1.fc15.noarch [root@preethi ~]# curl -k -u admin:admin --request GET --header 'accept: application/json' --header 'content-type: application/json' https://localhost/pulp/api/repositories/f14/ {"use_symlinks": false, "package_count": 2766, "distributionid": ["ks-f14-noarch"], "consumer_cert": null, "consumer_ca": null, "filters": [], "id": "f14", "publish": true, "source": {"url": "http://download.devel.redhat.com/released/F-14/GOLD/Fedora/x86_64/os", "type": "remote"}, "groupid": [], "files": "/pulp/api/repositories/f14/files/", "relative_path": "released/F-14/GOLD/Fedora/x86_64/os", "sync_schedule": "PT1H", "arch": "noarch", "feed_cert": null, "name": "f14", "feed_ca": null, "notes": {}, "last_sync": "2011-09-01T11:21:01-04:00", "content_types": "yum", "clone_ids": ["f14-clone-parent"], "checksum_type": "sha256", "_id": "f14", "packages": "/pulp/api/repositories/f14/packages/", "packagegroups": "/pulp/api/repositories/f14/packagegroups/", "packagegroupcategories": "/pulp/api/repositories/f14/packagegroupcategories/", "errata": "/pulp/api/repositories/f14/errata/", "distribution": "/pulp/api/repositories/f14/distribution/", "keys": "/pulp/api/repositories/f14/keys/", "comps": "/pulp/api/repositories/f14/comps/", "uri_ref": "/pulp/api/repositories/f14/", "files_count": 33, "next_scheduled_time": null, "next_scheduled_sync": "2011-09-01T16:18:13Z"}[root@preethi ~]# Pulp v1.0 is released Closed Current Release. |
I created a repo with a sync_schedule and when I called GET on a single repository. pulp-admin repo list works. 2011-04-11 15:43:11,976 [ERROR][Dummy-5] report_error() @ base.py:56 - Traceback (most recent call last): File "/home/jdob/code/pulp/src/pulp/server/webservices/controllers/base.py", line 52, in report_error return method(self, *args, **kwargs) File "/home/jdob/code/pulp/src/pulp/server/webservices/controllers/base.py", line 131, in _auth_decorator value = method(self, *args, **kwargs) File "/home/jdob/code/pulp/src/pulp/server/webservices/controllers/repositories.py", line 273, in GET task = scheduled_sync.find_repo_scheduled_task(repo) File "/home/jdob/code/pulp/src/pulp/server/api/scheduled_sync.py", line 151, in find_repo_scheduled_task for task in async.find_async(method_name='_sync'): File "/home/jdob/code/pulp/src/pulp/server/async.py", line 73, in find_async return _queue.find(**kwargs) File "/home/jdob/code/pulp/src/pulp/server/tasking/taskqueue/queue.py", line 285, in find return self.__storage.find(kwargs) File "/home/jdob/code/pulp/src/pulp/server/tasking/taskqueue/storage.py", line 86, in find for task in reversed(list(self._all_tasks())): File "/home/jdob/code/pulp/src/pulp/server/tasking/taskqueue/storage.py", line 80, in _all_tasks sorted(self.__waiting_tasks[:])) File "/home/jdob/code/pulp/src/pulp/server/tasking/task.py", line 139, in __cmp__ return cmp(self.scheduled_time, other.scheduled_time) TypeError: can't compare datetime.datetime to NoneType