Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sahara API provides a log of events happening while the cluster is being set up or deleted. The tab in the 'cluster details' view was added to expose these events to a user. Implements blueprint: sahara-event-log Change-Id: Ie8b0d895b0b5af4b3cf2fffe7ac490eac633d97a
- Loading branch information
1 parent
d7016d6
commit e0cd466
Showing
9 changed files
with
406 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...ahara/content/data_processing/clusters/templates/data_processing.clusters/_event_log.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{% load i18n %} | ||
|
||
<h4>{% trans "Cluster provision steps" %}</h4> | ||
<table id="steps_table" class="table table-bordered datatable"> | ||
<thead> | ||
<tr> | ||
<th>{% trans "Step Description" %}</th> | ||
<th>{% trans "Started at" %}</th> | ||
<th>{% trans "Duration" %}</th> | ||
<th>{% trans "Progress" %}</th> | ||
<th>{% trans "Status" %}</th> | ||
</tr> | ||
</thead> | ||
<tbody id="steps_body"> | ||
</tbody> | ||
</table> | ||
|
||
<div id="events_modal" class="modal fade"> | ||
<div class="modal-dialog" style="width: 85%"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||
<h4 id="events_modal_header"></h4> | ||
<span id="modal_status_marker"></span> | ||
</div> | ||
<div class="modal-body"> | ||
<table id="events_table" class="table table-bordered datatable"> | ||
<thead> | ||
<tr> | ||
<th>{% trans "Node Group" %}</th> | ||
<th>{% trans "Instance" %}</th> | ||
<th>{% trans "Event time" %}</th> | ||
<th>{% trans "Info" %}</th> | ||
<th>{% trans "Status" %}</th> | ||
</tr> | ||
</thead> | ||
<tbody id="events_body"> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script type="text/javascript"> | ||
|
||
$(function () { | ||
// Initialize everything. | ||
horizon.event_log.cluster_id = "{{ cluster_id }}"; | ||
horizon.event_log.data_update_url = "{{ data_update_url }}"; | ||
horizon.event_log.fetch_update_events(); | ||
}); | ||
|
||
$(".show_events_btn").live("click", function () { | ||
// Bind "show events" buttons to modals. | ||
horizon.event_log.modal_step_id = $(this).data("step-id"); | ||
horizon.event_log.clear_events(); | ||
horizon.event_log.clear_modal_status(); | ||
horizon.event_log.update_events_rows(horizon.event_log.cached_data); | ||
}); | ||
|
||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.