Re: [pve-devel] [PATCH container 13/20] cgroup: add change_cpu_quota, change_cpu_shares

2020-04-06 Thread Wolfgang Bumiller
On Sat, Apr 04, 2020 at 08:09:58PM +0200, Thomas Lamprecht wrote: > On 4/3/20 4:37 PM, w.bumil...@proxmox.com wrote: > > ... > > +# Change the cpu "shares" for a container. > > +# > > +# In cgroupv1 we used a value in `[0..50]` with a default of 1024. > > +# > > +# In cgroupv2 we do not have "s

[pve-devel] [PATCH common 2/2] fork_worker: guard more setup code with eval

2017-12-27 Thread Wolfgang Bumiller
As it might die with an error which should end up in the _exit() code path rather than bailing out into the upper scope. Signed-off-by: Wolfgang Bumiller --- src/PVE/RESTEnvironment.pm | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/PVE

[pve-devel] [PATCH common 1/2] fork_worker: use correct handle type for POSIX::write

2017-12-27 Thread Wolfgang Bumiller
$resfh can be a pipe from POSIX::pipe() or the upid output handle, which is an IO::File, so we need to take its fileno(). Signed-off-by: Wolfgang Bumiller Fixes: ed52a8435a6d ("fork_worker: use separate pipe for status messages") --- Fixes 'Error: unable to read tail'

[pve-devel] [PATCH manager] fix #1605: reflect backend values of minimum memory limit

2017-12-27 Thread Wolfgang Bumiller
The backend's minimum value for container memory is 16M, not 32. Signed-off-by: Wolfgang Bumiller --- www/manager6/lxc/ResourceEdit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/manager6/lxc/ResourceEdit.js b/www/manager6/lxc/ResourceEdit.js index 6bd35e8a..641

Re: [pve-devel] Reduce LXC limits: memory and root disk

2017-12-27 Thread Wolfgang Bumiller
On Mon, Dec 25, 2017 at 09:44:52AM +0100, c.mo...@web.de wrote: > The avg. memory usage of LXC running HAProxy is 10MB according to WebUI. > Checking the amount of free and used system memory in LXC shows: > vm102-haproxy:~# free > total   used   free shared    buffers cach

[pve-devel] applied: [PATCH cluster] deprecate and map 'applet' console setting in datacenter.cfg

2017-12-27 Thread Wolfgang Bumiller
applied On Thu, Dec 21, 2017 at 12:52:53PM +0100, Dominik Csapak wrote: > we do not use the applet anymore, and setting it throws an error > in the gui when clicking the console button > > map it to 'html5' and mark it deprecated, so that we can remove > that setting in the next major release >

Re: [pve-devel] [PATCH cluster 0/2] improve pmxcfs IPCC and restart

2017-12-28 Thread Wolfgang Bumiller
applied On Fri, Dec 22, 2017 at 02:34:30PM +0100, Thomas Lamprecht wrote: > remove useless sleep on stop and make pmxcfs restart fully transparent > for IPCC users, at least if successful. > > Not only retry once if connection cache gets trashed but also poll for > a connection if a pmxcfs restar

Re: [pve-devel] [PATCH common] JSONSchema: add fingerprint-sha256 standard option

2017-12-28 Thread Wolfgang Bumiller
On Wed, Dec 20, 2017 at 03:13:36PM +0100, Thomas Lamprecht wrote: > Signed-off-by: Thomas Lamprecht > --- > src/PVE/JSONSchema.pm | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm > index 9c26184..2b646fd 100644 > --- a/src/PVE/JSONSchem

[pve-devel] [PATCH qemu-server] fix efi disk format detection

2017-12-28 Thread Wolfgang Bumiller
Signed-off-by: Wolfgang Bumiller Fixes: 2bfbee039bbe ("include format for efidisk") --- PVE/QemuServer.pm | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 42c412a..4837331 100644 --- a/PVE/QemuServer.pm

[pve-devel] applied: [PATCH ha-manager 1/3] debian/rules: add file names to dh_systemd_enable

2017-12-28 Thread Wolfgang Bumiller
applied whole series On Wed, Dec 20, 2017 at 11:34:01AM +0100, Fabian Grünbichler wrote: > otherwise it gets confused and enables pve-ha-crm twice in the postinst. > > Signed-off-by: Fabian Grünbichler > --- > Note: the behaviour change is not related to the removed blank line > > debian/rules

Re: [pve-devel] [PATCH common v2 4/9] cli: refactor print_bash_completion

2017-12-29 Thread Wolfgang Bumiller
On Mon, Dec 18, 2017 at 10:21:38AM +0100, Thomas Lamprecht wrote: > move variables nearer to where they actually used. > drop program name early from argv array > drop unnecessary variables > > Signed-off-by: Thomas Lamprecht > --- > src/PVE/CLIHandler.pm | 39 +++

Re: [pve-devel] [PATCH common v2 6/9] cli: factor out generate usage string

2017-12-29 Thread Wolfgang Bumiller
On Mon, Dec 18, 2017 at 10:21:40AM +0100, Thomas Lamprecht wrote: > reduce code reuse and prepare for sub commands > > Signed-off-by: Thomas Lamprecht > --- > src/PVE/CLIHandler.pm | 138 > -- > 1 file changed, 77 insertions(+), 61 deletions(-) >

Re: [pve-devel] [PATCH common v2 7/9] cli: allow specifying sub commands through $cmddef

