Project

Profile

Help

Issue #373

closed

cli does not display any errors when the --export-dir does not exist or don't have the right permissions

Added by pthomas@redhat.com about 9 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
2.6.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Description of problem:

If you run rpm repo export with --export-dir option and use a directory that doesn't exist or apache does not have the right permissions, the cli does not display any errors.

Version-Release number of selected component (if applicable):
[root@pulp-v2-server ~]# rpm -qa pulp-server
pulp-server-2.3.0-0.14.alpha.el6.noarch
[root@pulp-v2-server ~]#

How reproducible:

Steps to Reproduce:
1. Run repo export with --export-dir <dir-not-exist>
2.
3.

Actual results:
[root@pulp-v2-server ~]# pulp-admin rpm repo export run --repo-id SAM --export-dir /tmp/SAM-REPO1
--------------------------------------------------------------------
Publishing Repository [SAM]
--------------------------------------------------------------------

The following publish configuration options will be used:

Export Dir: /tmp/SAM-REPO1

This command may be exited by pressing ctrl+c without affecting the actual
operation on the server.

Expected results:

Additional info:

013-09-25 12:46:28,381 pulp.plugins.pulp_rpm.yum_plugin.metadata:INFO: Metadata generation finished in 0.964037895203 seconds
2013-09-25 12:46:28,385 pulp.server.dispatch.task:INFO: SUCCESS: Task 5021a67a-c0ff-4d94-a66a-6f6750d4e6c2: CallRequest: RepoPublishManager.publish(u'SAM', 'export_distributor', publish_config_override={'export_dir': '/tmp/SAM-REPO'})
2013-09-25 12:51:19,071 pulp.server.managers.repo.publish:ERROR: Exception caught from plugin during publish for repo [SAM]
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pulp/server/managers/repo/publish.py", line 121, in _do_publish
publish_report = distributor_instance.publish_repo(transfer_repo, conduit, call_config)
File "/usr/lib/pulp/plugins/distributors/iso_distributor/distributor.py", line 140, in publish_repo
raise PulpDataException(msg)
PulpDataException: Value for 'export_dir' is not an existing directory: /tmp/SAM-REPO1
2013-09-25 12:51:19,072 pulp.server.dispatch.task:ERROR: Pulp exception occurred: PulpExecutionException
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pulp/server/dispatch/task.py", line 138, in _run
result = call(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/pulp/server/managers/repo/publish.py", line 97, in publish
result = self._do_publish(repo, distributor_id, distributor_instance, transfer_repo, conduit, call_config)
File "/usr/lib/python2.6/site-packages/pulp/server/managers/repo/publish.py", line 121, in _do_publish
publish_report = distributor_instance.publish_repo(transfer_repo, conduit, call_config)
File "/usr/lib/pulp/plugins/distributors/iso_distributor/distributor.py", line 140, in publish_repo
raise PulpDataException(msg)
PulpExecutionException: Pulp exception occurred: PulpExecutionException
2013-09-25 12:51:19,073 pulp.server.dispatch.task:INFO: FAILURE: Task 06461431-6eed-48c3-a905-cadca29b2382: CallRequest: RepoPublishManager.publish(u'SAM', 'export_distributor', publish_config_override={'export_dir': '/tmp/SAM-REPO1'})

+ This bug was cloned from Bugzilla Bug #1012091 +

Also available in: Atom PDF