]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
6 years agouse RRDChart and RRDStore from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:17:58 +0000 (15:17 +0100)]
use RRDChart and RRDStore from widget toolkit

also remove old unused RRDView

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoadd rrd models
Dominik Csapak [Mon, 15 Jan 2018 14:17:57 +0000 (15:17 +0100)]
add rrd models

they will be used with the rrdstore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoremove unused MigrateAll window
Dominik Csapak [Mon, 15 Jan 2018 14:17:56 +0000 (15:17 +0100)]
remove unused MigrateAll window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse NodeAPT grid from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:17:55 +0000 (15:17 +0100)]
use NodeAPT grid from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse NetworkView/NetworkEdit from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:17:54 +0000 (15:17 +0100)]
use NetworkView/NetworkEdit from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse TimeView and TimeEdit from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:17:53 +0000 (15:17 +0100)]
use TimeView and TimeEdit from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse IntegerField from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:17:52 +0000 (15:17 +0100)]
use IntegerField from widget toolkit

there we implemented deleteEmpty, which we can use in some cases.
this also fixes a bug in the ControllerSelector where
an empty field would be allowed (but should not)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse TextField from proxmox-widget-toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:17:51 +0000 (15:17 +0100)]
use TextField from proxmox-widget-toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse ComboGrid from proxmox-widget-toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:17:50 +0000 (15:17 +0100)]
use ComboGrid from proxmox-widget-toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse pve-i18n package
Dominik Csapak [Mon, 22 Jan 2018 12:41:20 +0000 (13:41 +0100)]
use pve-i18n package

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd proxmox-widget-toolkit to pve gui
Dominik Csapak [Mon, 15 Jan 2018 14:17:49 +0000 (15:17 +0100)]
add proxmox-widget-toolkit to pve gui

we will use components from proxmox-widget-toolkit rather than
directly from pve-manager

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agocorrect the upgradecmd for xtermjs
Dominik Csapak [Wed, 17 Jan 2018 09:33:19 +0000 (10:33 +0100)]
correct the upgradecmd for xtermjs

use the pveupgrade command directly without bash inbetween,
the incorrect quoting led to '--shell' not being passed to
pveupgrade and closing the connection

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 5.1-43
Fabian Grünbichler [Wed, 17 Jan 2018 08:09:14 +0000 (09:09 +0100)]
bump version to 5.1-43

6 years agoadd spec-ctrl cpu flag checkbox
Dominik Csapak [Tue, 16 Jan 2018 13:51:21 +0000 (14:51 +0100)]
add spec-ctrl cpu flag checkbox

also make the mechanism for the flag checkboxes generic

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoadd defaultSize parameter for DiskStorageSelector and set it to 8 for lxc
Dominik Csapak [Wed, 13 Dec 2017 10:34:48 +0000 (11:34 +0100)]
add defaultSize parameter for DiskStorageSelector and set it to 8 for lxc

we had it previously on 8GB for containers, but with the refactoring,
this got lost. this patch changes this back

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 5.1-42
Wolfgang Bumiller [Wed, 10 Jan 2018 10:53:42 +0000 (11:53 +0100)]
bump version to 5.1-42

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoreadability fixup
Wolfgang Bumiller [Wed, 10 Jan 2018 10:47:26 +0000 (11:47 +0100)]
readability fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoadd PCID checkbox to ProcessorEdit
Dominik Csapak [Tue, 9 Jan 2018 15:27:39 +0000 (16:27 +0100)]
add PCID checkbox to ProcessorEdit

but not in wizard, and default is off
(because we do not know if the cpu supports it)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agofix #1605: reflect backend values of minimum memory limit
Wolfgang Bumiller [Wed, 27 Dec 2017 10:42:48 +0000 (11:42 +0100)]
fix #1605: reflect backend values of minimum memory limit

The backend's minimum value for container memory is 16M,
not 32.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agobump version to 5.1-41
Fabian Grünbichler [Thu, 21 Dec 2017 11:47:49 +0000 (12:47 +0100)]
bump version to 5.1-41

