Commit Graph

2316 Commits

Author SHA1 Message Date
Emmanuel Kasper
ecbca6c4c0 Add help button for PVE
This help button is meant to be added on InputPanels, where a
link to an online documentation chapter or subschapter is available.

Clicking on the help button will open the help in a new
browser tab.

Original idea similar to the pfSense GUI.
2016-06-01 12:30:25 +02:00
Dominik Csapak
cc1a91be71 fix right click selection in tree
in my commit 685b7aa4c5
i introduced a bug with that an item gets selected
in the tree when you right click on it

also fix the function parameters

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-31 12:23:06 +02:00
Dietmar Maurer
897e77907c bump version to 4.2-8 2016-05-25 10:00:45 +02:00
Dietmar Maurer
ccccbf3fdb simplify/optimize code 2016-05-25 09:59:25 +02:00
Dietmar Maurer
d5d08d2aca depend on pve-docs package
and serve documentation files with pveproxy:

https://<HOST>:8006/pve-docs/index.html
2016-05-25 09:41:46 +02:00
Dietmar Maurer
6c012815ef bump version to 4.2-7 2016-05-23 09:42:51 +02:00
Thomas Lamprecht
f014da61c5 Status: report errors on socket creation problems
If the socket couldn't be created (e.g. FQDN not resolvable) we
continued witouth any hint, when actualy writing the data we then
die'd. The user then does not really know why, so report errors
if the socket creation failed.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-05-23 09:17:42 +02:00
Thomas Lamprecht
4caf47e9e2 Status: allow IPs and move properties to base class
We only allowed servers with the dns-name format, as such status
server may often be in internal networks and with no hostname
(testing, small network so no dns, ...) do not limit the
configuration possibilities with no reason.

Also move the base property part to the base Status class, all
current plugins use server and port so no need for double
declaration of format/descriptions.

If a future plugin doesn't need them it can omit them by not
returning the respective properties in the options method
inherited by SectionConfig.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-05-23 09:16:33 +02:00
Dominik Csapak
f51fdaa6a8 fix wrong message after subscription upload
since extjs5 Store.snapshot does not exist anymore,
we didnt remove filtered records

this lead to the fact, that the 'message' record did
not get removed and a "no subscription file" message
was shown directly after uploading a key

to get also the filtered records in the store
we use store.getData().getSource()

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-20 12:05:50 +02:00
Dominik Csapak
685b7aa4c5 move cmdmenu function and use it in poolmemberlist
we had the function for the cmdmenu at two
different places (resourcetree and resourcegrid)

move it to PVE.Utils to reuse code, and
also use it in pool members list

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-20 07:30:21 +02:00
Dietmar Maurer
26d2ef1523 update changelog 2016-05-19 06:12:48 +02:00
Dominik Csapak
494b650e25 fix reset button with bind mounts
if we do not disable the storageselector with bind mounts,
it automatically sets the first storage which can hold
containers (because of allowBlank: false) and triggers
the dirty flag but clicking on reset does not delete
the value there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-19 06:12:35 +02:00
Dominik Csapak
47e36cf677 fix #1000: add backup checkbox for mountpoints
excluding bind mounts and rootfs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-19 06:11:25 +02:00
Dietmar Maurer
267740781b bump version to 4.2-6 2016-05-18 11:33:06 +02:00
Dominik Csapak
6f39b53eb9 allow tagging of vlan 1 in gui
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-18 11:32:15 +02:00
Alexandre Derumier
2bfacbcf24 cephserver : add systemd support V3
V3 changelog:
 -fix test of zero value id

 please note that even if ceph(osd|mon).target are currently not available in ceph packages,
 they are not used by proxmox api currently, because we always specify an id to a service.
 targets are used to start/stop all services at the same time. Starting speficic serviceid is
 done through ceph-(osd|mon)@.service files.

V2 changelog :
  - remove setsid
  - use [A-Za-z0-9]{1,32} pattern for services

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2016-05-18 06:18:46 +02:00
Dietmar Maurer
f45bd15c8f bump version to 4.2-5 2016-05-17 17:00:06 +02:00
Wolfgang Bumiller
98901f1d88 ceph: brackets around ipv6 2016-05-17 16:05:21 +02:00
Dominik Csapak
2517c76ba8 fix #992: remove network id from gui
since we can simply use the first free one, omit the
selection combobox.

disable the add button if we have 10 or more network
devices

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-17 16:04:02 +02:00
Emmanuel Kasper
8c70732ba9 set 'disabled' for grid panels which disaply a read only, not sortable content
* closes the bug #976
 * minor usability improvement: having a clickable row where
 no action was possible is a bit misleading
2016-05-17 12:07:07 +02:00
Emmanuel Kasper
3c813f7416 Enlarge Object Grid first column default size
The framework value of 100 is not enough for many of our description
fields.
Setting this at the parent component level allow to remove
the end component setting.
2016-05-17 11:33:34 +02:00
Dominik Csapak
4dcca8a403 change hotplugselector to checkboxes
the hotplugselector was not good to use,
and the options were confusing (empty was the default value, etc)

now we have checkboxes for each value, and if none are selected,
hotplug is disabled

also fixes the renderer when hotplug is set to '1' which
just means the default of 'disk,network,usb'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-17 06:15:53 +02:00
Wolfgang Link
ee22d1cb38 Add ceph in optional packages
It is usefull to see which ceph version are installed on the PVE host.
2016-05-10 10:25:19 +02:00
Dietmar Maurer
03b51352e2 update changelog 2016-05-06 09:29:51 +02:00
Dominik Csapak
6ae31fc19b fix #979: check always for migrated vm
we only checked for grouping attributes for moved vms,
but this is only true in server view

