Statistics
| Branch: | Tag: | Revision:

one / src / sunstone / public / app / tabs / templates-tab / form-panels / create / wizard-tabs / scheduling / html.hbs @ 8fe69878

History | View | Annotate | Download (6.26 KB)

1
{{! -------------------------------------------------------------------------- }}
2
{{! Copyright 2002-2017, OpenNebula Project, OpenNebula Systems                }}
3
{{!                                                                            }}
4
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may    }}
5
{{! not use this file except in compliance with the License. You may obtain    }}
6
{{! a copy of the License at                                                   }}
7
{{!                                                                            }}
8
{{! http://www.apache.org/licenses/LICENSE-2.0                                 }}
9
{{!                                                                            }}
10
{{! Unless required by applicable law or agreed to in writing, software        }}
11
{{! distributed under the License is distributed on an "AS IS" BASIS,          }}
12
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   }}
13
{{! See the License for the specific language governing permissions and        }}
14
{{! limitations under the License.                                             }}
15
{{! -------------------------------------------------------------------------- }}
16
<div class="row collapse">
17
  <div class="medium-2 columns">
18
    <ul class="tabs vertical" id="schedulingTabs" data-tabs>
19
      <li class="tabs-title is-active">
20
        <a href="#placementTab">{{tr "Placement"}}</a>
21
      </li>
22
      <li class="tabs-title">
23
        <a href="#policyTab">{{tr "Policy"}}</a>
24
      </li>
25
    </ul>
26
  </div>
27
  <div class="medium-10 columns">
28
    <div class="tabs-content vertical" data-tabs-content="schedulingTabs">
29
      <div class="requirements wizard_internal_tab is-active tabs-panel" id="placementTab">
30
        <fieldset>
31
          <legend>{{tr "Host Requirements"}}</legend>
32
          <div class="row">
33
            <div class="large-12 columns text-center">
34
              <input type="radio" id="hosts_req" name="req_select" value="host_select">
35
              <label for="hosts_req">{{tr "Select Hosts "}}</label>
36
              <input type="radio" id="clusters_req"  name="req_select" value="cluster_select">
37
              <label for="clusters_req">{{tr "Select Clusters "}}</label>
38
            </div>
39
          </div>
40
          <br>
41
          <div id="req_type" class="host_select" hidden>{{{hostsTableSelectHTML}}}</div>
42
          <div id="req_type" class="cluster_select" hidden>{{{clustersTableSelectHTML}}}</div>
43
          <br>
44
          <div class="row">
45
            <div class="large-12 columns">
46
              <label for="SCHED_REQUIREMENTS">
47
                {{tr "Expression"}}
48
                {{{tip (tr "Boolean expression that rules out provisioning hosts from list of machines suitable to run this VM")}}}
49
              </label>
50
              <input type="text" wizard_field="SCHED_REQUIREMENTS" id="SCHED_REQUIREMENTS" name="requirements" />
51
            </div>
52
          </div>
53
        </fieldset>
54
        <fieldset>
55
          <legend>{{tr "Datastore Requirements"}}</legend>
56
          <div class="row">
57
            <div class="large-12 columns">
58
              <label for="SCHED_DS_REQUIREMENTS">
59
                {{tr "Expression"}}
60
                {{{tip (tr "Boolean expression that rules out entries from the pool of datastores suitable to run this VM.")}}}
61
              </label>
62
              <input type="text" wizard_field="SCHED_DS_REQUIREMENTS" id="SCHED_DS_REQUIREMENTS" name="requirements" />
63
            </div>
64
          </div>
65
        </fieldset>
66
      </div>
67
      <div id="policyTab" class="wizard_internal_tab tabs-panel">
68
        <fieldset class="host_rank">
69
          <legend>{{tr "Host Rank"}}</legend>
70
          <div class="row">
71
            <div class="large-12 columns text-center">
72
              <input type="radio" id="packingRadio" name="rank_select" value="RUNNING_VMS">
73
              <label for="packingRadio">
74
                {{tr "Packing"}}
75
                {{{tip (tr "Pack the VMs in the Hosts to reduce VM fragmentation")}}}
76
              </label>
77
              <input type="radio"  id="stripingRadio" name="rank_select" value="-RUNNING_VMS">
78
              <label for="stripingRadio">
79
                {{tr "Stripping"}}
80
                {{{tip (tr "Spread the VMs in the Hosts")}}}
81
              </label>
82
              <input type="radio"  id="loadawareRadio" name="rank_select" value="FREE_CPU">
83
              <label for="loadawareRadio">
84
                {{tr "Load-aware"}}
85
                {{{tip (tr "Maximize the resources available to VMs in a Host")}}}
86
              </label>
87
            </div>
88
          </div>
89
          <br>
90
          <div class="row">
91
            <div class="large-12 columns">
92
              <label for="SCHED_RANK">
93
                {{tr "Expression"}}
94
                {{{tip (tr "This field sets which attribute will be used to sort the suitable hosts for this VM")}}}
95
              </label>
96
              <input type="text" wizard_field="SCHED_RANK" id="SCHED_RANK" name="RANK" />
97
            </div>
98
          </div>
99
        </fieldset>
100
        <fieldset class="ds_rank hypervisor only_kvm">
101
          <legend>{{tr "Datastore Rank"}}</legend>
102
          <div class="row">
103
            <div class="large-12 columns text-center">
104
              <input type="radio" id="packingDSRadio" name="ds_rank_select" value="-FREE_MB">
105
              <label for="packingDSRadio">
106
                {{tr "Packing"}}
107
                {{{tip (tr "Tries to optimize storage usage by selecting the DS with less free space")}}}
108
              </label>
109
              <input type="radio"  id="stripingDSRadio" name="ds_rank_select" value="FREE_MB">
110
              <label for="stripingDSRadio">
111
                {{tr "Stripping"}}
112
                {{{tip (tr "Striping. Tries to optimize I/O by distributing the VMs across datastores.")}}}
113
              </label>
114
            </div>
115
          </div>
116
          <br>
117
          <div class="row">
118
            <div class="large-12 columns">
119
              <label for="SCHED_DS_RANK">
120
                {{tr "Expression"}}
121
                {{{tip (tr "This field sets which attribute will be used to sort the suitable datastores for this VM")}}}
122
              </label>
123
              <input type="text" wizard_field="SCHED_DS_RANK" id="SCHED_DS_RANK" name="RANK" />
124
            </div>
125
          </div>
126
        </fieldset>
127
      </div>
128
    </div>
129
  </div>
130
</div>