Project

Profile

Help

Issue #8882

closed

UploadCollectionTestCase.test_collection_upload is failing

Added by dkliban@redhat.com almost 3 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Seeing the following failure in nightly CI:

pulp_smash.exceptions.TaskReportError: ('Task report /pulp/api/v3/tasks/fba54395-4cfc-4aeb-8f16-6c768e288c54/ contains a error: {\'traceback\': \'  File "/usr/local/lib/python3.6/site-packages/rq/worker.py", line 1013, in perform_job\
    rv = job.perform()\
  File "/usr/local/lib/python3.6/site-packages/rq/job.py", line 709, in perform\
    self._result = self._execute()\
  File "/usr/local/lib/python3.6/site-packages/rq/job.py", line 732, in _execute\
    result = self.func(*self.args, **self.kwargs)\
  File "/usr/local/lib/python3.6/site-packages/pulp_ansible/app/tasks/collections.py", line 203, in import_collection\
    artifact_file, filename=filename, file_url=url, logger=user_facing_logger\
  File "/usr/local/lib/python3.6/site-packages/galaxy_importer/collection.py", line 57, in import_collection\
    return _import_collection(file, filename, file_url, logger, cfg)\
  File "/usr/local/lib/python3.6/site-packages/galaxy_importer/collection.py", line 80, in _import_collection\
    data = CollectionLoader(extract_dir, filename, cfg=cfg, logger=logger).load()\
  File "/usr/local/lib/python3.6/site-packages/galaxy_importer/collection.py", line 198, in load\
    self._check_file_manifest(self.path, self.file_manifest, self.file_manifest_file.name)\
  File "/usr/local/lib/python3.6/site-packages/galaxy_importer/collection.py", line 324, in _check_file_manifest\
    msg=err_msg)\
\', \'description\': "Files in the artifact but not the file manifest: [\'plugins\', \'roles/minishift_up_role/handlers\']"}
Full task report: {\'pulp_href\': \'/pulp/api/v3/tasks/fba54395-4cfc-4aeb-8f16-6c768e288c54/\', \'pulp_created\': \'2021-06-09T03:42:21.436036Z\', \'state\': \'failed\', \'name\': \'pulp_ansible.app.tasks.collections.import_collection\', \'logging_cid\': \'408d28be9c7045e4a0e00a4c90ee087a\', \'started_at\': \'2021-06-09T03:42:21.543518Z\', \'finished_at\': \'2021-06-09T03:42:21.595694Z\', \'error\': {\'traceback\': \'  File "/usr/local/lib/python3.6/site-packages/rq/worker.py", line 1013, in perform_job\
    rv = job.perform()\
  File "/usr/local/lib/python3.6/site-packages/rq/job.py", line 709, in perform\
    self._result = self._execute()\
  File "/usr/local/lib/python3.6/site-packages/rq/job.py", line 732, in _execute\
    result = self.func(*self.args, **self.kwargs)\
  File "/usr/local/lib/python3.6/site-packages/pulp_ansible/app/tasks/collections.py", line 203, in import_collection\
    artifact_file, filename=filename, file_url=url, logger=user_facing_logger\
  File "/usr/local/lib/python3.6/site-packages/galaxy_importer/collection.py", line 57, in import_collection\
    return _import_collection(file, filename, file_url, logger, cfg)\
  File "/usr/local/lib/python3.6/site-packages/galaxy_importer/collection.py", line 80, in _import_collection\
    data = CollectionLoader(extract_dir, filename, cfg=cfg, logger=logger).load()\
  File "/usr/local/lib/python3.6/site-packages/galaxy_importer/collection.py", line 198, in load\
    self._check_file_manifest(self.path, self.file_manifest, self.file_manifest_file.name)\
  File "/usr/local/lib/python3.6/site-packages/galaxy_importer/collection.py", line 324, in _check_file_manifest\
    msg=err_msg)\
\', \'description\': "Files in the artifact but not the file manifest: [\'plugins\', \'roles/minishift_up_role/handlers\']"}, \'worker\': \'/pulp/api/v3/workers/b44f48bd-ade9-428e-91b7-a7404b5f8ac9/\', \'parent_task\': None, \'child_tasks\': [], \'task_group\': None, \'progress_reports\': [], \'created_resources\': [], \'reserved_resources_record\': []}', {'pulp_href': '/pulp/api/v3/tasks/fba54395-4cfc-4aeb-8f16-6c768e288c54/', 'pulp_created': '2021-06-09T03:42:21.436036Z', 'state': 'failed', 'name': 'pulp_ansible.app.tasks.collections.import_collection', 'logging_cid': '408d28be9c7045e4a0e00a4c90ee087a', 'started_at': '2021-06-09T03:42:21.543518Z', 'finished_at': '2021-06-09T03:42:21.595694Z', 'error': {'traceback': '  File "/usr/local/lib/python3.6/site-packages/rq/worker.py", line 1013, in perform_job
    rv = job.perform()
  File "/usr/local/lib/python3.6/site-packages/rq/job.py", line 709, in perform
    self._result = self._execute()
  File "/usr/local/lib/python3.6/site-packages/rq/job.py", line 732, in _execute
    result = self.func(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/pulp_ansible/app/tasks/collections.py", line 203, in import_collection
    artifact_file, filename=filename, file_url=url, logger=user_facing_logger
  File "/usr/local/lib/python3.6/site-packages/galaxy_importer/collection.py", line 57, in import_collection
    return _import_collection(file, filename, file_url, logger, cfg)
  File "/usr/local/lib/python3.6/site-packages/galaxy_importer/collection.py", line 80, in _import_collection
    data = CollectionLoader(extract_dir, filename, cfg=cfg, logger=logger).load()
  File "/usr/local/lib/python3.6/site-packages/galaxy_importer/collection.py", line 198, in load
    self._check_file_manifest(self.path, self.file_manifest, self.file_manifest_file.name)
  File "/usr/local/lib/python3.6/site-packages/galaxy_importer/collection.py", line 324, in _check_file_manifest
    msg=err_msg)
', 'description': "Files in the artifact but not the file manifest: ['plugins', 'roles/minishift_up_role/handlers']"}, 'worker': '/pulp/api/v3/workers/b44f48bd-ade9-428e-91b7-a7404b5f8ac9/', 'parent_task': None, 'child_tasks': [], 'task_group': None, 'progress_reports': [], 'created_resources': [], 'reserved_resources_record': []})
Actions #1

Updated by bmbouter almost 3 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bmbouter
Actions #2

Updated by pulpbot almost 3 years ago

  • Status changed from ASSIGNED to POST

Added by bmbouter almost 3 years ago

Revision 9d67e70c | View on GitHub

Fixes a broken test

A test was broken due to increased validation added to the galaxy-importer dependnecy. Although that validation hasn't been released, it was causing our tests to fail which use the master branch of galaxy-importer.

This switches the collection being uploaded in the test to one which passes the galaxy-importer validation requirements.

closes #8882

Actions #3

Updated by bmbouter almost 3 years ago

  • Status changed from POST to MODIFIED

Added by bmbouter over 2 years ago

Revision b0df341f | View on GitHub

Fixes a broken test

A test was broken due to increased validation added to the galaxy-importer dependnecy. Although that validation hasn't been released, it was causing our tests to fail which use the master branch of galaxy-importer.

This switches the collection being uploaded in the test to one which passes the galaxy-importer validation requirements.

closes #8882

(cherry picked from commit 9d67e70c3ae6bc1826be2394b3f3afa3c4291e35)

Actions #4

Updated by fao89 over 2 years ago

  • Sprint/Milestone set to 0.9.0
Actions #5

Updated by pulpbot over 2 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF