Bug 670694
| Summary: | Repo created with REST api is not usable | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Mike McCune <mmccune> |
| Component: | z_other | Assignee: | Jason Connor <jconnor> |
| Status: | CLOSED DUPLICATE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| 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: | 2011-01-19 01:22:18 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 670610 *** |
If you POST a new Repository JSON to Pulp's REST API and then attempt to sync the API with the CLI or API you get: 011-01-18 16:55:45,485 [ERROR][Thread-27] failed() @ task.py:207 - Task id:d87a44ab-2366-11e0-a518-0019d1630404, method_name:_sync: Traceback (most recent call last): File "/home/mmccune/devel/pulp/src/pulp/server/tasking/task.py", line 131, in run result = self.callable(*self.args, **self.kwargs) File "/home/mmccune/devel/pulp/src/pulp/server/api/repo.py", line 1170, in _sync synchronizer) File "/home/mmccune/devel/pulp/src/pulp/server/api/repo_sync.py", line 93, in sync repo_dir = synchronizer.sync(repo, repo_source, skip_dict, progress_callback) File "/home/mmccune/devel/pulp/src/pulp/server/api/repo_sync.py", line 385, in sync report = self.yum_repo_grinder.fetchYumRepo(store_path, callback=progress_callback) File "/home/mmccune/devel/grinder/src/grinder/RepoFetch.py", line 294, in fetchYumRepo if not self.skip.has_key('packages') or self.skip['packages'] != 1: AttributeError: 'NoneType' object has no attribute 'has_key' I think the issue is the CLI specifies the skip property but my API call doesn't.