{% extends "base.html" %} {% load i18n %} {% load static %} {% load bootstrap_icons %} {% load operations %} {% block title %}{% trans "Overview" %} - {{ compute.name }}{% endblock %} {% block page_heading_extra %} {% if compute.maintenance %}
{% csrf_token %}
{% elif given.active %} {# its VMs are migrated with it: the Bulk Migrate page puts it in maintenance, with or without moving them #} {% bs_icon 'wrench-adjustable' %} {% trans "Put in maintenance" %} {% else %}
{% csrf_token %}
{% endif %} {% bs_icon 'pencil' %} {% trans "Edit connection" %} {% bs_icon 'x-circle' %} {% trans "Remove from panel" %} {% endblock page_heading_extra %} {% block page_heading %}{{ compute.name }}{% endblock page_heading %} {% block content %}
{% if connected %} {% trans "Connected" %} {% else %} {% trans "Not connected" %} {% endif %} {{ compute.hostname }} {% if compute.details %}{{ compute.details }}{% endif %}
{% include "computes/host_nav.html" with section="overview" %} {% if compute.maintenance %} {# ready once none of its VMs runs: the state comes from its VMs, not from a job #}
{% url 'bulk_migrate' compute.id as bulk_url %} {% if not given %} {% trans "Maintenance requested: the host cannot be read, so whether its VMs still run is not known." %} {% elif given.active %} {% blocktrans count counter=given.active %}Maintenance requested: {{ counter }} VM still runs on this host.{% plural %}Maintenance requested: {{ counter }} VMs still run on this host.{% endblocktrans %} {% blocktrans %}Bulk Migrate moves them to the other hosts; shut down those that cannot move.{% endblocktrans %} {% else %} {% trans "In maintenance: no VM runs on this host." %} {% endif %} {% trans "No new VM or migration comes to it, its VMs cannot be started there, and Balance leaves it out." %} {% if autostart %}
{% blocktrans with vms=autostart|join:", " %}These VMs start by themselves when the host boots: {{ vms }}. Turn their autostart off before restarting the host.{% endblocktrans %}
{% endif %} {% if bulk and not given or bulk and given.active %}
{% url 'operations:job' bulk.pk as job_url %} {% if bulk_running %} {% blocktrans %}Its VMs are being migrated: see the job.{% endblocktrans %} {% else %} {% blocktrans with state=bulk.state|state_label when=bulk.created_at|date:"SHORT_DATETIME_FORMAT" %}Its last bulk migration, of {{ when }}: {{ state }}. See the job.{% endblocktrans %} {% endif %}
{% endif %}
{% endif %} {% if not connected %} {% else %} {% if read_error %} {% endif %} {% if given %}
{% bs_icon 'server' %} {% trans "VMs" %}
{{ given.vm_count }}
{% blocktrans with running=given.vms.running shutoff=given.vms.shutoff %}{{ running }} running, {{ shutoff }} shut off{% endblocktrans %}{% if given.vms.paused %}, {% blocktrans with paused=given.vms.paused %}{{ paused }} paused{% endblocktrans %}{% endif %}{% if given.vms.other %}, {% blocktrans with other=given.vms.other %}{{ other }} other{% endblocktrans %}{% endif %}
{% trans "Instances" %} →
{% bs_icon 'cpu' %} {% trans "vCPUs" %}
{% include "computes/capacity_vcpus.html" %}
{% bs_icon 'memory' %} {% trans "Memory" %}
{% include "computes/capacity_memory.html" %}
{% bs_icon 'device-hdd' %} {% trans "Storage" %}
{% include "computes/capacity_storage.html" %} {% trans "Storages" %} →
{% else %}
{% trans "The capacity could not be read." %}
{% endif %} {# the load is read on its own: shown also when the details could not be #}
{% bs_icon 'speedometer2' %} {% trans "CPU in use" %} –
{% bs_icon 'memory' %} {% trans "Memory in use" %} –
{% trans "The last 10 readings, one every 5 seconds. Memory in use leaves out the host's buffers and cache." %} {% trans "Waiting for the first reading." %}
{% if host %}
{% bs_icon 'cpu' %} {% trans "Hardware" %}
  • {% trans "Processor" %} {{ host.processor|default:"–" }}
  • {% trans "Architecture" %} {{ host.arch }}
  • {% trans "Logical CPUs" %} {{ host.topology.cpus }}
  • {% trans "Physical cores" %} {{ host.topology.cores|default:"–" }}
  • {% trans "Sockets" %} {{ host.topology.sockets|default:"–" }}
  • {% trans "NUMA nodes" %} {{ host.topology.nodes|default:"–" }}
  • {% trans "Clock" %} {{ host.ghz }} GHz
  • {% trans "Memory" %} {{ host.memory|filesizeformat }}
{% bs_icon 'layers' %} {% trans "Software and connection" %}
  • {% trans "Hostname" %} {{ host.hostname }}
  • {{ host.hypervisor }} {{ host.hypervisor_version }}
  • libvirt {{ host.libvirt_version }}
  • {% trans "Guest architectures" %} {% for arch, types in host.guest_archs.items %}{{ arch }} {{ types|join:" · " }}{% endfor %}
  • {% trans "Emulator" %} {{ host.emulator|default:"–" }}
  • {% trans "Connection" %} {{ host.uri }}
{% endif %} {% endif %} {% endblock %} {% block script %} {% if connected %} {% endif %} {% endblock %}