6 years agopveupdate - always run check for available updates
Dietmar Maurer [Thu, 21 Dec 2017 09:15:47 +0000 (10:15 +0100)]
pveupdate - always run check for available updates

6 years agoprevent double ticket api call
Dominik Csapak [Wed, 20 Dec 2017 13:01:20 +0000 (14:01 +0100)]
prevent double ticket api call

commit:
551456ff6ef7d3591178978fbd3dc760e35d7874

added the defaultButton property to the loginwindow, but we missed that
pressing enter in the passwordfield/userfield led to a double ticket
api call.

while it did not any harm, remove it, so that we only have a single
ticket api call

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Fixes: 551456ff6ef7 ("add defaultButton to loginWindow")
6 years agouse activate instead of show
Dominik Csapak [Wed, 20 Dec 2017 13:01:19 +0000 (14:01 +0100)]
use activate instead of show

we changed this almost everywhere in the transition from extjs4 to
extjs6, but we forgot one

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoSet Console Button icon style at definition time
Emmanuel Kasper [Tue, 19 Dec 2017 13:10:01 +0000 (14:10 +0100)]
Set Console Button icon style at definition time

This will allow the 'Upgrade' button to get an icon too.

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoUse the new xterm.js icon with the corresponding Menu Item
Emmanuel Kasper [Tue, 19 Dec 2017 13:10:00 +0000 (14:10 +0100)]
Use the new xterm.js icon with the corresponding Menu Item

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoAdd new icon for xtermjs consoles, based on xtermjs logo
Emmanuel Kasper [Tue, 19 Dec 2017 13:09:59 +0000 (14:09 +0100)]
Add new icon for xtermjs consoles, based on xtermjs logo

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agojslint: remove trailing comma after last objects property
Emmanuel Kasper [Tue, 19 Dec 2017 13:09:58 +0000 (14:09 +0100)]
jslint: remove trailing comma after last objects property

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agocleanup
Wolfgang Bumiller [Thu, 14 Dec 2017 08:07:00 +0000 (09:07 +0100)]
cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agobump version to 5.1-40
Wolfgang Bumiller [Wed, 13 Dec 2017 13:50:13 +0000 (14:50 +0100)]
bump version to 5.1-40

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoshow storage usage in tree
Dominik Csapak [Tue, 12 Dec 2017 12:25:16 +0000 (13:25 +0100)]
show storage usage in tree

this adds a little usage indicator in the tree for all storage definitions,
so that one can easily see how much of a storage is used

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoremove (near)full status for storages
Dominik Csapak [Tue, 12 Dec 2017 12:25:15 +0000 (13:25 +0100)]
remove (near)full status for storages

since this is not a good default, we do not want the user
to have to configure those limits for each storage, and
a warning triangle was confusing for multiple users,
we remove this again

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoSend an email when a replication job fails.
Wolfgang Link [Thu, 7 Dec 2017 11:07:00 +0000 (12:07 +0100)]
Send an email when a replication job fails.

A email notification will be send for each job when the job fails.
This message will only send when an error occurs and the fail count is on 1.

Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoIndentation cleanup.
Wolfgang Link [Thu, 7 Dec 2017 11:06:58 +0000 (12:06 +0100)]
Indentation cleanup.

Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoadd xtermjs to consolebutton
Dominik Csapak [Mon, 11 Dec 2017 13:55:30 +0000 (14:55 +0100)]
add xtermjs to consolebutton

also rework the button.
move most things in the static configuration

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd xtermjs flag to VNCConsole iframe
Dominik Csapak [Mon, 11 Dec 2017 13:55:29 +0000 (14:55 +0100)]
add xtermjs flag to VNCConsole iframe

so that we can open an xtermjs iframe instead of novnc

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd new xtermjs viewer window to Utils
Dominik Csapak [Mon, 11 Dec 2017 13:55:28 +0000 (14:55 +0100)]
add new xtermjs viewer window to Utils

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd xtermjs to pveproxy dirs
Dominik Csapak [Mon, 11 Dec 2017 13:55:27 +0000 (14:55 +0100)]
add xtermjs to pveproxy dirs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd termproxy api call for nodes
Dominik Csapak [Mon, 11 Dec 2017 13:55:26 +0000 (14:55 +0100)]
add termproxy api call for nodes

