]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
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>
6 years agofix #1518: ui: qemu: add HA manage menu item to panel
Thomas Lamprecht [Tue, 17 Oct 2017 09:48:04 +0000 (11:48 +0200)]
fix #1518: ui: qemu: add HA manage menu item to panel

Allows to add an unmanaged VM 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: qemu: combine system changing buttons
Thomas Lamprecht [Tue, 17 Oct 2017 09:48:03 +0000 (11:48 +0200)]
ui: qemu: combine system changing buttons

add a 'More' Button to the VM and CT Config Panel (its base panel)
and move all buttons which may result in config changes there.
After that we have separated power/migrate actions from system
affecting actions (clone, remove, convert to template).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoui: add PVE.menu.Item
Thomas Lamprecht [Tue, 17 Oct 2017 09:48:02 +0000 (11:48 +0200)]
ui: add PVE.menu.Item

Extend 'Ext.menu.Item' with a simplified handler logic also used in
'PVE.button.Button'.

If 'confirmMsg' config is set we wrap the defined handler in a
confirm dialog, useful if the menu item just makes an API call and
does not has an own (edit) window shown.

In contrast to the 'pveButton' we do not have a selection model,
enable function and the respective logic here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoui: rename global 'Help' button to 'Documentation'
Thomas Lamprecht [Tue, 17 Oct 2017 09:47:59 +0000 (11:47 +0200)]
ui: rename global 'Help' button to 'Documentation'

To make it more clear that this will always end you on the
Documentation index.

Also, multiple Help buttons which all may or may not do something
different are a bit weird/confusing - thus distinction can here be
really helpful, IMO.

We target HD ready (1280x720) as minimal target resolution where this
still fits nicely. This (or bigger) resolution is also used by our
screenshot framework for the documentation - so it also fits there.

Adapt the icon displayed to `fa-book` which resembles the one often
used for manuals and is clearer than a '?', IMO.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoui: ceph: add some help buttons
Thomas Lamprecht [Thu, 19 Oct 2017 06:20:13 +0000 (08:20 +0200)]
ui: ceph: add some help buttons

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: pveWindowEdit: allow sane onlineHelp specification for edit windows
Thomas Lamprecht [Thu, 19 Oct 2017 06:20:12 +0000 (08:20 +0200)]
ui: pveWindowEdit: allow sane onlineHelp specification for edit windows

instead of heuristically choosing the onlineHelp entry from our first
item prefer the one we have in our config, if noone the fallback to
the old heuristic.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoUse run_cli_handler instead of deprecated run_cli
Philip Abernethy [Mon, 16 Oct 2017 08:59:25 +0000 (10:59 +0200)]
Use run_cli_handler instead of deprecated run_cli

6 years agotest: mock PVE::Cluster::cfs_update
Wolfgang Bumiller [Wed, 18 Oct 2017 13:30:59 +0000 (15:30 +0200)]
test: mock PVE::Cluster::cfs_update

Because the replication's purge_old_state() function now
fails if cfs_update() fails, and since it tries to access
the actual local pmxcfs it should never have been called by
tests anyway.

6 years agoui: ha: make vote warning shorter
Thomas Lamprecht [Wed, 11 Oct 2017 10:09:43 +0000 (12:09 +0200)]
ui: ha: make vote warning shorter

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoui: ha: use vmComboSelector when adding new resource
Thomas Lamprecht [Wed, 11 Oct 2017 10:09:42 +0000 (12:09 +0200)]
ui: ha: use vmComboSelector when adding new resource

Make adding resources more comfortable by showing the user also the
name, type, node, ... in a nice combo box grid when adding a
resource instead of just a integer spinner.

Fixes #1517
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoui: add VM ComboSelector
Thomas Lamprecht [Wed, 11 Oct 2017 10:09:41 +0000 (12:09 +0200)]
ui: add VM ComboSelector

this is a mixture of the multi select VMSelector and the single
select pveGuestIDSelector.
Useful when a single VM must be selected but also complementary
information should be shown to the user.

Most of the times the VMID is not really useful for an user as
numbers are harder to remember and to associate as names.
So a dialog which need a VMID (e.g. HA resource addition) forced the
user to lookup the Guest Name -> Guest VMID mapping and then enter it
correctly in the respective input field.

This can be improved by using a combo grid based selector which shows
additional information in the edit window itself, can be sorted and
filtered to quickly select a guest.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoui: GuestStatusView: simplify HA state display
Thomas Lamprecht [Wed, 11 Oct 2017 12:10:24 +0000 (14:10 +0200)]
ui: GuestStatusView: simplify HA state display

