diff options
author | Neil Williams <neil.williams@linaro.org> | 2017-10-20 07:43:23 +0100 |
---|---|---|
committer | Neil Williams <neil.williams@linaro.org> | 2017-10-20 07:43:23 +0100 |
commit | 0ca5d75c73b53c4be5f9842335f2e79ffef2bb5d (patch) | |
tree | ab0e29696982250c57a399b1d067d6ba43cb748b /lava_scheduler_app/templates/lava_scheduler_app | |
parent | b37fe9441418800184abec66c7dda36512ab46cf (diff) |
Drop the migration status page.
Devices which have not migrated are neither used nor displayed.
Change-Id: Ida323e4e378c54b10e166ff45fc92da4dc5194be
Diffstat (limited to 'lava_scheduler_app/templates/lava_scheduler_app')
-rw-r--r-- | lava_scheduler_app/templates/lava_scheduler_app/index.html | 2 | ||||
-rw-r--r-- | lava_scheduler_app/templates/lava_scheduler_app/migration.html | 105 |
2 files changed, 0 insertions, 107 deletions
diff --git a/lava_scheduler_app/templates/lava_scheduler_app/index.html b/lava_scheduler_app/templates/lava_scheduler_app/index.html index 8c78a47bf..7b062221d 100644 --- a/lava_scheduler_app/templates/lava_scheduler_app/index.html +++ b/lava_scheduler_app/templates/lava_scheduler_app/index.html @@ -53,8 +53,6 @@ class="glyphicon glyphicon-phone pull-right green"></span> Active Devices</a></li> <li><a href="{% url 'lava.scheduler.labhealth' %}"><span class="glyphicon glyphicon-heart pull-right"></span> Devices Health</a></li> - <li><a href="{% url 'lava.scheduler.migration' %}"><span - class="glyphicon glyphicon-bell pull-right red"></span> Migration</a></li> </ul> </div> <div class="col-md-4"> diff --git a/lava_scheduler_app/templates/lava_scheduler_app/migration.html b/lava_scheduler_app/templates/lava_scheduler_app/migration.html deleted file mode 100644 index cb4e67521..000000000 --- a/lava_scheduler_app/templates/lava_scheduler_app/migration.html +++ /dev/null @@ -1,105 +0,0 @@ -{% extends "layouts/content-bootstrap.html" %} -{% load django_tables2 %} -{% load utils %} -{% block content %} -<h2>Migration Status</h2> - - <h3>Migration of active V1 devices to V2</h3> - <p>Number of active devices which have V2 support.</p> - <div class="progress"> - <div -{% if active_percent < 50 %} - class="progress-bar progress-bar-danger" -{% elif active_percent < 75 %} - class="progress-bar progress-bar-warning" -{% else %} - class="progress-bar progress-bar-success" -{% endif %} - role="progressbar" aria-valuenow="{{ active_v1_devices }}" - aria-valuemin="0" aria-valuemax="{{ active_devices }}" - style="width: {{ active_percent }}%; min-width: 6em"> - {{ active_level }} of {{ active_devices }} - </div> - </div> - {% if active_level != active_devices %} - <h4>Active devices still using V1:</h4> - {% for hostname, dev in v1_problems.items %} - [ <a href="{{ dev }}">{{ hostname }}</a> ] - {% endfor %} - {% endif %} - - <h3>Active V2 devices exclusive to V2</h3> - <p>Number of active V2 devices which only support V2.</p> - <div class="progress"> - <div -{% if exclusion < 50 %} - class="progress-bar progress-bar-danger" -{% elif exclusion < 75 %} - class="progress-bar progress-bar-warning" -{% else %} - class="progress-bar progress-bar-success" -{% endif %} - role="progressbar" aria-valuenow="{{ exclusive_count }}" - aria-valuemin="0" aria-valuemax="{{ active_devices }}" - style="width: {{ exclusion }}%; min-width: 6em"> - {{ exclusive_count }} of {{ active_devices }} - </div> - </div> - {% if exclusive_count != active_devices %} - <h4>Active V2 devices which are not exclusive to V2:</h4> - {% for hostname, dev in exclusive.items %} - [ <a href="{{ dev }}">{{ hostname }}</a> ] - {% endfor %} - {% endif %} - - <h3>Migration of active devices to enabled V2 healthchecks</h3> - <p>Number of active devices with enabled health checks undefined in the database.</p> - <div class="progress"> - <div -{% if hc_percent < 50 %} - class="progress-bar progress-bar-danger" -{% elif hc_percent < 75 %} - class="progress-bar progress-bar-warning" -{% else %} - class="progress-bar progress-bar-success" -{% endif %} - role="progressbar" aria-valuenow="{{ healthchecks }}" - aria-valuemin="0" aria-valuemax="{{ active_health }}" - style="width: {{ hc_percent }}%; min-width: 6em"> - {{ healthchecks }} of {{ active_health }} - </div> - </div> - {% if health_check_level > 0 %} - <h4>Active devices still using healthchecks in the database:</h4> - {% for hostname, dev in db_healthchecks.items %} - [ <a href="{{ dev }}">{{ hostname }}</a> ] - {% endfor %} - {% endif %} - - <h3>Active devices with enabled healthchecks</h3> - <p>Number of active devices with an enabled healthcheck.</p> - <div class="progress"> - <div -{% if no_hc_percent < 25 %} - class="progress-bar progress-bar-danger" -{% elif no_hc_percent < 50 %} - class="progress-bar progress-bar-warning" -{% else %} - class="progress-bar progress-bar-success" -{% endif %} - role="progressbar" aria-valuenow="{{ nonhc_devices }}" - aria-valuemin="0" aria-valuemax="{{ active_health }}" - style="width: {{ no_hc_percent }}%; min-width: 6em"> - {{ nonhc_devices }} of {{ active_health }} - </div> - </div> - {% if no_healthcheck %} - <h4>Active devices without V2 healthchecks:</h4> - <ul> - {% for hostname, dev_url in no_healthcheck.items %} - <li><a href="{{ dev_url }}">{{ hostname }}</a> {{ templates|get_item:hostname }}</li> - {% endfor %} - </ul> - {% endif %} - -{% endblock %}
\ No newline at end of file |