and add dependency for pve-xtermjs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoapi: nodes/subscription: implement reasonable access rights
Thomas Lamprecht [Thu, 30 Nov 2017 07:20:34 +0000 (08:20 +0100)]
api: nodes/subscription: implement reasonable access rights

Allow users which have Sys.Audit on a specific node to get the
subscription status and those with Sys.Modify to set and check
(update) it.

This mirrors the required permissions from other node specific
actions, e.g., APT (package management).

We always showed the Subscription Panel and all its elements in the
WebUI, so no need for change there.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 5.1-39
Fabian Grünbichler [Mon, 11 Dec 2017 14:35:22 +0000 (15:35 +0100)]
bump version to 5.1-39

6 years agoFix #1589: auth_handler: raise exception on init_request error
Thomas Lamprecht [Thu, 7 Dec 2017 13:00:36 +0000 (14:00 +0100)]
Fix #1589: auth_handler: raise exception on init_request error

cfs_* methods cann now die (rightfully so) when the IPCC endpoint is
not connected, or another grave IPCC error arised.

As we did not catch those problems in the RPCEnvironments
init_request method, which loads the user config, this got
propagated to the anyevents auth_handler call in its
unshift_read_header method where then all errors where processed in
the same way => with an unauthorized response logging an logged in
user out.

So catch this error and raise an internal server errror exception
instead. Anyevent needs some minor modifiaction in a separate patch
to handle PVE::Exceptions correctly, so this is the partial fix for
bug #1589

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoAdd a proper confirmation message when we detach an used disk
Emmanuel Kasper [Thu, 30 Nov 2017 16:34:07 +0000 (17:34 +0100)]
Add a proper confirmation message when we detach an used disk

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoFix #1526: Use 'detach' instead of 'remove' when the disk is used
Emmanuel Kasper [Thu, 30 Nov 2017 16:34:06 +0000 (17:34 +0100)]
Fix #1526: Use 'detach' instead of 'remove' when the disk is used

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoFix JSLint type confusion warnings
Emmanuel Kasper [Thu, 30 Nov 2017 16:34:05 +0000 (17:34 +0100)]
Fix JSLint type confusion warnings

The type confusion warnings arose from string and integer concatenation,
and object properties of the name which were alternatively set with
strings and integers.

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoadd versioned dependency on libpve-storage-perl
Fabian Grünbichler [Thu, 30 Nov 2017 10:40:03 +0000 (11:40 +0100)]
add versioned dependency on libpve-storage-perl

for API changes needed for new DiskSelector

6 years agobump version to 5.1-38
Fabian Grünbichler [Thu, 30 Nov 2017 10:36:30 +0000 (11:36 +0100)]
bump version to 5.1-38

6 years agopveceph: add missing use statement
Fabian Grünbichler [Thu, 30 Nov 2017 10:31:35 +0000 (11:31 +0100)]
pveceph: add missing use statement

6 years agoceph: create mon: fix & improve check if IP is in public net
Thomas Lamprecht [Tue, 28 Nov 2017 15:32:44 +0000 (16:32 +0100)]
ceph: create mon: fix & improve check if IP is in public net

If a CIDR gets passed to Net::IP it is expected to not be from the
middle of  an subnet, i.e., 192.168.1.12/24 is *not* OK but
192.168.1.0/24 would be OK.

As the Network/interfaces files also accepts CIDR notation for the
'address' param (now also for IPv4) this let to problems in our node
monitor IP detection code, which used the interface file and Net::IP to
find any address from the ceph public network.

So change to our newer helper PVE::Network::get_local_ip_from_cidr to
get all configured and ready (=up) IPs from this network.

Also handle the case where multiple networks where returned, add a
parameter to allow specifying one of those and ask the user to do so.