simplify HA Information in VM/CT Summary panel.
Use the already translated  'HA State' instead of 'Managed by HA'
(which now becomes obsolete as it was the single appearance).
Simplify PVE.Utils.format_ha respectively to mach the new name,
as here is the only use of this function we have no side effects.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoui: re-align global search field to now shorter version
Thomas Lamprecht [Wed, 11 Oct 2017 07:16:23 +0000 (09:16 +0200)]
ui: re-align global search field to now shorter version

commit 2ddb072661a9230dac16ec91c2f4ba91b8144dba removed showing the
short SHA1 commit hash in the version info field but did not
realigned the search field so that it got a asymmetric space.

Adapt the Version info minimal width so that this is again the case.

Acked-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoui: inline novnc: always focus console panel after render
Thomas Lamprecht [Thu, 5 Oct 2017 12:19:49 +0000 (14:19 +0200)]
ui: inline novnc: always focus console panel after render

Enforce focus on the Inline CT/VM/Host Console panel backed by noVNC.

Else, if a Console is already active on VM A and we select VM B the
console there does not gets the focus as its now in the three and
regaining focus to the console is not fully intuitive - i.e. just
clicking on the console won't do the trick, you have to click on
specific spots (e.g. console panel header) or re open the console.

The only possible drawback of the focusing is that if one has the
console open, selects another VM he cannot navigate the tree down
with the arrow keys (as long as the console is open) - but thats
hardly a situation where one gets into and can be worked around.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agofix #1531: match nodename exactly for vmidselector
Dominik Csapak [Mon, 16 Oct 2017 09:08:45 +0000 (11:08 +0200)]
fix #1531: match nodename exactly for vmidselector

else we would get vms for wrong hosts if the nodename is a pre/postfix
of another nodename (e.g. 'abc' and 'abc123')

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix updateStore destroy
Dominik Csapak [Wed, 11 Oct 2017 09:49:50 +0000 (11:49 +0200)]
fix updateStore destroy

the store never fires/gets a destroy event, thus it
never stops the load_task and never unqueues itself in case
the store gets destroyed but not explicitely stopped

with overriding the destroy method, this works now as intended

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoha/resource: add ignored state to web gui
Thomas Lamprecht [Tue, 24 Jan 2017 17:37:24 +0000 (18:37 +0100)]
ha/resource: add ignored state to web gui

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 5.0-33
Fabian Grünbichler [Tue, 10 Oct 2017 12:23:00 +0000 (14:23 +0200)]
bump version to 5.0-33

and add versioned dependencies:
- libpve-common-perl: for PVE::Subscription
- libpve-access-control: for new VM.Snapshot.Rollback privilege

6 years agoceph: disable OSD unit in destroyosd
Fabian Grünbichler [Tue, 10 Oct 2017 09:54:54 +0000 (11:54 +0200)]
ceph: disable OSD unit in destroyosd

while OSDs units should only be runtime enable and disappear on reboots,
this serves as an additional safeguard to ensure no leftover units can
exist.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoceph: correctly parse 'pg dump' output
Fabian Grünbichler [Tue, 10 Oct 2017 10:03:35 +0000 (12:03 +0200)]
ceph: correctly parse 'pg dump' output

Reported-By: Waschbüsch IT-Services GmbH <service@waschbuesch.it>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agofix #1516: fix mouse-scrolling of overflowhandlers in firefox
Dominik Csapak [Wed, 4 Oct 2017 08:04:27 +0000 (10:04 +0200)]
fix #1516: fix mouse-scrolling of overflowhandlers in firefox

this is a workaround for scrolling in toolbars, etc. in firefox with the
mouse

while the result is not very "pretty", it maintains the old behaviour
for all other browsers and makes it work in firefox

we can drop this when we update to a new extjs release

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agodoc: spice-example-sh: support special characters in passwords
Wolfgang Bumiller [Mon, 25 Sep 2017 08:56:03 +0000 (10:56 +0200)]
doc: spice-example-sh: support special characters in passwords

6 years agodoc: spice-example-sh: fix ticket/csrf extraction
Wolfgang Bumiller [Mon, 25 Sep 2017 08:56:02 +0000 (10:56 +0200)]
doc: spice-example-sh: fix ticket/csrf extraction

We extract them from the json data by first deleting all
quotes, then deleting everything up to their entries, then
everything after the next comma. If the entry is at the end
there's no comma, instead there are closing braces, so we
need to strip away these as well.

6 years agodoc: spice-example-sh: add quotes everywhere
Wolfgang Bumiller [Mon, 25 Sep 2017 08:56:01 +0000 (10:56 +0200)]
doc: spice-example-sh: add quotes everywhere

