]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
5 years agoui: permissions: allow to select root path '/' directly
Thomas Lamprecht [Wed, 25 Jul 2018 08:18:12 +0000 (10:18 +0200)]
ui: permissions: allow to select root path '/' directly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoset resize to 'off' for the novnc popup
Dominik Csapak [Mon, 23 Jul 2018 08:56:25 +0000 (10:56 +0200)]
set resize to 'off' for the novnc popup

this makes it easier to handle the resize parameter in novnc code

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoimprove xtermjs settings button behaviour
Dominik Csapak [Wed, 25 Apr 2018 06:12:21 +0000 (08:12 +0200)]
improve xtermjs settings button behaviour

we now put a form around the fields/buttons and can track
the valid/dirty state, and use this for setting the button states

now the buttons are correctly enabled/disabled when the form
is dirty/valid/empty

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agonodeconfig acme-domain: allow domains starting with numbers
Thomas Lamprecht [Thu, 12 Jul 2018 08:36:03 +0000 (10:36 +0200)]
nodeconfig acme-domain: allow domains starting with numbers

they are valid

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agopvesh: use standard output options
Dietmar Maurer [Wed, 11 Jul 2018 09:19:45 +0000 (11:19 +0200)]
pvesh: use standard output options

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
5 years agopvesh usage: correctly handle uri paramaeters, cleanups
Dietmar Maurer [Wed, 11 Jul 2018 09:19:44 +0000 (11:19 +0200)]
pvesh usage: correctly handle uri paramaeters, cleanups

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
5 years agopvesh usage: new option --returns to print result schema
Dietmar Maurer [Wed, 11 Jul 2018 09:19:43 +0000 (11:19 +0200)]
pvesh usage: new option --returns to print result schema

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
5 years agouse new timestamp renderer for /nodes/<nodename>/time
Dietmar Maurer [Wed, 11 Jul 2018 09:19:42 +0000 (11:19 +0200)]
use new timestamp renderer for /nodes/<nodename>/time

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
5 years agofixup pvesh for changes in pve-common
Wolfgang Bumiller [Wed, 11 Jul 2018 08:48:45 +0000 (10:48 +0200)]
fixup pvesh for changes in pve-common

In pve-common the following changes happened:
  0adee98 ("cli_handler: pass common output options as separate parameter")
  352b7a1 ("PVE::CLIFormatter - implement new output options")
We now get the format passed via an options hash in the
output function instead of seeing it as an api call
parameter.

Similarly, --quiet is now already handled there.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 years agopvesh: complete rewrite using PVE::CLIHandler
Dietmar Maurer [Wed, 4 Jul 2018 10:44:59 +0000 (12:44 +0200)]
pvesh: complete rewrite using PVE::CLIHandler

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
5 years agopvesh - remove interactive readline mode
Dietmar Maurer [Wed, 4 Jul 2018 10:44:58 +0000 (12:44 +0200)]
pvesh - remove interactive readline mode

We have good command line completion and history with 'bash', so there is
no real need to duplicate this functionality.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
5 years agopvenode: fix print_api_result usage, avoid print_api_list
Dietmar Maurer [Wed, 11 Jul 2018 05:38:29 +0000 (07:38 +0200)]
pvenode: fix print_api_result usage, avoid print_api_list

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
5 years agoSubmit pool if non-empty in lxc CreateWizard
Andrew Neitsch [Mon, 2 Jul 2018 14:46:15 +0000 (07:46 -0700)]
Submit pool if non-empty in lxc CreateWizard

The lxc CreateWizard ignores the pool setting. That makes creating
containers impossible for users who are restricted to using a pool. This
patch fixes that.

Signed-off-by: Andrew Neitsch <andrew@neitsch.ca>
5 years agobump version to 5.2-6
Thomas Lamprecht [Tue, 10 Jul 2018 12:48:32 +0000 (14:48 +0200)]
bump version to 5.2-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agodebian/control: update pve-common version dependency
Thomas Lamprecht [Tue, 10 Jul 2018 12:18:51 +0000 (14:18 +0200)]
debian/control: update pve-common version dependency

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agopvenode: use new CLIFormatter options
Thomas Lamprecht [Tue, 10 Jul 2018 12:35:02 +0000 (14:35 +0200)]
pvenode: use new CLIFormatter options

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoPVE/API2/Nodes.pm: document return properties for cluster node list.
Dietmar Maurer [Tue, 10 Jul 2018 09:43:56 +0000 (11:43 +0200)]
PVE/API2/Nodes.pm: document return properties for cluster node list.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
5 years agofixup: s/destriction/description/
Thomas Lamprecht [Tue, 10 Jul 2018 12:16:14 +0000 (14:16 +0200)]
fixup: s/destriction/description/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoPVE/API2/Cluster.pm - document return properties for cluster resource list.
Dietmar Maurer [Tue, 10 Jul 2018 09:45:05 +0000 (11:45 +0200)]
PVE/API2/Cluster.pm - document return properties for cluster resource list.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
5 years agoui: vm hotplug selector: refactor for sane formatting
Thomas Lamprecht [Fri, 6 Jul 2018 06:05:48 +0000 (08:05 +0200)]
ui: vm hotplug selector: refactor for sane formatting

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoAdd cephfs to allowed storages for vzdump backup
Alwin Antreich [Wed, 4 Jul 2018 10:43:29 +0000 (12:43 +0200)]
Add cephfs to allowed storages for vzdump backup

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
5 years agoui/storage: cifs: reoder fields
Thomas Lamprecht [Fri, 29 Jun 2018 11:05:02 +0000 (13:05 +0200)]
ui/storage: cifs: reoder fields

username, password and domain name are all related, they are non-pve
options related to accessing the CIFS storage and have all influence
on the pveCIFSScan component.
So group at kleast user and password together. But keep domain on the
right for the sake of balance.
Move the content type selector to the right, as the RBD and other
panels do.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui/storage: cifs: exit early from username change cb on displaying
Thomas Lamprecht [Fri, 29 Jun 2018 10:59:17 +0000 (12:59 +0200)]
ui/storage: cifs: exit early from username change cb on displaying

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui/storage: cifs: only allow entering a password if user is set
Thomas Lamprecht [Fri, 29 Jun 2018 10:55:26 +0000 (12:55 +0200)]
ui/storage: cifs: only allow entering a password if user is set

we ignore the password in the backend if no user is passed,
which can be very confusing for the user - or more important, me,
when testing cifs/storage stuff.

So change the mechanics slightly. Previously we changed the
allowBlank property of the password field if username was changed.
I set it to always required, but disable the whole field if we do not
have a username.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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

5 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>
5 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>
5 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>
5 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>
5 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>
5 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

5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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

5 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>
5 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

5 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>
5 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

5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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 f28ec3e4b3e6cca1f45630e75f9858c558680979
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: 675e71d37a07f522e065dbefb6a20dde3119fbc3

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>