[pve-devel] [PATCH] Add check by starting a VM, if Host have engough Cores for VM.

2014-11-14 Thread Wolfgang Link
From: root Signed-off-by: root --- PVE/QemuServer.pm |6 ++ 1 file changed, 6 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 02bf404..9aea9ee 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2588,6 +2588,12 @@ sub config_to_command { my $cores =

[pve-devel] [PATCH 2/2] Fix Socket

2014-11-16 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/QemuServer.pm |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 9aea9ee..3dfe1b4 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2589,7 +2589,7 @@ sub config_to_command { my

[pve-devel] [PATCH 1/2] Add check by starting a VM, if Host have engough Cores for VM.

2014-11-16 Thread Wolfgang Link
From: root Signed-off-by: Wolfgang Link --- PVE/QemuServer.pm |6 ++ 1 file changed, 6 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 02bf404..9aea9ee 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2588,6 +2588,12 @@ sub config_to_command { my

[pve-devel] [PATCH] Add Check: If host has enough real CPUs for starting VM, to prevent a Qemu CPU emualtion!

2014-11-17 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/QemuServer.pm |7 +++ 1 file changed, 7 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 02bf404..26c6c76 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2588,6 +2588,13 @@ sub config_to_command { my $cores

[pve-devel] [PATCH] Bug#579:

2014-11-17 Thread Wolfgang Link
add check if START Parameter is set in FILE: /etc/default/pve-manager If START="no" NO VM will start if pve-manager start is called If START!="no" or not present, VMs will use the boot_at_start Flag Signed-off-by: Wolfgang Link --- bin/init.d/pve-manager |4 +++

[pve-devel] [PATCH 2/2] now if the QMP command starts with guest-+ , it will bind dynamicly to the VMID.qga socket.

2014-11-25 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/QMPClient.pm | 54 + PVE/QemuServer.pm | 16 +--- 2 files changed, 39 insertions(+), 31 deletions(-) diff --git a/PVE/QMPClient.pm b/PVE/QMPClient.pm index 9674d00..b5684b6 100755 --- a/PVE

[pve-devel] [PATCH 1/2] This are the condensed changes form http://pve.proxmox.com/pipermail/pve-devel/2013-March/006913.html is added to see the orgin work!

2014-11-25 Thread Wolfgang Link
From: Alexandre Derumier "This patch series add code to send command to quest guest agent. The procotol is qmp, so I have reuse as much as possible the current qmpclient the only big difference is that we can't pass an id to a request, so we must send a guest-sync command with an id before the

[pve-devel] [PATCH] Fix in PVE::QemuServer::snapshot_create

2014-12-03 Thread Wolfgang Link
remove the freezefs flag. If Qemu Guest Agent flag is set in config the vm filesystem will always be frozen. also remove param freezefs in PVE::API2 snapshot, because there is no use for it. Signed-off-by: Wolfgang Link --- PVE/API2/Qemu.pm |7 +-- PVE/QemuServer.pm |8

[pve-devel] [PATCH] add fence_pve to debian/rules

2014-12-04 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- debian/rules |1 + 1 file changed, 1 insertion(+) diff --git a/debian/rules b/debian/rules index e9d4758..5b61377 100755 --- a/debian/rules +++ b/debian/rules @@ -34,6 +34,7 @@ lpar \ manual \ netio \ ovh\ +pve

[pve-devel] [PATCH] Add qga freeze in vzdump in snapshot mode

2014-12-08 Thread Wolfgang Link
it will freeze the filesystem to provide consistents. Signed-off-by: Wolfgang Link --- PVE/VZDump/QemuServer.pm | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm index fd36c69..2c62de3 100644 --- a/PVE

[pve-devel] [PATCH] Add qga freeze in vzdump in snapshot mode

2014-12-09 Thread Wolfgang Link
it will freeze the filesystem to provide consistents. Signed-off-by: Wolfgang Link --- PVE/VZDump/QemuServer.pm | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm index fd36c69..b9edea1 100644 --- a/PVE

[pve-devel] [PATCH] implement the command get_link_status to qemu-kve paket. so you can call per QMP. this funktion is not implemented in monitor. this command return the state of the given nic to che

2014-12-11 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- debian/patches/add-qmp-get-link-status.patch | 98 ++ debian/patches/series|1 + 2 files changed, 99 insertions(+) create mode 100644 debian/patches/add-qmp-get-link-status.patch diff --git a/debian/patches

[pve-devel] [PATCH] Add to config the nic flag link_down=[0|1] also enable nic link if the Flag is set in the config. we use to verify the result the qemu extension get_link_status from or pachtes.

2014-12-22 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/API2/Qemu.pm | 57 +++-- PVE/QemuServer.pm | 22 - 2 files changed, 76 insertions(+), 3 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 066726d..f3fe3e6 100644

[pve-devel] [PATCH] implement the disconnect nic button on the network edit pannel.

2014-12-22 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- www/manager/Parser.js |5 + www/manager/qemu/NetworkEdit.js |8 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/www/manager/Parser.js b/www/manager/Parser.js index 11fbe49..3494637 100644 --- a/www/manager/Parser.js

Re: [pve-devel] backup lock

2014-12-22 Thread Wolfgang Link
Can you pleas post me your version of PVE. pveversion -v because I can't reproduce it at my machine, not on the gui and not at cli. how do you cancel the job manually? Regrades Wolfgang > On December 23, 2014 at 6:36 AM lyt_yudi wrote: > > > > > 在 2014年12月23日,下午1:20,lyt_yudi 写道: > > >

[pve-devel] [PATCH] Change check for better understanding!

2014-12-29 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/QemuServer.pm |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index cb84f42..9ef186e 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3724,7 +3724,7 @@ sub vm_stop { eval

[pve-devel] [PATCH] Fix backup failure at shutdown.

2014-12-30 Thread Wolfgang Link
This fix include a new function of vzdump. Now you can call vzdump -stop and the backup will be aborted. Also if the pve-manager init script stop the process, vzdump -stop will called. Signed-off-by: Wolfgang Link --- PVE/API2/VZDump.pm |4 PVE/VZDump.pm | 55

[pve-devel] [PATCH] Fix: root can now be disabled in GUI.

2015-01-06 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/AccessControl.pm |7 --- 1 file changed, 7 deletions(-) diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm index db85d08..29dba39 100644 --- a/PVE/AccessControl.pm +++ b/PVE/AccessControl.pm @@ -356,8 +356,6 @@ sub check_user_enabled

[pve-devel] [PATCH] Implements ZFSLocalPlugin.pm to use Zfs with volumes locally. You can snapshot on the volumes but only in a linear way.

2015-01-20 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/Storage.pm|2 + PVE/Storage/Makefile |2 +- PVE/Storage/ZFSLocalPlugin.pm | 517 + 3 files changed, 520 insertions(+), 1 deletion(-) create mode 100644 PVE/Storage/ZFSLocalPlugin.pm

[pve-devel] Question to ZFSPlugin.pm

2015-01-21 Thread Wolfgang Link
I implemented the ZFSPlugin for local Zfs use. When I test my adaption of this Plug-in, I recognize that it is possible to erase a template witch has a linked clone. I mean the Zfs-volume will not destroyed but the config of the template. My problem is I can't validate, it on the orginal Plug

[pve-devel] [PATCH 7/9] zfs: move code

2015-01-23 Thread Wolfgang Link
move activate_volume deactivate_volume from ZFSPlugin to ZFSDirPlugin Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSDirPlugin.pm |9 + PVE/Storage/ZFSPlugin.pm| 10 -- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/PVE/Storage/ZFSDirPlugin.pm b/PVE

[pve-devel] [PATCH 5/9] zfs: ZFSDirPlugin add methode path

2015-01-23 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSDirPlugin.pm | 16 1 file changed, 16 insertions(+) diff --git a/PVE/Storage/ZFSDirPlugin.pm b/PVE/Storage/ZFSDirPlugin.pm index fb7a1a2..260e328 100644 --- a/PVE/Storage/ZFSDirPlugin.pm +++ b/PVE/Storage/ZFSDirPlugin.pm

[pve-devel] [PATCH 6/9] zfs: fix insert return at alloc_immage

2015-01-23 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSDirPlugin.pm |1 + 1 file changed, 1 insertion(+) diff --git a/PVE/Storage/ZFSDirPlugin.pm b/PVE/Storage/ZFSDirPlugin.pm index 260e328..1782c04 100644 --- a/PVE/Storage/ZFSDirPlugin.pm +++ b/PVE/Storage/ZFSDirPlugin.pm @@ -187,6 +187,7 @@ sub

[pve-devel] [PATCH 4/9] zfs: move methode list_image

2015-01-23 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSDirPlugin.pm | 39 +++ PVE/Storage/ZFSPlugin.pm| 39 --- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/PVE/Storage/ZFSDirPlugin.pm b/PVE/Storage

[pve-devel] ZfsDirPlugin

2015-01-23 Thread Wolfgang Link
this is the refactoring of ZfsPlugin and implement ZFSDirPlugin In-Reply-To: ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH 9/9] zfs: move and refactor code

2015-01-23 Thread Wolfgang Link
copy and modify create_base and refactor clone_image Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSDirPlugin.pm | 43 +++ PVE/Storage/ZFSPlugin.pm| 13 + 2 files changed, 44 insertions(+), 12 deletions(-) diff --git a/PVE/Storage

[pve-devel] [PATCH 3/9] zfs: copy free_image

2015-01-23 Thread Wolfgang Link
modify it for ZFSDirPlugin. Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSDirPlugin.pm | 11 +++ 1 file changed, 11 insertions(+) diff --git a/PVE/Storage/ZFSDirPlugin.pm b/PVE/Storage/ZFSDirPlugin.pm index da53525..e3c1a9d 100644 --- a/PVE/Storage/ZFSDirPlugin.pm +++ b/PVE/Storage

[pve-devel] [PATCH 1/9] zfs: move some code

2015-01-23 Thread Wolfgang Link
move the most part of alloc_image to ZFSDirPlugin Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSDirPlugin.pm | 14 ++ PVE/Storage/ZFSPlugin.pm| 10 ++ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/PVE/Storage/ZFSDirPlugin.pm b/PVE/Storage

[pve-devel] [PATCH 2/9] zfs: move code

2015-01-23 Thread Wolfgang Link
move parse_volume from ZFSPlugin to ZFSDirPlugin, to avoid duplication Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSDirPlugin.pm | 10 ++ PVE/Storage/ZFSPlugin.pm| 10 -- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/PVE/Storage/ZFSDirPlugin.pm b

[pve-devel] [PATCH 5/6] Gui storage: copy selector methode

2015-01-26 Thread Wolfgang Link
from LVMEdit.js to ZFSPoolEdit.js Signed-off-by: Wolfgang Link --- www/manager/storage/ZFSPoolEdit.js | 43 1 file changed, 43 insertions(+) diff --git a/www/manager/storage/ZFSPoolEdit.js b/www/manager/storage/ZFSPoolEdit.js index 60d52dc..3ee1a7a

[pve-devel] [PATCH 2/6] Gui storage: modify ZFSPoolEdit.js

2015-01-26 Thread Wolfgang Link
Change intput description to the needed. Signed-off-by: Wolfgang Link --- www/manager/storage/ZFSPoolEdit.js | 67 1 file changed, 6 insertions(+), 61 deletions(-) diff --git a/www/manager/storage/ZFSPoolEdit.js b/www/manager/storage/ZFSPoolEdit.js index

[pve-devel] [PATCH 6/6] Gui storage: change input method

2015-01-26 Thread Wolfgang Link
change input method in Add:ZFS Storage at ZFS Pool from string to combobox. Signed-off-by: Wolfgang Link --- www/manager/storage/ZFSPoolEdit.js | 37 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/www/manager/storage/ZFSPoolEdit.js b/www

[pve-devel] [PATCH 3/6] Gui storage: bind ZFSPoolEdit.js and set defaults

2015-01-26 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- www/manager/Makefile |1 + www/manager/Utils.js |2 ++ www/manager/dc/StorageView.js | 14 +- www/manager/qemu/Clone.js |3 ++- www/manager/qemu/HDEdit.js|3 ++- www/manager/qemu/HDMove.js|4 ++-- 6

[pve-devel] [PATCH 4/6] Gui storage: rename storage type

2015-01-26 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- www/manager/Utils.js |4 ++-- www/manager/storage/ZFSPoolEdit.js |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/manager/Utils.js b/www/manager/Utils.js index 0b25b2b..8f46009 100644 --- a/www/manager/Utils.js

[pve-devel] [PATCH 1/6] Gui storage: copy code as template

2015-01-26 Thread Wolfgang Link
copy from ZFSEdit.js to ZFSPoolEdit.js Signed-off-by: Wolfgang Link --- www/manager/storage/ZFSPoolEdit.js | 173 1 file changed, 173 insertions(+) create mode 100644 www/manager/storage/ZFSPoolEdit.js diff --git a/www/manager/storage/ZFSPoolEdit.js b

[pve-devel] [PATCH 6/6] Gui storage: change input method

2015-01-26 Thread Wolfgang Link
change input method in Add:ZFS Storage at ZFS Pool from string to combobox. Signed-off-by: Wolfgang Link --- www/manager/storage/ZFSPoolEdit.js | 37 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/www/manager/storage/ZFSPoolEdit.js b/www

[pve-devel] [PATCH] zfs: fix wait by alloc_image

2015-01-28 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSPoolPlugin.pm |7 +++ 1 file changed, 7 insertions(+) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 10da7f7..ed10484 100644 --- a/PVE/Storage/ZFSPoolPlugin.pm +++ b/PVE/Storage/ZFSPoolPlugin.pm @@ -185,6

[pve-devel] [PATCH] Fix: disable root

2015-01-28 Thread Wolfgang Link
From: Wolfgang Link root can now be disabled in GUI. Signed-off-by: Wolfgang Link --- PVE/AccessControl.pm | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm index db85d08..a1b4971 100644 --- a/PVE/AccessControl.pm

[pve-devel] [PATCH] Fix: disable root

2015-01-28 Thread Wolfgang Link
From: Wolfgang Link root can now be disabled in GUI. Signed-off-by: Wolfgang Link --- PVE/AccessControl.pm | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm index db85d08..a1b4971 100644 --- a/PVE/AccessControl.pm

[pve-devel] [PATCH] zfs: fixV2 wait by alloc_image

2015-01-28 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSPlugin.pm |9 - PVE/Storage/ZFSPoolPlugin.pm |7 +++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/PVE/Storage/ZFSPlugin.pm b/PVE/Storage/ZFSPlugin.pm index 581ef6c..d8acce9 100644 --- a/PVE/Storage

Re: [pve-devel] why disk count less than 6?

2015-02-02 Thread Wolfgang Link
Hi, this is limited on 6 disk, because of the gui installer. but you can add more disk later by useing the CLI. Rereads On 02/02/2015 06:24 AM, lyt_yudi wrote: hi, PVE Developers why disk count less than 6 ? why can't select all disk to zfs_raid_setup ? …… sub get_zfs_raid_setup {

[pve-devel] [PATCH] ZfsPoolPlugin: fix add disks

2015-02-02 Thread Wolfgang Link
now it is possible add disk to an vm on rpool Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSPoolPlugin.pm |8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 10da7f7..629802e 100644 --- a/PVE/Storage

[pve-devel] [PATCH] zfs: auto import after reboot

2015-02-03 Thread Wolfgang Link
this is necessary, because after a reboot all pools except rpool are gone Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSPlugin.pm |5 + PVE/Storage/ZFSPoolPlugin.pm | 10 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/PVE/Storage/ZFSPlugin.pm b/PVE

[pve-devel] [PATCH] pveproxy: enable TSLv1

2015-02-03 Thread Wolfgang Link
this is necessary for IE communication Signed-off-by: Wolfgang Link --- bin/pveproxy |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/pveproxy b/bin/pveproxy index a9b6f1c..a254f08 100755 --- a/bin/pveproxy +++ b/bin/pveproxy @@ -107,8 +107,10 @@ sub init

Re: [pve-devel] [PATCH] pveproxy: enable TSLv1

2015-02-03 Thread Wolfgang Link
No it don't, is only commanded by the doc to set this flag. Am 03.02.15 um 18:23 schrieb Dietmar Maurer: + sslv3 => 0, + verify => 1, Really? Why does a server side verification influence the client? ___ pve-devel mailing list pv

Re: [pve-devel] [PATCH] zfs: auto import after reboot

2015-02-09 Thread Wolfgang Link
On 02/09/2015 12:07 PM, Dietmar Maurer wrote: On 02/03/2015 12:59 PM, Wolfgang Link wrote: @@ -419,6 +419,14 @@ sub volume_snapshot_rollback { sub activate_storage { my ($class, $storeid, $scfg, $cache) = @_; + +my @param = ('-o', 'name', '-H');

[pve-devel] [PATCH] bug 597: hotplug fix

2015-02-10 Thread Wolfgang Link
wrap params in dopple quotes, so spaces will accept. Signed-off-by: Wolfgang Link --- PVE/QemuServer.pm |4 1 file changed, 4 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 7045c14..9b4e137 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -4248,6

[pve-devel] [PATCH] zfspoolplugin: fix volume_resize

2015-02-10 Thread Wolfgang Link
copy methode volume_resize form ZFSPlugin.pm to ZFSPoolPlugin.pm refactor volume_resize Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSPlugin.pm |7 --- PVE/Storage/ZFSPoolPlugin.pm | 10 ++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/PVE/Storage

[pve-devel] [PATCH] bug 597: hotplug fix

2015-02-10 Thread Wolfgang Link
wrap params in dopple quotes, so spaces will accept. Signed-off-by: Wolfgang Link --- PVE/QemuServer.pm |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 556bbb7..59441e1 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm

Re: [pve-devel] [PATCH] memory form : hotplug improvements

2015-02-10 Thread Wolfgang Link
Yes, I am the new Proxmox *t*eam member. Am 10.02.15 um 17:14 schrieb Alexandre DERUMIER: Seem to be perfect here :) Thanks ! I'm going to work on cpu hotplug tommorow. BTW, is Wolfgang a new proxmox team member ? - Mail original - De: "dietmar" À: "aderumier" Cc: "pve-devel" En

[pve-devel] [PATCH 2/2] QemuServer: remove useless var

2015-02-11 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/QemuServer.pm |1 - 1 file changed, 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 6df375e..45d522d 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -5621,7 +5621,6 @@ sub snapshot_rollback { return if

[pve-devel] [PATCH 1/2] QemuServer: check snapshot befor rollback

2015-02-11 Thread Wolfgang Link
this will check, if it is possibel to rollback a snapshot befor VM will shutdown and get locked. Signed-off-by: Wolfgang Link --- PVE/QemuServer.pm | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 5d7f9d7

[pve-devel] [PATCH_V2 2/2] QemuServer: remove useless var

2015-02-11 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/QemuServer.pm |1 - 1 file changed, 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 3fc742c..b457095 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -5621,7 +5621,6 @@ sub snapshot_rollback { return if

[pve-devel] Check rollback is possible

2015-02-11 Thread Wolfgang Link
If a storage do not support rollback to all snapshots, it will be tested before the VM get locked and shutdown. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH_V2] Storage: add method

2015-02-11 Thread Wolfgang Link
add method volume_rollback_is_possible and redactor Improve error handling If snapshot is not reversible catch it before vm will lock and shutdown. This is the case if zfs has an younger snapshot. Signed-off-by: Wolfgang Link --- PVE/Storage.pm | 15 +++ PVE/Storage

[pve-devel] [PATCH_V2 1/2] QemuServer: check snapshot befor rollback

2015-02-11 Thread Wolfgang Link
this will check, if it is possibel to rollback a snapshot befor VM will shutdown and get locked. Signed-off-by: Wolfgang Link --- PVE/QemuServer.pm | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 5d7f9d7

[pve-devel] [PATCH] bug-fix: ZFSPoolPlugin

2015-02-12 Thread Wolfgang Link
improve Error handling. inform user only if there is really no device. if both checks are fail. Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSPoolPlugin.pm | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage

[pve-devel] [PATCH] bug-fix for size output

2015-02-12 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSPoolPlugin.pm |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 7dc7d3e..8584bac 100644 --- a/PVE/Storage/ZFSPoolPlugin.pm +++ b/PVE/Storage

[pve-devel] [PATCH] add vmname to vm remove msg

2015-02-12 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- www/manager/openvz/Config.js |4 +++- www/manager/qemu/Config.js |4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/www/manager/openvz/Config.js b/www/manager/openvz/Config.js index 8589f22..17f40b5 100644 --- a/www/manager/openvz

[pve-devel] ZFS tool for asynchronous replica

2015-02-13 Thread Wolfgang Link
Know anybody a open source tool for asynchronous replica with zfs. I found this here, but it seem to be no more active. http://www.bolthole.com/solaris/zrep/ ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/li

Re: [pve-devel] ZFS tool for asynchronous replica

2015-02-15 Thread Wolfgang Link
a software has no recent releases, does not mean it is not maintained, but that it requires no more changes to do it's dutty as expected.. ;) On Fri, Feb 13, 2015 at 10:12 AM, Wolfgang Link <mailto:w.l...@proxmox.com>> wrote: Know anybody a open source tool for asynchronou

[pve-devel] [PATCH 2/2] change var name to prevent side effects.

2015-02-16 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSPoolPlugin.pm | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 5cbd1b2..b9b3bf0 100644 --- a/PVE/Storage/ZFSPoolPlugin.pm +++ b/PVE/Storage

[pve-devel] [PATCH 1/2] Bug-fix alloc_image in ZFSPlugin.pm

2015-02-16 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSPlugin.pm |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PVE/Storage/ZFSPlugin.pm b/PVE/Storage/ZFSPlugin.pm index f020985..e7acfb8 100644 --- a/PVE/Storage/ZFSPlugin.pm +++ b/PVE/Storage/ZFSPlugin.pm @@ -270,9

[pve-devel] [PATCH] prohibit ZFSPool multi nodes assignment

2015-02-16 Thread Wolfgang Link
Signed-off-by: Wolfgang Link --- www/manager/storage/ZFSPoolEdit.js |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/www/manager/storage/ZFSPoolEdit.js b/www/manager/storage/ZFSPoolEdit.js index b0a17b2..f4baf75 100644 --- a/www/manager/storage/ZFSPoolEdit.js +++ b

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

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

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

[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

[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] 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] 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] [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] [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] [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] [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] [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 { } } +

  1   2   3   4   5   6   7   8   9   10   >