publish_repo failures that do not raise an exception are marked as successful
Description of problem:
When a distributor has it's publish_repo method called and the publish report return indicates a failure the task is marked as completing successfully. If the publish_repo method raises an exception the task is marked properly as failed.
+ This bug was cloned from Bugzilla Bug #1186920 +
Ensure that if a publish_report is failed the task is marked as a failure.
#9 Updated by firstname.lastname@example.org over 6 years ago
- Status changed from 5 to 6
[root@mgmt12 puppet]# rpm -qa pulp-server pulp-server-2.6.2-0.2.beta.el6.noarch [root@mgmt12 puppet]# <\pre> task is marked correctly as failed <pre> u'/var/lib/pulp/published/yum/master/yum_distributor/rad-5Client/1432052214.08/c ups-devel-1.3.7-32.el5_11.i386.rpm'"), (u'/var/lib/pulp/published/yum/master/yum_distributor/rad-5Client/1432052214.08/ cyrus-sasl-devel-2.1.22-5.el5.i386.rpm', u'/var/lib/pulp/working/repos/rad-5Client/distributors/yum_distributor/cyrus-sas l-devel-2.1.22-5.el5.i386.rpm', "[Errno 13] Permission denied: u'/var/lib/pulp/published/yum/master/yum_distributor/rad-5Client/1432052214.08/c yrus-sasl-devel-2.1.22-5.el5.i386.rpm'"), (u'/var/lib/pulp/published/yum/master/yum_distributor/rad-5Client/1432052214.08/ sblim-sfcc-devel-2.2.2-51.el5.x86_64.rpm', u'/var/lib/pulp/working/repos/rad-5Client/distributors/yum_distributor/sblim-sfc c-devel-2.2.2-51.el5.x86_64.rpm', "[Errno 13] Permission denied: u'/var/lib/pulp/published/yum/master/yum_distributor/rad-5Client/1432052214.08/s blim-sfcc-devel-2.2.2-51.el5.x86_64.rpm'")] Task Failed /pre> <pre> Operations: publish Resources: rad-5Client (repository) State: Failed Start Time: 2015-05-25T16:04:08Z Finish Time: 2015-05-25T16:04:09Z Task Id: 5b7839f9-9d98-4e80-b8f2-5c5f2ff20eac
Please register to edit this issue