If no public network is configured and no mon-address parameter was
passed, we fall back to the remote node IP of the node, as was done
previously. We expect that the user only overwrites the mon-address
if he knows what he do and omit checks here.

6 years agobump version to 5.1-37
Wolfgang Bumiller [Tue, 28 Nov 2017 15:38:26 +0000 (16:38 +0100)]
bump version to 5.1-37

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoceph: create pool: check for quorum at start
Thomas Lamprecht [Fri, 24 Nov 2017 08:58:15 +0000 (09:58 +0100)]
ceph: create pool: check for quorum at start

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoAdd each host SSL fingerprint to each node status
Emmanuel Kasper [Wed, 22 Nov 2017 08:50:40 +0000 (09:50 +0100)]
Add each host SSL fingerprint to each node status

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agofix #1578: api/resource hastate: fallback to resource cfg state
Thomas Lamprecht [Mon, 27 Nov 2017 11:43:31 +0000 (12:43 +0100)]
fix #1578: api/resource hastate: fallback to resource cfg state

With ignored or still queued services we have no hastate for a
service in the manager status available.

As we use hastate in the web UI to determine if a service is
configured for HA this could lead to confusion there.
For example, the VM/CT 'Manage HA' window thinks tries to add the
service again if its in the 'ignored' state, and then the backend
errors out because it is already configured.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoDo not translate Unix/Linux specific terms
Dominik Csapak [Tue, 28 Nov 2017 10:26:12 +0000 (11:26 +0100)]
Do not translate Unix/Linux specific terms

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoDo not translate PC hardware specific terms
Emmanuel Kasper [Wed, 8 Nov 2017 15:10:30 +0000 (16:10 +0100)]
Do not translate PC hardware specific terms

The SKU (Stock Keeping Unit) field was never translated anyway in our po files,
probably because nobody knew what the initials meant.

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoDo not translate Qemu specific terms
Emmanuel Kasper [Wed, 8 Nov 2017 15:10:29 +0000 (16:10 +0100)]
Do not translate Qemu specific terms

Multiqueue is the proper name as used by Qemu, as seen in
https://www.linux-kvm.org/page/Multiqueue

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoDo not translate IT specific terms
Emmanuel Kasper [Wed, 8 Nov 2017 15:10:28 +0000 (16:10 +0100)]
Do not translate IT specific terms

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoDo not translate PC hardware specific terms
Emmanuel Kasper [Wed, 8 Nov 2017 15:10:27 +0000 (16:10 +0100)]
Do not translate PC hardware specific terms

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoDo not translate Ceph specific terms
Emmanuel Kasper [Wed, 8 Nov 2017 15:10:26 +0000 (16:10 +0100)]
Do not translate Ceph specific terms

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agomake ssh connection transparent
Dominik Csapak [Fri, 17 Nov 2017 09:22:53 +0000 (10:22 +0100)]
make ssh connection transparent

do not use an escape character for the host shell

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoaccess log rotate: try to reload not restart services
Thomas Lamprecht [Thu, 9 Nov 2017 13:20:52 +0000 (14:20 +0100)]
access log rotate: try to reload not restart services

with the use of systemd the /etc/init.d/pveproxy restart call got
intercepted and redirected to systemd, which did an restart.
But, that is a behvaior change to the intention of the init.d script,
which would not restart but reload the service.
Thus change this to systemds equivalent:
systemctl try-reload-or-restart pveproxy.service

Which tries to reload, if the unit supports it, and only if that does
not worked it restarts.

Same for spiceproxy.

Reported-by: Stefan Priebe <s.priebe@profihost.ag>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobuildsys: add excludes to dh_fixperms
Wolfgang Bumiller [Mon, 13 Nov 2017 09:37:33 +0000 (10:37 +0100)]
buildsys: add excludes to dh_fixperms

