]> git.proxmox.com Git - pve-manager-legacy.git/log
pve-manager-legacy.git
6 years agotrivial: ui: cifs: cleanup unnecessary lines
Thomas Lamprecht [Fri, 29 Jun 2018 10:53:55 +0000 (12:53 +0200)]
trivial: ui: cifs: cleanup unnecessary lines

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agowhitespace fix
Dominik Csapak [Fri, 29 Jun 2018 08:20:23 +0000 (10:20 +0200)]
whitespace fix

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd task list/log/status to pvenode
Dominik Csapak [Fri, 29 Jun 2018 08:20:22 +0000 (10:20 +0200)]
add task list/log/status to pvenode

and use the newly created print_api_* helpers for this

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agotask log: set default in the api call
Dominik Csapak [Fri, 29 Jun 2018 08:20:21 +0000 (10:20 +0200)]
task log: set default in the api call

we have the defaults documented here, so set them here too
otherwise if the default change in PVE::Tools, we probably forget to
update the api description

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agonode task list: set the defaults better
Dominik Csapak [Fri, 29 Jun 2018 08:20:20 +0000 (10:20 +0200)]
node task list: set the defaults better

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd more api schema information for node task list and log
Dominik Csapak [Fri, 29 Jun 2018 08:20:19 +0000 (10:20 +0200)]
add more api schema information for node task list and log

this makes for a better documentation

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix correct call to 'usage_str'
Dominik Csapak [Thu, 28 Jun 2018 10:57:56 +0000 (12:57 +0200)]
fix correct call to 'usage_str'

we forgot to give usage_str also the param_mapping sub,
else it fails on calling 'help'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 5.2-5
Thomas Lamprecht [Wed, 27 Jun 2018 12:07:07 +0000 (14:07 +0200)]
bump version to 5.2-5

6 years agod/control: update pve-common version dependency
Thomas Lamprecht [Wed, 27 Jun 2018 12:00:19 +0000 (14:00 +0200)]
d/control: update pve-common version dependency

as we use the new param_mapping functionallity from PVE::CLIHandler

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse PVE::RESTHandler explicitly
Dominik Csapak [Fri, 15 Jun 2018 13:28:46 +0000 (15:28 +0200)]
use PVE::RESTHandler explicitly

since we use it in the code

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoreplace read_password with param_mapping in pvesh
Dominik Csapak [Fri, 15 Jun 2018 13:28:45 +0000 (15:28 +0200)]
replace read_password with param_mapping in pvesh

and use get_standard_mapping from CLIHandler

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd star/stop/migrateall commands to pvenode
Dominik Csapak [Wed, 27 Jun 2018 08:44:55 +0000 (10:44 +0200)]
add star/stop/migrateall commands to pvenode

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agostartall: refactor and fix error message
Dominik Csapak [Wed, 27 Jun 2018 08:44:54 +0000 (10:44 +0200)]
startall: refactor and fix error message

for vms, it showed:
Starting VM 100 failed: status

instead of showing the actual status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 5.2-4
Thomas Lamprecht [Wed, 27 Jun 2018 07:21:54 +0000 (09:21 +0200)]
bump version to 5.2-4

6 years agoACMEv2 order "ready" status update
Dominik Csapak [Wed, 20 Jun 2018 09:56:05 +0000 (11:56 +0200)]
ACMEv2 order "ready" status update

since letsencrypt updates their implementation to the ACMEv2 spec [1],
we should correctly parse the order status

1: https://community.letsencrypt.org/t/acmev2-order-ready-status/62866

note that we (for now) try to be compatbile to both versions,
with and without ready state, this can be changed when all letsencrypt
apis have changed

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobuildsys: remove excess directory creations
Wolfgang Bumiller [Wed, 20 Jun 2018 11:18:30 +0000 (13:18 +0200)]
buildsys: remove excess directory creations

