Project

Profile

Help

Issue #755

closed

Uploading puppet module that contains symlink throws error

Added by jsherril@redhat.com over 9 years ago. Updated over 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.6 Beta
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Uploading fails of version 1.1.1 of this module: https://forge.puppetlabs.com/haraldsk/nfs

It seems that it contains a symlink at /spec/fixtures/modules/nfs/files and for some reason pulp isn't handling this properly

Here is the error:

[Errno 2] No such file or directory: '/var/lib/pulp/working/repos/Default_Organization-mytestproduct-puppet/importers/puppet_importer/tmptUswYk/h
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/importer.py", line 93, in upload_unit
    report = upload.handle_uploaded_unit(repo, type_id, unit_key, metadata, file_path, conduit)
  File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/upload.py", line 53, in handle_uploaded_unit
    extracted_data = metadata_parser.extract_metadata(file_path, rep
_dir, initial_module)
  File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/metadata.py", line 80, in extract_metadata
    metadata = _extract_non_standard_json(filename, temp_dir)
  File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/metadata.py", line 177, in _extract_non_standard_json
    metadata_file_dir = _find_file_in_dir(extraction_dir, constants.MODULE_METADATA_FILENAME)
  File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/metadata.py", line 224, in _find_file_in_dir
    sub_dir = _find_file_in_dir(file_or_dir, filename)
  File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/metadata.py", line 224, in _find_file_in_dir
    sub_dir = _find_file_in_dir(file_or_dir, filename)
  File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/metadata.py", line 224, in _find_file_in_dir
    sub_dir = _find_file_in_dir(file_or_dir, filename)
  File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/metadata.py", line 224, in _find_file_in_dir
    sub_dir = _find_file_in_dir(file_or_dir, filename)
  File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/metadata.py", line 224, in _find_file_in_dir
    sub_dir = _find_file_in_dir(file_or_dir, filename)
  File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/metadata.py", line 224, in _find_file_in_dir
    sub_dir = _find_file_in_dir(file_or_dir, filename)
  File "/usr/lib/python2.6/site-packages/pulp_puppet/plugins/importers/metadata.py", line 218, in _find_file_in_dir
    for found in os.listdir(dir):
OSError: [Errno 2] No such file or directory: '/var/lib/pulp/working/repos/Default_Organization-mytestproduct-puppet/importers/puppet_importer/tmptUswYk/haraldsk-nfs-1.1.1/spec/fixtures/modules/nfs/files'
Mar 12 14:25:58 abed pulp: celery.worker.job:INFO: Task pulp.server.managers.content.upload.import_uploaded_unit[3f32c559-c54b-4199-abf1-02cdea5871f7] succeeded in 0.422023631632s: {'details': {}, 'success_flag': False, 'summary': ''}
Actions #1

Updated by dkliban@redhat.com over 9 years ago

  • Version set to 2.6 Beta
Actions #2

Updated by dkliban@redhat.com over 9 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com
  • Severity set to Medium
  • Triaged changed from No to Yes
Actions #3

Updated by bmbouter over 9 years ago

  • Severity changed from Medium to 2. Medium
Actions #4

Updated by dkliban@redhat.com about 9 years ago

  • Status changed from ASSIGNED to NEW
Actions #5

Updated by dkliban@redhat.com almost 8 years ago

  • Assignee deleted (dkliban@redhat.com)
Actions #6

Updated by bmbouter over 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #7

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF