Bug 746048

Summary: beaker-repo-update does not work under rhel6
Product: [Retired] Beaker Reporter: Bill Peck <bpeck>
Component: schedulerAssignee: Bill Peck <bpeck>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.7CC: bpeck, dcallagh, mcsontos, rmancy, stl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-04 01:43:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Bill Peck 2011-10-13 18:27:08 UTC
Description of problem:
beaker-repo-update in 0.8 does not work correctly

Version-Release number of selected component (if applicable):
0.8

Actual results:
[root@gs-dl585g2-01 ~]# beaker-repo-update 
/usr/lib/python2.6/site-packages/tw/core/view.py:223: DeprecationWarning: object.__new__() takes no parameters
  obj = object.__new__(cls, *args, **kw)
string indices must be integers
string indices must be integers
string indices must be integers
string indices must be integers
string indices must be integers

Comment 1 Dan Callaghan 2011-10-16 23:42:07 UTC
I tracked this down to a bug in urlgrabber, which does not do the right thing when URLs are passed as unicode (instead of str): bug 563776.

The URL we are passing ends up being unicode because we are joining an osmajor object which comes back from the database as unicode. As a workaround we can encode the osmajor first so that the URL ends up as a str.

Comment 2 Dan Callaghan 2012-01-04 01:43:53 UTC
Beaker 0.8 has been released.