Instead of fixing up permissions manually as the make
install target is actually responsible for this (and already
doing it).

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoremove unecessary semicolons
Dominik Csapak [Fri, 3 Nov 2017 08:51:39 +0000 (09:51 +0100)]
remove unecessary semicolons

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agowhitespace cleanup
Dominik Csapak [Fri, 3 Nov 2017 08:51:38 +0000 (09:51 +0100)]
whitespace cleanup

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoimprove tree/grid icons
Dominik Csapak [Fri, 3 Nov 2017 08:51:37 +0000 (09:51 +0100)]
improve tree/grid icons

we improve the icons in the tree and the resource grid by
differentiating between cluster online/offline status and no rrd data

when we have no rrd data from a node/storage, instead of showing a
red x (which is scary) even if the node is reachable by corosync (which
confused quite a bit of people, because we show all nodes as online in
the datacenter summary), we show the node/storage with a '?'

this signals that something is wrong with this node, even if we can
reach it via cluster methods

this rewrite of the logic includes a refactoring of the method
of getting the icon, because we want the same icons in the tree and the
grid, and an optimization on how we use the css classes
(introducing a x-grid-custom-icon class)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd new tree and grid classes for the 'unknown' status
Dominik Csapak [Fri, 3 Nov 2017 08:51:36 +0000 (09:51 +0100)]
add new tree and grid classes for the 'unknown' status

this displays a '?' similar to the check/cross, to show something
is wrong, but we do not know if its offline

also cleanup the classes a bit, so we do not have to have so many
different ones

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd a new status column in the resourcestore
Dominik Csapak [Fri, 3 Nov 2017 08:51:35 +0000 (09:51 +0100)]
add a new status column in the resourcestore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd default 'unknown' status for vms and containers
Dominik Csapak [Fri, 3 Nov 2017 08:51:34 +0000 (09:51 +0100)]
add default 'unknown' status for vms and containers

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoinclude a 'status' field for storages
Dominik Csapak [Fri, 3 Nov 2017 08:51:33 +0000 (09:51 +0100)]
include a 'status' field for storages

by default it is unknown, if the storage is >= 60% full, it is
'nearfull', if it is >= 90% full, it is 'full'

if we have any other information, it is 'available'

we can use this information for the tree

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd status to node stats
Dominik Csapak [Fri, 3 Nov 2017 08:51:32 +0000 (09:51 +0100)]
add status to node stats

by default it is unknown,
if it is a standalone node its online
else it is either 'online' or 'offline' depending on the corosync status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoreset FileSelector grid when changing the storage
Dominik Csapak [Fri, 10 Nov 2017 13:49:27 +0000 (14:49 +0100)]
reset FileSelector grid when changing the storage

otherwise, when the new storage returns an error, we show the content
of the old storage

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse DiskStorageSelector in lxc/MPEdit.js
Dominik Csapak [Fri, 10 Nov 2017 13:49:26 +0000 (14:49 +0100)]
use DiskStorageSelector in lxc/MPEdit.js

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse DiskStorageSelector in qemu/HDMove.js
Dominik Csapak [Fri, 10 Nov 2017 13:49:25 +0000 (14:49 +0100)]
use DiskStorageSelector in qemu/HDMove.js

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse DiskStorageSelector in qemu/Clone.js
Dominik Csapak [Fri, 10 Nov 2017 13:49:24 +0000 (14:49 +0100)]
use DiskStorageSelector in qemu/Clone.js

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse DiskStorageSelector in qemu/HDEfi.js
Dominik Csapak [Fri, 10 Nov 2017 13:49:23 +0000 (14:49 +0100)]
use DiskStorageSelector in qemu/HDEfi.js

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse DiskStorageSelector in qemu/HDEdit.js
Dominik Csapak [Fri, 10 Nov 2017 13:49:22 +0000 (14:49 +0100)]
use DiskStorageSelector in qemu/HDEdit.js

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agomove lxc mountpoint edit from ResourceEdit.js to MPEdit.js
Dominik Csapak [Fri, 10 Nov 2017 13:49:21 +0000 (14:49 +0100)]
move lxc mountpoint edit from ResourceEdit.js to MPEdit.js

to follow qemu code

