]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
4 years agonode config: check if plugin is valid for acmedomain
Thomas Lamprecht [Sun, 3 May 2020 16:46:02 +0000 (18:46 +0200)]
node config: check if plugin is valid for acmedomain

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi acme: reduce verification delays
Thomas Lamprecht [Sun, 3 May 2020 16:43:40 +0000 (18:43 +0200)]
api acme: reduce verification delays

As proxmox-acme has now a default delay for DNS challenge plugins,
which is the important one. Those are just for not overloading the
acme servers with a lot of requests, but once the challenge was
propagate they have it verified pretty quickly, so reduce delay for
checking validation after first requesting it down to 10 seconds

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi acme: use the same plugin config for an order
Thomas Lamprecht [Sun, 3 May 2020 16:41:09 +0000 (18:41 +0200)]
api acme: use the same plugin config for an order

re-loading it always would mean that we could potentially switch the
config to something completely different, and the mix of the previous
and the old could result in total bogus actions.

Better to use the same one for one full order, even if it may get
"outdated" it was still valid in the past and most important
coherent.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi acme: code cleanups
Thomas Lamprecht [Sun, 3 May 2020 16:40:49 +0000 (18:40 +0200)]
api acme: code cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agosdn: remove reverts buttons
Alexandre Derumier [Mon, 13 Apr 2020 06:20:59 +0000 (08:20 +0200)]
sdn: remove reverts buttons

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agonodeconfig: allow up to 5 domains for now
Thomas Lamprecht [Sun, 3 May 2020 14:36:02 +0000 (16:36 +0200)]
nodeconfig: allow up to 5 domains for now

20 was a bit overkill, and we can increase this easily, decreasing
isn't that easy at all...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi acme account: refactor and cleanup
Thomas Lamprecht [Sun, 3 May 2020 14:34:01 +0000 (16:34 +0200)]
api acme account: refactor and cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoapi: acme plugins: we're not the storage content API endpoint
Thomas Lamprecht [Sun, 3 May 2020 13:22:48 +0000 (15:22 +0200)]
api: acme plugins: we're not the storage content API endpoint

Drop various leftovers from the storage content API module this was
based on, e.g., ACME plugins have no fixed options and the like.
Also, the descriptions shouldn't mention "storage".

Further, drop the "update_config" "helper" with its operations
effectively only increasing code complexity and adding another rabbit
hole to jump into.

IF, this should have been factoring out the lock+read+write cycle
only, living the rest to a passed CODE-ref, but honestly that saves
only really the read and write config lines, and at this point
nothing is really gained, so just let it be.

Should have been actually three or so separate patches, but to deep
into this rabbit hole to care..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoNodeConfig: ensure locked context has current view
Fabian Grünbichler [Thu, 30 Apr 2020 08:37:02 +0000 (10:37 +0200)]
NodeConfig: ensure locked context has current view

similar to the recent changes for pve-guest-common - we start each API
call with a cfs_update, but while we were waiting for the flock another
R-M-W cycle might have happened, so we need to refresh after obtaining
the lock.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agonode config: verify abstract relations on write
Thomas Lamprecht [Sat, 2 May 2020 16:30:11 +0000 (18:30 +0200)]
node config: verify abstract relations on write

for now mostly due to the "nice" property of the acmedomains which
do not use their property key as index but actually the doamain.

Without this one could set up duplicated domain entries just fine,
but once using them -> error.
This is not nice UX, so verify node config before writing an updated
one out, to catch those issues.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agonode config: die on type failure
Thomas Lamprecht [Sat, 2 May 2020 16:29:36 +0000 (18:29 +0200)]
node config: die on type failure

as else we'd continued with bogus data and possible write out
something stupid

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopvenode: allow replying on samle line on interactive questions
Thomas Lamprecht [Sat, 2 May 2020 16:29:15 +0000 (18:29 +0200)]
pvenode: allow replying on samle line on interactive questions

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoacme/node cfg: various code cleanups
Thomas Lamprecht [Sat, 2 May 2020 16:26:56 +0000 (18:26 +0200)]
acme/node cfg: various code cleanups

just a small selection I already had done, avoid to much time
consuming cleanups for now.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoacme plugins: improve API
Fabian Grünbichler [Mon, 20 Apr 2020 21:08:41 +0000 (23:08 +0200)]
acme plugins: improve API

add checks, encoding of loaded data files, update API path, proper inclusion into API tree

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agonodeconfig: make ACME plugin optional
Fabian Grünbichler [Mon, 20 Apr 2020 18:50:15 +0000 (20:50 +0200)]
nodeconfig: make ACME plugin optional

and default to the always available 'standalone' http-01 plugin

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agod/control: bump versioned dependency on pve-cluster
Fabian Grünbichler [Mon, 20 Apr 2020 08:37:01 +0000 (10:37 +0200)]
d/control: bump versioned dependency on pve-cluster

for new ACME plugin config file

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agod/control: wrap-and-sort
Fabian Grünbichler [Mon, 20 Apr 2020 08:35:06 +0000 (10:35 +0200)]
d/control: wrap-and-sort

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoacme: encode plugin data in proxmox-acme-perl
Fabian Grünbichler [Fri, 17 Apr 2020 13:10:15 +0000 (15:10 +0200)]
acme: encode plugin data in proxmox-acme-perl

when reading/writing plugin config

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoacme: catch failed plugin setup
Fabian Grünbichler [Fri, 17 Apr 2020 09:15:13 +0000 (11:15 +0200)]
acme: catch failed plugin setup

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoacme: always use domain from authorization
Fabian Grünbichler [Fri, 17 Apr 2020 09:11:32 +0000 (11:11 +0200)]
acme: always use domain from authorization

instead of relying that the authorization URLs and the ordered
identifiers are sorted the same way for already validated
authorizations.

on the contrary, RFC 8555 even says:

"The authorizations required are dictated by server policy; there may
not be a 1:1 relationship between the order identifiers and the
authorizations required."

authorizations MUST always include a single identifier, no matter which
state they are in.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoacme: drop unused parameter from challenge validation request
Fabian Grünbichler [Fri, 17 Apr 2020 07:38:01 +0000 (09:38 +0200)]
acme: drop unused parameter from challenge validation request

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoacme: move more of challenge handling to ACME client
Fabian Grünbichler [Fri, 17 Apr 2020 07:37:42 +0000 (09:37 +0200)]
acme: move more of challenge handling to ACME client

so that we don't have to duplicate this logic for PMG

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agowww: fix acme parser
Fabian Grünbichler [Fri, 17 Apr 2020 06:09:54 +0000 (08:09 +0200)]
www: fix acme parser

not yet for the new features/keys, but the old one was broken already..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoacme plugins: handle update errors
Fabian Grünbichler [Thu, 16 Apr 2020 18:42:17 +0000 (20:42 +0200)]
acme plugins: handle update errors

instead of silently ignoring them

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agonodeconfig: make domain default key of acmedomain
Fabian Grünbichler [Thu, 16 Apr 2020 18:20:25 +0000 (20:20 +0200)]
nodeconfig: make domain default key of acmedomain

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agonodeconfig: drop '_additional_' from acme domain keys
Fabian Grünbichler [Thu, 16 Apr 2020 18:16:10 +0000 (20:16 +0200)]
nodeconfig: drop '_additional_' from acme domain keys

each entry represents one domain, it could also be the only one.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agonodeconfig: don't register unused formats
Fabian Grünbichler [Thu, 16 Apr 2020 18:15:41 +0000 (20:15 +0200)]
nodeconfig: don't register unused formats

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoacme: improve get_acme_conf
Fabian Grünbichler [Thu, 16 Apr 2020 17:55:09 +0000 (19:55 +0200)]
acme: improve get_acme_conf

mixed bag of improvements:
- return hash based on domain
- check for duplicate domains, allow overlap between main and additional
keys otherwise

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoacme: fix account parsing
Fabian Grünbichler [Thu, 16 Apr 2020 17:42:27 +0000 (19:42 +0200)]
acme: fix account parsing

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoAdd libproxmox-acme to the dependencies.
Wolfgang Link [Thu, 16 Apr 2020 05:18:34 +0000 (07:18 +0200)]
Add libproxmox-acme to the dependencies.

It is a build dependency as it is needed for the man generator.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
4 years agoCreate ACME Plugin config.
Wolfgang Link [Thu, 16 Apr 2020 05:18:32 +0000 (07:18 +0200)]
Create ACME Plugin config.

With this configuration it is possible to use many different plugins
with different providers and users.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
4 years agoAdd libproxmox-acme-perl to pveversion
Wolfgang Link [Thu, 16 Apr 2020 05:18:30 +0000 (07:18 +0200)]
Add libproxmox-acme-perl to pveversion

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
4 years agoAdapt acme node config parser and rename the function.
Wolfgang Link [Thu, 16 Apr 2020 05:18:28 +0000 (07:18 +0200)]
Adapt acme node config parser and rename the function.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
4 years agoAdd function that selects the desired plugin.
Wolfgang Link [Thu, 16 Apr 2020 05:18:26 +0000 (07:18 +0200)]
Add function that selects the desired plugin.

These functions also extract the data required for the plugin.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
4 years agoRemove unused code
Wolfgang Link [Thu, 16 Apr 2020 05:18:25 +0000 (07:18 +0200)]
Remove unused code

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
4 years agoExtend node config in the acme section.
Wolfgang Link [Thu, 16 Apr 2020 05:18:23 +0000 (07:18 +0200)]
Extend node config in the acme section.

Allow additional domains with different sub-plugins,
However, only one domain per additional entry is permitted.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
4 years agoUse the plugin architecture.
Wolfgang Link [Thu, 16 Apr 2020 05:18:21 +0000 (07:18 +0200)]
Use the plugin architecture.

And remove the call of standalone plugin directly.
Prepare all necessary data for the plugin.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
4 years agoui: fix indentation, again ...
Thomas Lamprecht [Sun, 3 May 2020 12:08:42 +0000 (14:08 +0200)]
ui: fix indentation, again ...

