[pve-devel] [PATCH pve-container 1/9] add function rsync_disk

2015-11-18 Thread Wolfgang Link
This function copys the content of a container disk, with the following parameters --stats "give some file-transfer stats" for print output --sparse "handle sparse files efficiently" --whole-file "copy files whole" to need less ressources --archive "-rlptgoD" to call this para --acls "preserve ACLs

[pve-devel] [PATCH pve-container 2/9] extract umount mountpoint form umount_all

2015-11-18 Thread Wolfgang Link
so there is also the capability to single mp --- src/PVE/LXC.pm | 31 --- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index beec884..d6cea24 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -2022,6 +2022,25 @@ sub c

[pve-devel] [PATCH pve-container 0/9] implement move disk for LXC

2015-11-18 Thread Wolfgang Link
*** BLURB HERE *** Wolfgang Link (9): add function rsync_disk extract umount mountpoint form umount_all add function umount_raw_file add mount_raw_file add function copy disk add complete_storage this function gets all storages where you can run CT's implement auto compl

[pve-devel] [PATCH pve-container 3/9] add function umount_raw_file

2015-11-18 Thread Wolfgang Link
--- src/PVE/LXC.pm | 22 ++ 1 file changed, 22 insertions(+) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index d6cea24..383a6da 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -2022,6 +2022,28 @@ sub check_ct_modify_config_perm { return 1; } +sub umount_raw_file {

[pve-devel] [PATCH pve-container 8/9] add move_disk function to API

2015-11-18 Thread Wolfgang Link
--- src/PVE/API2/LXC.pm | 87 + src/PVE/CLI/pct.pm | 2 ++ src/PVE/LXC.pm | 4 +-- 3 files changed, 91 insertions(+), 2 deletions(-) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 165e327..dbf4057 100644 --- a/src/PVE/API2/

[pve-devel] [PATCH pve-manager] integrate move disk for LXC in GUI

2015-11-18 Thread Wolfgang Link
--- www/manager/Makefile | 1 + www/manager/lxc/MPMove.js| 118 +++ www/manager/lxc/Resources.js | 30 ++- 3 files changed, 148 insertions(+), 1 deletion(-) create mode 100644 www/manager/lxc/MPMove.js diff --git a/www/manager/Makefi

[pve-devel] [PATCH pve-container] fix bug LXC Backup snapshot mode on zfspool

2015-11-18 Thread Wolfgang Link
now it is possible to make a snapshot and mount it to backup it. --- src/PVE/LXC.pm | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index c61df23..9b13af4 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -1843,6 +1843,18 @@ s

Re: [pve-devel] [PATCH pve-container] fix bug LXC Backup snapshot mode on zfspool

2015-11-18 Thread Wolfgang Link
Not really. It makes an shnapshot but can't mount the snapshot, but we get no error. Try to mount a snapshot with this code. > Dietmar Maurer hat am 18. November 2015 um 17:38 > geschrieben: > > > > now it is possible to make a snapshot and mount it to backup it. > > This works for me without

Re: [pve-devel] [PATCH pve-container] fix bug LXC Backup snapshot mode on zfspool

2015-11-18 Thread Wolfgang Link
Yes I will do tomorrow. > Dietmar Maurer hat am 18. November 2015 um 17:57 > geschrieben: > > > > Not really. > > It makes an shnapshot but can't mount the snapshot, but we get no error. > > Try to mount a snapshot with this code. > > Please can you provide a test case for this claim? ___

[pve-devel] [PATCH pve-storage] Change zfspoolplugin path when snapshot is given.

2015-11-19 Thread Wolfgang Link
Zfs subvol snapshots are always mounted under $path_of_subvol/.zfs/$snapname --- PVE/Storage/ZFSPoolPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 0c1d8d9..91cc44f 100644 --- a/PVE/Storage/ZFSPoolPlugi

[pve-devel] [PATCH pve-container] Mounting of zfspool snapshots are not necessary.

2015-11-19 Thread Wolfgang Link
zfs subvol snapshots are allays mounted on $path_of_subvol/.zfs/$snapname --- src/PVE/LXC.pm | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index c61df23..aa705c8 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -2141,16 +2141,11 @@

[pve-devel] [PATCH pve-container] Mounting of zfspool snapshots are not necessary.

2015-11-19 Thread Wolfgang Link
zfs subvol snapshots are allays mounted on $path_of_subvol/.zfs/$snapname --- src/PVE/LXC.pm | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index c61df23..aa705c8 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -2141,16 +2141,11 @@

[pve-devel] [PATCHV_2 pve-storage] Change zfspoolplugin path when snapshot is given.

2015-11-19 Thread Wolfgang Link
Zfs subvol snapshots are always mounted under $path_of_subvol/.zfs/$snapname --- PVE/Storage/ZFSPoolPlugin.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 0c1d8d9..dc9ece7 100644 --- a/PVE/Storage/ZFSPoolP

[pve-devel] PATCH V2

2015-11-19 Thread Wolfgang Link
Only the 0001-Change-zfspoolplugin-path-when-snapshot-is-given.patch is changed. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH pve-container 1/2] add firewall config to vzdump

