Bug 1377780

Summary: Multiple failed tasks with: Importing SRPM into Dist Git failed.
Product: [Community] Copr Reporter: Severin Gehwolf <sgehwolf>
Component: backendAssignee: clime
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: clime
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-21 13:00:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Severin Gehwolf 2016-09-20 15:10:10 UTC
Description of problem:
I've seen a couple of dist-git imports fail today. Example builds are:
https://copr.fedorainfracloud.org/coprs/jerboaa/rh-thermostat16/build/455388/
https://copr.fedorainfracloud.org/coprs/jerboaa/thermostat-latest/build/455452/

Actual results:

2. Task: 455388-master, importing the package: https://copr.fedorainfracloud.org/tmp/tmpghpxDy/thermostat-1.6.6-1.fedora.src.rpm
downloading package https://copr.fedorainfracloud.org/tmp/tmpghpxDy/thermostat-1.6.6-1.fedora.src.rpm
Verifying packagage, getting  name and version.
make sure repos exist: jerboaa/rh-thermostat16/thermostat
importing srpm into the dist-git
repo_dir: /tmp/tmpYA1lhG/thermostat
clone the pkg repository into tmp directory
Checking out a specific branch ssh://copr-dist-git@localhost/jerboaa/rh-thermostat16/thermostat
Running git clone -b master ssh://copr-dist-git@localhost/jerboaa/rh-thermostat16/thermostat --origin origin and logging output

import the source rpm into git and save filenames of sources
Creating repo object from /tmp/tmpYA1lhG/thermostat
Running: rpm -qp --nosignature --qf %{NAME} /tmp/tmp5rThmZ/package.src.rpm
Running: rpm -qpl /tmp/tmp5rThmZ/package.src.rpm
save the source files into lookaside cache
Exception raised during srpm import:
Traceback (most recent call last):
  File "/usr/share/copr/dist_git/dist_git_importer.py", line 529, in do_import
    task.git_hash = self.git_import_srpm(task, fetched_srpm_path)
  File "/usr/share/copr/dist_git/dist_git_importer.py", line 454, in git_import_srpm
    return do_git_srpm_import(self.opts, filepath, task, tmp)
  File "/usr/share/copr/dist_git/srpm_import.py", line 118, in do_git_srpm_import
    raise PackageImportException("Failed to import the source rpm: {}".format(src_filepath))
PackageImportException: Failed to import the source rpm: /tmp/tmp5rThmZ/package.src.rpm
Sending back: 
{"task_id": "455388-master", "error": "srpm_import_failed"}


Expected results:
Import works.

Comment 2 clime 2016-09-21 03:49:01 UTC
Fixed by https://github.com/fedora-copr/copr/commit/b8c767cf. Thanks for the report!

Comment 3 clime 2016-09-21 13:00:53 UTC
New COPR version has been deployed (to be released).