exact same thing commit 67cb91e4d7c98ab8cf4d8047af5e3789932bb52c
already did for the old location of this, but indentation error was
introduced again when moving it (fix y'all editors..)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 6.1-9
Thomas Lamprecht [Wed, 29 Apr 2020 15:15:53 +0000 (17:15 +0200)]
bump version to 6.1-9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: realm sync: add some empty texts and specifiy what gets purged
Thomas Lamprecht [Wed, 29 Apr 2020 14:47:26 +0000 (16:47 +0200)]
ui: realm sync: add some empty texts and specifiy what gets purged

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: dc/Auth: add sync button
Dominik Csapak [Wed, 29 Apr 2020 12:32:35 +0000 (14:32 +0200)]
ui: dc/Auth: add sync button

opens a window with the parameters for the sync and two buttons:
'preview' and 'sync'

both open the taskviewer, but the 'preview' one sets the 'dry-run'
parameter so that it does not get written out to the user.cfg

loads the realm config and prefills the selection with values from
the config, and shows a hint about where to set the defaults
if none are set

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: don't block offline migration due non-referenced disk in the config
Fabian Ebner [Thu, 16 Apr 2020 12:54:44 +0000 (14:54 +0200)]
ui: don't block offline migration due non-referenced disk in the config

All local disks can/will be migrated if not for a reason we don't
know about yet at this stage. The disks we get from the API call as
'local_disks' are either referenced by the config or by snapshots in
the config (which was not checked for and the reason one could run
into the 'else if' branch).

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoupdate shipped appliance index for PMG 6.2
Thomas Lamprecht [Tue, 28 Apr 2020 09:03:28 +0000 (11:03 +0200)]
update shipped appliance index for PMG 6.2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agocert renew: note reason why renewal due to long lifetime is done
Thomas Lamprecht [Mon, 27 Apr 2020 16:28:59 +0000 (18:28 +0200)]
cert renew: note reason why renewal due to long lifetime is done

4 years agocerts: early renew long-lived certificates
Fabian Grünbichler [Thu, 23 Apr 2020 10:20:02 +0000 (12:20 +0200)]
certs: early renew long-lived certificates

if our self-signed certificate expires in more than 825 days, but was
created after July 2019 it won't be accepted by modern Apple devices. we
fixed the issuance to generate shorter-lived certificates in November
2019, this cleans up the existing ones to fix this and similar future
issues.

two years / 730 days as cut-off was chosen since it's our new maximum
self-signed certificate lifetime, and should thus catch all old-style
certificates.

another positive side-effect is that we can now phase out support for
older certificates faster, e.g. if we want to move to bigger keys,
different signature algorithms, or anything else in that direction.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoui: dc/AuthEdit: add sync tab for ldap/ad realms
Dominik Csapak [Thu, 9 Apr 2020 14:10:48 +0000 (16:10 +0200)]
ui: dc/AuthEdit: add sync tab for ldap/ad realms

this modifies AuthEditBase so that if there is a sync inputpanel specified,
we display it in a second tab (we need to modify the bodyPadding here,
else the whole window has too much padding)

we use the same panel for both ldap/ad, since the most options behave
the same (except for user_attribute, but the default for AD is
sAMAccount which i think is good enough for now, users can still
override it in the cli)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoupdate aplinfo
Thomas Lamprecht [Mon, 27 Apr 2020 08:08:10 +0000 (10:08 +0200)]
update aplinfo

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: auth realm: do not delete tfa if empty on create
Thomas Lamprecht [Sun, 26 Apr 2020 11:33:46 +0000 (13:33 +0200)]
ui: auth realm: do not delete tfa if empty on create

that breaks the schema as the POST endpoint obviously doesn't knows
about a delete property.

fixes commit 58e1ccc4f526f104caddec0552cafac576452139

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: auth base: fix setting auth type in onGetValues
Thomas Lamprecht [Sun, 26 Apr 2020 11:26:50 +0000 (13:26 +0200)]
ui: auth base: fix setting auth type in onGetValues

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: indentation fix
Thomas Lamprecht [Sun, 26 Apr 2020 11:26:26 +0000 (13:26 +0200)]
ui: indentation fix

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: dc/AuthView: refactor panel
Dominik Csapak [Thu, 9 Apr 2020 14:10:46 +0000 (16:10 +0200)]
ui: dc/AuthView: refactor panel

use more static declarations
move functions to class
use modern js features

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: Utils: delete_if_default: add values by correct type
Dominik Csapak [Thu, 9 Apr 2020 14:10:47 +0000 (16:10 +0200)]
ui: Utils: delete_if_default: add values by correct type

if 'delete' is an Array, we want to push into it, not append a string
this could be an issue when we use an edit window with multiple inputpanels
and deleteEmpty set on some fields

we then could have an aray like this:

values: {
    delete: [
'foo',
'bar',
'baz, qux',
    ],
},

which the edit window does not handle correctly anymore
(it only does string splitting if 'delete' itself is a string)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: dc/Auth*: refactor AuthEdit
Dominik Csapak [Thu, 9 Apr 2020 14:10:45 +0000 (16:10 +0200)]
ui: dc/Auth*: refactor AuthEdit

similar to storage/Base.js so that we have the different
RealmTypes in different inputpanels

this will come in handy when we define sync options

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: storageSchema: add PBS and fix trailing comma
Thomas Lamprecht [Sun, 26 Apr 2020 11:07:49 +0000 (13:07 +0200)]
ui: storageSchema: add PBS and fix trailing comma

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: tfa selector code/spelling nit fix
Thomas Lamprecht [Sun, 26 Apr 2020 10:55:38 +0000 (12:55 +0200)]
ui: tfa selector code/spelling nit fix

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: dc/AuthEdit: refactor TFASelector in its own component
Dominik Csapak [Thu, 9 Apr 2020 14:10:44 +0000 (16:10 +0200)]
ui: dc/AuthEdit: refactor TFASelector in its own component

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoadd Language selection in user menu
Dominik Csapak [Fri, 17 Apr 2020 11:23:36 +0000 (13:23 +0200)]
add Language selection in user menu

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: drop login-user fixed token edit due to multi window/z-index issues
Thomas Lamprecht [Sun, 26 Apr 2020 10:29:24 +0000 (12:29 +0200)]
ui: drop login-user fixed token edit due to multi window/z-index issues

We normally do not stack windows and it breaks/allows some funky
stuff.. As this isn't really required and can be done just fine over
the the DC -> Token panel, especially as we prefill the username to
the logged in one for new tokens now..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui token edit: add online help and fix subject
Thomas Lamprecht [Sun, 26 Apr 2020 10:25:14 +0000 (12:25 +0200)]
ui token edit: add online help and fix subject

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: api token: rewrite
Thomas Lamprecht [Wed, 1 Apr 2020 15:14:11 +0000 (17:14 +0200)]
ui: api token: rewrite

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: token selector: refactor to more schematic approach
Thomas Lamprecht [Mon, 30 Mar 2020 08:44:50 +0000 (10:44 +0200)]
ui: token selector: refactor to more schematic approach

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: add TokenView with fixed userid
Fabian Grünbichler [Tue, 21 Jan 2020 12:54:29 +0000 (13:54 +0100)]
ui: add TokenView with fixed userid

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoui: add Token to ACL
Fabian Grünbichler [Tue, 21 Jan 2020 12:54:28 +0000 (13:54 +0100)]
ui: add Token to ACL

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoui: add Token Panel + Edit Window
Fabian Grünbichler [Tue, 21 Jan 2020 12:54:27 +0000 (13:54 +0100)]
ui: add Token Panel + Edit Window

modeled after UserView and related code.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoui: format_sdnzone_type: uppercase
Thomas Lamprecht [Sat, 25 Apr 2020 16:24:53 +0000 (18:24 +0200)]
ui: format_sdnzone_type: uppercase

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui/sdn: better spelling and code cleanup
Thomas Lamprecht [Wed, 22 Apr 2020 13:06:30 +0000 (15:06 +0200)]
ui/sdn: better spelling and code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoFix: ceph: mon_address not considered by new MON
Alwin Antreich [Wed, 11 Mar 2020 15:22:36 +0000 (16:22 +0100)]
Fix: ceph: mon_address not considered by new MON

The public_addr option for creating a new MON is only valid for manual
startup (since Ceph Jewel) and is just ignored by ceph-mon during setup.
As the MON is started after the creation through systemd without an IP
specified. It is trying to auto-select an IP.

Before this patch the public_addr was only explicitly written to the
ceph.conf if no public_network was set. The mon_address is only needed
in the config on the first start of the MON.

The ceph-mon itself tries to select an IP on the following conditions.
- no public_network or public_addr is in the ceph.conf
    * startup fails

- public_network is in the ceph.conf
    * with a single network, take the first available IP
    * on multiple networks, walk through the list orderly and start on
      the first network where an IP is found

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
4 years agoceph: remove unused variable assignment
Alwin Antreich [Wed, 11 Mar 2020 15:22:35 +0000 (16:22 +0100)]
ceph: remove unused variable assignment

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
4 years agod/control: bump pve-guest-common build-dep
Fabian Grünbichler [Fri, 10 Apr 2020 09:30:52 +0000 (11:30 +0200)]
d/control: bump pve-guest-common build-dep

since the log output verified in tests changed and the build fails with
the old version now.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agotest: s/expeted/expected
Fabian Grünbichler [Fri, 10 Apr 2020 08:34:13 +0000 (10:34 +0200)]
test: s/expeted/expected

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 years agoreplication test: Add log rate and transport type
Dominic Jäger [Fri, 10 Apr 2020 08:27:32 +0000 (10:27 +0200)]
replication test: Add log rate and transport type

pve-guest-common got a new log line [0] for rate and transport type of a
replication. This line must be added to the replication tests.

[0] e90f586aab5caad4d4c5e18711316e8dc5225c07

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
4 years agoui: node: lower statusStore interval outside of summary panel
Thomas Lamprecht [Thu, 9 Apr 2020 15:06:49 +0000 (17:06 +0200)]
ui: node: lower statusStore interval outside of summary panel

We normally only use that information for the nodes power management
buttons, only the Summary panel profits from more frequent updates
(due to the uptime, and resource usage graphs).
So use 5s interval in general and switch to 1s for the summary panel
only.

This also fixes a bug where the node-config panel owned store got
stopped by mistake if the summary panel, which shared the use of that
store, was "destroyed" (left).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: call more update store functions in the store scope
Thomas Lamprecht [Thu, 9 Apr 2020 14:45:22 +0000 (16:45 +0200)]
ui: call more update store functions in the store scope

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoAPI2: Network: display vnets in any_bridge
Alexandre Derumier [Thu, 26 Mar 2020 02:07:42 +0000 (03:07 +0100)]
API2: Network: display vnets in any_bridge

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agopvestatd: cgroupv2 support
Wolfgang Bumiller [Fri, 3 Apr 2020 14:37:41 +0000 (16:37 +0200)]
pvestatd: cgroupv2 support

This uses the newly introduced PVE::LXC::CGroup's
cpuset_controller_path() method to find the controller path,
so we need to depend on the newer pve-container package.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoui: node/config: use simply boolean expression for powermngt check
Thomas Lamprecht [Fri, 3 Apr 2020 05:01:25 +0000 (07:01 +0200)]
ui: node/config: use simply boolean expression for powermngt check

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: cleanups and some s/var/let/ transformations
Thomas Lamprecht [Thu, 2 Apr 2020 12:15:16 +0000 (14:15 +0200)]
ui: cleanups and some s/var/let/ transformations

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: ceph/ServiceList: do not autoLoad the rstore
Thomas Lamprecht [Thu, 2 Apr 2020 10:48:02 +0000 (12:48 +0200)]
ui: ceph/ServiceList: do not autoLoad the rstore

The 'autoStart' triggers a initial load already

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: ceph/ServiceList: do not autoLoad the updatestore
Dominik Csapak [Thu, 2 Apr 2020 08:53:45 +0000 (10:53 +0200)]
ui: ceph/ServiceList: do not autoLoad the updatestore

they load once anyway with 'autoStart'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: ceph/ServiceList: stop leaky versionsstores
Dominik Csapak [Thu, 2 Apr 2020 08:53:44 +0000 (10:53 +0200)]
ui: ceph/ServiceList: stop leaky versionsstores

on the view destroy we have to stop the updatestore again,
they do not get cleaned up by a destroy because until they are stopped
the have a reference on themselves, which prevent a garbage collection

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: ceph/ServiceList: correctly set 'mixedversions'
Dominik Csapak [Thu, 2 Apr 2020 05:55:39 +0000 (07:55 +0200)]
ui: ceph/ServiceList: correctly set 'mixedversions'

We need to set mixedversions also if
data.version.parts < view.maxversion
so lets do that.

This avoids a bug when the first version in the list already is the
highest one.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agogui/cluster: fix translation for cluster join button
Stefan Reiter [Mon, 23 Mar 2020 12:41:12 +0000 (13:41 +0100)]
gui/cluster: fix translation for cluster join button

New version including the cluster name didn't work in some languages,
e.g. german: "Beitreten 'cluster'" vs the correct "'cluster' beitreten"

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agoui: ceph: use displayfield with tooltip for overview version
Thomas Lamprecht [Wed, 1 Apr 2020 16:39:06 +0000 (18:39 +0200)]
ui: ceph: use displayfield with tooltip for overview version

And drop the git shorthash for now, albeit we could add it to the
tooltip..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agogui: ceph: add highest cluster version in summary
Dominik Csapak [Mon, 16 Mar 2020 12:56:03 +0000 (13:56 +0100)]
gui: ceph: add highest cluster version in summary

so that the admin knows what the 'expected' ceph version is
partially fixes #2468

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agogui: ceph: icons for versions in ServiceList
Dominik Csapak [Mon, 16 Mar 2020 12:56:02 +0000 (13:56 +0100)]
gui: ceph: icons for versions in ServiceList

this makes it closer to the OSD list, using the new 'version-only'
metadata api call

this partially fixes #2468

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agogui: ceph: let compare_ceph_versions accept arrays directly
Dominik Csapak [Mon, 16 Mar 2020 12:56:01 +0000 (13:56 +0100)]
gui: ceph: let compare_ceph_versions accept arrays directly

instead of always expecting a '.' separated version string
we will use this for the 'structured' version data

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: add 'scope' parameter to metadata api call
Dominik Csapak [Mon, 16 Mar 2020 12:56:00 +0000 (13:56 +0100)]
ceph: add 'scope' parameter to metadata api call

so that we can choose to only include the versions and not all metadata
this is done to avoid having a seperate 'versions' api call

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoceph: factor out get/broadcast ceph versions to ceph::services
Dominik Csapak [Mon, 16 Mar 2020 12:55:59 +0000 (13:55 +0100)]
ceph: factor out get/broadcast ceph versions to ceph::services

which also removes some dead code
(the my $local_last_version variable was never used)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: fix optionview caps
Thomas Lamprecht [Wed, 1 Apr 2020 15:09:56 +0000 (17:09 +0200)]
ui: fix optionview caps

there's no caps.dc['Sys.Modify'] in our heuristic caps-for-frontend
and the === undefined check was wrong

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: user edit: use new pmxExpireDate field
Thomas Lamprecht [Wed, 1 Apr 2020 15:09:00 +0000 (17:09 +0200)]
ui: user edit: use new pmxExpireDate field

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agodrop Makefile.rej rebase/am left over
Thomas Lamprecht [Tue, 31 Mar 2020 16:07:23 +0000 (18:07 +0200)]
drop Makefile.rej rebase/am left over

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: rng edit: drop useless gettext for integer
Thomas Lamprecht [Tue, 31 Mar 2020 16:04:56 +0000 (18:04 +0200)]
ui: rng edit: drop useless gettext for integer

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: cluster join: trigger defered call to full reload earlier
Thomas Lamprecht [Thu, 26 Mar 2020 14:20:54 +0000 (15:20 +0100)]
ui: cluster join: trigger defered call to full reload earlier

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollowup sdn: move a bit below and fix showing on initial load
Thomas Lamprecht [Thu, 26 Mar 2020 14:17:10 +0000 (15:17 +0100)]
followup sdn: move a bit below and fix showing on initial load

if the webinterface got loaded the api call to check if SDN is
available did not yet returned, so we could show it by accident -
even if libpve-network-perl wasn't instralled.
Fix that by hiding it (once) in the failure callback of the API call.

also move menu entries below, before Firewall, this fits better to
networking.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd sdn icons
Alexandre Derumier [Wed, 11 Mar 2020 02:05:39 +0000 (03:05 +0100)]
add sdn icons

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agosdn: enable SDN menu if /cluster/sdn api exist
Alexandre Derumier [Wed, 11 Mar 2020 02:05:38 +0000 (03:05 +0100)]
sdn: enable SDN menu if /cluster/sdn api exist

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoadd sdn gui
Alexandre Derumier [Wed, 11 Mar 2020 02:05:37 +0000 (03:05 +0100)]
add sdn gui

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agod/control: bump versioned dependency for ifupdown2
Thomas Lamprecht [Mon, 23 Mar 2020 08:45:52 +0000 (09:45 +0100)]
d/control: bump versioned dependency for ifupdown2

ensures we have the OVS and recent adaptions we rely on in ifupdown
installed

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoAPI2: network reload: allow ovs reloading
Alexandre Derumier [Fri, 20 Mar 2020 10:44:54 +0000 (11:44 +0100)]
API2: network reload: allow ovs reloading

ifupdown2 support it now

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoRevert "API2: Network: allow cidr-list && use cidr for address"
Thomas Lamprecht [Fri, 13 Mar 2020 11:02:12 +0000 (12:02 +0100)]
Revert "API2: Network: allow cidr-list && use cidr for address"

applied by mistake, needs compat code in common or the like

This reverts commit 3b82e4cf43dcb23f19b73c6df76d2f4920268df8.