6 years agobuild: reformat debian/control
Fabian Grünbichler [Wed, 4 Oct 2017 09:05:32 +0000 (11:05 +0200)]
build: reformat debian/control

using wrap-and-sort -abt

6 years agofix #1510: do not scroll back to focus when view gets refreshed
Dominik Csapak [Fri, 29 Sep 2017 10:51:17 +0000 (12:51 +0200)]
fix #1510: do not scroll back to focus when view gets refreshed

this adds a workaround, so that we restore the scroll position
when we restore the focus

with the flag 'jumpToFocus', we can enable the old behaviour

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoPVE/API2/Subscription.pm - use new PVE::Subcription class
Dietmar Maurer [Tue, 3 Oct 2017 10:54:29 +0000 (12:54 +0200)]
PVE/API2/Subscription.pm - use new PVE::Subcription class

6 years agoSubscription.js - use enableTextSelection instead of 'selectable' feature
Dietmar Maurer [Wed, 27 Sep 2017 15:21:00 +0000 (17:21 +0200)]
Subscription.js - use enableTextSelection instead of 'selectable' feature

The 'selectable' feature does not work anymore.

6 years agoClean up unnecessary code.
Wolfgang Link [Tue, 19 Sep 2017 10:01:15 +0000 (12:01 +0200)]
Clean up unnecessary code.

The jobid is already parsed by the file parser.

6 years agoremove obsolete Posix use clause
Thomas Lamprecht [Mon, 25 Sep 2017 12:39:43 +0000 (14:39 +0200)]
remove obsolete Posix use clause

besides the cleanup purpose this fixes an actual problem, perls POSIX
module has the following caveat:

