Modify ↓
Ticket #793 (closed defect: fixed)
Tracebacks from Displays/Summary and Displays/System
Reported by: | https://www.google.com/accounts/o8/id?id=AItOawmgjcCg7lAJ6ZhqeaZka53jw8AUv8fpG2E | Owned by: | solj |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.0.1 Release |
Component: | bcfg2-reports | Version: | 1.0 |
Keywords: | Cc: |
Description
On Gentoo, with bcfg2 trunk and Django 1.1.1 I get the following traceback from both Displays/System? and Displays/Summary?:
Environment: Request Method: GET Request URL: http://localhost/bcfg2/displays/sys-view/ Django Version: 1.1.1 Python Version: 2.6.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'Bcfg2.Server.Reports.reports'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware') Traceback: File "/usr/lib64/python2.6/site-packages/django/core/handlers/base.py" in get_response 92. response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Reports/reports/views.py" in display_sys_view 193. client_lists = prepare_client_lists(request, timestamp) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Reports/reports/views.py" in prepare_client_lists 308. stale_all_client_list = Client.objects.active(timestamp).filter(id__in=[x[0] for x in results if datetime.now() - 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 tholo-xps.thereinc.com 2009-11-10 16:10:25 dirty
Attachments
Change History
Note: See
TracTickets for help on using
tickets.