2017-12-29 Thread Wolfgang Bumiller
On Mon, Dec 18, 2017 at 10:21:41AM +0100, Thomas Lamprecht wrote: > allow to use sub commands alá > # pveum user add > > The new resolve_cmd traverses $cmddef, resolves one level of aliases > and returns the respective sub command, its cmddef, arguments and if > it was expanded (e.g., pveum u d .

Re: [pve-devel] [PATCH common v2 6/9] cli: factor out generate usage string

2017-12-29 Thread Wolfgang Bumiller
On Mon, Dec 18, 2017 at 10:21:40AM +0100, Thomas Lamprecht wrote: > reduce code reuse and prepare for sub commands > > Signed-off-by: Thomas Lamprecht > --- > src/PVE/CLIHandler.pm | 138 > -- > 1 file changed, 77 insertions(+), 61 deletions(-) >

[pve-devel] applied: [PATCH common v2 1/9] cli: refactor and use $cmddef directly

2017-12-29 Thread Wolfgang Bumiller
applied On Mon, Dec 18, 2017 at 10:21:35AM +0100, Thomas Lamprecht wrote: > passing one param less to the helper methods > > Signed-off-by: Thomas Lamprecht > Reviewed-by: Dominik Csapak > --- > src/PVE/CLIHandler.pm | 29 - > 1 file changed, 12 insertions(+), 17 de

[pve-devel] applied: [PATCH common v2 2/9] cli: factor out initialisation check

2017-12-29 Thread Wolfgang Bumiller
applied On Mon, Dec 18, 2017 at 10:21:36AM +0100, Thomas Lamprecht wrote: > Signed-off-by: Thomas Lamprecht > Reviewed-by: Dominik Csapak > --- > src/PVE/CLIHandler.pm | 16 +++- > 1 file changed, 11 insertions(+), 5 deletions(-) > > diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLI

[pve-devel] applied: [PATCH common v2 3/9] cli: refactor comand name helper

2017-12-29 Thread Wolfgang Bumiller
applied On Mon, Dec 18, 2017 at 10:21:37AM +0100, Thomas Lamprecht wrote: > use shorter and also a bit faster methods to expand and get comand > names > > Signed-off-by: Thomas Lamprecht > --- > > src/PVE/CLIHandler.pm | 25 +++-- > 1 file changed, 3 insertions(+), 22 delet

[pve-devel] applied: [PATCH common v2 5/9] cli: factor out abort

2017-12-29 Thread Wolfgang Bumiller
applied On Mon, Dec 18, 2017 at 10:21:39AM +0100, Thomas Lamprecht wrote: > will be reused in later patches too > > Signed-off-by: Thomas Lamprecht > Reviewed-by: Dominik Csapak > --- > src/PVE/CLIHandler.pm | 23 --- > 1 file changed, 12 insertions(+), 11 deletions(-) > >

Re: [pve-devel] [PATCH common v2 8/9] cli: allow to pass sub commands to help as array

2017-12-29 Thread Wolfgang Bumiller
delete" > > Signed-off-by: Thomas Lamprecht once the rest is finished: Acked-by: Wolfgang Bumiller > --- > src/PVE/CLIHandler.pm | 14 ++ > 1 file changed, 6 insertions(+), 8 deletions(-) > > diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandle

Re: [pve-devel] [PATCH common v2 9/9] cli: document $cmddef structure

2017-12-29 Thread Wolfgang Bumiller
On Mon, Dec 18, 2017 at 10:21:43AM +0100, Thomas Lamprecht wrote: > Signed-off-by: Thomas Lamprecht > Reviewed-by: Dominik Csapak once the rest is finished: Acked-by: Wolfgang Bumiller > --- > src/PVE/CLIHandler.pm | 23 +++ > 1 file changed, 23 insertio

[pve-devel] [PATCH v2 qemu-server] fix efi disk format detection

2018-01-08 Thread Wolfgang Bumiller
Signed-off-by: Wolfgang Bumiller Fixes: 2bfbee039bbe ("include format for efidisk") --- Changes since v1: * When the disk was specified as a path instead of as storage:volume the format property is now mandatory. PVE/QemuServer.pm | 11 +-- 1 file changed, 9 insertions(+), 2

[pve-devel] [PATCH qemu-server] add 'flags' property to cpu option

2018-01-09 Thread Wolfgang Bumiller
Currently this only allows specifying '+pcid' or '-pcid' but might be extended in the future. Signed-off-by: Wolfgang Bumiller --- PVE/QemuServer.pm | 14 ++ 1 file changed, 14 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 32bf70d..3e3c

[pve-devel] applied: [PATCH v2 qemu-server] fix efi disk format detection

2018-01-09 Thread Wolfgang Bumiller
applied On Mon, Jan 08, 2018 at 03:25:07PM +0100, Wolfgang Bumiller wrote: > Signed-off-by: Wolfgang Bumiller > Fixes: 2bfbee039bbe ("include format for efidisk") > --- > Changes since v1: > * When the disk was specified as a path instead of as storage:volume >

[pve-devel] applied: [PATCH manager] add PCID checkbox to ProcessorEdit

2018-01-10 Thread Wolfgang Bumiller
applied On Tue, Jan 09, 2018 at 04:27:39PM +0100, Dominik Csapak wrote: > but not in wizard, and default is off > (because we do not know if the cpu supports it) > > Signed-off-by: Dominik Csapak > --- > www/manager6/qemu/CreateWizard.js | 1 + > www/manager6/qemu/ProcessorEdit.js | 20 ++

[pve-devel] applied: [PATCH common 1/2] fork_worker: use correct handle type for POSIX::write

