Actions
Issue #815
closedpublishing with puppet_distributor fails
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:
Description
I uploaded https://forgeapi.puppetlabs.com/v3/files/puppetlabs-apache-1.4.0.tar.gz to my puppet repo. Then I ran following command:
pulp-admin puppet repo publish run --repo-id myforge2
This resulted in
Mar 25 16:04:02 localhost pulp[20267]: pulp_puppet.plugins.distributors.publish:INFO: Beginning publish for repository <myforge2>
Mar 25 16:04:02 localhost pulp[20267]: pulp_puppet.plugins.distributors.publish:INFO: Initializing build directory for repository <myforge2>
Mar 25 16:04:02 localhost pulp[20267]: pulp_puppet.plugins.distributors.publish:INFO: Creating symlinks for modules in repository <myforge2>
Mar 25 16:04:02 localhost pulp[20267]: pulp_puppet.plugins.distributors.publish:INFO: Generating metadata for repository <myforge2>
Mar 25 16:04:02 localhost pulp[20267]: pulp_puppet.plugins.distributors.publish:ERROR: (20267-61632) Exception during metadata generation step for repository <myforge2>
Mar 25 16:04:02 localhost pulp[20267]: pulp_puppet.plugins.distributors.publish:ERROR: (20267-61632) Traceback (most recent call last):
Mar 25 16:04:02 localhost pulp[20267]: pulp_puppet.plugins.distributors.publish:ERROR: (20267-61632) File "/home/dkliban/src/pulp_puppet/pulp_puppet_plugins/pulp_puppet/plugins/distributors/publish.py", line 138, in _metadata_step
Mar 25 16:04:02 localhost pulp[20267]: pulp_puppet.plugins.distributors.publish:ERROR: (20267-61632) self._generate_dependency_data(modules)
Mar 25 16:04:02 localhost pulp[20267]: pulp_puppet.plugins.distributors.publish:ERROR: (20267-61632) File "/home/dkliban/src/pulp_puppet/pulp_puppet_plugins/pulp_puppet/plugins/distributors/publish.py", line 319, in _generate_dependency_data
Mar 25 16:04:02 localhost pulp[20267]: pulp_puppet.plugins.distributors.publish:ERROR: (20267-61632) if key in db:
Mar 25 16:04:02 localhost pulp[20267]: pulp_puppet.plugins.distributors.publish:ERROR: (20267-61632) TypeError: gdbm key must be string, not unicode
Mar 25 16:04:02 localhost pulp[20267]: pulp.server.managers.repo.publish:INFO: publish failed for repo [myforge2] with distributor ID [puppet_distributor]
Actions
Fixes #815 - db is not a dict as flake8 assumed