]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
5 years agoui/Parser: printPropertyString: simplify and always put defaultKey values first
Thomas Lamprecht [Thu, 2 Aug 2018 14:00:56 +0000 (16:00 +0200)]
ui/Parser: printPropertyString: simplify and always put defaultKey values first

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui/Parser: parsePropertyString: log errors to console
Thomas Lamprecht [Thu, 2 Aug 2018 13:58:57 +0000 (15:58 +0200)]
ui/Parser: parsePropertyString: log errors to console

allows to catch bugs faster as we get a call trace and may see this
error even when our caller doesn't handle an undefined return value
from this method.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui/Parser: add generic functions property_strings
Stoiko Ivanov [Wed, 1 Aug 2018 18:29:06 +0000 (20:29 +0200)]
ui/Parser: add generic functions property_strings

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
5 years agoadd Directory list/create gui
Dominik Csapak [Mon, 30 Jul 2018 08:26:10 +0000 (10:26 +0200)]
add Directory list/create gui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoadd LVMThin list/create gui
Dominik Csapak [Mon, 30 Jul 2018 08:26:09 +0000 (10:26 +0200)]
add LVMThin list/create gui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoadd LVM List/Create Gui
Dominik Csapak [Mon, 30 Jul 2018 08:26:08 +0000 (10:26 +0200)]
add LVM List/Create Gui

only let the user change the name of the vg

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agomove DiskSelector to its own file, for generic use
Dominik Csapak [Mon, 30 Jul 2018 08:26:07 +0000 (10:26 +0200)]
move DiskSelector to its own file, for generic use

also set the default diskType to undefined and
change the api endpoint to /nodes/NODE/disks/list

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoui: storage: combine RBD external and hyperconverged add dialog
Thomas Lamprecht [Tue, 31 Jul 2018 08:28:06 +0000 (10:28 +0200)]
ui: storage: combine RBD external and hyperconverged add dialog

Combine both dialogues. This reduces storage choices from the
Storage -> Add menu, and thus improves usability.

We make the whole dialog also more intelligent by querying the
monitors, so that we can show them for the hyper converged case
keeping a similar interface for both cases. Further we can use this
to decide if a hyperconverged setup is possible at all.
While this information would also be available through the fact if
the pool selector has entries I wanted to show them anyway and could
make logic a bit easier using it.

5 years agofix doubleclick on vm with spice console
Dominik Csapak [Mon, 30 Jul 2018 09:37:32 +0000 (11:37 +0200)]
fix doubleclick on vm with spice console

allowSpice needs to be a real boolean, because of a
'=== true' check to open a spice console if allowed, so make it one here

this fixes the issue that a doubleclick on a tree item only opened
the novnc console even if spice is the default and the vm is spice
enabled

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agobump version to 5.2-7
Dietmar Maurer [Fri, 27 Jul 2018 09:47:38 +0000 (11:47 +0200)]
bump version to 5.2-7

5 years agopveproxy: add link to extjs for api-viewer
Thomas Lamprecht [Wed, 25 Jul 2018 09:21:31 +0000 (11:21 +0200)]
pveproxy: add link to extjs for api-viewer

allows us to remove the external loading of extjs from the cloudflare
cdn in pve-docs easier with having the external hosted version in
mind.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agocorrectly install PVE/CLI/pvesh.pm
Dietmar Maurer [Fri, 27 Jul 2018 05:45:20 +0000 (07:45 +0200)]
correctly install PVE/CLI/pvesh.pm

5 years agopvesh: add standard_output_properties to set/create/delete
Dietmar Maurer [Fri, 27 Jul 2018 05:34:49 +0000 (07:34 +0200)]
pvesh: add standard_output_properties to set/create/delete

Most of those API calls return simple strings, so it does not really matter.
Nethertheless, some calls return complex data structures and we want to set
output format for them.

5 years agopvesh cleanup: use a handler class - PVE/CLI/pvesh.pm
Dietmar Maurer [Thu, 26 Jul 2018 13:20:15 +0000 (15:20 +0200)]
pvesh cleanup: use a handler class - PVE/CLI/pvesh.pm

5 years agopvenode: remove useless call to query_terminal_options
Dietmar Maurer [Thu, 26 Jul 2018 10:55:28 +0000 (12:55 +0200)]
pvenode: remove useless call to query_terminal_options

5 years agopvenode: use print_api_result to print acme account information
Dietmar Maurer [Thu, 26 Jul 2018 08:54:04 +0000 (10:54 +0200)]
pvenode: use print_api_result to print acme account information

5 years agopvenode: use print_api_result to print certificate information
Dietmar Maurer [Wed, 25 Jul 2018 13:17:55 +0000 (15:17 +0200)]
pvenode: use print_api_result to print certificate information

5 years agopvenode: fixup output formatting
Dietmar Maurer [Wed, 25 Jul 2018 12:05:51 +0000 (14:05 +0200)]
pvenode: fixup output formatting

5 years agopvesh: implement 'ls' command
Dietmar Maurer [Wed, 25 Jul 2018 09:34:42 +0000 (11:34 +0200)]
pvesh: implement 'ls' command

5 years agopvesh: do not use CLIHandler $option parameter, simplify code
Dietmar Maurer [Tue, 24 Jul 2018 11:46:08 +0000 (13:46 +0200)]
pvesh: do not use CLIHandler $option parameter, simplify code

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