`Everything is exported by default (with a handful of exceptions).
This is an unfortunate backwards compatibility feature and its use is
strongly discouraged. You should either prevent the exporting (by
saying "use POSIX ();", as usual) and then use fully qualified names
(e.g.  "POSIX::SEEK_END"), or give an explicit import list. If you do
neither and opt for the default (as in "use POSIX;"), you will import
hundreds and hundreds of symbols into your namespace.'

see `perldoc POSIX`

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agowindow.Wizard: increase default size
Thomas Lamprecht [Fri, 22 Sep 2017 12:20:27 +0000 (14:20 +0200)]
window.Wizard: increase default size

The current size was choosen with the older, more compact, classic
theme. The Crisp theme, now in use, has a bit more spaces and bigger
font sizes to adapt to the increased pixel density of current
displays.
Increase the size a bit (~13%) but try to keep the aspect ratio.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoPVE.qemu.OSTypeEdit: declare static
Thomas Lamprecht [Fri, 22 Sep 2017 12:20:26 +0000 (14:20 +0200)]
PVE.qemu.OSTypeEdit: declare static

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agowizard: merge CD/DVD and OS panels
Thomas Lamprecht [Fri, 22 Sep 2017 12:20:25 +0000 (14:20 +0200)]
wizard: merge CD/DVD and OS panels

We had a single column for the CD/DVD panel, fill the second column
with the now in size reduced OS type selector, as ISO selection and
OS type selection are tied together.

Reduces steps needed for creating a VM.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoOSType edit: switch to combobox
Thomas Lamprecht [Fri, 22 Sep 2017 12:20:24 +0000 (14:20 +0200)]
OSType edit: switch to combobox

Move from the radiogroup to two comboboxes, where the base OS and
then a specific Version can be choosen.

Avoids multiple occurences of strings like "Microsoft Windows" and
saves a lot of space - which will be used to merge this panel with
the ISO selector panel in the create wizard.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agokvm_ostype: move to store-like format
Thomas Lamprecht [Fri, 22 Sep 2017 12:20:23 +0000 (14:20 +0200)]
kvm_ostype: move to store-like format

move from the key => value format to one where all versions from a
base OS type can be directly used as data for a store.

We will rely on this in the next patch to allow a easy transition to
combobox UI for the OS type selector.

We also avoid having the base type multiple times.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agorefactor OSDefaults, OSTypeEdit: add and use getDefaults
Thomas Lamprecht [Fri, 22 Sep 2017 12:20:22 +0000 (14:20 +0200)]
refactor OSDefaults, OSTypeEdit: add and use getDefaults

encapuslation wise it makes sense to have a helper which assembles a
os specific setting object in the OSDefaults class, where those
settings are defined.

Else we always need to check if the current OSType on the user side
of this class, which is against encapsulation.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: reuse ResourceStores default handling for guest description
Thomas Lamprecht [Thu, 21 Sep 2017 09:03:26 +0000 (11:03 +0200)]
ui: reuse ResourceStores default handling for guest description

First, there was an additional space between "'" and ")" which lead
me to this.
I could never trigger the case where vmname is undefined, and saw
that we have a almost same default handling in data/ResourceStore.js

So, just use that one instead here - it misses the single-quotes
inside the parentheses, but as there are already said parentheses
this is visually still very OK, IMO.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse log method from base VZDump::Plugin
Thomas Lamprecht [Wed, 13 Sep 2017 08:30:15 +0000 (10:30 +0200)]
use log method from base VZDump::Plugin

we copied our log method over there to resolve a cyclic dependency,
now use it here to reduce code duplication.
As we are below pve-guest-common in the dpendency hierachy we may use
it, but it does not may (or at least should) use us.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoVM.Snapshot.Rollback privilege added
Matthias Urban [Wed, 13 Sep 2017 10:30:34 +0000 (12:30 +0200)]
VM.Snapshot.Rollback privilege added

VM.Snapshot.Rollback privilege added

Signed-off-by: Matthias Urban <matthias.urban@pure-systems.com>
6 years agovzdump/pigz: use ProcFSTools for core count, not sysconf
Thomas Lamprecht [Wed, 13 Sep 2017 09:10:57 +0000 (11:10 +0200)]
vzdump/pigz: use ProcFSTools for core count, not sysconf

A "sysconf(84)" is not really descripitve. There is no POSIX const
entry for _SC_NPROCESSORS_ONLN (number of processors online) as its
not standard but an adoption of glibc.
Better just use our proven ProcFSTool's cpuinfo method for getting
the desired information.

This is kept only for backwards compatibillity as we guaranteed that
we use #cpus/2 if 'pigz' is set to 1, else I would have removed this
alltogether and just directly passed 'pigz' to the command...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoTurn the offline/online checkbox of the Migrate Windows into a displayfield
Emmanuel Kasper [Thu, 24 Aug 2017 09:45:20 +0000 (11:45 +0200)]
Turn the offline/online checkbox of the Migrate Windows into a displayfield

This checkbox had not effect whatsoever:
 * if the VM was online and offline was selected, the migration would fail
 with the message that the --online flag is needed for running VMs
 * if the the VM was offline and online was selected, the migration would
 happen offline anyway

6 years agoRework Migrate Window with declarative synthax
Emmanuel Kasper [Thu, 24 Aug 2017 09:45:19 +0000 (11:45 +0200)]
Rework Migrate Window with declarative synthax

Also group all qemu vs LXC tests in a single place.

6 years agoAllow to set the onlineHelp via a config Object
Emmanuel Kasper [Thu, 24 Aug 2017 09:45:18 +0000 (11:45 +0200)]
Allow to set the onlineHelp via a config Object

For cases when we need to set the online help block id of a modal window after the help
button has been configured.

6 years agobump version to 5.0-32
Wolfgang Bumiller [Tue, 12 Sep 2017 11:55:49 +0000 (13:55 +0200)]
bump version to 5.0-32

6 years agoDisallow quotas for unprivileged containers
Philip Abernethy [Mon, 11 Sep 2017 15:42:35 +0000 (17:42 +0200)]
Disallow quotas for unprivileged containers

Disables the quota checkbox for unprivileged containers in the creation
wizard, as well as when editing or adding mountpoints.

6 years agoWhitespace and typo fix
Philip Abernethy [Mon, 11 Sep 2017 15:42:34 +0000 (17:42 +0200)]
Whitespace and typo fix

6 years agoinit: shorter pve-guests.service Description
Wolfgang Bumiller [Mon, 11 Sep 2017 13:53:41 +0000 (15:53 +0200)]
init: shorter pve-guests.service Description

6 years agorename pve-manager.service to pve-guests
Thomas Lamprecht [Fri, 8 Sep 2017 14:31:30 +0000 (16:31 +0200)]
rename pve-manager.service to pve-guests

the name 'pve-manager' collides with our pve-manager package name,
which - from the user point of view - provides mainly the API and
WebUI.
An user could thus think that restarting 'pve-manager' would restart
the WebUIs server, which is relatable.
But, the pve-manager.service does not controls the WebUI or its
server but is responsible for starting all guest with 'onboot=1' in
their config on system boot and to stop all remaining running guests
on system shutdown.

Thus rename it to pve-guests and adapt its description. This may not
seem as ideal name at first glance, but its better than the current
option. Further it leads to log messages like:
 > Starting PVE guests (Service providing start-on-boot and stop-all-on-shutdown)
 > [...]
 > Started PVE guests (Service providing start-on-boot and stop-all-on-shutdown)
 > [...]
 > Stopping PVE guests (Service providing start-on-boot and stop-all-on-shutdown)

which makes it clearer what happens, or what this service is for.

Alias the new service to the old pve-manager.service for legacy
reasons. While our services do not depend on it an user could have
made an own service which used pve-manager.service as synchronisation
point.

Linitian then complains about init.d/pve-manager not having a related
systemd service file. Instead of renmaning it just drop it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agopve-manager.service: move open-iscsi ordering to pve-storage.target
Thomas Lamprecht [Fri, 8 Sep 2017 14:31:29 +0000 (16:31 +0200)]
pve-manager.service: move open-iscsi ordering to pve-storage.target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agopve-manager.service: allow logging STDERR and STDOUT
Thomas Lamprecht [Fri, 8 Sep 2017 14:31:28 +0000 (16:31 +0200)]
pve-manager.service: allow logging STDERR and STDOUT

The API calls are not to chatty but may give helpfull hints about
what gets tried to be done.

This may help an Admin to figure out which guest delays his host
shutdown.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agopve-manager.service: refuse manual start/stop
Thomas Lamprecht [Fri, 8 Sep 2017 14:31:27 +0000 (16:31 +0200)]
pve-manager.service: refuse manual start/stop

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agopve-manager.service: do not allow stop to timeout
Thomas Lamprecht [Fri, 8 Sep 2017 14:31:26 +0000 (16:31 +0200)]
pve-manager.service: do not allow stop to timeout

This services is responsible for bringing up 'onboot' marked guests
on host power-on and stop _all_ guests gracefully on host shutdown
(be it reboot, shutdow, halt, ..)

It's type is set to 'oneshot', which implies a TimeoutStartSec of
'infinity', by default. With Jessies Version of Systemd the
TimeoutStopSec defaulted to TimeoutStartSec, if not set – so also
'infinity'.
But, Debian Stretchs Version of Systemd makes TimeoutStopSec defaults
to 'DefaultTimeoutStopSec' if it was not set, which is by default 90
seconds – much less than infinity.

This may cause non-gracefull shutdowns of guests, as after the 90
seconds systemd sends a SIGKILL to the pvesh 'stopall' process.
This may end in a bad guest state then. But besides that it can also
lead to a hanging shutdown in some cirumstancesm, as some guest still
operated on storages, so systemd-shutdown - the binary which gets
exec'ed by systemd to become the new PID 1 cannot finish its
sync/umount/shutdown procedure. It has a watchdog armed on sync, if
that triggers you may even get a fully shut down system.
Else it can possibly hang forever, at least until the power plug gets
pulled or similar actions are taken.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoshow 'RBD' instead of 'RBD (external)' on storage summary
Dominik Csapak [Thu, 7 Sep 2017 10:48:28 +0000 (12:48 +0200)]
show 'RBD' instead of 'RBD (external)' on storage summary

we cannot differentiate between external and pve-managed there,
so we just want to show 'RBD'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agodrop unnecessary check for 'local'
Dominik Csapak [Tue, 5 Sep 2017 14:23:50 +0000 (16:23 +0200)]
drop unnecessary check for 'local'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agomake bluestore the default choice when creating osds
Dominik Csapak [Tue, 5 Sep 2017 14:23:49 +0000 (16:23 +0200)]
make bluestore the default choice when creating osds

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd new "RBD (PVE)" storage choice
Dominik Csapak [Tue, 5 Sep 2017 14:23:48 +0000 (16:23 +0200)]
add new "RBD (PVE)" storage choice

this is for adding a pve managed ceph rbd storage, so that the user
just has to select the pool, and does not need to write the monitor
hosts and copy the keyring

the old "RBD" is renamed to "RBD (external)"

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd CephPoolSelector
Dominik Csapak [Tue, 5 Sep 2017 14:23:47 +0000 (16:23 +0200)]
add CephPoolSelector

this allows us to give the user a list of pve managed ceph pools

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoceph: do not automatically use wal if only journal is given
Dominik Csapak [Tue, 5 Sep 2017 14:23:46 +0000 (16:23 +0200)]
ceph: do not automatically use wal if only journal is given

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agorename 'Remove' ceph pool button to 'Destroy'
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:48 +0000 (14:59 +0200)]
rename 'Remove' ceph pool button to 'Destroy'

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoenable showProgress for create/destroy pool
Fabian Grünbichler [Tue, 5 Sep 2017 12:59:47 +0000 (14:59 +0200)]
enable showProgress for create/destroy pool

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>