Remove jquery and task-report

task-report is hideously out of date and doesn't work. And we don't
actually use jquery.
This commit is contained in:
Monty Taylor 2018-08-23 22:49:39 -05:00
parent 2a0d7e1287
commit 67c1f59c79
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
4 changed files with 0 additions and 223 deletions

View File

@ -20,7 +20,6 @@
"dependencies": {
"@bower_components/bootstrap": "twbs/bootstrap#~3.3.5",
"@bower_components/font-awesome": "FortAwesome/Font-Awesome#~4.3.0",
"@bower_components/jquery": "jquery/jquery-dist#1.9.1 - 3",
"font-mfizz": "^2.4.1",
"modernizr": "^3.6.0",
"reveal.js": "^3.7.0"

View File

@ -1,192 +0,0 @@
$.fn.graphite.defaults.url = "http://graphite.openstack.org/render/";
tasks = [
'ServerCreate',
'ServerDelete',
'ServerList',
'ServerGet'
];
float_tasks = [
'PortList',
'NeutronFloatingIPList',
'NeutronFloatingIPCreate',
'NeutronFloatingIPDelete'
]
big_providers = [
'rax',
'ovh',
]
small_providers = [
'bluebox',
'internap'
]
jobs = [
'gate-tempest-dsvm-full',
'gate-tempest-dsvm-neutron-full'
]
for(i=0; i<tasks.length; ++i) {
$("#graph-container").append($(new Image()).addClass('graph').graphite({
from: "-72hours",
width: 885,
height: 495,
bgcolor: 'ffffff',
fgcolor: '000000',
lineMode: 'connected',
vtitle: 'Time in Seconds',
yMax: '7',
title: tasks[i],
target: [
"alias(scale(averageSeries(stats.timers.nodepool.task.bluebox-sjc1." + tasks[i] + ".mean), '0.001'), 'BB')",
"alias(scale(averageSeries(stats.timers.nodepool.task.ovh-gra1." + tasks[i] + ".mean), '0.001'), 'OVH')",
"alias(scale(averageSeries(stats.timers.nodepool.task.rax-*." + tasks[i] + ".mean), '0.001'), 'RAX')",
"alias(scale(averageSeries(stats.timers.nodepool.task.internap-*." + tasks[i] + ".mean), '0.001'), 'INAP')",
"alias(scale(averageSeries(stats.timers.nodepool.task.vexx*." + tasks[i] + ".mean), '0.001'), 'VEXX')",
"alias(scale(averageSeries(stats.timers.nodepool.task.osic*." + tasks[i] + ".mean), '0.001'), 'OSIC')",
]
}));
}
for(i=0; i<float_tasks.length; ++i) {
$("#graph-container").append($(new Image()).addClass('graph').graphite({
from: "-72hours",
width: 885,
height: 495,
bgcolor: 'ffffff',
fgcolor: '000000',
lineMode: 'connected',
vtitle: 'Time in Seconds',
yMax: '3',
title: float_tasks[i],
target: [
"alias(scale(averageSeries(stats.timers.nodepool.task.bluebox-sjc1." + float_tasks[i] + ".mean), '0.001'), 'BB')",
"alias(scale(averageSeries(stats.timers.nodepool.task.osic-cloud1." + float_tasks[i] + ".mean), '0.001'), 'OSIC')",
]
}));
}
for(i=0; i<big_providers.length; ++i) {
$("#graph-container").append($(new Image()).addClass('graph').graphite({
from: "-72hours",
width: 885,
height: 495,
bgcolor: 'ffffff',
fgcolor: '000000',
areaMode: 'stacked',
yMax: '800',
title: big_providers[i] + " nodes launched",
target: [
"color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider." + big_providers[i] + "*.ready), '1h'), 'Ready'), '00ff22')",
"color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider." + big_providers[i] + "*.error.*), '1h'), 'Error'), 'ff0000')"
]
}));
}
$("#graph-container").append($(new Image()).addClass('graph').graphite({
from: "-72hours",
width: 885,
height: 495,
bgcolor: 'ffffff',
fgcolor: '000000',
areaMode: 'stacked',
yMax: '100',
title: "Blue Box nodes launched",
target: [
"color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.bluebox*.ready), '1h'), 'Ready'), '00ff22')",
"color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.bluebox*.error.*), '1h'), 'Error'), 'ff0000')"
]
}));
$("#graph-container").append($(new Image()).addClass('graph').graphite({
from: "-72hours",
width: 885,
height: 495,
bgcolor: 'ffffff',
fgcolor: '000000',
areaMode: 'stacked',
yMax: '100',
title: "Vexxhost nodes launched",
target: [
"color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.vexx*.ready), '1h'), 'Ready'), '00ff22')",
"color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.vexx*.error.*), '1h'), 'Error'), 'ff0000')"
]
}));
$("#graph-container").append($(new Image()).addClass('graph').graphite({
from: "-72hours",
width: 885,
height: 495,
bgcolor: 'ffffff',
fgcolor: '000000',
areaMode: 'stacked',
yMax: '400',
title: "OSIC nodes launched",
target: [
"color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.osic*.ready), '1h'), 'Ready'), '00ff22')",
"color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.osic*.error.*), '1h'), 'Error'), 'ff0000')"
]
}));
$("#graph-container").append($(new Image()).addClass('graph').graphite({
from: "-72hours",
width: 885,
height: 495,
bgcolor: 'ffffff',
fgcolor: '000000',
areaMode: 'stacked',
yMax: '200',
title: "Internap nodes launched",
target: [
"color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.internap*.ready), '1h'), 'Ready'), '00ff22')",
"color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.internap*.error.*), '1h'), 'Error'), 'ff0000')"
]
}));
for(i=0; i<jobs.length; ++i) {
$("#graph-container").append($(new Image()).addClass('graph').graphite({
from: "-72hours",
width: 885,
height: 495,
bgcolor: 'ffffff',
fgcolor: '000000',
lineMode: 'connected',
vtitle: 'Time in Minute',
yMax: '90',
title: jobs[i] + ' job runtime',
target: [
"alias(scale(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.bluebox-sjc1.runtime.mean), '0.000016'), 'BB')",
"alias(scale(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.ovh-gra1.runtime.mean), '0.000016'), 'OVH')",
"alias(scale(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.rax-*.runtime.mean), '0.000016'), 'RAX')",
"alias(scale(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.internap-*.runtime.mean), '0.000016'), 'INAP')",
"alias(scale(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.vexx*.runtime.mean), '0.000016'), 'VEXX')",
"alias(scale(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.osic*.runtime.mean), '0.000016'), 'OSIC')",
]
}));
}
$("#graph-container").append($(new Image()).addClass('graph').graphite({
from: "-72hours",
width: 885,
height: 495,
bgcolor: 'ffffff',
fgcolor: '000000',
lineMode: 'connected',
vtitle: 'Time in Minutes',
title: 'Time to SSH Ready',
target: [
"alias(scale(averageSeries(stats.timers.nodepool.launch.provider.bluebox-sjc1.ready.mean), '0.000016'), 'BB')",
"alias(scale(averageSeries(stats.timers.nodepool.launch.provider.ovh-gra1.ready.mean), '0.000016'), 'OVH')",
"alias(scale(averageSeries(stats.timers.nodepool.launch.provider.rax-*.ready.mean), '0.000016'), 'RAX')",
"alias(scale(averageSeries(stats.timers.nodepool.launch.provider.internap-*.ready.mean), '0.000016'), 'INAP')",
"alias(scale(averageSeries(stats.timers.nodepool.launch.provider.vexx*.ready.mean), '0.000016'), 'VEXX')",
"alias(scale(averageSeries(stats.timers.nodepool.launch.provider.osic*.ready.mean), '0.000016'), 'OSIC')",
]
}));

View File

@ -1,26 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
lang="en">
<HEAD>
<TITLE>Task Report</TITLE>
<script type="text/javascript"
src="http://status.openstack.org/jquery.min.js"></script>
<script type="text/javascript"
src="http://status.openstack.org/jquery-visibility.min.js"></script>
<script type="text/javascript"
src="http://status.openstack.org/jquery-graphite.js"></script>
<script type="text/javascript"
src="http://status.openstack.org/common.js"></script>
</HEAD>
<BODY>
<div class="container" id="graph-container">
<h2> Job Stats </h2>
<script type="text/javascript" src="js/task-report.js"></script>
</div>
</BODY>
</html>

View File

@ -10,10 +10,6 @@
version "4.3.0"
resolved "https://codeload.github.com/FortAwesome/Font-Awesome/tar.gz/41b9ed01103e6820c3cb043ba7ddab30ecd3f4c0"
"@bower_components/jquery@jquery/jquery-dist#1.9.1 - 3":
version "3.3.1"
resolved "https://codeload.github.com/jquery/jquery-dist/tar.gz/9e8ec3d10fad04748176144f108d7355662ae75e"
abbrev@1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"