/usr/share/$(PACKAGE) is used for country.dat, installed
with -D
/usr/share/man/man1 is defined as $(MAN1DIR) in
defines.mk and already created in bin/Makefile where it is
actually used.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agocleanup: move bin/test to toplevel
Thomas Lamprecht [Wed, 20 Jun 2018 10:47:03 +0000 (12:47 +0200)]
cleanup: move bin/test to toplevel

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agocleanup: add network-hooks directory and move respective files
Thomas Lamprecht [Wed, 20 Jun 2018 10:47:02 +0000 (12:47 +0200)]
cleanup: add network-hooks directory and move respective files

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agocleanup: add configs directory and move respective files
Thomas Lamprecht [Wed, 20 Jun 2018 10:47:01 +0000 (12:47 +0200)]
cleanup: add configs directory and move respective files

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agocleanup: rename bin/init.d to services
Thomas Lamprecht [Wed, 20 Jun 2018 10:47:00 +0000 (12:47 +0200)]
cleanup: rename bin/init.d to services

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agocleanup: replace repoid.pl script by simple git commands
Thomas Lamprecht [Wed, 20 Jun 2018 10:46:59 +0000 (12:46 +0200)]
cleanup: replace repoid.pl script by simple git commands

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobuildsys: remove wildcard target from Makefile
Thomas Lamprecht [Wed, 20 Jun 2018 10:46:58 +0000 (12:46 +0200)]
buildsys: remove wildcard target from Makefile

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoapi/tasks: explicit import raise_param_exc
Thomas Lamprecht [Thu, 14 Jun 2018 10:09:28 +0000 (12:09 +0200)]
api/tasks: explicit import raise_param_exc

we inherited the import from PVE::RESTHandler but may want to get rid
of it there. So explicitly import it here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui/ct: add autostart-after-create checkbox to wizard
Thomas Lamprecht [Wed, 13 Jun 2018 14:34:42 +0000 (16:34 +0200)]
ui/ct: add autostart-after-create checkbox to wizard

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 5.2-3
Wolfgang Bumiller [Fri, 15 Jun 2018 10:29:22 +0000 (12:29 +0200)]
bump version to 5.2-3

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoadd ifupdown2 as alternative to ifenslave.
Alexandre Derumier [Wed, 16 May 2018 10:01:57 +0000 (12:01 +0200)]
add ifupdown2 as alternative to ifenslave.

ifupdown2 conflict with ifenslave, as it's replace it

6 years agoui: add auostart after create checkbox
Thomas Lamprecht [Fri, 1 Jun 2018 14:40:41 +0000 (16:40 +0200)]
ui: add auostart after create checkbox

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoRemove swap/memory limit in the Manager, fixes #1799
René Jochum [Thu, 7 Jun 2018 11:42:30 +0000 (13:42 +0200)]
Remove swap/memory limit in the Manager, fixes #1799

6 years agoadd ebtables option to cluster firewallsettings
Stoiko Ivanov [Wed, 6 Jun 2018 09:56:06 +0000 (11:56 +0200)]
add ebtables option to cluster firewallsettings

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
6 years agobump version to 5.2-2
Thomas Lamprecht [Tue, 5 Jun 2018 13:20:39 +0000 (15:20 +0200)]
bump version to 5.2-2

6 years agolet all users retrieve the directories and tos for acme
Dominik Csapak [Mon, 4 Jun 2018 15:12:35 +0000 (17:12 +0200)]
let all users retrieve the directories and tos for acme

else all non-root users get an empty dropdown box for the directories
and get no feedback why that is

with this, they can select it, but ultimately get an api error if the
permissions are not sufficient

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoapi/acme: fallback to default for account name parameter
Dominik Csapak [Wed, 30 May 2018 08:52:19 +0000 (10:52 +0200)]
api/acme: fallback to default for account name parameter

We defined 'default' as fallback default value for the optional
pve-acme-account-name standard option but did not honored that.

Thus we got a perl error ($account_name not defined) if we did not
passed a name. Fix that by actually falling back to 'default' in this
case.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agofix notes gear tool
Dominik Csapak [Fri, 25 May 2018 15:27:41 +0000 (17:27 +0200)]
fix notes gear tool

me was used before it was defined

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoindentation fixes
Dominik Csapak [Fri, 25 May 2018 15:24:49 +0000 (17:24 +0200)]
indentation fixes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix #1499 Implement a combobox for Permissions paths
René Jochum [Tue, 8 May 2018 13:15:38 +0000 (15:15 +0200)]
fix #1499 Implement a combobox for Permissions paths

Signed-off-by: René Jochum <r.jochum@proxmox.com>
6 years agoModernize PVE.form.GroupSelector,
René Jochum [Tue, 8 May 2018 13:15:37 +0000 (15:15 +0200)]
Modernize PVE.form.GroupSelector,

as example for future Uses.

