Bug 230895 - smolt.fedoraproject.org gives internal error when accessing UUID information
smolt.fedoraproject.org gives internal error when accessing UUID information
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: smolt (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Mike McGrath
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  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:
Environment:
Last Closed: 2007-03-04 14:45:25 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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):
smolt-0.9.2-1.fc6.noarch.rpm
(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
0x1411ed0>>
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py", line 105, in
_run
    self.main()
  File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py", line 254, in
main
    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
so_rwt
    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,
fragment)
  File "/usr/lib/python2.4/site-packages/turbogears/controllers.py", line 82, in
_process_output
    fragment=fragment)
  File "/usr/lib/python2.4/site-packages/turbogears/view/base.py", line 131, in
render
    return engine.render(**kw)
  File "/usr/lib/python2.4/site-packages/turbokid/kidsupport.py", line 174, in
render
    return t.serialize(encoding=self.defaultencoding, output=format,
fragment=fragment)
  File "/usr/lib/python2.4/site-packages/kid/__init__.py", line 299, in serialize
    raise_template_error(module=self.__module__)
  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
serialize
    text = ''.join(tuple(
  File "/usr/lib/python2.4/site-packages/kid/serialization.py", line 630, in
generate
    for ev, item in self.apply_filters(stream, format):
  File "/usr/lib/python2.4/site-packages/kid/serialization.py", line 163, in
format_stream
    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
inject_meta_tags
    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
_pull
TypeError: hex() argument can't be converted to hex
Error location in template file
'/home/fedora/mmcgrath/tg/smoon/hardware/templates/show.kid'
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?

http://smolt.fedoraproject.org/show?UUID=40ca7c16-7a97-46b4-b4fe-dca70d63a4d0

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

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 
170bd97e-1084-4a26-9002-d36974c2a339
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.