Project

General

Profile

Bug #9733

Puppet module with symlink is not being uploaded, but no error is given.

Added by Leah Fisher over 4 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
Puppet
Target version:
Difficulty:
medium
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

I tried to upload https://forge.puppetlabs.com/ikoula/wp_apache_nfs and https://forge.puppetlabs.com/haraldsk/nfs into my katello puppet module repo. These failed silently as katello told me they were uploaded successfuly.

History

#1 Updated by Justin Sherrill over 4 years ago

Turns out the issue was because the module had a symlink in it and pulp failed to import it with an error. Katello did not indicate there was an error though!

pulp error:

Mar 12 13:40:11 box pulp: pulp_puppet.plugins.importers.importer:ERROR:     sub_dir = _find_file_in_dir(file_or_dir, filename)
Mar 12 13:40:11 box pulp: pulp_puppet.plugins.importers.importer:ERROR:   File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/metadata.py", line 224, in _find_file_in_dir
Mar 12 13:40:11 box pulp: pulp_puppet.plugins.importers.importer:ERROR:     sub_dir = _find_file_in_dir(file_or_dir, filename)
Mar 12 13:40:11 box pulp: pulp_puppet.plugins.importers.importer:ERROR:   File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/metadata.py", line 224, in _find_file_in_dir
Mar 12 13:40:11 box pulp: pulp_puppet.plugins.importers.importer:ERROR:     sub_dir = _find_file_in_dir(file_or_dir, filename)
Mar 12 13:40:11 box pulp: pulp_puppet.plugins.importers.importer:ERROR:   File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/metadata.py", line 224, in _find_file_in_dir
Mar 12 13:40:11 box pulp: pulp_puppet.plugins.importers.importer:ERROR:     sub_dir = _find_file_in_dir(file_or_dir, filename)
Mar 12 13:40:11 box pulp: pulp_puppet.plugins.importers.importer:ERROR:   File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/metadata.py", line 224, in _find_file_in_dir
Mar 12 13:40:11 box pulp: pulp_puppet.plugins.importers.importer:ERROR:     sub_dir = _find_file_in_dir(file_or_dir, filename)
Mar 12 13:40:11 box pulp: pulp_puppet.plugins.importers.importer:ERROR:   File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/metadata.py", line 224, in _find_file_in_dir
Mar 12 13:40:11 box pulp: pulp_puppet.plugins.importers.importer:ERROR:     sub_dir = _find_file_in_dir(file_or_dir, filename)
Mar 12 13:40:11 box pulp: pulp_puppet.plugins.importers.importer:ERROR:   File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/metadata.py", line 218, in _find_file_in_dir
Mar 12 13:40:11 box pulp: pulp_puppet.plugins.importers.importer:ERROR:     for found in os.listdir(dir):
Mar 12 13:40:11 box pulp: pulp_puppet.plugins.importers.importer:ERROR: OSError: [Errno 2] No such file or directory: '/var/lib/pulp/working/repos/Default_Organization-myproduct-puppet/importers/puppet_importer/tmpjod9Rx/haraldsk-nfs-1.1.1/spec/fixtures/modules/nfs/files'
Mar 12 13:40:11 box pulp: celery.worker.job:INFO: Task pulp.server.managers.content.upload.import_uploaded_unit[ef2e3bbc-3202-46ee-83a3-d6d7a31b72d9] succeeded in 0.0985451119996s: {'details': {}, 'success_flag': False, 'summary': ''}

#2 Updated by Eric Helms over 4 years ago

  • Legacy Backlogs Release (now unused) set to 31
  • Triaged changed from No to Yes

#3 Updated by Stephen Benjamin about 4 years ago

  • Legacy Backlogs Release (now unused) changed from 31 to 70

#5 Updated by Justin Sherrill over 3 years ago

  • Legacy Backlogs Release (now unused) changed from 70 to 86

#6 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) changed from 86 to 143

#7 Updated by Justin Sherrill about 3 years ago

  • Subject changed from Puppet module is not being uploaded to Puppet module with symlink is not being uploaded, but no error is given.
  • Category set to Puppet
  • Status changed from New to Resolved
  • Assignee set to Justin Sherrill
  • Difficulty set to medium

Pulp issue with handling modules with a symlink: https://pulp.plan.io/issues/755

In katello 3.1.0 pulp now properly returns errors that katello can parse and we now warn the user. Since this is resolved and there is nothing for katello to do for https://pulp.plan.io/issues/755 I will mark this as resolved.

Also available in: Atom PDF