Signed-off-by: René Jochum <r.jochum@proxmox.com>
6 years agofix #427: add notes panel to node
Dominik Csapak [Fri, 25 May 2018 08:31:56 +0000 (10:31 +0200)]
fix #427: add notes panel to node

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoaccept type 'node' for NotesView and refactor it
Dominik Csapak [Fri, 25 May 2018 08:31:55 +0000 (10:31 +0200)]
accept type 'node' for NotesView and refactor it

so that we can use it for the notes of a node,
also changes the configuration to a static declaration,
this adds an 'edit' button for the node panel

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agolet NotesView load itself
Dominik Csapak [Fri, 25 May 2018 08:31:54 +0000 (10:31 +0200)]
let NotesView load itself

instead of needing to load from the outside, let NotesView handle the
loading itself

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agocorrectly update qemu ip information
Dominik Csapak [Tue, 22 May 2018 12:02:35 +0000 (14:02 +0200)]
correctly update qemu ip information

we updated the status from the status store too often, so that
if the guest agent was not running, the message would
change between 'no information' and 'not running'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoonly show 'more' buttons for ips when there are actually ips to show
Dominik Csapak [Tue, 22 May 2018 12:02:34 +0000 (14:02 +0200)]
only show 'more' buttons for ips when there are actually ips to show

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agocheck for VM.Montior privileges on qemu AgentIPView
Dominik Csapak [Fri, 25 May 2018 08:36:33 +0000 (10:36 +0200)]
check for VM.Montior privileges on qemu AgentIPView

so that the user does not get the useless 'no information' or
'not running' message, but the real cause

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoui: use cbind to make usb input panel static
Thomas Lamprecht [Wed, 16 May 2018 08:38:35 +0000 (10:38 +0200)]
ui: use cbind to make usb input panel static

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agocorrectly parse iscsi content
Dominik Csapak [Fri, 18 May 2018 10:18:07 +0000 (12:18 +0200)]
correctly parse iscsi content

we parse the content as a list, so it is always an array

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoui: dc/storage: allow to renenable iscsi storages again
Thomas Lamprecht [Fri, 18 May 2018 06:59:13 +0000 (08:59 +0200)]
ui: dc/storage: allow to renenable iscsi storages again

The dc/storage refactoring done in
commit 8f60ee4ccacc14f1bbe025874522c151cc375f83
introduced a regression where an once deactivated iSCSI storage could
not be activated again through UI, as we did not called the parent
setValue function correctly, thus the Enable checkbox was always set
to true. A uncheck -> check cycle couldn't also be done as the dirty
changes check disabled the submit button in this case.

Enable/Disable through API or CLI still worked.

Reported-by: Bastian Sebode <b.sebode@linet-services.de>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: vm: allow to add socket backed serial devices
Thomas Lamprecht [Wed, 16 May 2018 13:30:59 +0000 (15:30 +0200)]
ui: vm: allow to add socket backed serial devices

We show and can remove serial devices but couldn't add new ones
through the WebUI.
Add a simple component to allow adding serial ports backed by a
socket, which can be especially useful now with xterm.js

Passing through serial devices from /dev isn't possible with this, as
it is normally a root only operation and not that often used.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agofixup: jslint errors
Thomas Lamprecht [Wed, 16 May 2018 08:04:39 +0000 (10:04 +0200)]
fixup: jslint errors

fix some small problems where jslint complains, introduced by
commit: 9265782932cdbcf8e6c7781aec437d06a22048d4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 5.2-1
Fabian Grünbichler [Mon, 14 May 2018 12:02:36 +0000 (14:02 +0200)]
bump version to 5.2-1

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agotest: replication: adapt test data
Fabian Grünbichler [Mon, 14 May 2018 11:58:11 +0000 (13:58 +0200)]
test: replication: adapt test data

otherwise the checks in write_config fail

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agotest: replication: mock cfs_(write|lock)_file
Fabian Grünbichler [Mon, 14 May 2018 11:57:26 +0000 (13:57 +0200)]
test: replication: mock cfs_(write|lock)_file

which is needed since the HA recovery series

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoadd missing onlineHelp links
Dominik Csapak [Mon, 14 May 2018 08:55:20 +0000 (10:55 +0200)]
add missing onlineHelp links

