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]
Updated by dkliban@redhat.com almost 10 years ago
The problem was introduced here https://github.com/pulp/pulp_puppet/commit/6e3ea608268541b0b9e0367dcefc773fb542c016#diff-c4e837f262081e33d82d042221db3b20L321
I will revert the change and add a flag to tell flake8 to ignore this line. This object is not a dictionary, which is what flake8 assumes it is. As a result flake8 suggests that has_key() is deprecated.
Updated by dkliban@redhat.com almost 10 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dkliban@redhat.com
- Triaged changed from No to Yes
- Platform Release set to master
- Tags Easy Fix added
Added by dkliban@redhat.com almost 10 years ago
Added by dkliban@redhat.com almost 10 years ago
Updated by dkliban@redhat.com almost 10 years ago
- Status changed from ASSIGNED to MODIFIED
- % Done changed from 0 to 100
Applied in changeset 55be4f38d41b6f8c5283a68435b8b724dc21b3a3.
Updated by dkliban@redhat.com almost 10 years ago
Applied in changeset 7504b90dae7924d800fee818f7bc32b1c5e1641b.
Updated by rbarlow over 9 years ago
- Platform Release changed from master to 2.7.0
Updated by dkliban@redhat.com over 9 years ago
- Status changed from MODIFIED to 5
Updated by dkliban@redhat.com about 9 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Actions
Fixes #815 - db is not a dict as flake8 assumed