]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
5 years agoUpdate default CIPHERS to a more current list
Rhonda D'Vine [Thu, 11 Oct 2018 10:05:19 +0000 (12:05 +0200)]
Update default CIPHERS to a more current list

The default CIPHERS allowed for a fair amount of not really considered
secure anymore connections.  This updated cipher list is taken from
mozilla: https://wiki.mozilla.org/Security/Server_Side_TLS

Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
5 years agobump version to 5.2-10
Thomas Lamprecht [Tue, 16 Oct 2018 09:57:20 +0000 (11:57 +0200)]
bump version to 5.2-10

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agopvesh: fix bug #1942 - add standard options conditional
Dietmar Maurer [Tue, 16 Oct 2018 08:55:05 +0000 (10:55 +0200)]
pvesh: fix bug #1942 - add standard options conditional

Do not add/extract standard options if the method itself defined properties
using the same names (like 'quiet').

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
5 years agod/control: bump version dependency for libpve-common-perl
Thomas Lamprecht [Mon, 8 Oct 2018 12:16:11 +0000 (14:16 +0200)]
d/control: bump version dependency for libpve-common-perl

to ensure we have the /etc/hosts inotify read/write, needed for it's
gui part, methods available

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agouse 'die' instead of 'raise_param_exc'
Dietmar Maurer [Mon, 8 Oct 2018 11:14:51 +0000 (13:14 +0200)]
use 'die' instead of 'raise_param_exc'

Because there is not 'config' parameter.

5 years agoAPI2 : Network : add network config reload
Alexandre Derumier [Tue, 2 Oct 2018 07:19:38 +0000 (09:19 +0200)]
API2 : Network : add network config reload

This add a new api to online reload networking configuration
with ifupdown2.

This work with native ifupdown2 modules, as ifupdown2 have
interface dependency relationships.

