Ticket #793 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

Tracebacks from Displays/Summary and Displays/System

Reported by: Owned by: solj
Priority: major Milestone: Bcfg2 1.0.1 Release
Component: bcfg2-reports Version: 1.0
Keywords: Cc:


On Gentoo, with bcfg2 trunk and Django 1.1.1 I get the following traceback from both Displays/System? and Displays/Summary?:


Request Method: GET
Request URL: http://localhost/bcfg2/displays/sys-view/
Django Version: 1.1.1
Python Version: 2.6.2
Installed Applications:
Installed Middleware:

File "/usr/lib64/python2.6/site-packages/django/core/handlers/" in get_response
  92.                 response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Reports/reports/" in display_sys_view
  193.     client_lists = prepare_client_lists(request, timestamp)
File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Reports/reports/" in prepare_client_lists
  308.         stale_all_client_list =[x[0] for x in results if - x[1] > timedelta(days=1)])

Exception Type: TypeError at /bcfg2/displays/sys-view/
Exception Value: unsupported operand type(s) for -: 'datetime.datetime' and 'unicode'

This is using sqlite3 backend, with two systems (including the server itself) reporting in, one is in clean state, the other in dirty state:

$ bcfg2-reports -a
nat-128.vmware           2009-11-10 16:44:05   clean   2009-11-10 16:10:25   dirty   


Change History

comment:1 Changed 13 years ago by solj

  • Owner changed from desai to solj
  • Status changed from new to accepted

comment:2 Changed 13 years ago by solj

  • Status changed from accepted to closed
  • Resolution set to fixed

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.