Commit f15bd893 authored by Daniele Venzano's avatar Daniele Venzano

Implement log viewing for zo processes (eurecom specific)

parent ec187fec
......@@ -17,6 +17,7 @@
from zoe_api.web.request_handler import ZoeWebRequestHandler
from zoe_api.exceptions import ZoeException
from zoe_lib.config import get_conf
class StatusEndpointWeb(ZoeWebRequestHandler):
......@@ -55,7 +56,8 @@ class StatusEndpointWeb(ZoeWebRequestHandler):
"stats": stats,
"executions_in_queue": executions_in_queue,
"services_per_node": services_per_node,
"max_service_count": max_service_count
"max_service_count": max_service_count,
'eurecom': get_conf().eurecom
}
self.render('status.jinja2', **template_vars)
......@@ -21,6 +21,9 @@
<li><a href="#scheduler">Scheduler</a></li>
<li><a href="#platform">Platform</a></li>
<li><a href="#service-distrib">Service distribution</a></li>
{% if eurecom %}
<li><a href="#logs">Zoe process logs</a></li>
{% endif %}
</ul>
</div>
......@@ -288,6 +291,14 @@
</tbody>
</table>
{% if eurecom %}
<h3 class="section"><a name="logs">Zoe process</a></h3>
<ul>
<li><a href="http://192.168.46.31:9001">Zoe API</a></li>
<li><a href="http://192.168.46.31:9002">Zoe master</a></li>
</ul>
{% endif %}
<script>
function refresh_page() {
document.location.reload();
......
......@@ -128,6 +128,7 @@ def load_configuration(test_conf=None):
argparser.add_argument('--additional-volumes', help='Additional volumes to mount in services filesystems. (ex: /mnt/data:data,/mnt/data_n:data_n)', default='')
argparser.add_argument('--enable-plots', action='store_true', help='Enable generation of URLs to Grafana')
argparser.add_argument('--enable-cephfs-quotas', action='store_true', help='Enable reading cephfs quotas (needs sudo configuration)')
argparser.add_argument('--eurecom', action='store_true', help='Enable options specific to Eurecom\'s deployment')
opts = argparser.parse_args()
if opts.debug:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment