Statistics
| Branch: | Tag: | Revision:

one / src / sunstone / public / app / tabs / templates-tab / form-panels / create / wizard-tabs / storage / disk-tab / html.hbs @ 77ad6610

History | View | Annotate | Download (15.5 KB)

1
<div class="row">
2
  <div class="large-12 columns">
3
    <input id="{{diskTabId}}radioImage" type="radio" name="{{diskTabId}}" value="image" checked>
4
    <label for="{{diskTabId}}radioImage">{{tr "Image"}}</label>
5
    <input id="{{diskTabId}}radioVolatile" type="radio" name="{{diskTabId}}" value="volatile">
6
    <label for="{{diskTabId}}radioVolatile">{{tr "Volatile Disk"}}</label>
7
  </div>
8
</div>
9
<div id="disk_type" class="image">
10
  {{{imageTableSelectHTML}}}
11
  <br>
12
  {{#advancedSection (tr "Advanced Options") }}
13
  <fieldset>
14
    <legend>{{tr "Image"}}</legend>
15
    <div class="row">
16
      <div class="large-6 columns">
17
        <label for="IMAGE_ID">
18
          {{tr "ID"}}
19
          {{{tip (tr "Image ID to be used in the Virtual Image disk.")}}}
20
        </label>
21
        <input type="text" wizard_field="IMAGE_ID" id="IMAGE_ID" name="IMAGE_ID"/>
22
      </div>
23
      <div class="large-6 columns">
24
        <label for="IMAGE">
25
          {{tr "Name"}}
26
          {{{tip (tr "Name of the image to be used in the Virtual Image disk.")}}}
27
        </label>
28
        <input type="text" wizard_field="IMAGE" id="IMAGE" name="IMAGE"/>
29
      </div>
30
    </div>
31
    <div class="row">
32
      <div class="large-6 columns">
33
        <label for="IMAGE_UID">
34
          {{tr "User ID"}}
35
          {{{tip (tr "Identifier of the user owner of the image to reduce ambiguity.")}}}
36
        </label>
37
        <input type="text" wizard_field="IMAGE_UID" id="IMAGE_UID" name="IMAGE_UID"/>
38
      </div>
39
      <div class="large-6 columns">
40
        <label for="IMAGE_UNAME">
41
          {{tr "User Name"}}
42
          {{{tip (tr "Name of the user owner of the image to reduce ambiguity.")}}}
43
        </label>
44
        <input type="text" wizard_field="IMAGE_UNAME" id="IMAGE_UNAME" name="IMAGE_UNAME"/>
45
      </div>
46
    </div>
47
  </fieldset>
48
  <div class="row">
49
    <div class="large-6 columns">
50
      <label for="TARGET">
51
        {{tr "Target"}}
52
        {{{tip (tr "Device to map image disk. If set, it will overwrite the default device mapping. Xen: Optional. KVM: Optional. VMWare: Optional")}}}
53
      </label>
54
      <input type="text" wizard_field="TARGET" id="TARGET" name="target"/>
55
    </div>
56
    <div class="large-6 columns hypervisor only_xen only_kvm">
57
      <label for="DRIVER">
58
        {{tr "Driver"}}
59
        {{{tip (tr "Specific image mapping driver. Xen: Optional (tap:aio:, file:). KVM: Optional (raw, qcow2). VMWare: Not supported")}}}
60
      </label>
61
      <input type="text" wizard_field="DRIVER" id="DRIVER" name="driver" />
62
    </div>
63
  </div>
64
  <div class="row">
65
    <div class="large-6 columns">
66
      <label for="DEV_PREFIX">
67
        {{tr "Device Prefix"}}
68
        {{{tip (tr "Prefix for the emulated device this image will be mounted at. For instance, hd, sd, or vd for KVM virtio. If omitted, the dev_prefix attribute of the Image will be used. Xen: Optional. KVM: Optional. VMWare: Optional")}}}
69
      </label>
70
      <input type="text" wizard_field="DEV_PREFIX" id="DEV_PREFIX" name="DEV_PREFIX"/>
71
    </div>
72
    <div class="large-6 columns">
73
      <label for="READONLY">
74
        {{tr "Read Only"}}
75
        {{{tip (tr "Set how the image is exposed by the hypervisor. Xen: Optional. KVM: Optional. VMWare: Optional")}}}
76
      </label>
77
      <select wizard_field="READONLY" id="READONLY" name="READONLY">
78
        <option value=""></option>
79
        <option value="yes">{{tr "yes"}}</option>
80
        <option value="no">{{tr "no"}}</option>
81
      </select>
82
    </div>
83
  </div>
84
  <div class="row vm_param">
85
    <div class="large-6 columns hypervisor only_kvm">
86
      <label for="CACHE">
87
        {{tr "Cache"}}
88
        {{{tip (tr "Selects the cache mechanism for the disk.")}}}
89
      </label>
90
      <select wizard_field="CACHE" id="CACHE" name="CACHE">
91
        <option value=""></option>
92
        <option value="default">{{tr "default"}}</option>
93
        <option value="none">{{tr "none"}}</option>
94
        <option value="writethrough">{{tr "writethrough"}}</option>
95
        <option value="writeback">{{tr "writeback"}}</option>
96
        <option value="directsync">{{tr "directsync"}}</option>
97
        <option value="unsafe">{{tr "unsafe"}}</option>
98
      </select>
99
    </div>
100
    <div class="large-6 columns hypervisor only_kvm">
101
      <label for="IO">
102
        {{tr "IO"}}
103
        {{{tip (tr "Set IO policy.")}}}
104
      </label>
105
      <select wizard_field="IO" id="IO" name="IO">
106
        <option value=""></option>
107
        <option value="threads">{{tr "threads"}}</option>
108
        <option value="native">{{tr "native"}}</option>
109
      </select>
110
    </div>
111
    <div class="large-6 columns hypervisor only_kvm">
112
      <label for="DISCARD">
113
        {{tr "Discard"}}
114
        {{{tip (tr "Set DISCARD feature.")}}}
115
      </label>
116
      <select wizard_field="DISCARD" id="DISCARD" name="DISCARD">
117
        <option value=""></option>
118
        <option value="ignore">{{tr "ignore"}}</option>
119
        <option value="unmap">{{tr "unmap"}}</option>
120
      </select>
121
    </div>
122
    <div class="large-6 columns hypervisor only_kvm">
123
      <label for="SIZE">
124
        {{tr "Size (MB)"}}
125
        {{{tip (tr "The size of the disk will be modified to match this size when the template is instantiated")}}}
126
      </label>
127
      <input wizard_field="SIZE" type="text" id="SIZE" name="SIZE" />
128
    </div>
129
    <div class="large-6 columns hypervisor only_kvm">
130
      <label for="TOTAL_BYTES_SEC">
131
        {{tr "Total Bytes Sec"}}
132
        {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
133
      </label>
134
      <input wizard_field="TOTAL_BYTES_SEC" type="text" id="TOTAL_BYTES_SEC" name="TOTAL_BYTES_SEC" />
135
    </div>
136
    <div class="large-6 columns hypervisor only_kvm">
137
      <label for="READ_BYTES_SEC">
138
        {{tr "Read Bytes Sec"}}
139
        {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
140
      </label>
141
      <input wizard_field="READ_BYTES_SEC" type="text" id="READ_BYTES_SEC" name="READ_BYTES_SEC" />
142
    </div>
143
    <div class="large-6 columns hypervisor only_kvm">
144
      <label for="WRITE_BYTES_SEC">
145
        {{tr "Write Bytes Sec"}}
146
        {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
147
      </label>
148
      <input wizard_field="WRITE_BYTES_SEC" type="text" id="WRITE_BYTES_SEC" name="WRITE_BYTES_SEC" />
149
    </div>
150
    <div class="large-6 columns hypervisor only_kvm">
151
      <label for="TOTAL_IOPS_SEC">
152
        {{tr "Total IOPS Sec"}}
153
        {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
154
      </label>
155
      <input wizard_field="TOTAL_IOPS_SEC" type="text" id="TOTAL_IOPS_SEC" name="TOTAL_IOPS_SEC" />
156
    </div>
157
    <div class="large-6 columns hypervisor only_kvm">
158
      <label for="READ_IOPS_SEC">
159
        {{tr "Read IOPS Sec"}}
160
        {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
161
      </label>
162
      <input wizard_field="READ_IOPS_SEC" type="text" id="READ_IOPS_SEC" name="READ_IOPS_SEC" />
163
    </div>
164
    <div class="large-6 columns hypervisor only_kvm">
165
      <label for="WRITE_IOPS_SEC">
166
        {{tr "Write IOPS Sec"}}
167
        {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
168
      </label>
169
      <input wizard_field="WRITE_IOPS_SEC" type="text" id="WRITE_IOPS_SEC" name="WRITE_IOPS_SEC" />
170
    </div>
171
  </div>
172
  {{/advancedSection}}
173
</div>
174
<div id="disk_type" class="volatile" style="display: none;">
175
  <div class="row">
176
    <div class="large-6 columns left">
177
      <label for="SIZE">
178
        {{tr "Size"}}
179
        {{{tip (tr "Size of the new disk in MB")}}}
180
      </label>
181
      <input wizard_field="SIZE" type="text" id="SIZE" name="SIZE"/>
182
    </div>
183
  </div>
184
  <div class="row">
185
    <div class="large-6 columns">
186
      <label for="TYPE">
187
        {{tr "Type"}}
188
        {{{tip (tr "Disk type")}}}
189
      </label>
190
      <select wizard_field="TYPE" id="TYPE" name="type">
191
        <option value="fs">{{tr "FS"}}</option>
192
        <option value="swap">{{tr "Swap"}}</option>
193
      </select>
194
    </div>
195
    <div class="large-6 columns">
196
      <label for="FORMAT">
197
        {{tr "Format"}}
198
        {{{tip (tr "Filesystem type for the fs images")}}}
199
      </label>
200
      <input wizard_field="FORMAT" type="text" id="FORMAT" name="format" />
201
    </div>
202
  </div>
203
  <br>
204
  {{#advancedSection (tr "Advanced Options") }}
205
  <div class="row">
206
    <div class="large-6 columns">
207
      <label for="TARGET">
208
        {{tr "Target"}}
209
        {{{tip (tr "Device to map image disk. If set, it will overwrite the default device mapping. Xen: Optional. KVM: Optional. VMWare: Optional")}}}
210
      </label>
211
      <input wizard_field="TARGET" type="text"  id="TARGET" name="target"/>
212
    </div>
213
    <div class="large-6 columns hypervisor only_xen only_kvm">
214
      <label for="DRIVER">
215
        {{tr "Driver"}}
216
        {{{tip (tr "Specific image mapping driver. Xen: Optional (tap:aio:, file:). KVM: Optional (raw, qcow2). VMWare: Not supported")}}}
217
      </label>
218
      <input wizard_field="DRIVER" type="text" id="DRIVER" name="driver" />
219
    </div>
220
  </div>
221
  <div class="row">
222
    <div class="large-6 columns">
223
      <label for="DEV_PREFIX">
224
        {{tr "Device Prefix"}}
225
        {{{tip (tr "Prefix for the emulated device this image will be mounted at. For instance, hd, sd, or vd for KVM virtio. If omitted, the dev_prefix attribute of the Image will be used. Xen: Optional. KVM: Optional. VMWare: Optional")}}}
226
      </label>
227
      <input wizard_field="DEV_PREFIX" type="text" id="DEV_PREFIX" name="DEV_PREFIX"/>
228
    </div>
229
    <div class="large-6 columns">
230
      <label for="READONLY">
231
        {{tr "Read Only"}}
232
        {{{tip (tr "Set how the image is exposed by the hypervisor. Xen: Optional. KVM: Optional. VMWare: Optional")}}}
233
      </label>
234
      <select wizard_field="READONLY" id="READONLY" name="READONLY">
235
        <option value=""></option>
236
        <option value="yes">{{tr "yes"}}</option>
237
        <option value="no">{{tr "no"}}</option>
238
      </select>
239
    </div>
240
  </div>
241
  <div class="row  vm_param">
242
    <div class="large-6 columns hypervisor only_kvm">
243
      <label for="CACHE">
244
        {{tr "Cache"}}
245
        {{{tip (tr "Selects the cache mechanism for the disk.")}}}
246
      </label>
247
      <select wizard_field="CACHE" id="CACHE" name="CACHE">
248
        <option value=""></option>
249
        <option value="default">{{tr "default"}}</option>
250
        <option value="none">{{tr "none"}}</option>
251
        <option value="writethrough">{{tr "writethrough"}}</option>
252
        <option value="writeback">{{tr "writeback"}}</option>
253
        <option value="directsync">{{tr "directsync"}}</option>
254
        <option value="unsafe">{{tr "unsafe"}}</option>
255
      </select>
256
    </div>
257
    <div class="large-6 columns hypervisor only_kvm">
258
      <label for="IO">
259
        {{tr "IO"}}
260
        {{{tip (tr "Set IO policy.")}}}
261
      </label>
262
      <select wizard_field="IO" id="IO" name="IO">
263
        <option value=""></option>
264
        <option value="threads">{{tr "threads"}}</option>
265
        <option value="native">{{tr "native"}}</option>
266
      </select>
267
    </div>
268
    <div class="large-6 columns hypervisor only_kvm">
269
      <label for="TOTAL_BYTES_SEC">
270
        {{tr "Total Bytes Sec"}}
271
        {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
272
      </label>
273
      <input wizard_field="TOTAL_BYTES_SEC" type="text" id="TOTAL_BYTES_SEC" name="TOTAL_BYTES_SEC" />
274
    </div>
275
    <div class="large-6 columns hypervisor only_kvm">
276
      <label for="READ_BYTES_SEC">
277
        {{tr "Read Bytes Sec"}}
278
        {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
279
      </label>
280
      <input wizard_field="READ_BYTES_SEC" type="text" id="READ_BYTES_SEC" name="READ_BYTES_SEC" />
281
    </div>
282
    <div class="large-6 columns hypervisor only_kvm">
283
      <label for="WRITE_BYTES_SEC">
284
        {{tr "Write Bytes Sec"}}
285
        {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
286
      </label>
287
      <input wizard_field="WRITE_BYTES_SEC" type="text" id="WRITE_BYTES_SEC" name="WRITE_BYTES_SEC" />
288
    </div>
289
    <div class="large-6 columns hypervisor only_kvm">
290
      <label for="TOTAL_IOPS_SEC">
291
        {{tr "Total IOPS Sec"}}
292
        {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
293
      </label>
294
      <input wizard_field="TOTAL_IOPS_SEC" type="text" id="TOTAL_IOPS_SEC" name="TOTAL_IOPS_SEC" />
295
    </div>
296
    <div class="large-6 columns hypervisor only_kvm">
297
      <label for="READ_IOPS_SEC">
298
        {{tr "Read IOPS Sec"}}
299
        {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
300
      </label>
301
      <input wizard_field="READ_IOPS_SEC" type="text" id="READ_IOPS_SEC" name="READ_IOPS_SEC" />
302
    </div>
303
    <div class="large-6 columns hypervisor only_kvm">
304
      <label for="WRITE_IOPS_SEC">
305
        {{tr "Write IOPS Sec"}}
306
        {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
307
      </label>
308
      <input wizard_field="WRITE_IOPS_SEC" type="text" id="WRITE_IOPS_SEC" name="WRITE_IOPS_SEC" />
309
    </div>
310
  </div>
311
  {{/advancedSection}}
312
</div>