for:
* dc/Cluster
* node/Certificates
* qemu/CloudInit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agocorrect node free calculation
Dominik Csapak [Fri, 11 May 2018 06:15:03 +0000 (08:15 +0200)]
correct node free calculation

avail - used is wrong
total - used = free

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoupdate included aplinfo.dat
Fabian Grünbichler [Fri, 11 May 2018 07:15:07 +0000 (09:15 +0200)]
update included aplinfo.dat

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoui/UserEdit: fixup grammar in password match error message
Thomas Lamprecht [Wed, 9 May 2018 09:13:23 +0000 (11:13 +0200)]
ui/UserEdit: fixup grammar in password match error message

Passwords is plural, so it needs "do", not "does".

We already have the "do" version translated as it is used by the PMG
so this adds no new string.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agohide irrelevant buttons and tabs for container templates
Dominik Csapak [Tue, 8 May 2018 13:58:55 +0000 (15:58 +0200)]
hide irrelevant buttons and tabs for container templates

like we do with vm templates

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agotrailing whitespace fixup
Thomas Lamprecht [Tue, 8 May 2018 14:07:41 +0000 (16:07 +0200)]
trailing whitespace fixup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agofixes #1503 Add role CRUD to the GUI.
René Jochum [Tue, 8 May 2018 09:32:26 +0000 (11:32 +0200)]
fixes #1503 Add role CRUD to the GUI.

As given in the subject this implements role create/update/delete over
the manager.

There's currently no coler highlightning for "special" roles.

Signed-off-by: René Jochum <r.jochum@proxmox.com>
6 years agoadd _blank target for optional url
Dominik Csapak [Tue, 8 May 2018 10:18:01 +0000 (12:18 +0200)]
add _blank target for optional url

so that they open in a new tab/window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 5.1-53
Wolfgang Bumiller [Mon, 7 May 2018 13:22:08 +0000 (15:22 +0200)]
bump version to 5.1-53

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoadd container move volume to gui
Dominik Csapak [Mon, 7 May 2018 12:10:14 +0000 (14:10 +0200)]
add container move volume to gui

this reuses the vm HDMove window to move volumes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agomake HDMove.js also usable for lxc
Dominik Csapak [Mon, 7 May 2018 12:10:13 +0000 (14:10 +0200)]
make HDMove.js also usable for lxc

this makes it possible to reuse the window for container move_volume

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoclose HDMove on taskDone
Dominik Csapak [Mon, 7 May 2018 12:10:12 +0000 (14:10 +0200)]
close HDMove on taskDone

this triggers the 'destroy' event of the window at the correct time

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agod/control: update build and install dependencies
Thomas Lamprecht [Fri, 4 May 2018 14:28:27 +0000 (16:28 +0200)]
d/control: update build and install dependencies

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui/acme: remove 'Renew Cert' button for now
Thomas Lamprecht [Fri, 4 May 2018 14:16:31 +0000 (16:16 +0200)]
ui/acme: remove 'Renew Cert' button for now

You can normally do this with the Order Cert button, with almost the
same result, and it isn't something which will be needed often, if
the UI is somehow inaccessible (due to cert problem) then this is
useless anyway, and the CLI must be used anyhow.

Can be easily reverted if we deem this necessary later on.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoadd node/Certificates.js and use it
Dominik Csapak [Fri, 4 May 2018 09:53:35 +0000 (11:53 +0200)]
add node/Certificates.js and use it

this adds the grid for showing the custom/builtin Certificates
and the means to upload and delete custom ones

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd node/ACME.js
Dominik Csapak [Fri, 4 May 2018 09:53:34 +0000 (11:53 +0200)]
add node/ACME.js

this provides the grid for editing domains for letsencrypt,
order/renew the certificates, and the window for creating an
ACME account

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd render functions for Certificates
Dominik Csapak [Fri, 4 May 2018 09:53:33 +0000 (11:53 +0200)]
add render functions for Certificates

this adds render_optional_url for a field which may contain a link
and render_san which simply displays the different values
in each line

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoExtend the .gitignore(s)
René Jochum [Wed, 18 Apr 2018 20:26:04 +0000 (22:26 +0200)]
Extend the .gitignore(s)

Signed-off-by: René Jochum <rene@jochums.at>
6 years agopveupdate: add ACME certificate renewal
Fabian Grünbichler [Fri, 27 Apr 2018 12:02:14 +0000 (14:02 +0200)]
pveupdate: add ACME certificate renewal