2015-11-19 Thread Wolfgang Link
it is necessary to copy firewall config first in tmp dir to prevent xattr warnings --- src/PVE/VZDump/LXC.pm | 4 1 file changed, 4 insertions(+) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index 72ad9c0..99a08b2 100644 --- a/src/PVE/VZDump/LXC.pm +++ b/src/PVE/VZDump/LXC.pm

[pve-devel] [PATCH pve-container 2/2] restore firwall settings if they exist in tar

2015-11-19 Thread Wolfgang Link
on LXC restore import firewall settings --- src/PVE/LXC/Create.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm index 58db2d2..cac7ec2 100644 --- a/src/PVE/LXC/Create.pm +++ b/src/PVE/LXC/Create.pm @@ -155,6 +155,8 @@ sub restore_and_configure

[pve-devel] [PATCH pve-container 2/2] restore firwall settings if they exist in tar

2015-11-23 Thread Wolfgang Link
on LXC restore import firewall settings --- src/PVE/LXC/Create.pm | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm index 58db2d2..02f909a 100644 --- a/src/PVE/LXC/Create.pm +++ b/src/PVE/LXC/Create.pm @@ -10,6 +10,7 @@ use PV

[pve-devel] [PATCH pve-common] add function file_atomic_copy

2015-11-23 Thread Wolfgang Link
--- src/PVE/Tools.pm | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm index 125c307..32d14c4 100644 --- a/src/PVE/Tools.pm +++ b/src/PVE/Tools.pm @@ -41,6 +41,7 @@ template_replace safe_print trim extract_param +file_atomic_copy ); my $pvelogdir

[pve-devel] Add LXC firewall conifg to backup

2015-11-23 Thread Wolfgang Link
This patch series will include the firewall setting in the vzdump backup. The firewall settings will always restored from the dumpfile, if there is a firewall config include the dumpfile. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.

[pve-devel] [PATCH qemu-server 2/2] firewall config will now include in the backup and write to vma file.

2015-11-23 Thread Wolfgang Link
--- PVE/VZDump/QemuServer.pm | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm index 66f00b5..68b45f1 100644 --- a/PVE/VZDump/QemuServer.pm +++ b/PVE/VZDump/QemuServer.pm @@ -171,6 +171,7 @@ sub a

[pve-devel] [PATCH qemu-server 1/2] restore firewall config from backup

2015-11-23 Thread Wolfgang Link
--- PVE/QemuServer.pm | 4 1 file changed, 4 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 81a1c84..0c76083 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -5300,6 +5300,10 @@ sub restore_vma_archive { my $fh = IO::File->new($cfgfn, "r") ||

[pve-devel] [PATCH pve-qemu-kvm] add firewall config to qmp_backup

2015-11-23 Thread Wolfgang Link
now it is possible to backup the firewall setting with qemu live backup --- debian/patches/add_firewall_to_vma.patch | 91 debian/patches/series| 1 + 2 files changed, 92 insertions(+) create mode 100644 debian/patches/add_firewall_to_vma.patc

[pve-devel] Add KVM firewall conifg to backup

2015-11-23 Thread Wolfgang Link
This patch series will include the firewall setting form KVM in the vzdump backup. The firewall settings will always restored from the dumpfile, if there is a firewall config include the dumpfile. ___ pve-devel mailing list pve-devel@pve.proxmox.com ht

[pve-devel] [PATCH pve-container 1/2] add firewall config to vzdump

2015-11-23 Thread Wolfgang Link
it is necessary to copy firewall config first in tmp dir to prevent xattr warnings --- src/PVE/VZDump/LXC.pm | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index 72ad9c0..e83e922 100644 --- a/src/PVE/VZDump/LXC.pm +++ b/src/PVE/VZDump/LXC.

[pve-devel] [PATCH V2 pve-container 2/2] restore firwall settings if they exist in tar

2015-11-25 Thread Wolfgang Link
on LXC restore import firewall settings --- src/PVE/LXC/Create.pm | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm index 58db2d2..7706402 100644 --- a/src/PVE/LXC/Create.pm +++ b/src/PVE/LXC/Create.pm @@ -10,6 +10,7 @@ use PV

[pve-devel] [PATCH V2] Add LXC firewall conifg to backup

2015-11-25 Thread Wolfgang Link
This patch series will include the firewall setting in the vzdump backup. The firewall settings will always restored from the dumpfile, if there is a firewall config include the dumpfile. Changes in V2 naming of file_atomic_copy to file_copy ___ pve-d

[pve-devel] [PATCH V2 pve-container 1/2] add firewall config to vzdump

2015-11-25 Thread Wolfgang Link
it is necessary to copy firewall config first in tmp dir to prevent xattr warnings --- src/PVE/VZDump/LXC.pm | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index 72ad9c0..4618f0b 100644 --- a/src/PVE/VZDump/LXC.pm +++ b/src/PVE/VZDump/LXC.

[pve-devel] [PATCH V2 pve-common] add function file_copy

2015-11-25 Thread Wolfgang Link
to have a save copy. --- src/PVE/Tools.pm | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm index 125c307..ba3f137 100644 --- a/src/PVE/Tools.pm +++ b/src/PVE/Tools.pm @@ -41,6 +41,7 @@ template_replace safe_print trim extract_param +file_copy );

[pve-devel] [PATCH V2 pve-qemu-kvm] add firewall config to qmp_backup

2015-11-25 Thread Wolfgang Link
now it is possible to backup the firewall setting with qemu live backup --- debian/patches/add_firewall_to_vma.patch | 91 debian/patches/series| 1 + 2 files changed, 92 insertions(+) create mode 100644 debian/patches/add_firewall_to_vma.patc

[pve-devel] [PATCH V2 qemu-server 1/2] restore firewall config from backup

