Bug 230895 - smolt.fedoraproject.org gives internal error when accessing UUID information
smolt.fedoraproject.org gives internal error when accessing UUID information
Product: Fedora
Classification: Fedora
Component: smolt (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Mike McGrath
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-03-04 06:43 EST by Colin Charles
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-03-04 14:45:25 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Colin Charles 2007-03-04 06:43:33 EST
Description of problem: When smolt runs, and it tells me to view my profile and
to click to the website, I get an internal error from the web-based tool

Version-Release number of selected component (if applicable):
(but its not applicable, this is a server side problem)

How reproducible: 100%

Steps to Reproduce:
1. Click URL generated by smolt
2. See error
3. Optionally, enter the uuid at smolt.fedoraproject.org and still watch it barf
Actual results:
500 Internal error

The server encountered an unexpected condition which prevented it from
fulfilling the request.

Page handler: <bound method Root.show of <hardware.controllers.Root object at
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py", line 105, in
  File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py", line 254, in
    body = page_handler(*virtual_path, **self.params)
  File "<string>", line 3, in show
  File "/usr/lib/python2.4/site-packages/turbogears/controllers.py", line 334,
in expose
    output = database.run_with_transaction(
  File "<string>", line 5, in run_with_transaction
  File "/usr/lib/python2.4/site-packages/turbogears/database.py", line 302, in
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File "/usr/lib/python2.4/site-packages/turbogears/controllers.py", line 351,
in <lambda>
    mapping, fragment, args, kw)))
  File "/usr/lib/python2.4/site-packages/turbogears/controllers.py", line 391,
in _execute_func
    return _process_output(output, template, format, content_type, mapping,
  File "/usr/lib/python2.4/site-packages/turbogears/controllers.py", line 82, in
  File "/usr/lib/python2.4/site-packages/turbogears/view/base.py", line 131, in
    return engine.render(**kw)
  File "/usr/lib/python2.4/site-packages/turbokid/kidsupport.py", line 174, in
    return t.serialize(encoding=self.defaultencoding, output=format,
  File "/usr/lib/python2.4/site-packages/kid/__init__.py", line 299, in serialize
  File "/usr/lib/python2.4/site-packages/kid/__init__.py", line 297, in serialize
    return serializer.serialize(self, encoding, fragment, format)
  File "/usr/lib/python2.4/site-packages/kid/serialization.py", line 107, in
    text = ''.join(tuple(
  File "/usr/lib/python2.4/site-packages/kid/serialization.py", line 630, in
    for ev, item in self.apply_filters(stream, format):
  File "/usr/lib/python2.4/site-packages/kid/serialization.py", line 163, in
    for ev, item in stream:
  File "/usr/lib/python2.4/site-packages/kid/parser.py", line 219, in _coalesce
    for ev, item in stream:
  File "/usr/lib/python2.4/site-packages/kid/serialization.py", line 478, in
    for ev, item in stream:
  File "/usr/lib/python2.4/site-packages/kid/parser.py", line 177, in _track
    for p in stream:
  File "/usr/lib/python2.4/site-packages/kid/filter.py", line 30, in apply_matches
    item = stream.expand()
  File "/usr/lib/python2.4/site-packages/kid/parser.py", line 106, in expand
    for ev, item in self._iter:
  File "/usr/lib/python2.4/site-packages/kid/parser.py", line 177, in _track
    for p in stream:
  File "/usr/lib/python2.4/site-packages/kid/parser.py", line 219, in _coalesce
    for ev, item in stream:
  File "/home/fedora/mmcgrath/tg/smoon/hardware/templates/show.py", line 382, in
TypeError: hex() argument can't be converted to hex
Error location in template file
on line 32 between columns 16 and 58:
                <td align='center'>${hex(device.VendorId)} ...

Powered by CherryPy 2.2.1

Expected results:
My machine hardware information that smolt has collected

Additional info:
Comment 1 Mike McGrath 2007-03-04 11:50:20 EST
WORKSFORME, can you give me your UUID?


If not I'll just have to dig.
Comment 2 Colin Charles 2007-03-04 13:10:36 EST

http://smolt.fedoraproject.org/show?UUID=170bd97e-1084-4a26-9002-d36974c2a339 is
still borked.
Comment 3 Colin Charles 2007-03-04 13:11:38 EST
And verified, that that's my ID:
cat /etc/sysconfig/hw-uuid 
Comment 4 Mike McGrath 2007-03-04 14:45:25 EST
Alrighty, thats fun.  So I did the quick fix.  I'll figure out the rest later. 
For now you'll have to deal with ugly vendor id's instead of description but
thats coming.

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