Bug ID 937640
Summary cryptic error from osc
Classification openSUSE
Product openSUSE.org
Version unspecified
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component BuildService
Assignee bnc-team-screening@forge.provo.novell.com
Reporter fdmanana@suse.com
QA Contact adrian@suse.com
Found By ---
Blocker ---

First time filling a bug report/help request for osc, so I'm not sure if this
is the correct bugzilla category for it, and apologies if it's not.

I'm trying to branch out SLE12's btrfsprogs package with osc like this:

fdmanana 10:25:02 ~/tmp > osc -A https://build.suse.de/ search btrfsprogs
No matches found for 'btrfsprogs' in projects
####################################################################
matches for 'btrfsprogs' in packages:

# Project                                      # Package
(...)
SUSE:SLE-12:GA                                 btrfsprogs
SUSE:SLE-12:Rings:1-MinimalX                   btrfsprogs
SUSE:SLE-12:Update                             btrfsprogs
(...)


fdmanana 10:26:20 ~/tmp > osc -A https://build.suse.de/ bco SUSE:SLE-12:Update
btrfsprogs
Traceback (most recent call last):
  File "/usr/bin/osc", line 26, in <module>
    r = babysitter.run(osccli)
  File "/usr/lib/python2.7/site-packages/osc/babysitter.py", line 61, in run
    return prg.main(argv)
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 343, in main
    return self.cmd(args)
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 366, in cmd
    retval = self.onecmd(argv)
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 500, in onecmd
    return self._dispatch_cmd(handler, argv)
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 1230, in
_dispatch_cmd
    return handler(argv[0], opts, *args)
  File "/usr/lib/python2.7/site-packages/osc/commandline.py", line 3177, in
do_branch
    maintenance=opts.maintenance)
  File "/usr/lib/python2.7/site-packages/osc/core.py", line 4986, in branch_pkg
    root = ET.fromstring(e.read())
AttributeError: 'HTTPError' object has no attribute 'read'
fdmanana 10:26:28 ~/tmp > 


I can't tell what the problem is. This happens on 2 different machines running
openSUSE 13.1, with osc installed with "zypper install osc". I have the correct
credentials in ~/.oscrc:

fdmanana 10:27:56 ~ > egrep -A 3 'build\.suse\.de' ~/.oscrc 
[https://build.suse.de]
user=fdmanana
pass=<my password here in plain text>

fdmanana 10:28:01 ~ > 


If I go to the web interface of https://build.suse.de, I'm able to login using
the same exact credentials that I have in .oscrc and through there I can branch
btrfsprogs.

Tried both with osc 0.151 and 0.152.

I'm on our internal IRC, with nick "fdmanana", in case it helps to solve this
more quickly.

Thanks!


You are receiving this mail because: