Re: [pve-devel] [PATCH pve-zsync 0/1] Allow pve-zsync jobs to share dest

2020-06-23 Thread Wolfgang Link
onfirmation. What is the next step? > Thank you, > Bruce > > > On Jun 22, 2020, at 7:43 AM, Wolfgang Link wrote: > > > > Look good to me > > I tested it and it works. There are no upgrade problems. > > Even if jobs already exist. > > > > Regards

Re: [pve-devel] [PATCH pve-zsync 0/1] Allow pve-zsync jobs to share dest

2020-06-22 Thread Wolfgang Link
Look good to me I tested it and it works. There are no upgrade problems. Even if jobs already exist. Regards Wolfgang > On 06/17/2020 6:44 AM Wolfgang Link wrote: > > > Hi, > > thank you for this patch and the work. > I will look at this patch and give you f

Re: [pve-devel] [PATCH pve-zsync 0/1] Allow pve-zsync jobs to share dest

2020-06-16 Thread Wolfgang Link
Hi, thank you for this patch and the work. I will look at this patch and give you feedback. Regards Wolfgang > On 06/16/2020 8:53 PM Bruce Wainer wrote: > > > By flipping Source and Dest in snapshot_get and snapshot_exist, we can allow > multiple sync jobs to share the same source. > snapsho

Re: [pve-devel] [pve-zsync] Discussion/Feedback: Extending pve-zsync to handle intervening snapshots

2020-06-15 Thread Wolfgang Link
Hello, I think that's a good idea. However, I am not sure whether the additional flag described in point 1 is necessary, since old jobs already have an independent dest dataset. So the new logic should not conflict it. I think it would be great to rewrite the "snapshot_get" and "snapshot_exist

[pve-devel] [PATCH docs] update link for YubiKey documentation

2020-05-10 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- pveum.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pveum.adoc b/pveum.adoc index 7998d16..4fbaa86 100644 --- a/pveum.adoc +++ b/pveum.adoc @@ -279,7 +279,7 @@ password into the user's 'Key IDs' field. Please ref

[pve-devel] [Patch V3 acme 03/13] Remove unnecessary Code and fixes.

2020-04-15 Thread Wolfgang Link
This Code is not required in the Proxmox environment. We know in our environment what we have as a tool-change. Fix Code what does not work because variable or functions are missing. Signed-off-by: Wolfgang Link --- src/proxmox-acme | 476 --- 1 file

[pve-devel] [Patch V3 acme 06/13] Add submodule acme.sh for DNS plugins

2020-04-15 Thread Wolfgang Link
Copy the DNS plugins form acme.sh The project acme.sh can be found here. https://github.com/Neilpang/acme.sh Signed-off-by: Wolfgang Link --- .gitmodules | 3 ++ Makefile | 10 - acme.sh | 1 + src/Makefile | 117 +++ 4 files

[pve-devel] [Patch V3 acme 13/13] Implement function to resolve all subplugins

2020-04-15 Thread Wolfgang Link
This function helps to retrieve all subplugins that are supported by the plugins. This will later be used as an enumeration for entering parameters. Signed-off-by: Wolfgang Link --- src/PVE/ACME.pm | 21 + src/PVE/ACME/DNSChallenge.pm | 4 src/PVE/ACME

[pve-devel] [Patch V3 acme 02/13] Copy the needed function form acme.sh

2020-04-15 Thread Wolfgang Link
For the thin wrapper around acme.sh DNS plugins, the required functions are copied. The project acme.sh can be found here. https://github.com/Neilpang/acme.sh Signed-off-by: Wolfgang Link --- Makefile | 1 + src/proxmox-acme | 806 +++ 2

[pve-devel] [Patch V3 acme 10/13] Use the caller's data instead of extracting it yourself.

2020-04-15 Thread Wolfgang Link
Add the server in the data structure to return it. Signed-off-by: Wolfgang Link --- src/PVE/ACME/StandAlone.pm | 41 -- 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/src/PVE/ACME/StandAlone.pm b/src/PVE/ACME/StandAlone.pm index 0b4aaae

[pve-devel] [Patch V3 acme 11/13] Add DNSChallenge Plugin

2020-04-15 Thread Wolfgang Link
This plugin calls the custom script acme.sh and uses the implementation of the DNS API. Signed-off-by: Wolfgang Link --- debian/control | 3 +- src/Makefile | 1 + src/PVE/ACME/DNSChallenge.pm | 198 +++ 3 files changed, 201

[pve-devel] [Patch V3 acme 07/13] Move code from pve-common

2020-04-15 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- src/Makefile | 9 + src/PVE/ACME.pm| 533 + src/PVE/ACME/Challenge.pm | 22 ++ src/PVE/ACME/StandAlone.pm | 71 + 4 files changed, 635 insertions(+) create mode 100644 src/PVE/ACME.pm create

[pve-devel] [Patch V3 acme 12/13] Add debug mode

2020-04-15 Thread Wolfgang Link
This can be used at setup time to get feedback on the DNS plugin parameters. Signed-off-by: Wolfgang Link --- src/proxmox-acme | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/proxmox-acme b/src/proxmox-acme index ff9fec8..566588f 100644 --- a/src

[pve-devel] [Patch V3 manager 7/8] Create ACME Plugin config.

2020-04-15 Thread Wolfgang Link
With this configuration it is possible to use many different plugins with different providers and users. Signed-off-by: Wolfgang Link --- PVE/API2/ACMEPlugin.pm | 149 + PVE/API2/Cluster.pm| 6 ++ PVE/API2/Makefile | 1 + PVE/CLI/pvenode.pm

[pve-devel] [Patch V3 manager 3/8] Remove unused code

2020-04-15 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/NodeConfig.pm | 7 --- 1 file changed, 7 deletions(-) diff --git a/PVE/NodeConfig.pm b/PVE/NodeConfig.pm index 560da116..6ea2dac1 100644 --- a/PVE/NodeConfig.pm +++ b/PVE/NodeConfig.pm @@ -243,13 +243,6 @@ sub parse_acme { return $res; } -sub

[pve-devel] [Patch V3 manager 6/8] Add libproxmox-acme-perl to pveversion

2020-04-15 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/API2/APT.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/API2/APT.pm b/PVE/API2/APT.pm index 08345ec9..0bb9cf0f 100644 --- a/PVE/API2/APT.pm +++ b/PVE/API2/APT.pm @@ -550,6 +550,7 @@ __PACKAGE__->register_method({ libpve-guest-com

[pve-devel] [Patch V3 common] Move the code to proxmox-acme and add a dependency on it.

2020-04-15 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- debian/control | 1 + src/PVE/ACME.pm| 533 - src/PVE/ACME/Challenge.pm | 22 -- src/PVE/ACME/StandAlone.pm | 71 - 4 files changed, 1 insertion(+), 626 deletions(-) delete mode 100644 src/PVE

[pve-devel] [Patch V3 manager 4/8] Add function that selects the desired plugin.

2020-04-15 Thread Wolfgang Link
These functions also extract the data required for the plugin. Signed-off-by: Wolfgang Link --- PVE/API2/ACME.pm | 27 +++ 1 file changed, 27 insertions(+) diff --git a/PVE/API2/ACME.pm b/PVE/API2/ACME.pm index e69a563b..7bb3ab95 100644 --- a/PVE/API2/ACME.pm +++ b/PVE

[pve-devel] [Patch V3 manager 8/8] Add libproxmox-acme to the dependencies.

2020-04-15 Thread Wolfgang Link
It is a build dependency as it is needed for the man generator. Signed-off-by: Wolfgang Link --- debian/control | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index 5df624df..4b0de491 100644 --- a/debian/control +++ b/debian/control

[pve-devel] [Patch V3 acme 08/13] Refactor extract_callenge for code reuse.

2020-04-15 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- src/PVE/ACME/Challenge.pm | 47 +++ 1 file changed, 47 insertions(+) diff --git a/src/PVE/ACME/Challenge.pm b/src/PVE/ACME/Challenge.pm index 40d32b6..649c228 100644 --- a/src/PVE/ACME/Challenge.pm +++ b/src/PVE/ACME

[pve-devel] [Patch V3 acme 09/13] Create the plugin config.

2020-04-15 Thread Wolfgang Link
. Signed-off-by: Wolfgang Link --- src/PVE/ACME/StandAlone.pm | 21 + 1 file changed, 21 insertions(+) diff --git a/src/PVE/ACME/StandAlone.pm b/src/PVE/ACME/StandAlone.pm index f48d638..0b4aaae 100644 --- a/src/PVE/ACME/StandAlone.pm +++ b/src/PVE/ACME/StandAlone.pm @@ -12,6 +12,27

[pve-devel] (no subject)

2020-04-15 Thread Wolfgang Link
>From Wolfgang Link # This line is ignored. From: Wolfgang Link Reply-To: Subject: RFC for ACME DNS Challenge V3 In-Reply-To: The acme_sh project is used as a DNS API plugin system. So we can reuse the already defiend plugins. It is used as subplugins. The acme.sh script is replaced

[pve-devel] [Patch V3 manager 2/8] Extend node config in the acme section.

2020-04-15 Thread Wolfgang Link
Allow additional domains with different sub-plugins, However, only one domain per additional entry is permitted. Signed-off-by: Wolfgang Link --- PVE/NodeConfig.pm | 38 ++ 1 file changed, 38 insertions(+) diff --git a/PVE/NodeConfig.pm b/PVE/NodeConfig.pm

[pve-devel] [Patch V3 manager 5/8] Adapt acme node config parser and rename the function.

2020-04-15 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/API2/ACME.pm | 26 ++ PVE/NodeConfig.pm | 44 ++-- 2 files changed, 48 insertions(+), 22 deletions(-) diff --git a/PVE/API2/ACME.pm b/PVE/API2/ACME.pm index 7bb3ab95..d215739b 100644 --- a/PVE

[pve-devel] [Patch V3 acme 04/13] Add funtion to set DNSAPI variable

2020-04-15 Thread Wolfgang Link
acme.sh DNS plugins expect a configuration in which the login information is stored. We pass the credentials with the command. This function supports the expected behavior of the plugins. Signed-off-by: Wolfgang Link --- src/proxmox-acme | 19 +++ 1 file changed, 19 insertions

[pve-devel] [Patch V3 manager 1/8] Use the plugin architecture.

2020-04-15 Thread Wolfgang Link
And remove the call of standalone plugin directly. Prepare all necessary data for the plugin. Signed-off-by: Wolfgang Link --- PVE/API2/ACME.pm | 35 +++ 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/PVE/API2/ACME.pm b/PVE/API2/ACME.pm index

[pve-devel] [Patch V3 acme 05/13] Implement feature setup and teardown functionality.

2020-04-15 Thread Wolfgang Link
We use these functions to add and remove a txt record via the dnsapi. Signed-off-by: Wolfgang Link --- src/proxmox-acme | 68 1 file changed, 68 insertions(+) diff --git a/src/proxmox-acme b/src/proxmox-acme index b4e01d8..ff9fec8 100644 --- a

[pve-devel] [Patch V3 acme 01/13] Add Debian Buildsystem config

2020-04-15 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- .gitignore | 5 + Makefile | 40 debian/changelog | 5 + debian/compat| 1 + debian/control | 17 + debian/copyright | 22

[pve-devel] [Patch V3 cluster] Add ACME plugin config file to cluster files

2020-04-15 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- data/PVE/Cluster.pm | 1 + data/src/status.c | 1 + 2 files changed, 2 insertions(+) diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm index 068d626..56704ec 100644 --- a/data/PVE/Cluster.pm +++ b/data/PVE/Cluster.pm @@ -54,6 +54,7 @@ my $observed

[pve-devel] [Patch V2 acme 06/12] Add submodule acme.sh for DNS plugins

2020-03-31 Thread Wolfgang Link
Copy the DNS plugins form acme.sh The project acme.sh can be found here. https://github.com/Neilpang/acme.sh Signed-off-by: Wolfgang Link --- .gitmodules | 3 ++ Makefile | 10 - acme.sh | 1 + src/Makefile | 119 +++ 4 files

[pve-devel] [Patch V2 cluster] Add ACME plugin config file to cluster files

2020-03-31 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- data/PVE/Cluster.pm | 1 + data/src/status.c | 1 + 2 files changed, 2 insertions(+) diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm index 068d626..b410003 100644 --- a/data/PVE/Cluster.pm +++ b/data/PVE/Cluster.pm @@ -54,6 +54,7 @@ my $observed

[pve-devel] [Patch V2 acme 07/12] Move code from pve-common

2020-03-31 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- src/Makefile | 9 + src/PVE/ACME.pm| 533 + src/PVE/ACME/Challenge.pm | 22 ++ src/PVE/ACME/StandAlone.pm | 71 + 4 files changed, 635 insertions(+) create mode 100644 src/PVE/ACME.pm create

[pve-devel] [Patch V2 acme 09/12] Add function setup and teardown.

2020-03-31 Thread Wolfgang Link
These are the two main functions that a plugin should offer. Setup creates the endpoint at which Letsencrypt does the validation, teardown does the cleanup. Signed-off-by: Wolfgang Link --- src/PVE/ACME.pm| 43 ++ src/PVE/ACME/StandAlone.pm | 16

[pve-devel] [Patch V2 acme 04/12] Add funtion to set DNSAPI variable

2020-03-31 Thread Wolfgang Link
acme.sh DNS plugins expect a configuration in which the login information is stored. We pass the credentials with the command. This function supports the expected behavior of the plugins. Signed-off-by: Wolfgang Link --- src/proxmox-acme | 13 + 1 file changed, 13 insertions

[pve-devel] [Patch V2 acme 05/12] Implement feature setup and teardown functionality.

2020-03-31 Thread Wolfgang Link
We use these functions to add and remove a txt record via the dnsapi. Signed-off-by: Wolfgang Link --- src/proxmox-acme | 68 1 file changed, 68 insertions(+) diff --git a/src/proxmox-acme b/src/proxmox-acme index f7a6757..1cfb8f6 100644 --- a

[pve-devel] RFC for ACME DNS Challenge V2

2020-03-31 Thread Wolfgang Link
The acme_sh project is used as a DNS API plugin system. So we can reuse the already defiend plugins. I add it as a submodule. The acme.sh script is replaced by proxmox-acme, which contains the function required to operate the DNSAPI plug-ins. The login information is saved in the file plugin.cfg

[pve-devel] [Patch V2 acme 02/12] Copy the needed function form acme.sh

2020-03-31 Thread Wolfgang Link
For the thin wrapper around acme.sh DNS plugins, the required functions are copied. The project acme.sh can be found here. https://github.com/Neilpang/acme.sh Signed-off-by: Wolfgang Link --- Makefile | 1 + src/proxmox-acme | 806 +++ 2

[pve-devel] [Patch V2 manager 3/8] Remove unused code

2020-03-31 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/NodeConfig.pm | 7 --- 1 file changed, 7 deletions(-) diff --git a/PVE/NodeConfig.pm b/PVE/NodeConfig.pm index 94f7287e..6a75ee32 100644 --- a/PVE/NodeConfig.pm +++ b/PVE/NodeConfig.pm @@ -235,13 +235,6 @@ sub parse_acme { return $res; } -sub

[pve-devel] [Patch V2 acme 12/12] Add debug mode

2020-03-31 Thread Wolfgang Link
This can be used at setup time to get feedback on the DNS plugin parameters. Signed-off-by: Wolfgang Link --- src/proxmox-acme | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/proxmox-acme b/src/proxmox-acme index 1cfb8f6..89eee1c 100644 --- a/src

[pve-devel] [Patch V2 acme 01/12] Add Debian Buildsystem config

2020-03-31 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- .gitignore | 5 + Makefile | 40 debian/changelog | 5 + debian/compat| 1 + debian/control | 17 + debian/copyright | 16

[pve-devel] [Patch V2 acme 11/12] Add DNSChallenge Plugin

2020-03-31 Thread Wolfgang Link
This plugin calls the custom script acme.sh and uses the implementation of the DNS API. Signed-off-by: Wolfgang Link --- debian/control | 3 +- src/Makefile | 1 + src/PVE/ACME.pm | 1 + src/PVE/ACME/DNSChallenge.pm | 197

[pve-devel] [Patch V2 acme 03/12] Remove unnecessary Code and fixes.

2020-03-31 Thread Wolfgang Link
This Code is not required in the Proxmox environment. We know in our environment what we have as a tool-change. Fix Code what does not work because variable or functions are missing. Signed-off-by: Wolfgang Link --- src/proxmox-acme | 476 --- 1 file

[pve-devel] [Patch V2 manager 8/8] Add libproxmox-acme to the dependencies.

2020-03-31 Thread Wolfgang Link
It is a build dependency as it is needed for the man generator. Signed-off-by: Wolfgang Link --- debian/control | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/control b/debian/control index ec5267a4..1bb292e9 100644 --- a/debian/control +++ b/debian/control @@ -9,6 +9,7 @@ Build

[pve-devel] [Patch V2 common 2/3] Reuse id parse code.

2020-03-31 Thread Wolfgang Link
The storage_id is the same as the plugin_id. Signed-off-by: Wolfgang Link --- src/PVE/JSONSchema.pm | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index fa405ac..3eb38eb 100644 --- a/src/PVE/JSONSchema.pm +++ b/src

[pve-devel] [Patch V2 acme 10/12] Refactor extract_callenge for code reuse.

2020-03-31 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- src/PVE/ACME.pm| 15 +++ src/PVE/ACME/StandAlone.pm | 2 ++ 2 files changed, 17 insertions(+) diff --git a/src/PVE/ACME.pm b/src/PVE/ACME.pm index c10dca2..7c0794a 100644 --- a/src/PVE/ACME.pm +++ b/src/PVE/ACME.pm @@ -573,4 +573,19

[pve-devel] [Patch V2 acme 08/12] Create the plugin config.

2020-03-31 Thread Wolfgang Link
: Wolfgang Link --- src/PVE/ACME/Challenge.pm | 62 ++ src/PVE/ACME/StandAlone.pm | 16 ++ 2 files changed, 78 insertions(+) diff --git a/src/PVE/ACME/Challenge.pm b/src/PVE/ACME/Challenge.pm index 40d32b6..b261476 100644 --- a/src/PVE/ACME/Challenge.pm

[pve-devel] [Patch V2 manager 1/8] Use the plugin architecture.

2020-03-31 Thread Wolfgang Link
And remove the call of standalone plugin directly. Signed-off-by: Wolfgang Link --- PVE/API2/ACME.pm | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/PVE/API2/ACME.pm b/PVE/API2/ACME.pm index b1bb6261..8bd6a924 100644 --- a/PVE/API2/ACME.pm +++ b/PVE/API2/ACME.pm @@ -4,7

[pve-devel] [Patch V2 manager 7/8] Add the ACME plugin capabilities to the API.

2020-03-31 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/CLI/pvenode.pm | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/PVE/CLI/pvenode.pm b/PVE/CLI/pvenode.pm index d9e41a8e..e8c2005e 100644 --- a/PVE/CLI/pvenode.pm +++ b/PVE/CLI/pvenode.pm @@ -5,12 +5,11 @@ use warnings; use PVE

[pve-devel] [Patch V2 manager 4/8] Add the config parser and convert the old config to a new one.

2020-03-31 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/API2/ACME.pm | 16 +-- PVE/NodeConfig.pm | 67 +-- 2 files changed, 73 insertions(+), 10 deletions(-) diff --git a/PVE/API2/ACME.pm b/PVE/API2/ACME.pm index 8bd6a924..ba25d153 100644 --- a/PVE/API2/ACME.pm

[pve-devel] [Patch V2 manager 5/8] Add libproxmox-acme-perl to pveversion

2020-03-31 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/API2/APT.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/API2/APT.pm b/PVE/API2/APT.pm index 08345ec9..0bb9cf0f 100644 --- a/PVE/API2/APT.pm +++ b/PVE/API2/APT.pm @@ -550,6 +550,7 @@ __PACKAGE__->register_method({ libpve-guest-com

[pve-devel] [Patch V2 manager 2/8] Extend node config in the acme section.

2020-03-31 Thread Wolfgang Link
Allow more than one domain entry, but only one domain per entry is allowed. Before that, the Acme parameter could have multiple domains. Signed-off-by: Wolfgang Link --- PVE/NodeConfig.pm | 47 ++- 1 file changed, 42 insertions(+), 5 deletions

[pve-devel] [Patch V2 manager 6/8] Create ACME Plugin config.

2020-03-31 Thread Wolfgang Link
With this configuration it is possible to use many different plugins with different providers and users. Signed-off-by: Wolfgang Link --- PVE/API2/ACMEPlugin.pm | 120 + PVE/API2/Cluster.pm| 6 +++ PVE/API2/Makefile | 1 + PVE/CLI/pvenode.pm

[pve-devel] [Patch V2 common 3/3] Register acme-plugin-format

2020-03-31 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- src/PVE/JSONSchema.pm | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 3eb38eb..0c655bc 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -183,6 +183,13 @@ sub parse_storage_id

[pve-devel] [Patch V2 common 1/3] Move the code to proxmox-acme and add a dependency on it.

2020-03-31 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- debian/control | 1 + src/PVE/ACME.pm| 533 - src/PVE/ACME/Challenge.pm | 22 -- src/PVE/ACME/StandAlone.pm | 71 - 4 files changed, 1 insertion(+), 626 deletions(-) delete mode 100644 src/PVE

Re: [pve-devel] applied: [zsync] fix: check for incremental sync snapshot.

2020-03-19 Thread Wolfgang Link
> On March 19, 2020 1:05 PM Thomas Lamprecht wrote: > > > On 3/19/20 11:51 AM, Fabian Ebner wrote: > > Hi, > > this does fix an issue when the receiving side has the most recent > > snapshot, but not the 'old_snap' one. And of course testing for 'last_snap' > > is correct, since that one is

Re: [pve-devel] [zsync] fix: check for incremental sync snapshot.

2020-03-18 Thread Wolfgang Link
arch 18, 2020 7:51 AM Wolfgang Link wrote: > > > > > > For an incremental sync you need the last_snap on both sides. > > --- > > pve-zsync | 13 - > > 1 file changed, 4 insertions(+), 9 deletions(-) > > > > diff --git a/pve-zsync b/pve-zsyn

[pve-devel] [zsync] fix: check for incremental sync snapshot.

2020-03-17 Thread Wolfgang Link
For an incremental sync you need the last_snap on both sides. --- pve-zsync | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/pve-zsync b/pve-zsync index ea3178e..893baf0 100755 --- a/pve-zsync +++ b/pve-zsync @@ -931,6 +931,7 @@ sub snapshot_destroy { } } +

[pve-devel] [PATCH V3] Revision of the pvesr documentation

2020-03-17 Thread Wolfgang Link
Improvement of grammar and punctuation. Clarify the HA limitations. Remove future tense in some sentences. It is not good to use it in technical/scientific papers. Rewrite some sentences to improve understanding. --- pvesr.adoc | 112 ++--- 1 file ch

[pve-devel] [PATCH v2] Revision of the pvesr documentation

2020-02-20 Thread Wolfgang Link
Improvement of grammar and punctuation. Clarify the HA limitations. Remove future tense in some sentences. It is not good to use it in technical/scientific papers. Rewrite some sentences to improve understanding. --- pvesr.adoc | 112 ++--- 1 file ch

[pve-devel] [manager] Protect the user's tfa key setting.

2020-01-17 Thread Wolfgang Link
If oath or U2F is set, it should not be possible to change it in the GUI on the user edit window. It disables the second factor, but leave the tfa key behind in the file tfa.cfg. The key in the tfa.cfg file is a problem when the user tries to recreate a key. The old key must be deleted before a new

[pve-devel] [common] Change authorization call

2020-01-15 Thread Wolfgang Link
As Let's Encrypt will no more allow GET calls, we have to change to POST. For more information see https://community.letsencrypt.org/t/acme-v2-scheduled-deprecation-of-unauthenticated-resource-gets/74380/4 --- src/PVE/ACME.pm | 20 ++-- 1 file changed, 10 insertions(+), 10 deletio

[pve-devel] [PATCH] Revision of the pvesr documentation

2019-11-15 Thread Wolfgang Link
Improvement of grammar and punctuation. Clarify the HA limitations. Remove future tense in some sentences. It is not good to use it in technical/scientific papers. Rewrite some sentences to improve understanding. --- pvesr.adoc | 108 ++--- 1 file ch

[pve-devel] [PATCH] fix #2456 setting bind-mount through API/CLI is broken

2019-11-06 Thread Wolfgang Link
Content-type check is only valid for mp from type 'volume'. The Content-type check is correct for rootfs and mount points. --- src/PVE/LXC/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm index 7e51b8d..39de691 100644 --- a

[pve-devel] [PATCH 1/3] Copy the needed function form acme.sh

2019-11-05 Thread Wolfgang Link
For the thin wrapper around acme.sh DNS plugins, the required functions are copied. The project acme.sh can be found here. https://github.com/Neilpang/acme.sh --- src/proxmox-acme/proxmox-acme | 806 ++ 1 file changed, 806 insertions(+) create mode 100644 src/prox

[pve-devel] RFC V2 for ACME DNS Challenge

2019-11-05 Thread Wolfgang Link
These patches are just the acme.sh thin wrapper part for the reuse of the dnsapi. In this version I use curl instead of wget. Curl is already part of PMG, and PVE has libcurl packages dependency. This script has additionl an additional on - coreutils (an we ignore) - sed (must be install

[pve-devel] [PATCH 3/3] Implement functions setup and teardown. We use these functions for adding and removing a txt record through the dnsapi.

2019-11-05 Thread Wolfgang Link
--- src/proxmox-acme/proxmox-acme | 78 +++ 1 file changed, 78 insertions(+) diff --git a/src/proxmox-acme/proxmox-acme b/src/proxmox-acme/proxmox-acme index 662c39a..6da9436 100644 --- a/src/proxmox-acme/proxmox-acme +++ b/src/proxmox-acme/proxmox-acme @@ -1,5 +1,

[pve-devel] [PATCH 2/3] Remove unnecessary Code and fixes.

2019-11-05 Thread Wolfgang Link
This Code is not required in the Proxmox environment. We know in our environment what we have as a tool-change. Fix Code what does not work because variable or functions are missing. --- src/proxmox-acme/proxmox-acme | 476 +- 1 file changed, 120 insertions(+), 356

Re: [pve-devel] RFC for ACME DNS Challenge

2019-10-23 Thread Wolfgang Link
On 10/23/19 9:37 AM, Fabian Grünbichler wrote: LGTM in general, comments inline On October 23, 2019 8:38 am, Wolfgang Link wrote: Files: ./src/PVE/..--> /usr/share/perl5/PVE/.. ./src/PVE/ACME.pm ./src/PVE/ACME/Challenge.pm ./src/PVE/ACME/Standalone.pm ./src/PVE/A

Re: [pve-devel] [manager 6/6] Add dns_api_config.

2019-10-21 Thread Wolfgang Link
October 14, 2019 1:08 pm, Wolfgang Link wrote: The DNS challenge uses this parameter for API authentication. --- PVE/NodeConfig.pm | 6 ++ 1 file changed, 6 insertions(+) diff --git a/PVE/NodeConfig.pm b/PVE/NodeConfig.pm index b84590ac..f605c7ee 100644 --- a/PVE/NodeConfig.pm +++ b/PVE/Nod

Re: [pve-devel] [common 2/9] refactor validating_url

2019-10-21 Thread Wolfgang Link
comment inline On 10/18/19 11:23 AM, Fabian Grünbichler wrote: On October 14, 2019 1:08 pm, Wolfgang Link wrote: --- src/PVE/ACME.pm| 12 src/PVE/ACME/Challenge.pm | 6 ++ src/PVE/ACME/StandAlone.pm | 32 +++- 3 files changed, 49

Re: [pve-devel] [common 1/9] Add dynamic plugin lookup for ACME

2019-10-21 Thread Wolfgang Link
comment inline On 10/18/19 11:22 AM, Fabian Grünbichler wrote: note: the comment here is not just for this patch, but also references stuff that comes in later patches.. On October 14, 2019 1:08 pm, Wolfgang Link wrote: The dynamic approach reduces failure if new plugins will included

Re: [pve-devel] [manager 5/6] add alias parameter for ACME DNS Challenge.

2019-10-21 Thread Wolfgang Link
On 10/18/19 11:26 AM, Fabian Grünbichler wrote: On October 14, 2019 1:08 pm, Wolfgang Link wrote: This parameter allows to use an alternative Domain for setup the DNS record. This can be useful for security reasons or if the real domain has none Ability to automatically set up a DNS record

Re: [pve-devel] [common 4/9] refactor extract_callenge for code reuse.

2019-10-21 Thread Wolfgang Link
comment inline On 10/18/19 11:25 AM, Fabian Grünbichler wrote: On October 14, 2019 1:08 pm, Wolfgang Link wrote: --- src/PVE/ACME.pm| 16 src/PVE/ACME/StandAlone.pm | 9 + 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/PVE/ACME.pm

Re: [pve-devel] [common 8/9] implement the teardown function for DNS challenge

2019-10-21 Thread Wolfgang Link
On 10/18/19 11:28 AM, Fabian Grünbichler wrote: On October 14, 2019 1:08 pm, Wolfgang Link wrote: --- src/PVE/ACME/ACME_sh.pm | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/PVE/ACME/ACME_sh.pm b/src/PVE/ACME/ACME_sh.pm index e60fd93..fc2881c 100644 --- a/src/PVE/ACME

Re: [pve-devel] RFC for ACME DNS Challenge

2019-10-21 Thread Wolfgang Link
comment inline On 10/18/19 11:28 AM, Fabian Grünbichler wrote: so this got a bit longer than expected - just a high-level feedback, I haven't actually tested anything yet since there are too many open general design questions for that to make sense. On October 14, 2019 1:08 pm, Wolfgang

Re: [pve-devel] [common 6/9] command composer for acme.sh

2019-10-21 Thread Wolfgang Link
comment inline On 10/18/19 11:27 AM, Fabian Grünbichler wrote: On October 14, 2019 1:08 pm, Wolfgang Link wrote: This composer supports two different operations. pve-setup: this operation adds the DNS TXT record. pve-teardown: this operation removes the DNS TXT record --- src/PVE/ACME

[pve-devel] [common 7/9] implement the setup function for DNS challenge

2019-10-14 Thread Wolfgang Link
--- src/PVE/ACME/ACME_sh.pm | 23 +++ 1 file changed, 23 insertions(+) diff --git a/src/PVE/ACME/ACME_sh.pm b/src/PVE/ACME/ACME_sh.pm index 40be772..e60fd93 100644 --- a/src/PVE/ACME/ACME_sh.pm +++ b/src/PVE/ACME/ACME_sh.pm @@ -5,6 +5,9 @@ use warnings; use HTTP::Daemon; u

[pve-devel] [common 5/9] dynamically search for the DNS API credential file.

2019-10-14 Thread Wolfgang Link
This function search for credential files. The file must end with .cred and named as the API plugin. The presumption is that every cluster uses the same DNS API credential file. Also, only one credential file exists in the directory. --- src/PVE/ACME/ACME_sh.pm | 22 ++ 1 file

[pve-devel] [manager 4/6] allow acme.sh as plugin

2019-10-14 Thread Wolfgang Link
--- PVE/NodeConfig.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/NodeConfig.pm b/PVE/NodeConfig.pm index a807c710..7817bd1e 100644 --- a/PVE/NodeConfig.pm +++ b/PVE/NodeConfig.pm @@ -73,7 +73,7 @@ my $acmedesc = { account => get_standard_option('pve-acme-account-n

[pve-devel] [manager 6/6] Add dns_api_config.

2019-10-14 Thread Wolfgang Link
The DNS challenge uses this parameter for API authentication. --- PVE/NodeConfig.pm | 6 ++ 1 file changed, 6 insertions(+) diff --git a/PVE/NodeConfig.pm b/PVE/NodeConfig.pm index b84590ac..f605c7ee 100644 --- a/PVE/NodeConfig.pm +++ b/PVE/NodeConfig.pm @@ -78,6 +78,12 @@ my $acmedesc = {

[pve-devel] [common 9/9] implement the validating_url function for DNS challenge

2019-10-14 Thread Wolfgang Link
--- src/PVE/ACME/ACME_sh.pm | 33 + 1 file changed, 33 insertions(+) diff --git a/src/PVE/ACME/ACME_sh.pm b/src/PVE/ACME/ACME_sh.pm index fc2881c..319a614 100644 --- a/src/PVE/ACME/ACME_sh.pm +++ b/src/PVE/ACME/ACME_sh.pm @@ -60,6 +60,39 @@ my $compose_cmd = sub {

[pve-devel] [manager 5/6] add alias parameter for ACME DNS Challenge.

2019-10-14 Thread Wolfgang Link
This parameter allows to use an alternative Domain for setup the DNS record. This can be useful for security reasons or if the real domain has none Ability to automatically set up a DNS record. --- PVE/NodeConfig.pm | 7 +++ 1 file changed, 7 insertions(+) diff --git a/PVE/NodeConfig.pm b/PV

[pve-devel] [common 2/9] refactor validating_url

2019-10-14 Thread Wolfgang Link
--- src/PVE/ACME.pm| 12 src/PVE/ACME/Challenge.pm | 6 ++ src/PVE/ACME/StandAlone.pm | 32 +++- 3 files changed, 49 insertions(+), 1 deletion(-) diff --git a/src/PVE/ACME.pm b/src/PVE/ACME.pm index da4cbcc..c82f297 100644 --- a/src/PVE/A

[pve-devel] [common 4/9] refactor extract_callenge for code reuse.

2019-10-14 Thread Wolfgang Link
--- src/PVE/ACME.pm| 16 src/PVE/ACME/StandAlone.pm | 9 + 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/PVE/ACME.pm b/src/PVE/ACME.pm index d6b6e99..173af69 100644 --- a/src/PVE/ACME.pm +++ b/src/PVE/ACME.pm @@ -76,6 +76,22 @@ sub fromjs

[pve-devel] [common 3/9] Add ACME_sh plugin

2019-10-14 Thread Wolfgang Link
--- src/Makefile| 1 + src/PVE/ACME.pm | 2 ++ src/PVE/ACME/ACME_sh.pm | 24 3 files changed, 27 insertions(+) create mode 100644 src/PVE/ACME/ACME_sh.pm diff --git a/src/Makefile b/src/Makefile index 02f1f56..fcccac8 100644 --- a/src/Makefile +++ b

[pve-devel] [common 6/9] command composer for acme.sh

2019-10-14 Thread Wolfgang Link
This composer supports two different operations. pve-setup: this operation adds the DNS TXT record. pve-teardown: this operation removes the DNS TXT record --- src/PVE/ACME/ACME_sh.pm | 16 1 file changed, 16 insertions(+) diff --git a/src/PVE/ACME/ACME_sh.pm b/src/PVE/ACME/

[pve-devel] [common 8/9] implement the teardown function for DNS challenge

2019-10-14 Thread Wolfgang Link
--- src/PVE/ACME/ACME_sh.pm | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/PVE/ACME/ACME_sh.pm b/src/PVE/ACME/ACME_sh.pm index e60fd93..fc2881c 100644 --- a/src/PVE/ACME/ACME_sh.pm +++ b/src/PVE/ACME/ACME_sh.pm @@ -82,4 +82,11 @@ sub setup { return ($url, $digest, $domain); }

[pve-devel] [manager 3/6] refactor validating_url

2019-10-14 Thread Wolfgang Link
The validating have to be done in the Plugin to be generic. --- PVE/API2/ACME.pm | 27 +-- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/PVE/API2/ACME.pm b/PVE/API2/ACME.pm index 2c05db9b..db94586d 100644 --- a/PVE/API2/ACME.pm +++ b/PVE/API2/ACME.pm @@ -59,

[pve-devel] [manager 1/6] Add plugin property for choosing different ACME modes.

2019-10-14 Thread Wolfgang Link
With this property, different methods for ACME challenges are possible. At the moment we will only support HTTP-01 through StandAlone and DNS-01 through ACME_sh Plugin. --- PVE/NodeConfig.pm | 7 +++ 1 file changed, 7 insertions(+) diff --git a/PVE/NodeConfig.pm b/PVE/NodeConfig.pm index b52

[pve-devel] RFC for ACME DNS Challenge

2019-10-14 Thread Wolfgang Link
This series also includes a new GIT repository on proxdev. The path is staff/wl/pve-acme. The acme_sh project is used as DNS API plugin systems. So we can reuse the already defiend plugins. I deside to install the complett acme_sh scrips so somwone could use it for alternative use. I'm not sure a

[pve-devel] [manager 2/6] Pass parameters for use in plugin.

2019-10-14 Thread Wolfgang Link
The node config is required to determine the plugin and possibly to pass plugin specific parameters. --- PVE/API2/ACME.pm | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PVE/API2/ACME.pm b/PVE/API2/ACME.pm index b1bb6261..2c05db9b 100644 --- a/PVE/API2/ACME.pm +++ b/PVE/

[pve-devel] [common 1/9] Add dynamic plugin lookup for ACME

2019-10-14 Thread Wolfgang Link
The dynamic approach reduces failure if new plugins will included. --- src/PVE/ACME.pm| 4 src/PVE/ACME/Challenge.pm | 8 src/PVE/ACME/StandAlone.pm | 4 3 files changed, 16 insertions(+) diff --git a/src/PVE/ACME.pm b/src/PVE/ACME.pm index 38a14a5..da4cbcc 100644

[pve-devel] [PATCH V2 guest-common] increase max reading replication state file size.

2019-04-17 Thread Wolfgang Link
In this file, the error of a failed job will also be stored. The default 32768 bytes are not very much. This file is on the local filesystem so there is no filesystem size restrictions like in /etc/pve. --- V2: remove comment change size representation PVE/ReplicationState.pm | 2 +- 1 file

[pve-devel] [PATCH guest-common] increase max reading replication state file size.

2019-04-16 Thread Wolfgang Link
In this file, the error of a failed job will also be stored. The default 32768 bytes are not very much. This file is on the local filesystem so there is no filesystem size restrictions like in /etc/pve. --- PVE/ReplicationState.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --gi

[pve-devel] [PATCH storage] fix #2154: Buggy "pvesm status" output

2019-04-16 Thread Wolfgang Link
Improve error output. --- PVE/Storage/ZFSPoolPlugin.pm | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 4f16351..9ba3999 100644 --- a/PVE/Storage/ZFSPoolPlugin.pm +++ b/PVE/Storage/ZFSPoolPlugin.pm @@ -52

[pve-devel] [PATCH qemu-server] fix #1829: Cloudinit ignore format parameter

2019-04-16 Thread Wolfgang Link
When a Cloudinit image is created, we allow choosing the format as parameter. So, the parameter should also be taken into account. The default for Cloudinit will stay qcow2 on directory storages. --- PVE/API2/Qemu.pm | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/P

[pve-devel] [PATCH manager 1/2] Supplementary Ceph installation summary

2019-04-07 Thread Wolfgang Link
Add installation node for the other participant Ceph Node. --- www/manager6/ceph/CephInstallWizard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/manager6/ceph/CephInstallWizard.js b/www/manager6/ceph/CephInstallWizard.js index bd50bf81..b704a39b 100644 --- a/www/manag

[pve-devel] [PATCH manager 2/2] cleanup format.

2019-04-07 Thread Wolfgang Link
--- www/manager6/ceph/CephInstallWizard.js | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/manager6/ceph/CephInstallWizard.js b/www/manager6/ceph/CephInstallWizard.js index b704a39b..93aad7fa 100644 --- a/www/manager6/ceph/CephInstallWizard.js +++ b/www/manager6/ceph/C

[pve-devel] [storage] fix #2154: Buggy "pvesm status" output

2019-04-01 Thread Wolfgang Link
Remove "zpool import" because there is no need for it. zpool list will import the pool if it is not imported. Anyway also there is no situation where Proxmox VE framework will export a pool. So there should no need to import a pool in the code logic. If an error occurs, the error output will he

[pve-devel] [installer PATCHV2] Add support for Citrix Hypervisor blockdev.

2019-03-06 Thread Wolfgang Link
Citrix Hypervisor use as blockdev path /dev/xvd<[a-z]><\d> It makes sense for Proxmox Mail Gateway to run on Citrix Hypervisor. Citrix Hypervisor recent XenServer. --- proxinstall | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxinstall b/proxinstall index f2414db..33c5765 100755 --- a/

  1   2   3   4   5   6   7   8   9   10   >