← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1331427] [NEW] Daily usage do not check date range validity

 

Public bug reported:

Visit
http://<host>/dashboard/admin/metering/report
and choose "other period"
For from/to take any value other than date.

This will result in ValueError at /admin/metering/report

Traceback:
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  112.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/site-packages/horizon/decorators.py" in dec
  38.         return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/horizon/decorators.py" in dec
  86.                 return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/horizon/decorators.py" in dec
  54.             return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/horizon/decorators.py" in dec
  38.         return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/horizon/decorators.py" in dec
  86.                 return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/django/views/generic/base.py" in view
  69.             return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch
  87.         return handler(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/horizon/tables/views.py" in post
  162.         return self.get(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/horizon/tables/views.py" in get
  154.         handled = self.construct_tables()
File "/usr/lib/python2.7/site-packages/horizon/tables/views.py" in construct_tables
  137.         tables = self.get_tables().values()
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/metering/views.py" in get_tables
  106.         project_data = self.load_data(self.request)
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/metering/views.py" in load_data
  153.                                    3600 * 24)
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/metering/views.py" in query_data
  246.                                          date_options)
File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/metering/views.py" in _calc_date_args
  225.             raise ValueError("The dates haven't been "

Exception Type: ValueError at /admin/metering/report
Exception Value: The dates haven't been recognized

** Affects: horizon
     Importance: High
         Status: New

** Changed in: horizon
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1331427

Title:
  Daily usage do not check date range validity

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Visit
  http://<host>/dashboard/admin/metering/report
  and choose "other period"
  For from/to take any value other than date.

  This will result in ValueError at /admin/metering/report

  Traceback:
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
    112.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py" in dec
    38.         return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py" in dec
    86.                 return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py" in dec
    54.             return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py" in dec
    38.         return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py" in dec
    86.                 return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py" in view
    69.             return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch
    87.         return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/tables/views.py" in post
    162.         return self.get(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/tables/views.py" in get
    154.         handled = self.construct_tables()
  File "/usr/lib/python2.7/site-packages/horizon/tables/views.py" in construct_tables
    137.         tables = self.get_tables().values()
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/metering/views.py" in get_tables
    106.         project_data = self.load_data(self.request)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/metering/views.py" in load_data
    153.                                    3600 * 24)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/metering/views.py" in query_data
    246.                                          date_options)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/metering/views.py" in _calc_date_args
    225.             raise ValueError("The dates haven't been "

  Exception Type: ValueError at /admin/metering/report
  Exception Value: The dates haven't been recognized

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1331427/+subscriptions


Follow ups

References