{% extends "horizon/common/_modal_form.html" %} {% load i18n %} {% block form_id %}add_disk_profile_form{% endblock %} {% block form_action %}{% url 'horizon:admin:inventory:adddiskprofile' host_id %}{% endblock %} {% block modal-header %}{% trans "Create Storage Profile" %}{% endblock %} {% block modal-body %}
{% include "horizon/common/_form_fields.html" %}

{% trans "Description" %}:

{% trans "Create a new Storage Profile based on the storage and disk configuration of this host." %}

{{ "
With the following configuration:" }} {% if host.stors and is_host_with_storage %} {% for disk in host.disks %} {% for stor in host.stors %} {% if stor.uuid == disk.istor_uuid %} {% endif %} {% endfor %} {% endfor %} {% endif %} {% if host.lvgs %} {% endif %} {% if host.lvgs %} {% for lvg in host.lvgs %} {% endfor %} {% endif %}
{% trans "Disk" %} {% trans "Storage" %}
{{ disk.device_path }} {{"( "}} {{ disk.device_node }}{{", "}} {{disk.serial_id}} {{" )"}} {{": "}} {{ disk.size_gib }} {{ "GiB" }} {% if stor.function == 'osd' %} {{ stor.function }} {{"stor"}} {{"- ceph journal size: "}} {{stor.journal_size_gib}}{{" GiB,"}} {% if stor.journal_location == stor.uuid %} {{ "collocated on osd stor" }} {% else %} {{ "on journal stor" }} {{stor.count}} {% endif %} {{", for tier:"}} {{stor.tier_name}} {% else %} {{ stor.function }} {{"stor"}} {{stor.count}} {% endif %}
{% trans "Logical Volume Group" %} {% trans "Physical Volumes" %} {% trans "Physical Volume Partitions" %}
{{ "name"}} {{": "}} {{ lvg.lvm_vg_name }} {{ "
" }} {% if lvg.instances_lv_size_gib %} {{ "instances_lv size GiB"}} {{": "}} {{lvg.instances_lv_size_gib }} {{ "
" }} {% endif %}
{{ "devices"}} {{": "}} {{ lvg.dev_paths }}{% for part in host.partitions %} {{ part.device_path}} {{": "}} {{ part.size_gib }} {{" GiB"}} {{ "
" }} {% endfor %}
{{ "
" }} {% endblock %} {% block modal-footer %} Cancel {% endblock %}