also fix the jslint errors in MountPointInputPanel and MountPointEdit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd new DiskStorageSelector.js
Dominik Csapak [Fri, 10 Nov 2017 13:49:20 +0000 (14:49 +0100)]
add new DiskStorageSelector.js

this is a wrapper for selecting a storage/disk image

it is a simple container with 4 form fields inside
which can be reused, whenever we need to select a storage for a disk,
image etc.

we have code similar to this four times already
(qemu image creation, lxc mp creation, qemu cloning, qemu efidisk
creation)

so it was time to refactor this and use the storage information from the
backend instead of hardcoding values in the frontend

for this we need to pass the format=1 parameter to the storage api call,
and to not load the fileselector when it is initially disabled

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoFix #1523: Display the Max Backups field only if relevant
Emmanuel Kasper [Tue, 31 Oct 2017 14:52:10 +0000 (15:52 +0100)]
Fix #1523: Display the Max Backups field only if relevant

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoAdd Storage Controller class
Emmanuel Kasper [Tue, 31 Oct 2017 14:52:09 +0000 (15:52 +0100)]
Add Storage Controller class

This controller will display the 'Max Backups' field only if the storage can
hold backups.

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoadd ver get parameter for js/css files to improve cache behaviour
Dominik Csapak [Wed, 9 Aug 2017 12:08:26 +0000 (14:08 +0200)]
add ver get parameter for js/css files to improve cache behaviour

we do not set an Expire header for our js files, and certain browsers
do not even make the request then (on which we would answer
with a correct 304 not modified)

so to force the browser to load a new version of the gui when we change
something, we add the package version as a get parameter

when doing this, the browsers still cache the file, until the get
parameter changes, which is exactly what we want

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agodo not use PVE::API2 in spiceproxy.pm
Dominik Csapak [Wed, 9 Aug 2017 12:08:25 +0000 (14:08 +0200)]
do not use PVE::API2 in spiceproxy.pm

we do not need it there and withouth this we save ~30MB memory for
this daemon and its workers

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoprevent visual flashing of button when changing element in the tree
Dominik Csapak [Mon, 30 Oct 2017 14:03:38 +0000 (15:03 +0100)]
prevent visual flashing of button when changing element in the tree

when changing between elements in the tree, either the
start or shutdown buttons were visually flashing (meaning they are
enabled/disabled for a short time and change state shortly after)

this patch fixes that

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Acked-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agofix #1539: add missing shellquote for proxied commands of pvesh
Dominik Csapak [Fri, 27 Oct 2017 12:13:48 +0000 (14:13 +0200)]
fix #1539: add missing shellquote for proxied commands of pvesh

if we do not do this, passing arguments with spaces
(e.g., pvesh set YYY --param "one word")
leads to ssh calls like this:
ssh REMOTE pvesh set YYY --param one word

which cannot be parsed correctly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoAdd %-used and min_size to "pveceph lspools" command
Alwin Antreich [Mon, 30 Oct 2017 16:48:53 +0000 (17:48 +0100)]
Add %-used and min_size to "pveceph lspools" command

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
6 years agoFix: #1542, use percent_used key instead of calculation
Alwin Antreich [Mon, 30 Oct 2017 16:48:52 +0000 (17:48 +0100)]
Fix: #1542, use percent_used key instead of calculation

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
6 years agoFirewallOptions: fix DHCP default value
Dominik Csapak [Mon, 30 Oct 2017 13:26:00 +0000 (14:26 +0100)]
FirewallOptions: fix DHCP default value

we always had dhcp enabled by default in the backend, but
showed 'Disabled' on the gui, this patch show 'Enabled' by default

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 5.1-36
Wolfgang Bumiller [Wed, 25 Oct 2017 09:16:23 +0000 (11:16 +0200)]
bump version to 5.1-36

6 years agobump version to 5.1-35
Fabian Grünbichler [Mon, 23 Oct 2017 07:21:06 +0000 (09:21 +0200)]
bump version to 5.1-35