renew certificate if an acme config entry and a custom certificate
exists on the local node and the certificate expires soon.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoadd pvenode CLIHandler
Fabian Grünbichler [Fri, 27 Apr 2018 12:02:13 +0000 (14:02 +0200)]
add pvenode CLIHandler

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoadd certificates API endpoints
Fabian Grünbichler [Fri, 27 Apr 2018 12:02:12 +0000 (14:02 +0200)]
add certificates API endpoints

to allow retrieval of certificate information, and uploading or removing
of custom certificate files.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoadd ACME certificate API endpoints
Fabian Grünbichler [Mon, 30 Apr 2018 10:16:17 +0000 (12:16 +0200)]
add ACME certificate API endpoints

for creating/ordering a new certificate and renewing respectively
revoking an existing one.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoadd ACME account API endpoints
Fabian Grünbichler [Fri, 27 Apr 2018 12:02:10 +0000 (14:02 +0200)]
add ACME account API endpoints

for registering, updating, refreshing and deactiving a PVE-managed ACME
account, as well as for retrieving the (optional, but required if
available) terms of service of the ACME API provider / CA.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoadd node configuration file and API
Fabian Grünbichler [Fri, 27 Apr 2018 12:02:09 +0000 (14:02 +0200)]
add node configuration file and API

this currently only contains a description and the node-specific ACME
configuration, but I am sure we can find other goodies to put there.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoadd CertHelpers utility
Fabian Grünbichler [Fri, 27 Apr 2018 12:02:07 +0000 (14:02 +0200)]
add CertHelpers utility

PVE-specific certificate helper functions

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agodisable the mountpoint selector and path field by default
Dominik Csapak [Mon, 30 Apr 2018 12:55:33 +0000 (14:55 +0200)]
disable the mountpoint selector and path field by default

since in the wizard, the validity check happens before the
viewmodel can set the visible/enabled state so this is invalid there,
even if the remaining panel is valid

setting it to disabled by default, makes the fields 'valid' at the
beginning but retain their behavior

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agogive vms with 'io-error' an error icon
Dominik Csapak [Mon, 30 Apr 2018 09:00:35 +0000 (11:00 +0200)]
give vms with 'io-error' an error icon

so that one can see that the vm has an error, even when not
directly investigating the status of that vm

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoshow qmpstatus if available
Dominik Csapak [Mon, 30 Apr 2018 09:00:34 +0000 (11:00 +0200)]
show qmpstatus if available

this patch shows the qmpstatus if it is available on the summary in
parenthesis

this shows things like 'suspended' and 'io-error'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoimplement multiField renderer for infopanels
Dominik Csapak [Mon, 30 Apr 2018 09:00:33 +0000 (11:00 +0200)]
implement multiField renderer for infopanels

we can use this for fields which use more than one value of the
guest status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agodc/ClusterEdit: join: fix assisted entry chechbox change listener
Thomas Lamprecht [Fri, 27 Apr 2018 13:46:16 +0000 (15:46 +0200)]
dc/ClusterEdit: join: fix assisted entry chechbox change listener

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agojslint fixes
Dominik Csapak [Wed, 25 Apr 2018 09:37:49 +0000 (11:37 +0200)]
jslint fixes

those found their way in during a rebase of my patches

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 5.1-52
Thomas Lamprecht [Mon, 23 Apr 2018 14:01:48 +0000 (16:01 +0200)]
bump version to 5.1-52

6 years agouse correct multiKey and getObjectValue calls for memory line
Dominik Csapak [Tue, 10 Apr 2018 14:36:17 +0000 (16:36 +0200)]
use correct multiKey and getObjectValue calls for memory line

also show shares and if ballooning is off

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd xterm.js settings
Dominik Csapak [Fri, 20 Apr 2018 13:37:50 +0000 (15:37 +0200)]
add xterm.js settings

this adds font-settings to the 'My Settings'
window and makes that bigger

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoset the default console in the gui when setting the option
Dominik Csapak [Fri, 20 Apr 2018 13:37:49 +0000 (15:37 +0200)]
set the default console in the gui when setting the option

until now, we only set the default console once on page load,
this enables to set it everytime the dc->options panel loads,
so also after setting an option

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoremove the novnc panels for node/container
Dominik Csapak [Fri, 20 Apr 2018 13:37:48 +0000 (15:37 +0200)]
remove the novnc panels for node/container

