blob: a158c8e89f34dc823d8df91051f394098370db97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{%load i18n%}
{% load sizeformat %}
<table class="wide">
<tr>
<th>{% trans "Service"%}</th>
<th>{% trans "System Stats"%}</th>
<th>{% trans "Enabled"%}</th>
<th>{% trans "Up"%}</th>
<th>{% trans "Actions"%}</th>
</tr>
{% for service in services %}
<tr class='{{service.up|yesno:"good,bad"}} {{service.disabled|yesno:"medium,"}} {% cycle 'odd' 'even' %}'>
<td>
{{service.type}} <br/>
( {{service.host}} )
</td>
{% if service.type == 'nova-compute' %}
<td>
<ul>
<li>
{% trans "Hypervisor"%}: {{service.stats.hypervisor_type}}( {{service.stats.cpu_info.features|join:', '}})
</li>
<li>
{% trans "Allocable Cores"%}:
{{service.stats.max_vcpus}}
({{service.stats.vcpus_used}} Used, {{service.stats.vcpus}} Physical/Virtual)
</li>
<li>
{% trans "Allocable Storage"%}:
{{service.stats.max_gigabytes|diskgbformat}}
({{service.stats.local_gb_used|diskgbformat}} Used, {{service.stats.local_gb|diskgbformat}} Physical)
</li>
<li>
{% trans "System Ram"%}:
{{service.stats.memory_mb|mbformat}}
({{service.stats.memory_mb_used|mbformat}} Used)
</li>
</ul>
</td>
{% else %}
<td> - </td>
{% endif %}
<td>{{service.disabled|yesno:"Disabled,Enabled"}}</td>
<td>{{service.up}}</td>
<td id="actions">
<ul>
<li class="form">{% include "django_openstack/syspanel/services/_toggle.html" with form=service_toggle_enabled_form %}</li>
</ul>
</td>
</tr>
{% endfor %}
{% for service in other_services %}
<tr class='{{service.up|yesno:"good,bad"}} {{service.disabled|yesno:"medium,"}} {% cycle 'odd' 'even' %}'>
<td>
{{service.type}} <br/>
( {{service.host}} )
</td>
<td> - </td>
<td>{{service.disabled|yesno:"Disabled,Enabled"}}</td>
<td>{{service.up}}</td>
<td></td>
</tr>
{% endfor %}
</table>
|