2015-11-25 Thread Wolfgang Link
--- PVE/QemuServer.pm | 4 1 file changed, 4 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index e5c8e0d..1c89684 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -5303,6 +5303,10 @@ sub restore_vma_archive { my $fh = IO::File->new($cfgfn, "r") ||

[pve-devel] [PATCH V2 qemu-server 2/2] firewall config will now include in the backup and write to vma file.

2015-11-25 Thread Wolfgang Link
--- PVE/VZDump/QemuServer.pm | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm index 66f00b5..3da0eba 100644 --- a/PVE/VZDump/QemuServer.pm +++ b/PVE/VZDump/QemuServer.pm @@ -171,6 +171,7 @@ sub a

[pve-devel] [PATCH V2] Add KVM firewall conifg to backup

2015-11-25 Thread Wolfgang Link
This patch series will include the firewall setting form KVM in the vzdump backup. The firewall settings will always restored from the dumpfile, if there is a firewall config include the dumpfile. Changes in V2 naming of file_atomic_copy to file_copy ___

[pve-devel] [[PATCH V3] pve-qemu-kvm] add firewall config to qmp_backup

2015-11-26 Thread Wolfgang Link
now it is possible to backup the firewall setting with qemu live backup --- debian/patches/add_firewall_to_vma.patch | 90 debian/patches/series| 1 + 2 files changed, 91 insertions(+) create mode 100644 debian/patches/add_firewall_to_vma.patc

[pve-devel] [[PATCH] pve-qemu-kvm] refactor qmp_backup

2015-11-26 Thread Wolfgang Link
--- debian/patches/add_firewall_to_vma.patch | 93 +--- 1 file changed, 73 insertions(+), 20 deletions(-) diff --git a/debian/patches/add_firewall_to_vma.patch b/debian/patches/add_firewall_to_vma.patch index 5df800d..0ab20a0 100644 --- a/debian/patches/add_firewall_t

[pve-devel] [PATCH] Add mp to required in pct set mount-point.

2016-01-12 Thread Wolfgang Link
If map is not set you get a warning of an empty variable without real information. And when you try to start the container, it will not start without an explication. --- src/PVE/LXC.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 860901f..af3b9b7 10064

[pve-devel] [PATCH 1/3] Add mp to required in pct set mount-point.

2016-01-14 Thread Wolfgang Link
If map is not set you get a warning of an empty variable without real information. And when you try to start the container, it will not start without an explication. --- src/PVE/LXC.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 860901f..af3b9b7 10064

[pve-devel] [PATCH 3/3] fix the possibility to create a ct with mp and alternative rootfs

2016-01-14 Thread Wolfgang Link
--- src/PVE/LXC.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 33fca55..364c761 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -2363,6 +2363,8 @@ sub create_disks { $conf->{$ms} = print_ct_mountpoint($mountpoint, $ms eq 'rootfs'

[pve-devel] [PATCH 2/3] distinguish between rootfs and mp at parse mp

2016-01-14 Thread Wolfgang Link
rootfs need no mp because it is always / --- src/PVE/API2/LXC.pm | 10 +- src/PVE/CLI/pct.pm| 9 - src/PVE/LXC.pm| 25 ++--- src/PVE/LXC/Create.pm | 2 +- 4 files changed, 36 insertions(+), 10 deletions(-) diff --git a/src/PVE/API2/LXC.pm b/src/

[pve-devel] [PATCH] increase timeout for ZFSPugin

2016-01-25 Thread Wolfgang Link
This is useful on large zfs pools because they take longer to response. --- PVE/Storage/ZFSPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/ZFSPlugin.pm b/PVE/Storage/ZFSPlugin.pm index 5074ba4..d6339ce 100644 --- a/PVE/Storage/ZFSPlugin.pm +++ b/PVE/Storag

[pve-devel] [PATCH] Use format raw if a disk is passthrough to VM.

2016-01-25 Thread Wolfgang Link
To prevent error at VM starting, when we passthrough a harddrive from host to vm. --- PVE/QemuServer.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index d72ed6d..70a03e0 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -1285,6 +1285,7 @@ sub

[pve-devel] [PATCH] add function is_worker

2016-01-26 Thread Wolfgang Link
This function checks if this pid is a current active process. --- PVE/RPCEnvironment.pm | 10 ++ 1 file changed, 10 insertions(+) diff --git a/PVE/RPCEnvironment.pm b/PVE/RPCEnvironment.pm index b3a7dc7..337de1a 100644 --- a/PVE/RPCEnvironment.pm +++ b/PVE/RPCEnvironment.pm @@ -1038,4 +10

[pve-devel] [PATCH] reset timeout to 1 hour if process is a worker process

2016-01-26 Thread Wolfgang Link
We can raise the timeout because it does not matter if a worker process need longer. --- src/PVE/Tools.pm | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm index 9f08aa6..c9343e5 100644 --- a/src/PVE/Tools.pm +++ b/src/PVE/Tools.pm @@

[pve-devel] (no subject)

2016-01-26 Thread Wolfgang Link
This patch raise the timeout of the worker processed task. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH] create firewall dir on ct restore, if it does not exists.

2016-01-28 Thread Wolfgang Link
--- src/PVE/LXC/Create.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm index 56ef471..67eb291 100644 --- a/src/PVE/LXC/Create.pm +++ b/src/PVE/LXC/Create.pm @@ -146,10 +146,12 @@ sub restore_and_configure { } else {

[pve-devel] [PATCH] Create firewall dir on ct restore, if it does not exists.

2016-01-28 Thread Wolfgang Link
--- PVE/QemuServer.pm | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index d10e1e5..88e288c 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -5476,7 +5476,11 @@ sub restore_vma_archive { "unable to read qemu-serve

[pve-devel] [PATCH] close tunnel after migration is finish.

2016-02-02 Thread Wolfgang Link
if we do not close it, there is a change that the tunnel stays open and the next migration will not work. --- PVE/QemuMigrate.pm | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index 7ae3880..5da62eb 100644 ---

[pve-devel] [PATCH] If we freeze the fs with the Qemu-Guest-Agent test if QGA is running.

2016-02-15 Thread Wolfgang Link
--- PVE/QemuServer.pm | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 1139438..e97fcd1 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -6120,6 +6120,19 @@ sub do_snapshots_with_qemu { return undef; }

[pve-devel] [PATCH] Fix problems with turnkey repository PVE Version 3.4.

2016-02-17 Thread Wolfgang Link
To prevent that one time Net:SSL and an outer time IO::Socket::SSL is loaded, ensure that always use the same socket class. We load the the Net:SSL in AccessControl.pm if we call pveupdate, but if we call pveam update this module is not loaded an so the default is used (IO::Socket::SSL). --- PVE

[pve-devel] [PATCH] Fix problems with turnkey repository.

2016-02-17 Thread Wolfgang Link
To prevent that one time Net:SSL and an outer time IO::Socket::SSL is loaded, ensure that always use the same socket class. We load the the Net:SSL in AccessControl.pm if we call pveupdate, but if we call pveam update this module is not loaded an so the default is used (IO::Socket::SSL). --- PVE

[pve-devel] [PATCH 2/2] change turnkey URL to https version to permit a redirection.

2016-02-24 Thread Wolfgang Link
--- PVE/APLInfo.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/APLInfo.pm b/PVE/APLInfo.pm index ec49088..f4ad617 100644 --- a/PVE/APLInfo.pm +++ b/PVE/APLInfo.pm @@ -265,7 +265,7 @@ sub get_apl_sources { my $urls = []; push @$urls, "http://download.proxmox

[pve-devel] [PATCH 1/2] When we use LWP::UserAgent always use IO::Socket::SSL and set it up in a proper way.

2016-02-24 Thread Wolfgang Link
This patch set up the IO::Socket::SSL that all proxy(transparent, https and http) and non proxy settings will work. Now the server will also be verified. --- PVE/API2/Subscription.pm | 22 +++--- PVE/APLInfo.pm | 35 --- 2 files changed, 3

[pve-devel] [PATCH 1/4] refactor pveam to use it with our CLI Handler.

2016-02-24 Thread Wolfgang Link
--- PVE/CLI/Makefile | 2 +- PVE/CLI/pveam.pm | 88 bin/Makefile | 7 ++--- bin/pveam| 21 ++ 4 files changed, 95 insertions(+), 23 deletions(-) create mode 100644 PVE/CLI/pveam.pm diff --git a/PVE/CLI/Makefile b/

[pve-devel] [PATCH 4/4] add function destroy to pveam

2016-02-24 Thread Wolfgang Link
now it is possible to erase templates with pveam --- PVE/CLI/pveam.pm | 45 + 1 file changed, 45 insertions(+) diff --git a/PVE/CLI/pveam.pm b/PVE/CLI/pveam.pm index b6adfc4..0f907cf 100644 --- a/PVE/CLI/pveam.pm +++ b/PVE/CLI/pveam.pm @@ -14,6 +14,7 @@

[pve-devel] [PATCH 2/4] add pveam download

2016-02-24 Thread Wolfgang Link
With this function you can download templates from the repositories. --- PVE/API2/Nodes.pm | 26 -- PVE/CLI/pveam.pm | 2 ++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm index aa1fa0b..434b936 100644 --- a/PVE/API2/

[pve-devel] [PATCH 3/4] add list to pveam

2016-02-24 Thread Wolfgang Link
This function list all the templates off a specified storage. It also gives the size of the template. --- PVE/CLI/pveam.pm | 65 1 file changed, 65 insertions(+) diff --git a/PVE/CLI/pveam.pm b/PVE/CLI/pveam.pm index e90a7d7..b6adfc4 100644

[pve-devel] [PATCH 1/4] refactor pveam to use it with our CLI Handler.

2016-02-24 Thread Wolfgang Link
--- PVE/CLI/Makefile | 2 +- PVE/CLI/pveam.pm | 88 bin/Makefile | 7 ++--- bin/pveam| 21 ++ 4 files changed, 95 insertions(+), 23 deletions(-) create mode 100644 PVE/CLI/pveam.pm diff --git a/PVE/CLI/Makefile b/

[pve-devel] [PATCH 3/3] fix initlog name

2016-02-25 Thread Wolfgang Link
--- bin/pveupdate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pveupdate b/bin/pveupdate index ee75190..3a00335 100755 --- a/bin/pveupdate +++ b/bin/pveupdate @@ -15,7 +15,7 @@ use PVE::RPCEnvironment; use PVE::API2::Subscription; use PVE::API2::APT; -initlog ('pveda

[pve-devel] [PATCH 2/3] change turnkey URL to https version to permit a redirection.

2016-02-25 Thread Wolfgang Link
--- PVE/APLInfo.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/APLInfo.pm b/PVE/APLInfo.pm index a18cc1f..1a50508 100644 --- a/PVE/APLInfo.pm +++ b/PVE/APLInfo.pm @@ -246,7 +246,7 @@ sub get_apl_sources { my $urls = []; push @$urls, "http://download.proxmox

[pve-devel] [PATCH 1/3] set up proxy for UserAgent

2016-02-25 Thread Wolfgang Link
Http, https proxy are supported on http and https sites. Now the server will also be verified. --- PVE/API2/Subscription.pm | 21 - PVE/APLInfo.pm | 15 +++ 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/PVE/API2/Subscription.pm b/PVE/API

[pve-devel] [PATCH 2/2] limit swapsize to 12GB

2016-02-26 Thread Wolfgang Link
It is waste of disk space to allocate more then 12GB swap-partition. --- proxinstall | 1 + 1 file changed, 1 insertion(+) diff --git a/proxinstall b/proxinstall index 3469e64..9eb48d1 100755 --- a/proxinstall +++ b/proxinstall @@ -865,6 +865,7 @@ sub compute_swapsize { my $ss = int ($tot

[pve-devel] [PATCH 1/2] include NVMe devices.

2016-02-26 Thread Wolfgang Link
Gives the possibility to install Proxmox VE on nvme SSD. --- proxinstall | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxinstall b/proxinstall index eaa689b..3469e64 100755 --- a/proxinstall +++ b/proxinstall @@ -540,6 +540,8 @@ sub get_partition_dev { return "${dev}p$partnum";

[pve-devel] [PATCH] On GlusterFs we support only images.

2016-03-01 Thread Wolfgang Link
--- www/manager/storage/GlusterFsEdit.js | 8 1 file changed, 8 deletions(-) diff --git a/www/manager/storage/GlusterFsEdit.js b/www/manager/storage/GlusterFsEdit.js index f0d3b4f..fd8f569 100644 --- a/www/manager/storage/GlusterFsEdit.js +++ b/www/manager/storage/GlusterFsEdit.js @@ -1

[pve-devel] [PATCH] GlusterFS should only support KVM/QEMU disk images.

2016-03-01 Thread Wolfgang Link
GlusterFS is slower if you use the client and not the QEMU driver. So to guaranty that GlusterFS perform good allow only KVM/QEMU disk images. Also remove the vmdk format because it makes no sense. It is much slower then qcow2. --- PVE/Storage/GlusterfsPlugin.pm | 4 ++-- 1 file changed, 2 insert

Re: [pve-devel] [PATCH] GlusterFS should only support KVM/QEMU disk images.

2016-03-01 Thread Wolfgang Link
Because there are situation where you can slow down the KVM/QEMU disk image. On 03/01/2016 02:22 PM, Stoyan Marinov wrote: > May I ask why? What's wrong with keeping your ISO images and/or backups on > gluster? > > On Mar 1, 2016, at 3:20 PM, Wolfgang Link wrote: > >&

[pve-devel] [PATCH] Catch error from vgcreate.

2016-03-02 Thread Wolfgang Link
This is necessary, if the volume group "pve" exists, say from a previous installation. But whitout printing the reason no user will understand why this happens. --- proxinstall | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/proxinstall b/proxinstall index ec15477..7a67

[pve-devel] [PATCH] Remove content type container from GlusterFS.

2016-03-02 Thread Wolfgang Link
--- PVE/Storage/GlusterfsPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/GlusterfsPlugin.pm b/PVE/Storage/GlusterfsPlugin.pm index 315c5a6..951db50 100644 --- a/PVE/Storage/GlusterfsPlugin.pm +++ b/PVE/Storage/GlusterfsPlugin.pm @@ -98,7 +98,7 @@ sub type

[pve-devel] [PATCH] Remove content type Container from GlusterFS

2016-03-02 Thread Wolfgang Link
--- www/manager/storage/GlusterFsEdit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/manager/storage/GlusterFsEdit.js b/www/manager/storage/GlusterFsEdit.js index f0d3b4f..0b43b94 100644 --- a/www/manager/storage/GlusterFsEdit.js +++ b/www/manager/storage/GlusterFsEdit.js @@ -130,6 +1

Re: [pve-devel] [PATCH] Catch error from vgcreate.

2016-03-02 Thread Wolfgang Link
syscmd use run_command with noout what return the only exitcode. > Dietmar Maurer hat am 2. März 2016 um 17:11 geschrieben: > > > comments inline: > > > diff --git a/proxinstall b/proxinstall > > index ec15477..7a67623 100755 > > --- a/proxinstall > > +++ b/proxinstall > > @@ -834,8 +834,11 @@

[pve-devel] [PATCHV2] Catch error from vgcreate.

2016-03-03 Thread Wolfgang Link
This is necessary, if the volume group "pve" exists, say from a previous installation. But whitout printing the reason no user will understand why this happens. --- proxinstall | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/proxinstall b/proxinstall index ec15477..927

[pve-devel] [PATCH] This function checks if the $volid reside on zfs.

2016-03-07 Thread Wolfgang Link
--- PVE/Storage.pm | 20 1 file changed, 20 insertions(+) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 140f8ae..044e866 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -1270,4 +1270,24 @@ sub complete_volume { return $res; } +sub is_image_on_zfs { +my ($

[pve-devel] [PATCH] Add check when KVM failed to start

2016-03-07 Thread Wolfgang Link
If a Vm failed to start, check if Vm disk is on ZFS (filesystem) and "No cache" or "Default" is set as Cache mode. --- PVE/QemuServer.pm | 11 +++ 1 file changed, 11 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 17b43d2..f6cde2c 100644 --- a/PVE/QemuServer.pm +++

[pve-devel] [PATCH_V2] This function checks if the $volid reside on zfs.

2016-03-11 Thread Wolfgang Link
--- PVE/Storage.pm | 20 1 file changed, 20 insertions(+) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 140f8ae..af3facd 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -1270,4 +1270,24 @@ sub complete_volume { return $res; } +sub is_image_on_zfs { +my ($

[pve-devel] [PATCH_V2] Add check when KVM failed to start

2016-03-11 Thread Wolfgang Link
If a Vm failed to start, check if Vm disk is on ZFS (filesystem) and "No cache" or "Default" is set as Cache mode. --- PVE/QemuServer.pm | 11 +++ 1 file changed, 11 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index c0907bc..39ebd07 100644 --- a/PVE/QemuServer.pm +++

[pve-devel] [PATCH] fix iSCSI patch on commit ef5f1ab8555594d7d400308a4a38b2d0cdf1458f

2016-03-19 Thread Wolfgang Link
The backported patch ca369d51b3e1649be4a72addd6d6a168cfb3f537 from the kernel.org repo has an bug in it. The fix where made here patch commit d0eb20a863ba7dc1d3f4b841639671f134560be2 --- iSCSI-block-sd-Fix-device-imposed-transfer-length-limits.patch | 2 +- 1 file changed, 1 insertion(+), 1 dele

[pve-devel] [PATCH 1/2] Include all snapshots when migrate storage zfs to zfs.

2016-03-19 Thread Wolfgang Link
--- PVE/Storage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 140f8ae..a248773 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -512,7 +512,7 @@ sub storage_migrate { my $snap = "zfs snapshot $zfspath\@__migration__";

[pve-devel] [PATCH] complete parse_volname in ZFSPoolPlugin

2016-03-19 Thread Wolfgang Link
No the plugin also returns the parent vmid and base volume when a link clone is used --- PVE/Storage.pm | 2 +- PVE/Storage/ZFSPoolPlugin.pm | 17 +++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index e7ff5a0..3c233d

[pve-devel] [PATCH] add possibility check at migration

2016-03-19 Thread Wolfgang Link
Now we check before we migrate, if a storage is a licked clone. If this is true we check also if it is on a shared storage because outer way it would not possible to migrate. --- PVE/QemuMigrate.pm | 27 +++ 1 file changed, 27 insertions(+) diff --git a/PVE/QemuMigrate.pm

Re: [pve-devel] [PATCH 1/2] Include all snapshots when migrate storage zfs to zfs.

2016-03-19 Thread Wolfgang Link
I will check, but AFIK we have a check what prevent this. > Dietmar Maurer hat am 17. März 2016 um 07:10 > geschrieben: > > > applied. > > But I wonder how that whole storage_migrate() works with 'cloned' images? ___ pve-devel mailing list pve-devel@

[pve-devel] [PATCH 2/2] Use array to run_command instead of a string.

2016-03-19 Thread Wolfgang Link
--- PVE/Storage.pm | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index a248773..e7ff5a0 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -510,18 +510,19 @@ sub storage_migrate { my $zfspath = "$scfg->{pool}\/$volname";

[pve-devel] [PATCH] Change zfs path when link clone are used

2016-03-21 Thread Wolfgang Link
The new naming is coherent to Dir plugin. So if we make an licked clone the parent will be coded in the path of the storage. --- PVE/Storage/ZFSPoolPlugin.pm | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/St

[pve-devel] [PATCH] Fix LXC migration from local subvol

2016-03-21 Thread Wolfgang Link
This patch reconfigured the rsync parameters, so the fs keeps all settings and works recursive. --- PVE/Storage.pm | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index e7ff5a0..415301a 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.

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

<    5   6   7   8   9   10   11   >