so that by default the users get xtermjs
not for vms though, since most will still not use a serial
terminal as the display

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoallow xtermjs to be the default console
Dominik Csapak [Fri, 20 Apr 2018 13:37:47 +0000 (15:37 +0200)]
allow xtermjs to be the default console

if not available for a vm, we fallback to novnc like with spice

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix #1691: use asynchronous API call for HD create
Wolfgang Link [Thu, 19 Apr 2018 06:39:49 +0000 (08:39 +0200)]
fix #1691: use asynchronous API call for HD create

It should use an asynchronous API call to create an image,
because some storages may need longer to alloc an image.

If a storage needs more than 30 sec
the proxy will timeout and we have an orphan image.

Also, it is possible to increase the timeout for some
storages if an asynchronous call is used

6 years agofix #1732: actually post values in IScsiEdit
Dominik Csapak [Thu, 19 Apr 2018 08:17:03 +0000 (10:17 +0200)]
fix #1732: actually post values in IScsiEdit

this prevented creating/editing an iscsi storage

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 5.1-51
Dietmar Maurer [Fri, 6 Apr 2018 12:10:09 +0000 (14:10 +0200)]
bump version to 5.1-51

6 years agooverwrite the built-in 'run_editor' function
Dominik Csapak [Fri, 6 Apr 2018 11:22:45 +0000 (13:22 +0200)]
overwrite the built-in 'run_editor' function

this is needed for the 'enter' handler

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 5.1-50
Dietmar Maurer [Fri, 6 Apr 2018 11:56:11 +0000 (13:56 +0200)]
bump version to 5.1-50

6 years agobetter focus of lxc/MPEdit
Dominik Csapak [Fri, 6 Apr 2018 11:11:27 +0000 (13:11 +0200)]
better focus of lxc/MPEdit

this gives the focus to either the 'path' field
or to the 'X' tool (if it is a rootfs)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agomerge cores, cpulimit and cpuunits for containers
Dominik Csapak [Fri, 6 Apr 2018 11:03:57 +0000 (13:03 +0200)]
merge cores, cpulimit and cpuunits for containers

like we do for qemu vms

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agolxc/MPEdit: rework for advanced options
Dominik Csapak [Thu, 5 Apr 2018 14:03:56 +0000 (16:03 +0200)]
lxc/MPEdit: rework for advanced options

this is a complete rework of the inputpanel (long overdue)
it uses a viewModel and viewcontroller to avoid the
multiple is zfs/root/bind checks and concentrate them
in one place

also some features get optimized (e.g. the noreplication checkbox)

adds a setNodename to the DiskStorageSelector so that we can bind
the nodename there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoUtils: add forEachMP
Dominik Csapak [Thu, 5 Apr 2018 14:03:55 +0000 (16:03 +0200)]
Utils: add forEachMP

in the style of forEachBus, but for containers, so that we
only have to save the count once

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agolxc/ResoureEdit: move some cpu fields to advanced options
Dominik Csapak [Thu, 5 Apr 2018 14:03:54 +0000 (16:03 +0200)]
lxc/ResoureEdit: move some cpu fields to advanced options

and show them now also in the wizard

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoqemu/CreateWizard: add advanced options on general tab
Dominik Csapak [Thu, 5 Apr 2018 14:03:53 +0000 (16:03 +0200)]
qemu/CreateWizard: add advanced options on general tab

add start on boot, guest agent and boot order fields

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoqemu/NetworkEdit: rework panel for advanced options
Dominik Csapak [Thu, 5 Apr 2018 14:03:52 +0000 (16:03 +0200)]
qemu/NetworkEdit: rework panel for advanced options

move some fields into advanced options, and remove nat mode

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoqemu/MemoryEdit: rework panel and move most things in advanced options
Dominik Csapak [Thu, 5 Apr 2018 14:03:51 +0000 (16:03 +0200)]
qemu/MemoryEdit: rework panel and move most things in advanced options

this is a major rework of the memory inputpanel
previously we had to select fixed/variable and
could set shares/ballooning, depending on what was selected

now the panel is much simpler:

non advanced:

memory: the target maximum memory

advanced:

min-memory: the minimum memory, if different from the memory field
we have 'dynamic' memory

shares, only if we have 'dynamic' memory

ballooning-device: better naming, deactivates the ballooning device

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>