Some specific interfaces options can't be reloaded online
(because kernel don't implement it), it this case, we ifdown/ifup
theses interfaces. (mainly vxlan interfaces options)

5 years agogui: dc/Tasks.js fix indentation
Dominik Csapak [Fri, 5 Oct 2018 08:19:23 +0000 (10:19 +0200)]
gui: dc/Tasks.js fix indentation

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agogui: dc/Tasks.js fix trailing whitespace
Dominik Csapak [Fri, 5 Oct 2018 08:19:22 +0000 (10:19 +0200)]
gui: dc/Tasks.js fix trailing whitespace

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agomake /etc/hosts editable via gui
Dominik Csapak [Thu, 13 Sep 2018 12:55:56 +0000 (14:55 +0200)]
make /etc/hosts editable via gui

with adding the NodeHostsView to the node tabs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoadd /node/{NODE}/hosts API Call
Dominik Csapak [Wed, 12 Sep 2018 08:24:13 +0000 (10:24 +0200)]
add /node/{NODE}/hosts API Call

to get and set the content of /etc/hosts

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agobump version to 5.2-9
Thomas Lamprecht [Thu, 13 Sep 2018 09:43:59 +0000 (11:43 +0200)]
bump version to 5.2-9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui: form/VMSelector: use SIMPLE mode for guest checkbox model
Thomas Lamprecht [Tue, 11 Sep 2018 07:48:25 +0000 (09:48 +0200)]
ui: form/VMSelector: use SIMPLE mode for guest checkbox model

Switch the default mode 'MULTI' with 'SIMPLE', the same we use in the
dc/Backup guest selector. It allows to remove the 'checkOnly'
setting, which limited selection and deselection of elements on the
checkbox it self, doing nothing when clicking on rows.

Besides the friendlier and more streamlined UX this actually fixes a
bug in Firefox (confirmed in version 62, possible in other versions
too) where select/deselect di not worked when clicking in the white
area of the checkbox, but only when clicking on the surrounding
padding.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui: window/BulkAction: remove double '/' in api URL
Thomas Lamprecht [Tue, 11 Sep 2018 07:42:41 +0000 (09:42 +0200)]
ui: window/BulkAction: remove double '/' in api URL

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoswitch MP selector to integer input
Fabian Grünbichler [Wed, 5 Sep 2018 09:37:11 +0000 (11:37 +0200)]
switch MP selector to integer input

instead of combobox - 256 elements are too much.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 years agofix #1897: bump max number of mountpoints to 256
Fabian Grünbichler [Wed, 5 Sep 2018 09:37:10 +0000 (11:37 +0200)]
fix #1897: bump max number of mountpoints to 256

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 years agod/control: update build dependencies
Thomas Lamprecht [Thu, 6 Sep 2018 04:37:44 +0000 (06:37 +0200)]
d/control: update build dependencies

helpful for easier bootstrapping PVE, e.g., on buster.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agocpumodelselector : add EPYC
Alexandre Derumier [Sun, 2 Sep 2018 05:52:59 +0000 (07:52 +0200)]
cpumodelselector : add EPYC

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agopveceph: remove 'btrfs' as fstype for new OSDs
Wolfgang Link [Fri, 31 Aug 2018 06:10:58 +0000 (08:10 +0200)]
pveceph: remove 'btrfs' as fstype for new OSDs

btrfs is deprecated since Luminous and it will no more be tested.

If btrfs is used, you have to add an extra parameter to ceph.conf
to allow ceph-disk to activate btrfs OSD's.
In our default config this is not the case.

From Luminous release note [1]:

"We no longer test the FileStore ceph-osd backend in combination with
btrfs. We recommend against using btrfs. If you are using
btrfs-based OSDs and want to upgrade to luminous you will need to
add the follwing to your ceph.conf:

enable experimental unrecoverable data corrupting features = btrfs
The code is mature and unlikely to change, but we are only
continuing to test the Jewel stable branch against btrfs. We
recommend moving these OSDs to FileStore with XFS or BlueStore."

[1] https://ceph.com/releases/v12-2-0-luminous-released/

5 years agofix #1884: vm/hardware: ensure correct value on pending changes
David Limbeck [Fri, 24 Aug 2018 09:05:52 +0000 (11:05 +0200)]
fix #1884: vm/hardware: ensure correct value on pending changes

e.g., pending deletion of cdrom/dvd drive showed as hard disk in
hardware tab

Signed-off-by: David Limbeck <d.limbeck@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agogui: allow whitespace in mp paths
Dominik Csapak [Wed, 22 Aug 2018 08:17:17 +0000 (10:17 +0200)]
gui: allow whitespace in mp paths

we do all necessary checks in the backend, and there we allow
whitespace in mp paths, so there is no need to restrict it in
the gui to non-whitespace characters

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agobump version to 5.2-8
Thomas Lamprecht [Mon, 20 Aug 2018 13:12:23 +0000 (15:12 +0200)]
bump version to 5.2-8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix #1872 Move button stays on the screen after closing
David Limbeck [Mon, 20 Aug 2018 09:57:34 +0000 (11:57 +0200)]
fix #1872 Move button stays on the screen after closing

5 years agofixe return values in /cluster/resources
Dominik Csapak [Fri, 17 Aug 2018 11:18:14 +0000 (13:18 +0200)]
fixe return values in /cluster/resources

openvz is deprecated but can still be a return value
maxcpu can be a real number (e.g., for CT if cpulimit is 1.5 and
cores is not set), and may not be an integer

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix #1393: use language from datacenter.cfg for gui
Dominik Csapak [Fri, 17 Aug 2018 07:26:21 +0000 (09:26 +0200)]
fix #1393: use language from datacenter.cfg for gui

if we do not have a language cookie, try to read
the language from the datacenter.cfg and fall back to 'en'

also set it into the 'Proxmox' object, so that the gui can show it
in the LoginWindow

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agogui: zfs over iscsi: only allow inputs that are relevant
Dominik Csapak [Fri, 10 Aug 2018 11:26:58 +0000 (13:26 +0200)]
gui: zfs over iscsi: only allow inputs that are relevant

some options are only relevant for some iscsi providers
so only allow thos who are relevant to the selected provider
and rename LIO target portal group to 'Target portal group'
since it is only active when lio is chosen

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agofix #1828: check if targetnode exists before starting mass migration
Dominik Csapak [Fri, 10 Aug 2018 09:18:25 +0000 (11:18 +0200)]
fix #1828: check if targetnode exists before starting mass migration

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agofix #1837: reorganize ha panel
Dominik Csapak [Wed, 8 Aug 2018 14:37:20 +0000 (16:37 +0200)]
fix #1837: reorganize ha panel

since the whole panel was scrollable instead of the individual ones,
selecting a ha service triggered the 'jump to focus' which made it
hard (if not impossible) to reach the edit/remove buttons for it

this patch reorganizes the panels in such a way that the status
panel is fixed height, and the content of the resource panel is
scrollable (always showing the edit/remove buttons)

to avoid not seeing the resources when one has a large number of
nodes, we make the individual panels collapsible

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoadd 'single' type for zfs creation
Dominik Csapak [Wed, 8 Aug 2018 08:20:10 +0000 (10:20 +0200)]
add 'single' type for zfs creation

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agoadd ZFS list/detail/create gui
Dominik Csapak [Tue, 7 Aug 2018 14:51:11 +0000 (16:51 +0200)]
add ZFS list/detail/create gui

list shows zpools only, with detail the user can see
the status of the indiviual vdevs/mirrors

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agofix onlineHelp links for diskmanagement
Dominik Csapak [Tue, 7 Aug 2018 14:51:10 +0000 (16:51 +0200)]
fix onlineHelp links for diskmanagement

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agopveam update: add empty properties definition
Dietmar Maurer [Tue, 7 Aug 2018 09:31:20 +0000 (11:31 +0200)]
pveam update: add empty properties definition

To avoid warnings about undef value in RESTHandler.

5 years agoui: storage: do not allow empty TPG if LIO is selected
Thomas Lamprecht [Thu, 2 Aug 2018 16:25:56 +0000 (18:25 +0200)]
ui: storage: do not allow empty TPG if LIO is selected

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui: storage: add enable/hide logic for LIO TPG field
Thomas Lamprecht [Thu, 2 Aug 2018 16:21:18 +0000 (18:21 +0200)]
ui: storage: add enable/hide logic for LIO TPG field

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoui: storage: Linux LIO/targetcli support
Udo Rader [Thu, 26 Jul 2018 21:28:32 +0000 (23:28 +0200)]
ui: storage: Linux LIO/targetcli support

adding LIO option and dedicated "LIO target portal group" input field to the
"Add: ZFS via iSCSI" dialog

Signed-Off-By: Udo Rader <udo.rader@bestsolution.at>
5 years agoui/qemu: Extend Qemu Guest agent
Stoiko Ivanov [Wed, 1 Aug 2018 18:29:07 +0000 (20:29 +0200)]
ui/qemu: Extend Qemu Guest agent

Change to agent now being a property_string, and including  fstrim_cloned_disks.

Co-Authored-By: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
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>