Re: [pve-devel] rfc : pve-network : idea to generate and reload config accross the nodes

2019-04-01 Thread Alexandre DERUMIER
Hi, I have rethinked about it, I have (again ;) a new idea for implementation. The main problem is how to test a change at datacenter level, as we need to test the local configuration of each node. and it's not currently in /etc/pve , but in /etc/network/interfaces of each node. I think, s

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

2019-04-01 Thread Fabian Grünbichler
On Mon, Apr 01, 2019 at 04:20:46PM +0200, Wolfgang Link wrote: > Remove "zpool import" because there is no need for it. > > zpool list will import the pool if it is not imported. this is not true? would be pretty crazy anyway ;) > Anyway also there is no situation where Proxmox VE framework wil

[pve-devel] [PATCH container] fix: #1218 Add flag 'unique' to pct restore in order to set new MAC addresses to NICs

2019-04-01 Thread Christian Ebner
Signed-off-by: Christian Ebner --- src/PVE/API2/LXC.pm | 9 - src/PVE/LXC/Create.pm | 9 - 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 6de121f..3d5460c 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2/LXC.pm

[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

Re: [pve-devel] rfc : pve-network : idea to generate and reload config accross the nodes

2019-04-01 Thread Alexandre DERUMIER
as alternative, we could simply manage multiple change in /etc/pve/network/vnet.cfg.new apply button -> replace /etc/pve/network/vnet.cfg The the local daemon, do test (dry-run,) and report error in his status file. (and it's displayed at network level in datacenter) if ok, it's apply chang

Re: [pve-devel] rfc : pve-network : idea to generate and reload config accross the nodes

2019-04-01 Thread Alexandre DERUMIER
>>I don't really get why you want to do that? There are so many ways to damage >>a network, and >>I doubt that we can reliable verify that ifupdown2 have a dry-run too, it's working not too bad (but not 100% complete) But I would avoid some basic mistakes, like a vlan interface already defi

Re: [pve-devel] [PATCH manager v2] Allow to set the firewall log rate limit and burst from the UI

2019-04-01 Thread Thomas Lamprecht
On 4/1/19 2:45 PM, Christian Ebner wrote: > Signed-off-by: Christian Ebner > --- > Version 2: > * Values are retained in config while disable/enable > * Removed disabling of the textfield and combobox when unchecking enable > in order to get the values instead of undefined. > * i

[pve-devel] [PATCH manager v2] Allow to set the firewall log rate limit and burst from the UI

2019-04-01 Thread Christian Ebner
Signed-off-by: Christian Ebner --- Version 2: * Values are retained in config while disable/enable * Removed disabling of the textfield and combobox when unchecking enable in order to get the values instead of undefined. * initComponent -> autoLoad: true www/manager6/Makefile

[pve-devel] applied: [PATCH manager] ui: ceph installer: set initial tab depending on current state

2019-04-01 Thread Thomas Lamprecht
On 4/1/19 1:31 PM, Tim Marx wrote: > Signed-off-by: Tim Marx > --- > www/manager6/ceph/CephInstallWizard.js | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/www/manager6/ceph/CephInstallWizard.js > b/www/manager6/ceph/CephInstallWizard.js > index 1c8808d1..bd50bf81 10064

Re: [pve-devel] [RFC firewall] allow to enable/disable and modify cluster wide log ratelimits

2019-04-01 Thread Thomas Lamprecht
On 4/1/19 1:56 PM, Christian Ebner wrote: > Looks good! Acknowledged thanks for looking at this, pushed it out. >> On March 21, 2019 at 7:59 AM Thomas Lamprecht >> wrote: >> >> >> Signed-off-by: Thomas Lamprecht >> Cc: Christian Ebner >> --- >> >> just a POC, but should all be working, @chris

Re: [pve-devel] [RFC firewall] allow to enable/disable and modify cluster wide log ratelimits

2019-04-01 Thread Christian Ebner
Looks good! Acknowledged > On March 21, 2019 at 7:59 AM Thomas Lamprecht wrote: > > > Signed-off-by: Thomas Lamprecht > Cc: Christian Ebner > --- > > just a POC, but should all be working, @christian could you take a look at > this? > > src/PVE/Firewall.pm | 63

[pve-devel] [PATCH manager] ui: ceph installer: set initial tab depending on current state

2019-04-01 Thread Tim Marx
Signed-off-by: Tim Marx --- www/manager6/ceph/CephInstallWizard.js | 14 ++ 1 file changed, 14 insertions(+) diff --git a/www/manager6/ceph/CephInstallWizard.js b/www/manager6/ceph/CephInstallWizard.js index 1c8808d1..bd50bf81 100644 --- a/www/manager6/ceph/CephInstallWizard.js +++

[pve-devel] [PATCH manager] Allow to set the firewall log rate limit and burst from the UI

2019-04-01 Thread Christian Ebner
Signed-off-by: Christian Ebner --- www/manager6/Makefile | 1 + www/manager6/grid/FirewallOptions.js | 8 +++ www/manager6/window/FirewallLograteEdit.js | 105 + 3 files changed, 114 insertions(+) create mode 100644 www/manager6/window/F

Re: [pve-devel] rfc : pve-network : idea to generate and reload config accross the nodes

2019-04-01 Thread Dietmar Maurer
> maybe better: > > in gui, at network,datacenter level > > at each change, make a > /etc/pve/networks/vnet.cfg. > > > on local node, the daemon detect the new version,make verification, > and update /etc/pve/nodes//.networkconfigstatus > > version: verify:ok I don't really get why you want t

[pve-devel] [PATCH container v2 2/3] bwlimit: add parameter to rsync in copy_volume

2019-04-01 Thread Stoiko Ivanov
Unconditionally add a '--bwlimit' parameter to the rsync invocation, defaulting to an argument of '0' (= unlimited - see `man rsync). Signed-off-by: Stoiko Ivanov --- src/PVE/LXC.pm | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm ind

[pve-devel] [PATCH v2] (partially) implement bwlimits

2019-04-01 Thread Stoiko Ivanov
Changes from v1: * Incorporated Thomas great feedback! - Thanks! * Added a patch to pve-common - there the description wrote MiB/s, but the restore-codepaths take the value as KiB/s [0] I changed the output of PVE::QemuServer::qemu_drive_mirror to always write the speed in KB/s, instead of using

[pve-devel] [PATCH container v2 1/3] bwlimit: add parameter to LXC::Migrate

2019-04-01 Thread Stoiko Ivanov
pass bwlimit parameter to storage_migrate Signed-off-by: Stoiko Ivanov --- src/PVE/LXC/Migrate.pm | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/PVE/LXC/Migrate.pm b/src/PVE/LXC/Migrate.pm index 1364b8d..7df3c4c 100644 --- a/src/PVE/LXC/Migrate.pm +++ b/src/PVE/

[pve-devel] [PATCH qemu-server v2 8/8] bwlimit: add parameter to API2 calls

2019-04-01 Thread Stoiko Ivanov
for migrate_vm, clone_vm and move_vm_disk and extract it. The 'migrate_vm' call passes it to PVE::QemuMigrate->migrate for handling. Additionally the bwlimit option's description of the 'create_vm' call gets consistent capitalization of I/O. Signed-off-by: Stoiko Ivanov --- PVE/API2/Qemu.pm | 3

[pve-devel] [PATCH qemu-server v2 5/8] bwlimit: add parameter for QemuMigrate::phase2

2019-04-01 Thread Stoiko Ivanov
used for online local disks via qemu_drive_mirror Signed-off-by: Stoiko Ivanov --- PVE/QemuMigrate.pm | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index 55c9a7c..4b5813c 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMigra

[pve-devel] [PATCH container v2 3/3] bwlimit: add parameter to API2 calls

2019-04-01 Thread Stoiko Ivanov
for migrate_vm, clone_vm and move_volume. The 'migrate_vm' call passes it to PVE::LXC::Migrate->migrate for handling. Additionally the bwlimit option's description of the 'create_vm' call gets consistent capitalization of I/O. Signed-off-by: Stoiko Ivanov --- src/PVE/API2/LXC.pm | 38 ++

[pve-devel] [PATCH qemu-server v2 7/8] bwlimit: add parameter to QemuServer::clone_disk

2019-04-01 Thread Stoiko Ivanov
and pass it to qemu_drive_mirror (used for online disks). Signed-off-by: Stoiko Ivanov --- PVE/QemuServer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index ba14579..7d2066e 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm

[pve-devel] [PATCH common v2 1/1] JSONSchema: fix units of bwlimit

2019-04-01 Thread Stoiko Ivanov
the description of bwlimit wrote MiB/s, the use in restore operation is KiB/s Signed-off-by: Stoiko Ivanov --- src/PVE/JSONSchema.pm | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index f0fc2aa..51ef3ab 100644 --- a/sr

[pve-devel] [PATCH qemu-server v2 1/8] bwlimit: honor bwlimit for migrate qmp call

2019-04-01 Thread Stoiko Ivanov
The 'migrate_speed' can be set in the VM config. Additionally the 'migrate' bwlimit from datacenter.cfg (storage-specific limits play no role for memory+state migration) or the parameter provided to the API call can restrict the speed. Take the lower of the two. This patch also refactors the setti

[pve-devel] [PATCH qemu-server v2 6/8] add todo comment for bwlimits in clone_disk

2019-04-01 Thread Stoiko Ivanov
clone_disk calls `qemu-img convert` for offline disks, which does not have a bandwidth limit parameter. Signed-off-by: Stoiko Ivanov --- PVE/QemuServer.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index f9b0f58..ba14579 100644 --- a/PVE/QemuServer.

[pve-devel] [PATCH qemu-server v2 2/8] bwlimit: add parameter to qemu_drive_mirror

2019-04-01 Thread Stoiko Ivanov
used for online drive migrations, move_disk and clone calls. Signed-off-by: Stoiko Ivanov --- PVE/QemuServer.pm | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index fd854c4..f9b0f58 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuS

[pve-devel] [PATCH qemu-server v2 4/8] QemuMigrate::sync_disks: small refactoring

2019-04-01 Thread Stoiko Ivanov
factor out accessing $self->{opts}, since it's used twice. Signed-off-by: Stoiko Ivanov --- PVE/QemuMigrate.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index c4620a5..55c9a7c 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMig

[pve-devel] [PATCH qemu-server v2 3/8] bwlimit: add parameter to QemuMigrate::sync_disks

2019-04-01 Thread Stoiko Ivanov
used for offline migration of local volumes Signed-off-by: Stoiko Ivanov --- PVE/QemuMigrate.pm | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index bb65d63..c4620a5 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMigrate.pm @@ -46

Re: [pve-devel] [PATCH v6 qemu-server 2/3] add QemuMigrateExternal.pm

2019-04-01 Thread Mira Limbeck
The VM created in the 'prepare' sub never gets deleted if it fails there already. Cleanup only happens for phases 1, 2 and 3. On 4/1/19 7:26 AM, Alexandre DERUMIER wrote: oh, and this all lacks a bit of cleanups on errors, e.g., the newly created VM on the target side, etc. but it's a bit of a

Re: [pve-devel] [PATCH v6 qemu-server 2/3] add QemuMigrateExternal.pm

2019-04-01 Thread Alexandre DERUMIER
>>yes, with me idea you'd still separate it, have this in the new >>QemuMigrateExternal, >>_but_ the base() class wouldn't be "PVE::AbstractMigrate" but >>"PVE::QemuMigrate", >>we won't touch PVE::QemuMigrate besides some splitting up of things (to get a >>nicer >>interface to overwrite in the c