yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #38564
[Bug 1496539] [NEW] Ceilometer dashboard send requests with redundant timestamp queries
Public bug reported:
For requests with many resources horizon sends too many timestamp query for statistics request. It caused by incorrect using of mutable variable in next lines:
https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/ceilometer.py#L570
In this code we append data for existing resource.query list, what causes invalid requests.
Example:
/v2/meters/network.outgoing.packets.rate/statistics?q.field=project_id&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.op=eq&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.value=bdc3e00de2ea4503bae975b7fc950c8b&q.value=2015-09-15+13:16:22.010352+00:00&q.value=2015-09-16+13:16:22.010352+00:00&q.value=2015-09-15+13:16:25.877340+00:00&q.value=2015-09-16+13:16:25.877340+00:00&q.value=2015-09-16+12:24:49.708256+00:00&q.value=2015-09-16+13:24:49.708256+00:00&q.value=2015-08-31+13:24:52.704234+00:00&q.value=2015-09-16+13:24:52.704234+00:00&q.value=2015-08-31+13:24:59.378379+00:00&q.value=2015-09-16+13:24:59.378379+00:00&q.value=2015-08-31+13:25:06.624019+00:00&q.value=2015-09-16+13:25:06.624019+00:00&q.value=2015-09-15+13:25:08.039085+00:00&q.value=2015-09-16+13:25:08.039085+00:00&q.value=2015-09-16+13:26:05.604847+00:00&q.value=2015-09-16+14:26:05.604847+00:00&q.value=2015-09-16+13:26:08.275199+00:00&q.value=2015-09-16+14:26:08.275199+00:00&q.value=2015-09-09+14:31:20.469065+00:00&q.value=2015-09-16+14:31:20.469065+00:00&q.value=2015-09-09+14:31:36.214890+00:00&q.value=2015-09-16+14:31:36.214890+00:00&q.value=2015-09-09+14:32:37.745697+00:00&q.value=2015-09-16+14:32:37.745697+00:00&period=86400
** Affects: horizon
Importance: Undecided
Assignee: Ilya Tyaptin (ityaptin)
Status: In Progress
** Changed in: horizon
Assignee: (unassigned) => Ilya Tyaptin (ityaptin)
--
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/1496539
Title:
Ceilometer dashboard send requests with redundant timestamp queries
Status in OpenStack Dashboard (Horizon):
In Progress
Bug description:
For requests with many resources horizon sends too many timestamp query for statistics request. It caused by incorrect using of mutable variable in next lines:
https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/ceilometer.py#L570
In this code we append data for existing resource.query list, what causes invalid requests.
Example:
/v2/meters/network.outgoing.packets.rate/statistics?q.field=project_id&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.field=timestamp&q.op=eq&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.op=ge&q.op=le&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.type=&q.value=bdc3e00de2ea4503bae975b7fc950c8b&q.value=2015-09-15+13:16:22.010352+00:00&q.value=2015-09-16+13:16:22.010352+00:00&q.value=2015-09-15+13:16:25.877340+00:00&q.value=2015-09-16+13:16:25.877340+00:00&q.value=2015-09-16+12:24:49.708256+00:00&q.value=2015-09-16+13:24:49.708256+00:00&q.value=2015-08-31+13:24:52.704234+00:00&q.value=2015-09-16+13:24:52.704234+00:00&q.value=2015-08-31+13:24:59.378379+00:00&q.value=2015-09-16+13:24:59.378379+00:00&q.value=2015-08-31+13:25:06.624019+00:00&q.value=2015-09-16+13:25:06.624019+00:00&q.value=2015-09-15+13:25:08.039085+00:00&q.value=2015-09-16+13:25:08.039085+00:00&q.value=2015-09-16+13:26:05.604847+00:00&q.value=2015-09-16+14:26:05.604847+00:00&q.value=2015-09-16+13:26:08.275199+00:00&q.value=2015-09-16+14:26:08.275199+00:00&q.value=2015-09-09+14:31:20.469065+00:00&q.value=2015-09-16+14:31:20.469065+00:00&q.value=2015-09-09+14:31:36.214890+00:00&q.value=2015-09-16+14:31:36.214890+00:00&q.value=2015-09-09+14:32:37.745697+00:00&q.value=2015-09-16+14:32:37.745697+00:00&period=86400
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1496539/+subscriptions
Follow ups