Bug 752884 - koji build --scratch f17 URL failed with a true URL
Summary: koji build --scratch f17 URL failed with a true URL
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: koji
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Dennis Gilmore
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-10 17:51 UTC by Clément DAVID
Modified: 2013-01-10 06:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-10 09:46:23 UTC
Type: ---


Attachments (Terms of Use)

Description Clément DAVID 2011-11-10 17:51:48 UTC
Description of problem:
On a package review, I push first my package to the @fedorapeople.org and then I build it with koji CLI but I'm unable to use an http URL to the src.rpm file. I have to re-upload to the fedora infrastructure again.


Version-Release number of selected component (if applicable):
koji-1.6.0-2.fc15.noarch

How reproducible:
always

To Reproduce:
$ koji build --scratch f17 http://davidcl.fedorapeople.org/scilab-5.3.3-3.fc16.src.rpm
Created task: 3505189
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=3505189
Watching tasks (this may be safely interrupted)...
3505189 build (f17, /scilab-5.3.3-3.fc16.src.rp:http://davidcl.fedorapeople.org/scilab-5.3.3-3.fc16.src.rpm): free
3505189 build (f17, /scilab-5.3.3-3.fc16.src.rp:http://davidcl.fedorapeople.org/scilab-5.3.3-3.fc16.src.rpm): free -> open (x86-15.phx2.fedoraproject.org)
3505189 build (f17, /scilab-5.3.3-3.fc16.src.rp:http://davidcl.fedorapeople.org/scilab-5.3.3-3.fc16.src.rpm): open (x86-15.phx2.fedoraproject.org) -> FAILED: Fault: <Fault 1: 'Traceback (most recent call last):\n  File "/usr/lib/python2.6/site-packages/koji/daemon.py", line 1114, in runTask\n    response = (handler.run(),)\n  File "/usr/lib/python2.6/site-packages/koji/tasks.py", line 146, in run\n    return self.handler(*self.params,**self.opts)\n  File "/usr/sbin/kojid", line 731, in handler\n    h = self.readSRPMHeader(srpm)\n  File "/usr/sbin/kojid", line 802, in readSRPMHeader\n    fo = koji.openRemoteFile(relpath, **opts)\n  File "/usr/lib/python2.6/site-packages/koji/__init__.py", line 1376, in openRemoteFile\n    fo = open(fn)\nIOError: [Errno 2] No such file or directory: \'/mnt/koji/work/http://davidcl.fedorapeople.org/scilab-5.3.3-3.fc16.src.rpm\'\n'>
  0 free  0 open  0 done  1 failed

3505189 build (f17, /scilab-5.3.3-3.fc16.src.rp:http://davidcl.fedorapeople.org/scilab-5.3.3-3.fc16.src.rpm) failed

Comment 1 Jesse Keating 2011-11-10 18:03:42 UTC
Well, there shouldn't be a traceback, however that's not how the URL option works.  Users probably shouldn't be using the URL option directly, it's more for use after a srpm is uploaded to the koji system for the builders to be able to find it.

Comment 2 Mike McLean 2011-11-10 19:07:16 UTC
I suppose we should make the usage info a bit clearer.

-    usage = _("usage: %prog build [options] target URL")
+    usage = _("usage: %prog build [options] target <srpm path or scm url>")

Comment 3 Fedora Admin XMLRPC Client 2012-01-31 12:01:35 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Clément DAVID 2012-12-10 09:46:23 UTC
it seems that this fix has been delivered to f17.


Note You need to log in before you can comment on or make changes to this bug.