e.g. in pool view the grouping attributes is pool
and the item is not reselected, resulting in a "file not found"
error (it looks for the conf on the wrong node)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-06 09:28:15 +02:00
Dietmar Maurer
9cac6b7594 HDEdit: cleanup, move logic to view controller 2016-05-04 13:06:13 +02:00
Dietmar Maurer
180d7ef5b4 fix #973: disable iothread for non-virtio drives
this patch disables the iothread field, whenever the disk
is not a virtio disk, or the selected controller is not
virtio
2016-05-04 12:48:18 +02:00
Alexey Kuzmin
e9f581d4e1 Status/Graphite: fix carbon protocol
Carbon (particularly carbon-c-relay) expects one metric per line.
Current PVE implementation breaks this rule.

Committed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-05-04 11:09:40 +02:00
Thomas Lamprecht
9ed623a6d8 Status/Plugin: fix Typo
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-05-04 11:08:59 +02:00
Emmanuel Kasper
248ff6ca69 Cosmetic improvement: display the generated HTML with proper indenting 2016-05-04 08:12:56 +02:00
Emmanuel Kasper
69f17ac3d7 Serve debug versions of ExtJS libs when pveproxy is started in debug mode 2016-05-04 08:12:19 +02:00
Dominik Csapak
25e0bc2d9d improve pending changes for qemu hardware in gui
this patch fixes an access to an undefined value
if a disk/cd/network device was pending

also improve how this is displayed:
instead of
****
undefined
new value
****

show just the new value

this occured when having a new disk under pending,
or having a disk removal under pending

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-03 11:24:47 +02:00
Dominik Csapak
dba34cd6c9 add undo Zoom Button
this adds a decent undo zoom button, which is only enabled
when the chart is zoomed

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-03 11:21:01 +02:00
Dominik Csapak
2964ce51a8 rename enableAfterLoad to enableLoadMask
also add an explaining comment

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-03 11:19:35 +02:00
Dietmar Maurer
42e4075da0 update changelog 2016-05-03 09:24:43 +02:00
Emmanuel Kasper
650920de3f Do not send -debug versions of framework files
From ExtJS4 to 6 the debug files have doubled in size from
4.4MB to 8.8MB
HTTPServer.pm compress these files on the fly before sending them
to the browser (as "Accept-Encoding: gzip"  is the default in
browsers)

On very slow systems (AMD Bobcat for instance, as discussed in
https://forum.proxmox.com/threads/no-webfrontend-showed-in-browser-with-new-gui-pvetest.26951/#post-135699

the compression of this file can take up to 5 seconds, and this will
hit the HTTP Timeout (line 1629) we use for serving static files, provoking the
error:
curl -k --verbose --insecure --header "Accept-Encoding: gzip"  https://slowhost:8006/pve2/ext6/ext-all-debug.js
curl: (18) transfer closed with 1991108 bytes remaining to read

Non-debug files are 4 times smaller, and since everybody will benefit of having
a faster initial load of PVE, there is no reason not to make this default.
2016-05-03 09:24:14 +02:00
Fabian Grünbichler
59756350dd update default vzdump.conf 2016-05-03 06:58:49 +02:00
Dietmar Maurer
9a59d48d7a update changelog 2016-05-03 06:44:33 +02:00
Dominik Csapak
16c162ec73 fix pending changes with boot order
this patch checks if only the bootdisk changed,
using the multikey funcionality

also use this in the revert button handler,
to revert the bootdisk also

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-03 06:44:02 +02:00
Dietmar Maurer
4d638fcb01 bump version to 4.2-4 2016-05-03 06:34:50 +02:00
Dominik Csapak
163bf3789c fix #944: do not filter by empty array
we set the pveNodeSelector to [] by default,
but filter by !node (![] == false), so that no vms are shown

this occurs, when the pveNodeSelector store loads after the store
for the vm list, which rarely happens

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-03 06:08:04 +02:00
Dominik Csapak
fd9ce61b8b fix lint errors
jslint does not like trailing commas and assignments
of the form "x = !(expression)"

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-03 06:07:19 +02:00
Dominik Csapak
05694e6d3a fix combobox reset behaviour
on comboboxes/combogrids with multiselect,
if you deselect an item (but not the last),
the order of the selected items after resetting is
not the same as the original order

because of this, the reset button is still enabled

this happens, because extjs only adds the missing
values instead of overwriting the whole array

with this fix, we overwrite the reset function of
the comboboxes and only if the values do not match
(after a reset) do we clear and set the value again

so we only change the behaviour when it is necessary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-03 06:06:58 +02:00
Dominik Csapak
abc55fa61d fix combogrid multiselect bug
this fixes a nasty combogrid/multiselect/storeload bug
in which the value of a combogrid gets set to a string instead
of an array, under certain circumstances

we overwrite the getRawValue method of our ComboGrid,
and on multiselect ComboGrids, we just get the value out of
me.rawValue, else we call the method of the parent class

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-03 06:01:09 +02:00
Dominik Csapak
34887e4479 jslint: fix not reachable return and duplicate property
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:10:22 +02:00
Dominik Csapak
7c7ae44f25 jslint: fix tab/space mixed intendation
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:09:44 +02:00
Dominik Csapak
68f8c7659f jslint: fix access to uninitialized variable
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:09:17 +02:00
Dominik Csapak
f25d7c4a74 jslint: change (x)?x:y to x || y
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:08:51 +02:00
Dominik Csapak
ca90044dac jslint: fix _ prefix and 'for in' over an object
jslint does not like names that begin with _

also it complains when you do not filter
a for in statement with a hasOwnProperty(property) as first
if statement

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:08:33 +02:00
Dominik Csapak
a764c5f72e jslint: fix missing or extra semicolon
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:07:42 +02:00