|
|
|
|
|
[root@XXXXXX053 ~]# pulp-admin rpm repo export run --repo-id custom_repo1 --export-dir /test/
|
|
+----------------------------------------------------------------------+
|
|
Publishing Repository [custom_repo1]
|
|
+----------------------------------------------------------------------+
|
|
|
|
The following publish configuration options will be used:
|
|
|
|
Export Dir: /test/
|
|
|
|
|
|
This command may be exited via ctrl+c without affecting the request.
|
|
|
|
|
|
Initializing repo metadata
|
|
[-]
|
|
... completed
|
|
|
|
Publishing Distribution files
|
|
[-]
|
|
... completed
|
|
|
|
Publishing RPMs
|
|
[-]
|
|
... completed
|
|
|
|
Publishing Delta RPMs
|
|
... skipped
|
|
|
|
Publishing Errata
|
|
[-]
|
|
... completed
|
|
|
|
Publishing Comps file
|
|
[-]
|
|
... completed
|
|
|
|
Publishing Metadata.
|
|
[-]
|
|
... completed
|
|
|
|
Closing repo metadata
|
|
[-]
|
|
... completed
|
|
|
|
Generating sqlite files
|
|
... skipped
|
|
|
|
Copying files
|
|
[-]
|
|
... failed
|
|
[Errno 13] Permission denied: '/test/custom_repo1'
|
|
|
|
|
|
Task Failed
|
|
|
|
[Errno 13] Permission denied: '/test/custom_repo1'
|
|
|
|
|
|
|
|
**************************************************************************************************
|
|
|
|
Here i have attached the server_calls.log
|
|
|
|
i have even changed the ownership for /test directory like below
|
|
|
|
drwxrwxrwx. 2 apache apache 6 Feb 27 10:52 test
|
|
|
|
|
|
But still i am getting the permission denied error in server_calls log too.
|
|
|
|
|
|
|
|
2015-02-27 11:23:56,968 - INFO - POST request to /pulp/api/v2/tasks/search/ with parameters {"criteria": {"filters": {"state": {"$nin": ["finished", "error", "canceled", "skipped"]}, "tags": {"$all": ["pulp:repository:custom_repo1", "pulp:action:publish"]}}}}
|
|
2015-02-27 11:23:56,968 - INFO - Response status : 200
|
|
|
|
2015-02-27 11:23:56,969 - INFO - Response body :
|
|
[]
|
|
|
|
2015-02-27 11:23:57,525 - INFO - POST request to /pulp/api/v2/repositories/custom_repo1/actions//publish/ with parameters {"override_config": {"export_dir": "/test/"}, "id": "export_distributor"}
|
|
2015-02-27 11:23:57,525 - INFO - Response status : 202
|
|
|
|
2015-02-27 11:23:57,525 - INFO - Response body :
|
|
{
|
|
"spawned_tasks": [
|
|
{
|
|
"_href": "/pulp/api/v2/tasks/d970010f-4ebd-429a-82da-e84eeb324ed9/",
|
|
"task_id": "d970010f-4ebd-429a-82da-e84eeb324ed9"
|
|
}
|
|
],
|
|
"result": null,
|
|
"error": null
|
|
}
|
|
|
|
2015-02-27 11:23:58,575 - INFO - GET request to /pulp/api/v2/tasks/d970010f-4ebd-429a-82da-e84eeb324ed9/ with parameters None
|
|
2015-02-27 11:23:58,575 - INFO - Response status : 200
|
|
|
|
2015-02-27 11:23:58,575 - INFO - Response body :
|
|
{
|
|
"exception": null,
|
|
"task_type": "pulp.server.managers.repo.publish.publish",
|
|
"_href": "/pulp/api/v2/tasks/d970010f-4ebd-429a-82da-e84eeb324ed9/",
|
|
"task_id": "d970010f-4ebd-429a-82da-e84eeb324ed9",
|
|
"tags": [
|
|
"pulp:repository:custom_repo1",
|
|
"pulp:action:publish"
|
|
],
|
|
"finish_time": "2015-02-27T16:23:57Z",
|
|
"_ns": "task_status",
|
|
"start_time": "2015-02-27T16:23:57Z",
|
|
"traceback": "Traceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 240, in trace_task\n R = retval = fun(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 316, in __call__\n return super(Task, self).__call__(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n return self.run(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/managers/repo/publish.py\", line 98, in publish\n transfer_repo, conduit, call_config)\n File \"/usr/lib/python2.7/site-packages/pulp/server/managers/repo/publish.py\", line 126, in _do_publish\n publish_report = publish_repo(transfer_repo, conduit, call_config)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 471, in wrap_f\n return f(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/export_distributor/distributor.py\", line 136, in publish_repo\n return self._publisher.publish()\n File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 507, in publish\n return self.process_lifecycle()\n File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 456, in process_lifecycle\n super(PluginStep, self).process_lifecycle()\n File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 121, in process_lifecycle\n step.process()\n File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 179, in process\n self._process_block()\n File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 214, in _process_block\n self.process_main()\n File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 847, in process_main\n shutil.copytree(self.source_dir, self.target_dir, symlinks=self.preserve_symlinks)\n File \"/usr/lib64/python2.7/shutil.py\", line 177, in copytree\n os.makedirs(dst)\n File \"/usr/lib64/python2.7/os.py\", line 157, in makedirs\n mkdir(name, mode)\nOSError: [Errno 13] Permission denied: '/test/custom_repo1'\n",
|
|
"spawned_tasks": [],
|
|
"progress_report": {
|
|
"export_distributor": [
|
|
{
|
|
"num_success": 1,
|
|
"description": "Initializing repo metadata",
|
|
"step_type": "initialize_repo_metadata",
|
|
"items_total": 1,
|
|
"state": "FINISHED",
|
|
"error_details": [],
|
|
"num_failures": 0,
|
|
"step_id": "3951881a-8f2b-4ea2-8eb6-6866125344ad",
|
|
"num_processed": 1
|
|
},
|
|
{
|
|
"num_success": 0,
|
|
"description": "Publishing Distribution files",
|
|
"step_type": "distribution",
|
|
"items_total": 0,
|
|
"state": "FINISHED",
|
|
"error_details": [],
|
|
"num_failures": 0,
|
|
"step_id": "43c2661a-e0b7-4b1b-aa94-17a5fa37bbd1",
|
|
"num_processed": 0
|
|
},
|
|
{
|
|
"num_success": 1,
|
|
"description": "Publishing RPMs",
|
|
"step_type": "rpms",
|
|
"items_total": 1,
|
|
"state": "FINISHED",
|
|
"error_details": [],
|
|
"num_failures": 0,
|
|
"step_id": "2996e11f-508b-4e81-a222-8c802c1b9709",
|
|
"num_processed": 1
|
|
},
|
|
{
|
|
"num_success": 0,
|
|
"description": "Publishing Delta RPMs",
|
|
"step_type": "drpms",
|
|
"items_total": 1,
|
|
"state": "SKIPPED",
|
|
"error_details": [],
|
|
"num_failures": 0,
|
|
"step_id": "159c545f-99eb-4ed2-b555-6fa8512c3afd",
|
|
"num_processed": 0
|
|
},
|
|
{
|
|
"num_success": 0,
|
|
"description": "Publishing Errata",
|
|
"step_type": "errata",
|
|
"items_total": 0,
|
|
"state": "FINISHED",
|
|
"error_details": [],
|
|
"num_failures": 0,
|
|
"step_id": "491b3f0c-78dd-4fa4-948a-9c1511b3aa12",
|
|
"num_processed": 0
|
|
},
|
|
{
|
|
"num_success": 0,
|
|
"description": "Publishing Comps file",
|
|
"step_type": "comps",
|
|
"items_total": 0,
|
|
"state": "FINISHED",
|
|
"error_details": [],
|
|
"num_failures": 0,
|
|
"step_id": "0f8cd530-11f4-4358-8fec-354dcb6212af",
|
|
"num_processed": 0
|
|
},
|
|
{
|
|
"num_success": 0,
|
|
"description": "Publishing Metadata.",
|
|
"step_type": "metadata",
|
|
"items_total": 0,
|
|
"state": "FINISHED",
|
|
"error_details": [],
|
|
"num_failures": 0,
|
|
"step_id": "dc087103-6888-4c16-bad0-dc9da0cc6692",
|
|
"num_processed": 0
|
|
},
|
|
{
|
|
"num_success": 1,
|
|
"description": "Closing repo metadata",
|
|
"step_type": "close_repo_metadata",
|
|
"items_total": 1,
|
|
"state": "FINISHED",
|
|
"error_details": [],
|
|
"num_failures": 0,
|
|
"step_id": "18c20ccc-2eab-4970-878c-46a04903b270",
|
|
"num_processed": 1
|
|
},
|
|
{
|
|
"num_success": 0,
|
|
"description": "Generating sqlite files",
|
|
"step_type": "generate sqlite",
|
|
"items_total": 1,
|
|
"state": "SKIPPED",
|
|
"error_details": [],
|
|
"num_failures": 0,
|
|
"step_id": "e3479d17-7969-4184-a345-b067467e517f",
|
|
"num_processed": 0
|
|
},
|
|
{
|
|
"num_success": 0,
|
|
"description": "Copying files",
|
|
"step_type": "save_tar",
|
|
"items_total": 1,
|
|
"state": "FAILED",
|
|
"error_details": [
|
|
{
|
|
"traceback": " File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 179, in process\n self._process_block()\n\n File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 214, in _process_block\n self.process_main()\n\n File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 847, in process_main\n shutil.copytree(self.source_dir, self.target_dir, symlinks=self.preserve_symlinks)\n\n File \"/usr/lib64/python2.7/shutil.py\", line 177, in copytree\n os.makedirs(dst)\n\n File \"/usr/lib64/python2.7/os.py\", line 157, in makedirs\n mkdir(name, mode)\n",
|
|
"error": "[Errno 13] Permission denied: '/test/custom_repo1'"
|
|
}
|
|
],
|
|
"num_failures": 1,
|
|
"step_id": "1ca263e7-5c3d-4b6a-b310-e96022f0f1a4",
|
|
"num_processed": 1
|
|
},
|
|
{
|
|
"num_success": 0,
|
|
"description": "Writing Listings File",
|
|
"step_type": "initialize_repo_metadata",
|
|
"items_total": 1,
|
|
"state": "NOT_STARTED",
|
|
"error_details": [],
|
|
"num_failures": 0,
|
|
"step_id": "8f210f1b-4779-4bd7-9b97-80ad1188abf0",
|
|
"num_processed": 0
|
|
}
|
|
]
|
|
},
|
|
"queue": "reserved_resource_worker-1@XXXXXX053.test.com.dq",
|
|
"state": "error",
|
|
"result": null,
|
|
"error": {
|
|
"code": "PLP0000",
|
|
"data": {},
|
|
"description": "[Errno 13] Permission denied: '/test/custom_repo1'",
|
|
"sub_errors": []
|
|
|
|
|
|
},
|
|
"_id": {
|
|
"$oid": "54f09a1dd107b7684fe11c6c"
|
|
},
|
|
"id": "54f09a1d58fd0f07ff6a3ec8"
|
|
}
|
|
|
|
*******************************************************************************************
|
|
|
|
|
|
|
|
|
|
However now i have created the directory called export inside /var/lib/pulp/ and changed the ownership to apache:apache.Now if i run export command pointing to this directory,only rpm's are getting downloaded instead of single ISO file.
|
|
|
|
[root@XXXXXX053 pulp]# pulp-admin rpm repo export run --repo-id custom_repo1 --export-dir /var/lib/pulp/export/
|
|
+----------------------------------------------------------------------+
|
|
Publishing Repository [custom_repo1]
|
|
+----------------------------------------------------------------------+
|
|
|
|
The following publish configuration options will be used:
|
|
|
|
Export Dir: /var/lib/pulp/export/
|
|
|
|
|
|
This command may be exited via ctrl+c without affecting the request.
|
|
|
|
|
|
Initializing repo metadata
|
|
[-]
|
|
... completed
|
|
|
|
Publishing Distribution files
|
|
[-]
|
|
... completed
|
|
|
|
Publishing RPMs
|
|
[-]
|
|
... completed
|
|
|
|
Publishing Delta RPMs
|
|
... skipped
|
|
|
|
Publishing Errata
|
|
[-]
|
|
... completed
|
|
|
|
Publishing Comps file
|
|
[-]
|
|
... completed
|
|
|
|
Publishing Metadata.
|
|
[-]
|
|
... completed
|
|
|
|
Closing repo metadata
|
|
[-]
|
|
... completed
|
|
|
|
Generating sqlite files
|
|
... skipped
|
|
|
|
Copying files
|
|
[-]
|
|
... completed
|
|
|
|
Writing Listings File
|
|
[-]
|
|
... completed
|
|
|
|
|
|
Task Succeeded
|
|
|
|
|
|
*****************************************************************************************
|
|
|
|
|
|
Another point i noticed is if we give different path for export,then rpms are getting downloaded instead of single ISO file.
|
|
|
|
[root@XXXXXX053 custom_repo1]# pwd
|
|
/var/lib/pulp/export/custom_repo1
|
|
[root@XXXXXX053 custom_repo1]# ls -ltr
|
|
total 1100
|
|
-rw-r--r--. 1 apache apache 1122292 Feb 25 16:41 engrampa-1.8.1-1.el7.x86_64.rpm
|
|
drwxr-x---. 2 apache apache 4096 Feb 27 11:36 repodata
|
|
[root@XXXXXX053 custom_repo1]#
|
|
|
|
|
|
|
|
|