2018-01-10 Thread Wolfgang Bumiller
applied both On Wed, Dec 27, 2017 at 11:15:57AM +0100, Wolfgang Bumiller wrote: > $resfh can be a pipe from POSIX::pipe() or the upid output > handle, which is an IO::File, so we need to take its > fileno(). > > Signed-off-by: Wolfgang Bumiller > Fixes: ed52a8435a6d ("fo

[pve-devel] applied: [PATCH qemu-server 0/1] increase start timeout when hugepages are enabled

2018-01-10 Thread Wolfgang Bumiller
On Tue, Jan 09, 2018 at 06:42:45PM +0100, Alexandre Derumier wrote: > Hugepages can take some time to be allocated by qemu at start (60s for 120G > of 1G hugepages). > This patch increase start timeout to 5min when hugepages are enabled. Applied, but I don't feel too awesome about it. OTOH a heur

[pve-devel] applied: [PATCH qemu-server] qm showcmd: add simple 'pretty' parameter

2018-01-10 Thread Wolfgang Bumiller
applied and added another commit to indent new lines by 2 spaces: - $cmdline =~ s/ -/ \\\n-/g if $param->{pretty}; + $cmdline =~ s/ -/ \\\n -/g if $param->{pretty}; Now I can drop my sed wrapper ;-) On Tue, Jan 09, 2018 at 09:56:28AM +0100, Thomas Lamprecht wrote: > Shows each parame

[pve-devel] applied: [PATCH access-control] fix #1612: give authenticate_user_ldap the realm on second server

2018-01-11 Thread Wolfgang Bumiller
applied On Thu, Jan 11, 2018 at 09:49:31AM +0100, Dominik Csapak wrote: > this was missing and lead to 'use of unitialized value $realm...' > and a not working second server if a bindpw was defined > > Signed-off-by: Dominik Csapak > --- > PVE/Auth/LDAP.pm | 2 +- > 1 file changed, 1 insertion(

[pve-devel] applied: [PATCH manager 1/2] add defaultSize parameter for DiskStorageSelector and set it to 8 for lxc

2018-01-11 Thread Wolfgang Bumiller
applied On Wed, Dec 13, 2017 at 11:34:48AM +0100, Dominik Csapak wrote: > we had it previously on 8GB for containers, but with the refactoring, > this got lost. this patch changes this back > > Signed-off-by: Dominik Csapak > --- > www/manager6/form/DiskStorageSelector.js | 6 +- > www/mana

[pve-devel] applied: [PATCH apiclient v2 1/3] add APIClient/Exception.pm class

2018-01-11 Thread Wolfgang Bumiller
applied ___ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] applied: [PATCH common v2] JSONSchema: add fingerprint-sha256 standard option

2018-01-11 Thread Wolfgang Bumiller
applied On Mon, Jan 08, 2018 at 09:38:52AM +0100, Thomas Lamprecht wrote: > Signed-off-by: Thomas Lamprecht > --- > > changes v1 -> v2: > * remove anchors, their already applied on parsing > * do not allow double colon separation, > Net::SSLeay::X509_get_fingerprint only emits single colon sep

Re: [pve-devel] [PATCH manager] fix #1573: show bootdisk usage on container summary

2018-01-11 Thread Wolfgang Bumiller
On Fri, Jan 05, 2018 at 10:37:38AM +0100, Dominik Csapak wrote: > any comment ? This is fine for running containers, but for stopped containers we should rather remove the percentage & bar again instead of saying it's using 0% of the disk. For CPU/Memory/Swap it makes sense that a stopped containe

Re: [pve-devel] batch migrate : add a optionnal flag to check available memory on target node ?

2018-01-16 Thread Wolfgang Bumiller
On Mon, Jan 15, 2018 at 08:30:33AM +0100, Alexandre DERUMIER wrote: > >>But I thought you want to implement those checks directly in the GUI? > > Well, yes, but I would like to launch the migrateall, after before each > migrate task, do the check if target host have enough memory. > > I don't th

[pve-devel] applied: [PATCH qemu-server 1/2] CPU types: add -IBRS variants

2018-01-16 Thread Wolfgang Bumiller
applied both patches to master & stable-4 On Tue, Jan 16, 2018 at 10:21:41AM +0100, Fabian Grünbichler wrote: > this have the 'spec-ctrl' flag by default to allow IBRS based Spectre > mitigation by the guest kernel. > > Signed-off-by: Fabian Grünbichler > --- > Note: these require pve-qemu-kvm >

[pve-devel] applied: [PATCH qemu-server] CPU flags: add spec-ctrl

2018-01-16 Thread Wolfgang Bumiller
applied to master & stable-4 On Tue, Jan 16, 2018 at 10:06:41AM +0100, Fabian Grünbichler wrote: > to allow VMs to use IBRS/IBPB on systems with patched microcode > > Signed-off-by: Fabian Grünbichler > --- > for master & stable-4, but the latter needs a pve-qemu-kvm backport first > > PVE/Qem

[pve-devel] applied: [PATCH docs] qm: update section about PCID / CPU flags

2018-01-16 Thread Wolfgang Bumiller
applied On Tue, Jan 16, 2018 at 10:06:42AM +0100, Fabian Grünbichler wrote: > Signed-off-by: Fabian Grünbichler > --- > qm.adoc | 60 +++- > 1 file changed, 43 insertions(+), 17 deletions(-) > > diff --git a/qm.adoc b/qm.adoc > index 75617

