http://bugzilla.novell.com/show_bug.cgi?id=590606 http://bugzilla.novell.com/show_bug.cgi?id=590606#c0 Summary: osc/fetch.py does not support authenticated URLs Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: michael_e_brown@dell.com QAContact: adrian@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100216 Fedora/3.5.8-1.fc12 Firefox/3.5.8 "osc build" fails to pull down packages to do a local build. In my local obs instance, I have this URL: http://omb-obs-frontend.us.dell.com/build/Ubuntu:10.04/standard/x86_64/_repo... It requires authentication with a frontend user/pass combo (similar to _buildconfig). Downloading from that URL gets a 401 Unauthorized response, and osc does not retry with authentication. $ osc -vv -t -d -H build ub1004 x86_64 makeurl: http://omb-obs-frontend.us.dell.com ['source', 'home:michael_e_brown:ubuntu', '_meta'] [] -- GET http://omb-obs-frontend.us.dell.com/source/home:michael_e_brown:ubuntu/_meta GET http://omb-obs-frontend.us.dell.com/source/home:michael_e_brown:ubuntu/_meta send: 'GET /source/home:michael_e_brown:ubuntu/_meta HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: omb-obs-frontend.us.dell.com\r\nConnection: close\r\nUser-Agent: osc/0.125.5\r\n\r\n' reply: 'HTTP/1.1 200 OK\r\n' header: Content-Type: text/xml; charset=utf-8 header: ETag: "1afe1103546acc0c4f7f0988acf24d02" header: X-Opensuse-APIVersion: 0.1.1 header: X-Runtime: 0.00153 header: Content-Length: 338 header: Cache-Control: private, max-age=0, must-revalidate header: Connection: close header: Date: Tue, 23 Mar 2010 19:16:30 GMT header: Server: lighttpd/1.4.25 Building srvadmin-omilcore.dsc for ub1004/x86_64 Getting buildinfo from server and store to /home/michael_e_brown/suse/home:michael_e_brown:ubuntu/srvadmin-omilcore/.osc/_buildinfo-ub1004-x86_64.xml makeurl: http://omb-obs-frontend.us.dell.com ['build', 'home:michael_e_brown:ubuntu', 'ub1004', 'x86_64', 'srvadmin-omilcore', '_buildinfo'] [] -- POST http://omb-obs-frontend.us.dell.com/build/home:michael_e_brown:ubuntu/ub1004... POST http://omb-obs-frontend.us.dell.com/build/home:michael_e_brown:ubuntu/ub1004... send: 'POST /build/home:michael_e_brown:ubuntu/ub1004/x86_64/srvadmin-omilcore/_buildinfo HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 271\r\nHost: omb-obs-frontend.us.dell.com\r\nContent-Type: application/octet-stream\r\nConnection: close\r\nUser-Agent: osc/0.125.5\r\n\r\n' send: 'Format: 1.0\nSource: srvadmin-omilcore\nBinary: srvadmin-omilcore, srvadmin-omilcore-dev\nArchitecture: all\nVersion: 6.3.0-1\nMaintainer: Brian Thomason <brian.thomason@canonical.com>\nHomepage: http://support.dell.com\nStandards-Version: 3.8.4\nBuild-Depends: debhelper (>> 7)\n' reply: 'HTTP/1.1 401 Unauthorized\r\n' header: Content-Type: application/xml; charset=utf-8 header: WWW-Authenticate: basic realm="Frontend login" header: X-Opensuse-Errorcode: unknown header: X-Runtime: 0.00155 header: Content-Length: 140 header: Cache-Control: no-cache header: Connection: close header: Date: Tue, 23 Mar 2010 19:16:31 GMT header: Server: lighttpd/1.4.25 send: 'POST /build/home:michael_e_brown:ubuntu/ub1004/x86_64/srvadmin-omilcore/_buildinfo HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 271\r\nHost: omb-obs-frontend.us.dell.com\r\nUser-Agent: osc/0.125.5\r\nConnection: close\r\nContent-Type: application/octet-stream\r\nAuthorization: Basic XXXXXXXXXX\r\n\r\n' send: 'Format: 1.0\nSource: srvadmin-omilcore\nBinary: srvadmin-omilcore, srvadmin-omilcore-dev\nArchitecture: all\nVersion: 6.3.0-1\nMaintainer: Brian Thomason <brian.thomason@canonical.com>\nHomepage: http://support.dell.com\nStandards-Version: 3.8.4\nBuild-Depends: debhelper (>> 7)\n' reply: 'HTTP/1.1 200 OK\r\n' header: Content-Type: text/xml header: ETag: "de1a647386caac9541cfdb6eb93e98b7" header: X-Opensuse-APIVersion: 0.1.1 header: Content-Transfer-Encoding: binary header: Content-Disposition: inline header: X-Runtime: 0.54785 header: Content-Length: 25604 header: Cache-Control: private header: Connection: close header: Date: Tue, 23 Mar 2010 19:16:31 GMT header: Server: lighttpd/1.4.25 Getting buildconfig from server and store to /home/michael_e_brown/suse/home:michael_e_brown:ubuntu/srvadmin-omilcore/.osc/_buildconfig-ub1004-x86_64 makeurl: http://omb-obs-frontend.us.dell.com ['build', 'home:michael_e_brown:ubuntu', 'ub1004', '_buildconfig'] [] -- GET http://omb-obs-frontend.us.dell.com/build/home:michael_e_brown:ubuntu/ub1004... GET http://omb-obs-frontend.us.dell.com/build/home:michael_e_brown:ubuntu/ub1004... send: 'GET /build/home:michael_e_brown:ubuntu/ub1004/_buildconfig HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: omb-obs-frontend.us.dell.com\r\nConnection: close\r\nUser-Agent: osc/0.125.5\r\n\r\n' reply: 'HTTP/1.1 401 Unauthorized\r\n' header: Content-Type: application/xml; charset=utf-8 header: WWW-Authenticate: basic realm="Frontend login" header: X-Opensuse-Errorcode: unknown header: X-Runtime: 0.00157 header: Content-Length: 140 header: Cache-Control: no-cache header: Connection: close header: Date: Tue, 23 Mar 2010 19:16:31 GMT header: Server: lighttpd/1.4.25 send: 'GET /build/home:michael_e_brown:ubuntu/ub1004/_buildconfig HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: omb-obs-frontend.us.dell.com\r\nConnection: close\r\nAuthorization: Basic XXXXXXXXXXXXXXXXXX\r\nUser-Agent: osc/0.125.5\r\n\r\n' reply: 'HTTP/1.1 200 OK\r\n' header: Content-Type: text/plain header: ETag: "472fa6b98fb15718569b343406694e6c" header: X-Opensuse-APIVersion: 0.1.1 header: Content-Transfer-Encoding: binary header: Content-Disposition: inline header: X-Runtime: 0.02781 header: Content-Length: 9233 header: Cache-Control: private header: Connection: close header: Date: Tue, 23 Mar 2010 19:16:31 GMT header: Server: lighttpd/1.4.25 Updating cache of required packages 100.0% cache miss. 0/195 dependencies cached. URLs to try for package 'bash': file:///var/tmp/osbuild-packagecache/Ubuntu:10.04/standard/amd64/bash-4.1-1ubuntu2.amd64.deb/ http://omb-obs-repo.us.dell.com//Ubuntu:/10.04/standard/amd64/bash-4.1-1ubun... http://omb-obs-frontend.us.dell.com/build/Ubuntu:10.04/standard/x86_64/_repo... Trying openSUSE Build Service server for bash (Ubuntu:10.04), since it is not on omb-obs-repo.us.dell.com. Trying openSUSE Build Service server for bash (Ubuntu:10.04), since it is not on omb-obs-frontend.us.dell.com. Error: No more mirrors to try. Failed to retrieve bash-4.1-1ubuntu2.amd64.deb from the following locations (in order): file:///var/tmp/osbuild-packagecache/Ubuntu:10.04/standard/amd64/bash-4.1-1ubuntu2.amd64.deb/ http://omb-obs-repo.us.dell.com//Ubuntu:/10.04/standard/amd64/bash-4.1-1ubun... http://omb-obs-frontend.us.dell.com/build/Ubuntu:10.04/standard/x86_64/_repo... Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/osc/babysitter.py", line 46, in run return prg.main() File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 308, in main return self.cmd(args) File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 331, in cmd retval = self.onecmd(argv) File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 447, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 1177, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib/python2.6/site-packages/osc/commandline.py", line 3227, in do_build return osc.build.main(opts, args) File "/usr/lib/python2.6/site-packages/osc/build.py", line 532, in main fetcher.run(bi) File "/usr/lib/python2.6/site-packages/osc/fetch.py", line 143, in run self.fetch(i) File "/usr/lib/python2.6/site-packages/osc/fetch.py", line 91, in fetch sys.exit(1) SystemExit: 1 Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.