Bug 1193131 - Puppet plugin installdistributor publish is displayed as successful when it fails
Summary: Puppet plugin installdistributor publish is displayed as successful when it f...
Keywords:
Status: CLOSED DUPLICATE of bug 1186920
Alias: None
Product: Pulp
Classification: Retired
Component: puppet-support
Version: Master
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: pulp-bugs
QA Contact: pulp-qe-list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-16 15:58 UTC by Dennis Kliban
Modified: 2015-02-16 17:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-16 17:43:14 UTC
Embargoed:


Attachments (Terms of Use)

Description Dennis Kliban 2015-02-16 15:58:32 UTC
The steps to reproduce this are the following:

1. Create directory to publish to 

sudo mkdir -p /etc/puppet/myforges/fakeforge
sudo chown -R apache:apache /etc/puppet/myforges

2. Create repo
pulp-admin puppet repo create --repo-id=fakeforge

3. Download the example puppet module that contains a symlink

wget https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/puppet_symlink/examplecorp-mymodule-0.1.0.tar.gz

4. Upload the example module to the repo

pulp-admin puppet repo uploads upload --file examplecorp-mymodule-0.1.0.tar.gz --repo-id fakeforge

5. Run the following script:

from pulp.common import pic

pic.connect()
pic.POST('/v2/repositories/fakeforge/distributors/', {'distributor_type_id':'puppet_install_distributor', 'distributor_id':'puppet_tmp_install_distributor', 'auto_publish': False, 'distributor_config': {'install_path':'/etc/puppet/myforges/fakeforge'}})

pic.connect()
pic.POST('/pulp/api/v2/repositories/fakeforge/actions/publish/', {'id': "puppet_tmp_install_distributor"})


If the pulp_manage_puppet boolean is turned off this fails.  However, the task is marked as successful anyway.

Comment 1 Dennis Kliban 2015-02-16 17:43:14 UTC

*** This bug has been marked as a duplicate of bug 1186920 ***


Note You need to log in before you can comment on or make changes to this bug.