[pve-devel] applied: [PATCH common v3 0/5] sub command for CLI helper

2018-01-18 Thread Wolfgang Bumiller
applied whole series On Tue, Jan 09, 2018 at 01:25:28PM +0100, Thomas Lamprecht wrote: > v3 of the sub command for CLI series. v2 can be found here: > https://pve.proxmox.com/pipermail/pve-devel/2017-December/029916.html > > This are the remaining, not yet applied, patches from the sub command >

[pve-devel] applied: [PATCH manager v3] correct the upgradecmd for xtermjs

2018-01-18 Thread Wolfgang Bumiller
applied On Wed, Jan 17, 2018 at 10:33:19AM +0100, Dominik Csapak wrote: > use the pveupgrade command directly without bash inbetween, > the incorrect quoting led to '--shell' not being passed to > pveupgrade and closing the connection > > Signed-off-by: Dominik Csapak > --- > changes from v2: >

[pve-devel] applied: [PATCH access-control] compute_api_permissions: a storage has also permissions

2018-01-18 Thread Wolfgang Bumiller
applied On Mon, Jan 15, 2018 at 11:15:54AM +0100, Thomas Lamprecht wrote: > Fixes a problem where a non root@pam system administrator does not > sees the 'Permissions' tab for a storage in our WebUI. > > Fixes commit a2c18811d33d7e09765a7b0f09bba47bc9523822 > > Signed-off-by: Thomas Lamprecht >

[pve-devel] applied: [PATCH common] CLIHandler: use resolved command definition

2018-01-22 Thread Wolfgang Bumiller
applied On Mon, Jan 22, 2018 at 11:00:07AM +0100, Thomas Lamprecht wrote: > For sub commands we resolve the real $cmd, $def and its arguments, > thus we should also get the handler from the resolved $def, not the > global one. > > No change for normal (consisting of only the first argument) > com

[pve-devel] applied: [PATCH pve-common 1/2] read_file: replace $versions->{$filename} with $cver

2018-01-22 Thread Wolfgang Bumiller
applied both patches On Mon, Jan 22, 2018 at 12:12:40PM +0100, Dietmar Maurer wrote: > Signed-off-by: Dietmar Maurer > --- > src/PVE/INotify.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm > index a383040..1e5687b 100644 >

[pve-devel] applied: avoid possible harmful <> pattern when reading from STDIN

2018-01-22 Thread Wolfgang Bumiller
applied all patches On Mon, Jan 22, 2018 at 10:52:10AM +0100, Thomas Lamprecht wrote: > Fixes problems in CLIHandler using the code pattern: > > while (my $line = <>) { > ... > } > > For why this causes only _now_ problems lets first look how <> > behaves: > > "The null filehandle <> is spe

[pve-devel] applied: [PATCH novnc v2 1/2] buildsys: write actual checked out git revision to SOURCE

2018-01-25 Thread Wolfgang Bumiller
applied both patches On Tue, Jan 23, 2018 at 08:19:55AM +0100, Thomas Lamprecht wrote: > --- > > changes v1 -> v2: > * do not export SOURCE_DATE_EPOCH, already done by > /usr/share/dpkg/pkg-info.mk > > Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/Makefi

[pve-devel] applied: [PATCH docs v2] cluster: document multiple clusters in same network

2018-01-25 Thread Wolfgang Bumiller
applied On Thu, Jan 18, 2018 at 09:31:27AM +0100, Thomas Lamprecht wrote: > Signed-off-by: Thomas Lamprecht > --- > > changes v1 -> v2: > * incorporate Fabian's comments (thanks!) > > pvecm.adoc | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/pvecm.adoc b/pvecm.adoc >

[pve-devel] applied: [PATCH docs] qm: improve auto start/stop section

2018-01-25 Thread Wolfgang Bumiller
applied On Wed, Jan 17, 2018 at 09:25:40AM +0100, Thomas Lamprecht wrote: > For VMs we wait 180 seconds (CT sxtill 60, so no need to correct > there) for stop to succeed. Reword and add a few details while > touching this. > > Signed-off-by: Thomas Lamprecht > --- > qm.adoc | 14 --

[pve-devel] applied: [PATCH docs] add link for convenience on adding nodes to separated cluster network

2018-01-25 Thread Wolfgang Bumiller
applied with minor fixup On Tue, Oct 17, 2017 at 02:11:49PM +0200, Alwin Antreich wrote: > Signed-off-by: Alwin Antreich > --- > pvecm.adoc | 4 > 1 file changed, 4 insertions(+) > > diff --git a/pvecm.adoc b/pvecm.adoc > index 36d18c2..11c6849 100644 > --- a/pvecm.adoc > +++ b/pvecm.adoc

[pve-devel] applied: [PATCH container] fix #1618: do not double encode the description

2018-01-25 Thread Wolfgang Bumiller
applied On Tue, Jan 16, 2018 at 03:43:18PM +0100, Dominik Csapak wrote: > we already encode the description in 'write_config', > we do not need to do it here again > > this lead to newlines also to be encoded instead of > splitting the description into lines and decode that > > Signed-off-by: Do

[pve-devel] [PATCH common] net: remove flowid in traffic limit commands

2018-01-29 Thread Wolfgang Bumiller
We don't use them and newer iproute2 doesn't like ':1' as abbreviation for '0:1' apparently. Signed-off-by: Wolfgang Bumiller --- src/PVE/Network.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Network.pm b/src/PVE/Network.pm index

Re: [pve-devel] [PATCH common] net: remove flowid in traffic limit commands

2018-01-29 Thread Wolfgang Bumiller
Forgot to include: Fix #1637 On Mon, Jan 29, 2018 at 10:52:39AM +0100, Wolfgang Bumiller wrote: > We don't use them and newer iproute2 doesn't like ':1' as > abbreviation for '0:1' apparently. > > Signed-off-by: Wolfgang Bumiller > --- >

[pve-devel] [PATCH common] schema: allow ipv6 prefix lengths up to 128

2018-01-29 Thread Wolfgang Bumiller
There's no technical reason for *us* to limit this to 120. Signed-off-by: Wolfgang Bumiller --- src/PVE/JSONSchema.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index c09a9f4..4bc7cbb 100644 --- a/src/PVE/JSONSchema.pm

[pve-devel] applied: [PATCH manager] qemu/Monitor: save the last 20 commands

2018-01-29 Thread Wolfgang Bumiller
applied, despite the lack of tab completion ;-) On Fri, Jan 26, 2018 at 03:25:26PM +0100, Dominik Csapak wrote: > and make them available with the up/down arrow key > > Signed-off-by: Dominik Csapak > --- > www/manager6/qemu/Monitor.js | 45 > > 1 f

[pve-devel] [PATCH 0/3] generic bandwidth limit schema & helper

2018-01-30 Thread Wolfgang Bumiller
This series should be the beginning for bringing some consistency into the whole bandwidth/io/rate limiting we have all over the place (vzdump.conf, replication, migration) and allow creating limits for particular tasks, globally and per-storages, since those are usually affected by eg. long tasks

[pve-devel] [PATCH common] schema: add bwlimit standard option and format

2018-01-30 Thread Wolfgang Bumiller
Signed-off-by: Wolfgang Bumiller --- This is the single place where new task types can be added. Feel free to comment on the ones below. src/PVE/JSONSchema.pm | 36 1 file changed, 36 insertions(+) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm

[pve-devel] [PATCH storage] add Storage::get_bandwidth_limit helper

2018-01-30 Thread Wolfgang Bumiller
without Sys.Modify on / (as they can change datacenter.cfg options via the API). * Storage specific limits apply to users without Datastore.Allocate access on /storage/X for any involved storage X. Signed-off-by: Wolfgang Bumiller --- PVE/Storage.pm | 84

[pve-devel] [PATCH cluster] datacenter.cfg: add bwlimit

2018-01-30 Thread Wolfgang Bumiller
This will define the global defaults which can be overridden by per-storage limits. Signed-off-by: Wolfgang Bumiller --- data/PVE/Cluster.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm index 5fc7d86..b49fd94 100644 --- a/data/PVE/Cluster.pm

[pve-devel] applied: [PATCH v2] improve serial terminal handling

2018-01-30 Thread Wolfgang Bumiller
applied whole series On Fri, Jan 26, 2018 at 11:57:58AM +0100, Dominik Csapak wrote: > this series adds the ability to show serial ports on the gui, > and disabling the xtermjs button when no serial device exists for the vm > > changes from v1: > * rebase on current master > * changed icon to tho

Re: [pve-devel] [PATCH] PVE/API2/LXC.pm ssh-public-keys alias

2018-01-31 Thread Wolfgang Bumiller
On Wed, Jan 31, 2018 at 12:14:43AM +0100, Geert Stappers wrote: > Parameter name 'ssh-public-keys' causes trouble > when written as ssh-public-keys. Because it can read as > arthmetic expression ssh minus public minus keys. Just put quotes around it (and/or encode it properly depending on what you

[pve-devel] applied: [PATCH manager] fix #1635: correctly change maxIds in ControllerSelector in wizard

2018-01-31 Thread Wolfgang Bumiller
On Tue, Jan 30, 2018 at 10:34:14AM +0100, Dominik Csapak wrote: > we want to change the maxIds value even when not rendered, since > in the wizard, the controller can change from a different panel in the > tabpanel > > Signed-off-by: Dominik Csapak > --- > www/manager6/form/ControllerSelector.js

[pve-devel] applied: [PATCH container 1/2] remove transitional pve-update-lxc-config script (PVE 4 beta era)

2018-01-31 Thread Wolfgang Bumiller
applied both patches On Thu, Jan 25, 2018 at 01:56:55PM +0100, Thomas Lamprecht wrote: > Short nack history: > In PVE 4 Beta we introduced LXC as our new container technology. > Initially we did not used the our section config format for its > configuration file in /etc/pve . It was then decided

[pve-devel] applied: [PATCH manager 1/2] fix #1631: change units to binary prefix

2018-01-31 Thread Wolfgang Bumiller
applied both patches On Thu, Jan 25, 2018 at 03:55:10PM +0100, Dominik Csapak wrote: > we always expected MiB/GiB but labeled them incorrectly > > Signed-off-by: Dominik Csapak > --- > www/manager6/form/DiskStorageSelector.js | 2 +- > www/manager6/lxc/MPResize.js | 2 +- > www/mana

[pve-devel] [PATCH v2 storage] add Storage::get_bandwidth_limit helper

2018-02-01 Thread Wolfgang Bumiller
without Sys.Modify on / (as they can change datacenter.cfg options via the API). * Storage specific limits apply to users without Datastore.Allocate access on /storage/X for any involved storage X. Signed-off-by: Wolfgang Bumiller --- Changes to v1: - Paremter order switched - A limit of 0

[pve-devel] applied: [PATCH common] net: remove flowid in traffic limit commands

2018-02-05 Thread Wolfgang Bumiller
applied On Mon, Jan 29, 2018 at 10:52:39AM +0100, Wolfgang Bumiller wrote: > We don't use them and newer iproute2 doesn't like ':1' as > abbreviation for '0:1' apparently. > > Signed-off-by: Wolfgang Bumiller > --- > src/PVE/Network.pm | 2

Re: [pve-devel] [PATCH common] schema: allow ipv6 prefix lengths up to 128

2018-02-05 Thread Wolfgang Bumiller
applied On Mon, Jan 29, 2018 at 03:07:48PM +0100, Wolfgang Bumiller wrote: > There's no technical reason for *us* to limit this to 120. > > Signed-off-by: Wolfgang Bumiller > --- > src/PVE/JSONSchema.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) &g

Re: [pve-devel] [PATCH 0/3] generic bandwidth limit schema & helper

2018-02-05 Thread Wolfgang Bumiller
applied with v2 of the storage patch Whether and how more fine grained control will be added is still to be decided (eg. when the same storage has a different performance on different cluster nodes). On Tue, Jan 30, 2018 at 04:34:39PM +0100, Wolfgang Bumiller wrote: > This series should be

[pve-devel] applied: [RFC V2 qemu-server] Make the smbios UUID unique if --unique is used.

2018-02-05 Thread Wolfgang Bumiller
applied On Thu, Feb 01, 2018 at 02:51:05PM +0100, Wolfgang Link wrote: > When we clone a VM we also make the smbios unique. > --- > [RFC V2] > Change only uuid and not the hole smbios string. > > PVE/QemuServer.pm | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/PVE/QemuServer.pm

[pve-devel] [PATCH container] restore: support i/o rate limiting

2018-02-06 Thread Wolfgang Bumiller
Signed-off-by: Wolfgang Bumiller --- src/PVE/API2/LXC.pm | 16 +++- src/PVE/LXC/Create.pm | 12 +++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 733826e..c49cf4f 100644 --- a/src/PVE/API2/LXC.pm +++ b/src

[pve-devel] [PATCH qemu-server] restore: support i/o rate limiting

2018-02-06 Thread Wolfgang Bumiller
Signed-off-by: Wolfgang Bumiller --- This required some refactoring of and currently only handles VMA archives (wanted to get this out first). Note that this means we need to extract the config via `vma config ...` first which of course means this cannot apply to archives coming from a pipe (but

[pve-devel] [PATCH common] replace brctl with iproute2 calls

2018-02-07 Thread Wolfgang Bumiller
And add a few helpers for the common cases. Signed-off-by: Wolfgang Bumiller --- This has been on my todo list for a while and as an extra 'iface_set_master' is not specific to bridges but can also be used with eg. vrf devices ;-) (Note that to test vrf devices you need to set its m

[pve-devel] applied: [PATCH container] buildsys: actually save git revision

2018-02-07 Thread Wolfgang Bumiller
applied On Wed, Feb 07, 2018 at 10:38:00AM +0100, Thomas Lamprecht wrote: > ${GITVERSION} is empty else. > > Signed-off-by: Thomas Lamprecht > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 550713d..85855ce 100644 > --- a/Mak

[pve-devel] applied: [PATCH qemu 0/1] fix qemu 2.9 drive mirroring to nbd target

2018-02-08 Thread Wolfgang Bumiller
applied, thanks They could have cherry-picked the two function-rename & error handling commits in between, then they wouldn't have had to resolve the conflicts they had to resolve ;-) (wouldn't have saved them from auditing the result though, so I guess it doesn't matter much, but for future fixup

Re: [pve-devel] is pve-qemu upgrade planned soon ?

2018-02-08 Thread Wolfgang Bumiller
I already rebased the patches but we didn't get around to doing much testing yet. You can find the branches on my github if you want to get a jump on it: https://github.com/Blub/qemu pve-next (qemu-2.11 pve patch set on top) https://github.com/Blub/qemu pve-next-patched (above with the extra/ patc

Re: [pve-devel] applied: [PATCH qemu-server 1/3] correct description of disks 'snapshot' flag

2018-02-08 Thread Wolfgang Bumiller
applied the other two of the series, but replaced this one with: - description => "Whether the drive should be included when making snapshots.", + description => "Controls qemu's snapshot mode feature." + . " If activated, changes made to the disk are temporary and will" +

[pve-devel] [PATCH storage] bwlimit: apply limits when there's no override

2018-02-09 Thread Wolfgang Bumiller
e the configured limits). Signed-off-by: Wolfgang Bumiller --- PVE/Storage.pm| 13 test/run_bwlimit_tests.pl | 75 ++- 2 files changed, 56 insertions(+), 32 deletions(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 995ebd3..1

Re: [pve-devel] applied: [PATCH v2] mixin/CBind: allow binding sub elements

2018-02-09 Thread Wolfgang Bumiller
applied On Fri, Feb 09, 2018 at 08:28:34AM +0100, Thomas Lamprecht wrote: > allow to access sub elements of configuration items for binding. > > E.g., if the following configuration is present: > > foo: { > bar: true > } > > one could do: > > xtype: 'displayfield', > cbind { > value: '

Re: [pve-devel] [PATCH v2 qemu-server 1/1] migrate cache-size : power of 2

2018-02-12 Thread Wolfgang Bumiller
On Mon, Feb 12, 2018 at 09:27:07AM +0100, Alexandre Derumier wrote: > +sub round_powerof2 { Please just use: return 1 if $_[0] < 2; return 2 << int(log($_[0]-1)/log(2)); > + local $_ = (shift)-1; > + my $num = (2**int(log($_)/log(2)))-1; > + return ++($_ |= $num); This ties knots into my

[pve-devel] [PATCH v2 qemu-server] restore: implement rate limiting

2018-02-15 Thread Wolfgang Bumiller
Signed-off-by: Wolfgang Bumiller --- This version avoids the refactoring and double-reading of the VMA file, thereby supporting reading from a pipe again. Instead this now uses an extension to vma extract (see the other patch), and instead of picking the lowest limit altogether, applies limits to

[pve-devel] [PATCH qemu] vma: add throttling options to drive mapping fifo protocol

2018-02-15 Thread Wolfgang Bumiller
Signed-off-by: Wolfgang Bumiller --- vma.c | 82 +++ 1 file changed, 73 insertions(+), 9 deletions(-) diff --git a/vma.c b/vma.c index 04915427c8..91ae14cdc3 100644 --- a/vma.c +++ b/vma.c @@ -18,7 +18,9 @@ #include "qemu-com

[pve-devel] [PATCH qemu-server] start: always stop an existing $vmid.scope

2018-02-16 Thread Wolfgang Bumiller
Checking for the cgroup directory is a kind of time-of-check time-of-use race condition stop-mode backups seem to occasionally run into on some systems. Signed-off-by: Wolfgang Bumiller --- PVE/QemuServer.pm | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/PVE

[pve-devel] applied: [PATCH manager] pveversion: use AptPkg::Version, not Dpkg::Version

2018-02-16 Thread Wolfgang Bumiller
applied On Fri, Feb 16, 2018 at 02:58:10PM +0100, Fabian Grünbichler wrote: > to avoid an extra dependency > > Signed-off-by: Fabian Grünbichler > --- > PVE/API2/APT.pm | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/PVE/API2/APT.pm b/PVE/API2/APT.pm > index 1199c

Re: [pve-devel] cloudinit for proxmox 5 v3

2018-02-19 Thread Wolfgang Bumiller
On Thu, Jul 27, 2017 at 05:06:33PM +0200, Alexandre Derumier wrote: > Now that proxmox 5.0 is launched, maybe can we try to target cloudinit for > 5.1 ? We'd like to move forward with this. I rebased this patch set again (available at https://github.com/Blub/pve-qemu-server cloudinit branch). Th

[pve-devel] applied: [PATCH v3 qemu-server 1/1] migrate cache-size : power of 2

2018-02-22 Thread Wolfgang Bumiller
applied, thanks On Tue, Feb 13, 2018 at 08:51:15AM +0100, Alexandre Derumier wrote: > qemu 2.11 need a power of 2 cache size. > > " > Parameter 'xbzrle_cache_size' expects is invalid, > it should be bigger than target page size and a power of two > " > > roundup to near power of 2 value > --- >

[pve-devel] applied: [PATCH docs 1/2] export and respect SOURCE_DATE_EPOCH

2018-02-22 Thread Wolfgang Bumiller
applied both patches On Tue, Feb 20, 2018 at 11:10:24AM +0100, Fabian Grünbichler wrote: > to improve reproducibility of pve-docs, pve-doc-generator and > pve-doc-mediawiki builds, as well as man pages generated by > pve-doc-generator when called via dpkg-buildpackage. > > timestamps embedded in

[pve-devel] [PATCH v2 qemu-server] restore: implement rate limiting

2018-02-22 Thread Wolfgang Bumiller
Signed-off-by: Wolfgang Bumiller --- Changes (addressed comments from dominik): * bwlimit is now an integer, now sure if this is really better, but sub-kB/s accuracy seems rather useless here * handle undef when going through storage limits PVE/API2/Qemu.pm | 11 +++- PVE/CLI

[pve-devel] [PATCH v4 qemu-server 02/10] parse_vm_config: allow spaces in values

2018-03-01 Thread Wolfgang Bumiller
This time we can't avoid it: nameservers are listed with separating spaces in LXC and we want to stay consistent and use the same format in qemu. --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index fb36584..8342f87 1

[pve-devel] [PATCH v4 qemu-server 09/10] cloud-init: clone/move support

2018-03-01 Thread Wolfgang Bumiller
move: don't error out with "you can't move a cdrom" clone: always full-clone cloud-init images They get completely replaced anyway at the next start, so there's no point in keeping them. Signed-off-by: Wolfgang Bumiller --- PVE/API2/Qemu.pm | 6 +++--

[pve-devel] [PATCH v4 qemu-server 06/10] cloud-init: don't add cloudinit isos as 'unused'

2018-03-01 Thread Wolfgang Bumiller
They're regenerated anyway as needed. --- PVE/QemuServer.pm | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 95ebb97..319c6a6 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2057,7 +2057,10 @@ sub vmconfig_undelete_pe

[pve-devel] [PATCH v4 qemu-server 07/10] cloud-init: hotplug support

2018-03-01 Thread Wolfgang Bumiller
*) always replace old cloudinit images *) apply pending cloudinit changes when generating a new image For cloudinit we now always use vdisk_free before vdisk_alloc in order to always replace old images, this allows us to hotplug a new drive by setting it to `none,media=cdrom` first (to eject the d

[pve-devel] [PATCH v4 qemu-server 01/10] buildsys: use git rev-parse HEAD for GITVERSION

2018-03-01 Thread Wolfgang Bumiller
Signed-off-by: Wolfgang Bumiller --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1db06ec..4037c3c 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ export PERLDIR=${PREFIX}/share/perl5 PERLINCDIR=${PERLDIR}/asm-x86_64 ARCH

[pve-devel] [PATCH common] CLI/RESTHandler: more generic parameter mapping

2018-03-01 Thread Wolfgang Bumiller
Signed-off-by: Wolfgang Bumiller --- Used in the cloud-init patch set. src/PVE/CLIHandler.pm | 14 -- src/PVE/RESTHandler.pm | 38 -- 2 files changed, 32 insertions(+), 20 deletions(-) diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm

[pve-devel] [PATCH v4 qemu-server 05/10] cloud-init: delete cloudinit images as if they weren't cdroms

2018-03-01 Thread Wolfgang Bumiller
--- PVE/QemuServer.pm | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 172dd5f..95ebb97 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -45,6 +45,8 @@ my $qemu_snap_storage = {rbd => 1, sheepdog => 1}; my $cpu

[pve-devel] [PATCH v4 qemu-server 04/10] cloud-init: use qemu-img dd instead of nbd

2018-03-01 Thread Wolfgang Bumiller
We now have a patch on top of qemu to allow 'qemu-img dd' to read from stdin when specifying input and output sizes, as well as a way to tell it that the size of the source is not known. Signed-off-by: Wolfgang Bumiller --- PVE/QemuServer/Cloudinit.pm | 32 +

[pve-devel] [PATCH v4 qemu-server 03/10] implement cloudinit

2018-03-01 Thread Wolfgang Bumiller
From: Alexandre Derumier Signed-off-by: Alexandre Derumier Co-developed-by: Wolfgang Bumiller --- PVE/API2/Qemu.pm| 39 +- PVE/QemuServer.pm | 124 -- PVE/QemuServer/Cloudinit.pm | 180 PVE

[pve-devel] [PATCH v4 qemu-server 10/10] cloud-init: nocloud image support

2018-03-01 Thread Wolfgang Bumiller
s mac addresses. Ideally we'd use version 2, but debian stretch ships with a too old cloud-init for this, so for now we're writing version 1. Signed-off-by: Wolfgang Bumiller --- PVE/QemuServer.pm | 6 + PVE/QemuServer/Cloudinit.pm | 376 -

[pve-devel] [PATCH v4 qemu-server 00/10] Cloud-init rebased/updated

2018-03-01 Thread Wolfgang Bumiller
implement cloudinit Wolfgang Bumiller (9): buildsys: use git rev-parse HEAD for GITVERSION parse_vm_config: allow spaces in values cloud-init: use qemu-img dd instead of nbd cloud-init: delete cloudinit images as if they weren't cdroms cloud-init: don'

[pve-devel] [PATCH v4 qemu-server 08/10] cloud-init: sshkeys are now files on the CLI

2018-03-01 Thread Wolfgang Bumiller
This requires a pve-common patch since we need to not only load the file but also url-encode it. Signed-off-by: Wolfgang Bumiller --- PVE/CLI/qm.pm | 15 +++ 1 file changed, 15 insertions(+) diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm index d33b949..3347612 100755 --- a/PVE/CLI

[pve-devel] applied: [PATCH lxc 0/3] AppArmor feature set pinning

2018-03-05 Thread Wolfgang Bumiller
applied On Mon, Mar 05, 2018 at 12:34:03PM +0100, Fabian Grünbichler wrote: > this patch series adds a 4.13.13-6-pve compatible AA feature set to the > lxc-pve > package, replacing the one contained in apparmor >= 2.11.0-3+deb9u2 via > dpkg-divert. the latter pins AA features to those offered by

Re: [pve-devel] [PATCH v4 qemu-server 03/10] implement cloudinit

2018-03-05 Thread Wolfgang Bumiller
On Tue, Mar 06, 2018 at 07:16:32AM +0100, Dietmar Maurer wrote: > > > use PVE::Cluster qw (cfs_read_file cfs_write_file);; > > use PVE::SafeSyslog; > > @@ -64,7 +65,9 @@ my $check_storage_access = sub { > > > > my $volid = $drive->{file}; > > > > - if (!$volid || $volid eq 'none') { >

[pve-devel] applied: [PATCH V2 pve-common 0/6] CLI/RESTHandler: more generic parameter mapping

2018-03-05 Thread Wolfgang Bumiller
applied On Fri, Mar 02, 2018 at 12:37:17PM +0100, Dietmar Maurer wrote: > Changes since V1: > - split patch into smaller parts > - new helper $compute_param_mapping_hash() > - improve parameter names > - add some inline docs > > Besides, functionality should be still the same. > > > Dietmar Mau

[pve-devel] applied: [PATCH container] seperate serachdomain and nameserver config

2018-03-07 Thread Wolfgang Bumiller
applied, will add the same behavior to cloud-init On Tue, Mar 06, 2018 at 11:08:04AM +0100, Dominik Csapak wrote: > until now, if either searchdomain or nameservers was not set, > we used the values from the host. > > it would make sense, to set this individually (e.g. only use a > different sear

[pve-devel] [PATCH firewall] check multiport limit in port ranges

2018-03-08 Thread Wolfgang Bumiller
Signed-off-by: Wolfgang Bumiller --- src/PVE/Firewall.pm | 8 1 file changed, 8 insertions(+) diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm index 2feac54..f8d6009 100644 --- a/src/PVE/Firewall.pm +++ b/src/PVE/Firewall.pm @@ -1030,6 +1030,7 @@ sub

<    1   2   3   4   5   6   7   8   9   10   >