Merge pull request #3 from tzumainn/master
updated to match current tuskar_ui node details template
This commit is contained in:
commit
30362384f1
@ -6,28 +6,16 @@
|
|||||||
{% include 'horizon/common/_page_header.html' with title=_('Node Details') %}
|
{% include 'horizon/common/_page_header.html' with title=_('Node Details') %}
|
||||||
{% endblock page_header %}
|
{% endblock page_header %}
|
||||||
|
|
||||||
|
|
||||||
{% block js %}
|
{% block js %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
<script src='{{ STATIC_URL }}infrastructure/js/angular/horizon.base64.js' type='text/javascript' charset='utf-8'></script>
|
<script src='{{ STATIC_URL }}infrastructure/js/angular/horizon.base64.js' type='text/javascript' charset='utf-8'></script>
|
||||||
<script src='{{ STATIC_URL }}infrastructure/js/angular/horizon.node_errata.js' type='text/javascript' charset='utf-8'></script>
|
<script src='{{ STATIC_URL }}infrastructure/js/angular/horizon.node_errata.js' type='text/javascript' charset='utf-8'></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
<h4>{% trans "Info" %}</h4>
|
|
||||||
<dl class="clearfix">
|
<dl class="clearfix">
|
||||||
<dt>{% trans "MAC Addresses" %}</dt>
|
|
||||||
<dd>{{ node.addresses|join:", "|default:"—" }}</dd>
|
|
||||||
<dt>{% trans "UUID" %}</dt>
|
|
||||||
<dd>{{ node.uuid|default:"—" }}</dd>
|
|
||||||
<dt>{% trans "Instance UUID" %}</dt>
|
|
||||||
<dd>{{ node.instance_uuid|default:"—" }}</dd>
|
|
||||||
<dt>{% trans "Driver" %}</dt>
|
|
||||||
<dd>{{ node.driver|default:"—" }}</dd>
|
|
||||||
<dt>{% trans "Power state" %}</dt>
|
<dt>{% trans "Power state" %}</dt>
|
||||||
<dd>{{ node.power_state|default:"—" }}</dd>
|
<dd>{{ node.power_state|default:"—" }}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
@ -35,26 +23,53 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<h4>{% trans "Driver Info" %}</h4>
|
<h4>{% trans "Inventory" %}</h4>
|
||||||
<dl class="clearfix">
|
<dl class="clearfix">
|
||||||
<dt>{% trans "IPMI address" %}</dt>
|
<dt>{% trans "Node UUID" %}</dt>
|
||||||
<dd>{{ node.driver_info.ipmi_address|default:"—" }}</dd>
|
<dd>{{ node.uuid|default:"—" }}</dd>
|
||||||
<dt>{% trans "IPMI username" %}</dt>
|
<dt>{% trans "Driver" %}</dt>
|
||||||
<dd>{{ node.driver_info.ipmi_username|default:"—" }}</dd>
|
<dd>
|
||||||
|
{{ node.driver|default:"—" }}<br />
|
||||||
|
<b>IP Address:</b> {{ node.driver_info.ipmi_address|default:"—" }}<br />
|
||||||
|
<b>IPMI User:</b> {{ node.driver_info.ipmi_username|default:"—" }}
|
||||||
|
</dd>
|
||||||
|
<dt>{% trans "Network Cards" %}</dt>
|
||||||
|
<dd>
|
||||||
|
{{ node.addresses|length }}<br />
|
||||||
|
{% for address in node.addresses %}
|
||||||
|
{{ address }}<br />
|
||||||
|
{% endfor %}
|
||||||
|
</dd>
|
||||||
|
<dt>{% trans "Registered HW" %}</dt>
|
||||||
|
<dd>
|
||||||
|
{{ node.cpus|default:"—" }} {% trans "CPU" %}<br />
|
||||||
|
{{ node.memory_mb|default:"—" }} {% trans "RAM (MB)" %}<br />
|
||||||
|
{{ node.local_gb|default:"—" }} {% trans "HDD (GB)" %}
|
||||||
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<h4>{% trans "Properties" %}</h4>
|
<h4>{% trans "Deployment" %}</h4>
|
||||||
<dl class="clearfix">
|
<dl class="clearfix">
|
||||||
<dt>{% trans "Local disk" %}</dt>
|
<dt>{% trans "Deployment Role" %}</dt>
|
||||||
<dd>{{ node.properties.local_disk|filesizeformat|default:"—" }}</dd>
|
{% if stack and role %}
|
||||||
<dt>{% trans "RAM" %}</dt>
|
<dd><a href="{% url 'horizon:infrastructure:overcloud:role' stack.id role.id %}">{{ role.name }}</a></dd>
|
||||||
<dd>{{ node.properties.ram|filesizeformat|default:"—" }}</dd>
|
{% else %}
|
||||||
<dt>{% trans "CPU" %}</dt>
|
<dd>—</dd>
|
||||||
<dd>{{ node.properties.cpu|default:"—" }}</dd>
|
{% endif %}
|
||||||
|
<dt>{% trans "Provisioning" %}</dt>
|
||||||
|
<dd>
|
||||||
|
{{ node.provisioning_status|default:"—" }}
|
||||||
|
{% if node.instance_uuid %}
|
||||||
|
<br />{{ node.instance.created }}
|
||||||
|
{% endif %}
|
||||||
|
</dd>
|
||||||
|
<dt>{% trans "Image" %}</dt>
|
||||||
|
<dd>{{ node.image_name|default:"—" }}</dd>
|
||||||
|
<dt>{% trans "Instance UUID" %}</dt>
|
||||||
|
<dd>{{ node.instance_uuid|default:"—" }}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if node.uuid %}
|
{% if node.uuid %}
|
||||||
@ -66,12 +81,11 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<h2>{% trans "Performance and Capacity" %}</h2>
|
<h2>{% trans "Performance and Capacity" %}</h2>
|
||||||
|
|
||||||
{% if meters %}
|
{% if meter_conf %}
|
||||||
<br />
|
<br />
|
||||||
{% url 'horizon:infrastructure:nodes:performance' node.id as node_perf_url %}
|
{% url 'horizon:infrastructure:nodes:performance' node.uuid as node_perf_url %}
|
||||||
|
|
||||||
<div id="ceilometer-stats">
|
<div id="ceilometer-stats">
|
||||||
<form class="form-horizontal" id="linechart_general_form">
|
<form class="form-horizontal" id="linechart_general_form">
|
||||||
@ -145,14 +159,14 @@
|
|||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
<div>
|
<div>
|
||||||
<table>
|
<table>
|
||||||
{% for meter_name, meter_label in meters %}
|
{% for meter_label, url_part in meter_conf %}
|
||||||
{% if forloop.counter0|divisibleby:"4" %}
|
{% if forloop.counter == 1 or forloop.counter == 4 %}
|
||||||
<tr>
|
<tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td>
|
<td>
|
||||||
{% include "infrastructure/_performance_chart.html" with label=meter_label url=node_perf_url|add:"?meter="|add:meter_name only %}
|
{% include "infrastructure/_performance_chart.html" with label=meter_label url=node_perf_url|add:"?"|add:url_part only %}
|
||||||
</td>
|
</td>
|
||||||
{% if forloop.counter|divisibleby:"4" %}
|
{% if forloop.counter == 3 or forloop.counter == 5 %}
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@ -162,4 +176,3 @@
|
|||||||
Metering service is not enabled.
|
Metering service is not enabled.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user