6 years agobump version to 5.0-34
Wolfgang Bumiller [Fri, 20 Oct 2017 09:32:06 +0000 (11:32 +0200)]
bump version to 5.0-34

6 years agomake bluestore the default on the api
Dominik Csapak [Fri, 20 Oct 2017 09:44:25 +0000 (11:44 +0200)]
make bluestore the default on the api

with this we also have to send '0' to from the frontend, when the
bluestore checkbox is not checked

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoRender full name of VirtIO Block controller
Emmanuel Kasper [Mon, 2 Oct 2017 08:37:37 +0000 (10:37 +0200)]
Render full name of VirtIO Block controller

This will hopefully reduce confusion with SCSI VirtIO controller

Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoUpdate VM SCSI controller type after OS selection in Wizard
Emmanuel Kasper [Thu, 5 Oct 2017 13:46:25 +0000 (15:46 +0200)]
Update VM SCSI controller type after OS selection in Wizard

This was done previously without any kind of user visible feedback, so users
would not know that they had a Virtio SCSI controller as default controller
for Linux VMs.

Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoUpdate VM SCSI type based on iothread value when inside the wizard
Emmanuel Kasper [Thu, 5 Oct 2017 13:41:55 +0000 (15:41 +0200)]
Update VM SCSI type based on iothread value when inside the wizard

We keep the same logic as before: once the iothread option is selected,
the SCSI controller is switched to virtio-scsi-single, until iothread
is unselected again.

Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoAdd a field to show which SCSI controller type we are currently using
Emmanuel Kasper [Thu, 5 Oct 2017 13:30:13 +0000 (15:30 +0200)]
Add a field to show which SCSI controller type we are currently using

We use the field label 'SCSI Controller'. 'Type' is redundant, otherwise
we would have Network Card Type, Display Type, Network Card type, etc ...

Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoDo not use the noVirtIO property to build the controller list
Emmanuel Kasper [Mon, 2 Oct 2017 08:37:33 +0000 (10:37 +0200)]
Do not use the noVirtIO property to build the controller list

This property is only used for CDEdit, so we can deduce this from
the fact that autoselect is set to 'cdrom'

Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoSave the components we found via down() in a variable for later reuse.
Emmanuel Kasper [Mon, 2 Oct 2017 08:37:32 +0000 (10:37 +0200)]
Save the components we found via down() in a variable for later reuse.

Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoRemove unused noScsi parameter
Emmanuel Kasper [Mon, 2 Oct 2017 08:37:31 +0000 (10:37 +0200)]
Remove unused noScsi parameter

SCSI is a valid bus for Disks and CD drives, so it should always
be appear in the bus list.

Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoDo not use 'autoselect' as a boolean when preselecting a bus
Emmanuel Kasper [Mon, 2 Oct 2017 08:37:30 +0000 (10:37 +0200)]
Do not use 'autoselect' as a boolean when preselecting a bus

The bus selector is displayed when we add a Hard Disk or CD Drive.
When it is displayed, we *always* preselect the next available
slot on the controller of our choice.
So this test is not needed.

We keep the test on the string value of 'autoselect' to select
a bus position when adding a CD Drive.

Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agofix #1518: ui: lxc: add 'more' menu with HA manage item to panel
Thomas Lamprecht [Tue, 17 Oct 2017 09:48:06 +0000 (11:48 +0200)]
fix #1518: ui: lxc: add 'more' menu with HA manage item to panel

Move the remove button into the more button and add a 'Manage HA'
button there, mirroring the changes from the qemu panel.

Allows to add an unmanaged CT to HA or to edit the HA settings of a
managed one.

Fixes: #1518
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-By: Dominik Csapak <d.csapak@proxmox.com>
6 years agoui: lxc: remove obsolete unmount button
Thomas Lamprecht [Tue, 17 Oct 2017 09:48:05 +0000 (11:48 +0200)]
ui: lxc: remove obsolete unmount button

This button was hidden by default and was intended to show up when a
CT is mounted only.

The check if mounted, was done for OpenVZ and may not become true
currently also we only have CLI helpers for mount/unmount but no API
– so just remove it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>