I have a newly installed instance of 2.4.0 on centos6 after following the install docs. I can use pulp-admin to create a repo but I can't sync it. Here's what I'm seeing...
# pulp-admin rpm repo create --repo-id=c7-os --feed=http://mirror.centos.org/centos/7/os/x86_64/ Successfully created repository [c7-os] output from: server_calls.log ... 2014-09-17 19:19:33,717 - INFO - POST request to /pulp/api/v2/repositories/ with parameters {"display_name": null, "description": null, "distributors": [{"distributor_id": "yum_distributor", "auto_publish": true, "distributor_config": {"http": false, "relative_url": "/centos/7/os/x86_64/", "https": true}, "distributor_type_id": "yum_distributor"}, {"distributor_id": "export_distributor", "auto_publish": false, "distributor_config": {"http": false, "https": true}, "distributor_type_id": "export_distributor"}], "notes": {"_repo-type": "rpm-repo"}, "importer_type_id": "yum_importer", "importer_config": {"feed": "http://mirror.centos.org/centos/7/os/x86_64/"}, "id": "c7-os"} 2014-09-17 19:19:33,717 - INFO - Response status : 201 2014-09-17 19:19:33,717 - INFO - Response body : { "scratchpad": {}, "display_name": "c7-os", "description": null, "_ns": "repos", "notes": { "_repo-type": "rpm-repo" }, "content_unit_counts": {}, "_id": { "$oid": "5419dec5365b0dae6bfb5e5c" }, "id": "c7-os", "_href": "/pulp/api/v2/repositories/c7-os/" } Ok, all is well... seemingly. # pulp-admin rpm repo sync run --repo-id=c7-os +----------------------------------------------------------------------+ Synchronizing Repository [c7-os] +----------------------------------------------------------------------+ This command may be exited via ctrl+c without affecting the request. Task Failed Missing resource(s): resource_id=c7-os output from: server_calls.log ... 2014-09-17 19:22:06,318 - INFO - POST request to /pulp/api/v2/tasks/search/ with parameters {"criteria": {"filters": {"state": {"$nin": ["finish ed", "error", "canceled", "skipped"]}, "tags": {"$all": ["pulp:repository:c7-os", "pulp:action:sync"]}}}} 2014-09-17 19:22:06,318 - INFO - Response status : 200 2014-09-17 19:22:06,318 - INFO - Response body : [] 2014-09-17 19:22:06,972 - INFO - POST request to /pulp/api/v2/repositories/c7-os/actions/sync/ with parameters {"override_config": null} 2014-09-17 19:22:06,972 - INFO - Response status : 202 2014-09-17 19:22:06,972 - INFO - Response body : { "spawned_tasks": [ { "_href": "/pulp/api/v2/tasks/2f3d66f2-d23b-4a39-81f7-9cb8f07d4fd0/", "task_id": "2f3d66f2-d23b-4a39-81f7-9cb8f07d4fd0" } ], "result": null, "error": null } 2014-09-17 19:22:08,008 - INFO - GET request to /pulp/api/v2/tasks/2f3d66f2-d23b-4a39-81f7-9cb8f07d4fd0/ with parameters None 2014-09-17 19:22:08,008 - INFO - Response status : 200 2014-09-17 19:22:08,009 - INFO - Response body : { "exception": null, "task_type": "pulp.server.tasks.repository.sync_with_auto_publish", "_href": "/pulp/api/v2/tasks/2f3d66f2-d23b-4a39-81f7-9cb8f07d4fd0/", "task_id": "2f3d66f2-d23b-4a39-81f7-9cb8f07d4fd0", "tags": [ "pulp:repository:c7-os", "pulp:action:sync" ], "finish_time": "2014-09-17T19:22:07Z", "_ns": "task_status", "start_time": "2014-09-17T19:22:07Z", "traceback": "Traceback (most recent call last):\n File \"/usr/lib/python2.6/site-packages/celery/app/trace.py\", line 240, in trace_task\n R = retval = fun(*args, **kwargs)\n File \"/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py\", line 306, in __call__\n return super(Task, self).__call__(*args, **kwargs)\n File \"/usr/lib/python2.6/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n return self.run(*args, **kwargs)\n File \"/usr/lib/python2.6/site-packages/pulp/server/tasks/repository.py\", line 210, in sync_with_auto_publish\n sync_result = managers.repo_sync_manager().sync(repo_id, sync_config_override=overrides)\n File \"/usr/lib/python2.6/site-packages/pulp/server/managers/repo/sync.py\", line 90, in sync\n raise MissingResource(repo_id)\nMissingResource: Missing resource(s): resource_id=c7-os\n", "spawned_tasks": [], "progress_report": {}, "queue": "[email protected]", "state": "error", "result": null, "error": { "code": "PLP0009", "data": { "resources": { "resource_id": "c7-os" } }, "description": "Missing resource(s): resource_id=c7-os", "sub_errors": [] }, "_id": { "$oid": "5419df5e590d2ed381c30fb7" }, "id": "5419df5e365b0dae6bfb5e61" } This all worked pefectly on another host. Any ideas? Thanks, -Jake _______________________________________________ Pulp-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/pulp-list
