Re: [pve-devel] [PATCH pve-docs] Close #1623: replace apt-get to apt

2020-07-06 Thread Oguz Bektas
hi, what about the 'dist-upgrade' occurences? should these also be replaced by 'full-upgrade' for completeness sake? On Mon, Jul 06, 2020 at 01:38:29PM +0200, Moayad Almalat wrote: > Signed-off-by: Moayad Almalat > --- > api-viewer/apidata.js| 8 > local-zfs.adoc

Re: [pve-devel] [RFC v2 0/3] nvme emulation

2020-07-06 Thread Oguz Bektas
hi, the email i've sent to qemu-discuss list to ask about this issue while reattaching a drive with the same id has gone unanswered... how do we want to proceed with this feature? maybe we can fix this issue or workaround it somehow? On Mon, May 18, 2020 at 05:34:01PM +0200, Oguz Bektas

Re: [pve-devel] [PATCH widget-toolkit 2/4] add TimezonePanel for containers

2020-07-06 Thread Oguz Bektas
hi, > + > > + if (deletes.length) { > > + values.delete = deletes.join(','); > > + } > > + > > + return values; > > +}, > > + > > + > > +initComponent: function() { > > + var me = this; > > + > > + var items = []; > > how's that not just a static > items: [ > { ... },

[pve-devel] [PATCH v3 0/4] timezones for containers

2020-07-02 Thread Oguz Bektas
v3 of the timezone series. since pve-common patch has already been applied, it's not included. only the widget-toolkit patch is different than v2. v2->v3: * use radiofield in widget-toolkit proxmox-widget-toolkit: Oguz Bektas (1): add TimezonePanel for containers src/

[pve-devel] [PATCH v3 container 1/4] fix #1423: add timezone config option

2020-07-02 Thread Oguz Bektas
ime symlink from the host node will be cached and set in the container rootfs. Signed-off-by: Oguz Bektas --- v2->v3: no change src/PVE/LXC/Config.pm | 14 ++ src/PVE/LXC/Setup.pm | 13 + src/PVE/LXC/Setup/Base.pm | 33 ++--- 3 f

[pve-devel] [PATCH manager 3/4] add timezone setting to lxc options

2020-07-02 Thread Oguz Bektas
this allows us to set the timezone of a container in the options menu. Signed-off-by: Oguz Bektas --- v2->v3: no change www/manager6/lxc/Options.js | 13 + 1 file changed, 13 insertions(+) diff --git a/www/manager6/lxc/Options.js b/www/manager6/lxc/Options.js index 40bde

[pve-devel] [PATCH manager 4/4] add timezone option to container creation wizard

2020-07-02 Thread Oguz Bektas
renames the 'DNS' step to 'DNS / Time' and allows one to set the timezone of the container during setup. Signed-off-by: Oguz Bektas --- v2->v3: no change www/manager6/lxc/CreateWizard.js | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff -

[pve-devel] [PATCH widget-toolkit 2/4] add TimezonePanel for containers

2020-07-02 Thread Oguz Bektas
with 3 modes; - CT managed (no action) - match host (use same timezone as host) - select from list also move 'UTC' to the top of the TimezoneStore for convenience Signed-off-by: Oguz Bektas --- v2->v3: * use radiofields src/Makefile | 1 + src/data/TimezoneS

[pve-devel] [PATCH v3 container] fix #2820: don't hotplug over existing mpX

2020-07-02 Thread Oguz Bektas
check if the given mpX already exists in the config. if it does, then skip hotplugging and write the changes to [pve:pending] for the next reboot of CT. after rebooting the CT, the preexisting mpX will be added as unused and the mpX will be mounted. Signed-off-by: Oguz Bektas --- src/PVE/LXC

Re: [pve-devel] [PATCH container] fix #2820: block adding new volume with same id if it's pending delete

2020-07-01 Thread Oguz Bektas
fabian's variant can be done like this: --- diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm index 0a28380..ba5e548 100644 --- a/src/PVE/LXC/Config.pm +++ b/src/PVE/LXC/Config.pm @@ -1248,6 +1248,9

[pve-devel] [PATCH v2 container] fix #2820: block adding new volume with same id if it's pending delete

2020-07-01 Thread Oguz Bektas
if a user tries to add a mountpoint mpX which is waiting for a pending delete, hotplugging a new mountpoint with name mpX before the previous one is detached should not be allowed. do a simple check to see if the given mpX is already in the pending delete section. Signed-off-by: Oguz Bektas

Re: [pve-devel] [PATCH v2 0/5] timezones for containers

2020-06-30 Thread Oguz Bektas
hi, is anyone reviewing this patch? On Wed, Jun 17, 2020 at 03:32:28PM +0200, Oguz Bektas wrote: > this patch series implements the 'timezone' option for containers. > > more detailed info is in the commit messages. > > v1->v2: > > * don't us

[pve-devel] [PATCH container] fix #2820: block adding new volume with same id if it's pending delete

2020-06-30 Thread Oguz Bektas
do a simple check to see if our $opt is already in the delete section. Signed-off-by: Oguz Bektas --- src/PVE/LXC/Config.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm index 0a28380..237e2e5 100644 --- a/src/PVE/LXC/Config.pm +++ b/src

[pve-devel] [PATCH v2 manager] fix #2810: reset state properly when editing mount features of containers

2020-06-22 Thread Oguz Bektas
initializing 'mounts' array in the panel scope causes edits on subsequent containers to get the values (mount=nfs) from the previous container. fix this by initializing the 'mounts' array in 'onGetValues' and 'setValues' separately. Signed-of

[pve-devel] [PATCH manager] fix #2810: don't add options multiple times to features property

2020-06-22 Thread Oguz Bektas
instead of unconditionally pushing to the 'mounts' array we need to check if we already have the option in there. without this, we get config options like: features: nfs;nfs;nfs Signed-off-by: Oguz Bektas --- www/manager6/lxc/FeaturesEdit.js | 2 +- 1 file changed, 1 insertion(+),

[pve-devel] [PATCH container] fix #2778: use vm_start instead of systemctl to start/restart container

2020-06-18 Thread Oguz Bektas
being executed in 'pre-start' and 'post-start'. to call the hooks correctly we can just make use of the PVE::LXC::vm_start routine which already handles them. Signed-off-by: Oguz Bektas --- src/PVE/VZDump/LXC.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[pve-devel] [PATCH v2 manager 5/5] add timezone option to container creation wizard

2020-06-17 Thread Oguz Bektas
renames the 'DNS' step to 'DNS / Time' and allows one to set the timezone of the container during setup. Signed-off-by: Oguz Bektas --- v1->v2: no changes www/manager6/lxc/CreateWizard.js | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff -

[pve-devel] [PATCH v2 container 2/5] fix #1423: add timezone config option

2020-06-17 Thread Oguz Bektas
ime symlink from the host node will be cached and set in the container rootfs. Signed-off-by: Oguz Bektas --- v1->v2: * s/zone1970/zone/ * use 'pve-ct-timezone' format instead of 'timezone' format directly * avoid IO if target is already set to correct zone * create a tmpf

[pve-devel] [PATCH v2 0/5] timezones for containers

2020-06-17 Thread Oguz Bektas
it according to \t while doing the comparison) * add thomas' suggestions about atomic move on tmpfile before doing symlink * add 'pve-ct-timezone' format in pve-container to special-case the 'host' setting without breaking 'timezone' format in pve-common for more ge

[pve-devel] [PATCH v2 widget-toolkit 3/5] add TimezonePanel for containers

2020-06-17 Thread Oguz Bektas
with 3 modes; - CT managed (no action) - match host (use same timezone as host) - select from list also move 'UTC' to the top of the TimezoneStore for convenience Signed-off-by: Oguz Bektas --- v1->v2: no changes src/Makefile | 1 + src/data/TimezoneStore.js

[pve-devel] [PATCH v2 common 1/5] jsonschema: register 'timezone' format and add verification method

2020-06-17 Thread Oguz Bektas
/usr/share/zoneinfo/zone.tab has the valid list of time zones. Signed-off-by: Oguz Bektas --- v1->v2: * don't use array for verifying format src/PVE/JSONSchema.pm | 19 +++ 1 file changed, 19 insertions(+) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.

[pve-devel] [PATCH v2 manager 4/5] add timezone setting to lxc options

2020-06-17 Thread Oguz Bektas
this allows us to set the timezone of a container in the options menu. Signed-off-by: Oguz Bektas --- v1->v2: no changes www/manager6/lxc/Options.js | 13 + 1 file changed, 13 insertions(+) diff --git a/www/manager6/lxc/Options.js b/www/manager6/lxc/Options.js index 40bde

Re: [pve-devel] [PATCH container 2/5] fix #1423: add timezone config option

2020-06-17 Thread Oguz Bektas
hi, On Tue, Jun 16, 2020 at 04:45:34PM +0200, Thomas Lamprecht wrote: > Am 6/16/20 um 3:36 PM schrieb Oguz Bektas: > > optionally enabled. > > > > adds the 'timezone' option to config, which takes a valid timezone (i.e. > > Europe/Vienna) to set in the conta

Re: [pve-devel] [PATCH common 1/5] jsonschema: register 'timezone' format and add verification method

2020-06-17 Thread Oguz Bektas
hi, On Tue, Jun 16, 2020 at 04:28:05PM +0200, Thomas Lamprecht wrote: > Am 6/16/20 um 3:36 PM schrieb Oguz Bektas: > > /usr/share/zoneinfo/zone.tab has the valid list of time zones. > > > > Signed-off-by: Oguz Bektas > > --- > > src/PVE/JSONSchema.pm | 24 +++

[pve-devel] [PATCH common 1/5] jsonschema: register 'timezone' format and add verification method

2020-06-16 Thread Oguz Bektas
/usr/share/zoneinfo/zone.tab has the valid list of time zones. Signed-off-by: Oguz Bektas --- src/PVE/JSONSchema.pm | 24 1 file changed, 24 insertions(+) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 84fb694..ff97a3d 100644 --- a/src/PVE

[pve-devel] [PATCH widget-toolkit 3/5] add TimezonePanel for containers

2020-06-16 Thread Oguz Bektas
with 3 modes; - CT managed (no action) - match host (use same timezone as host) - select from list also move 'UTC' to the top of the TimezoneStore for convenience Signed-off-by: Oguz Bektas --- src/Makefile | 1 + src/data/TimezoneStore.js | 2 +- src/panel/Timezo

[pve-devel] [PATCH container 2/5] fix #1423: add timezone config option

2020-06-16 Thread Oguz Bektas
ime symlink from the host node will be cached and set in the container rootfs. Signed-off-by: Oguz Bektas --- src/PVE/LXC/Config.pm | 5 + src/PVE/LXC/Setup.pm | 13 + src/PVE/LXC/Setup/Base.pm | 28 +--- 3 files changed, 43 insertions(+), 3 dele

[pve-devel] [PATCH 0/5] timezones for containers

2020-06-16 Thread Oguz Bektas
this patch series implements the 'timezone' option for containers. more detailed info is in the commit messages. pve-common: Oguz Bektas (1): jsonschema: register 'timezone' format and add verification method src/PVE/JSONSchema.pm | 24

[pve-devel] [PATCH manager 4/5] add timezone setting to lxc options

2020-06-16 Thread Oguz Bektas
this allows us to set the timezone of a container in the options menu. Signed-off-by: Oguz Bektas --- www/manager6/lxc/Options.js | 13 + 1 file changed, 13 insertions(+) diff --git a/www/manager6/lxc/Options.js b/www/manager6/lxc/Options.js index 40bde35f..f6e457a3 100644 --- a

[pve-devel] [PATCH manager 5/5] add timezone option to container creation wizard

2020-06-16 Thread Oguz Bektas
renames the 'DNS' step to 'DNS / Time' and allows one to set the timezone of the container during setup. Signed-off-by: Oguz Bektas --- www/manager6/lxc/CreateWizard.js | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/www/manager6/lxc/C

[pve-devel] [PATCH container] fix #1423: set container timezone to match host in post-create

2020-05-28 Thread Oguz Bektas
we cache the /etc/localtime symlink path from the node and set it in the container rootfs if zone file exists in the container Signed-off-by: Oguz Bektas --- src/PVE/LXC/Setup.pm | 3 +++ src/PVE/LXC/Setup/Base.pm | 20 +--- 2 files changed, 20 insertions(+), 3 deletions

[pve-devel] [PATCH v2 container] fix #2655: don't forget to setup securetty for centos >= 7

2020-05-25 Thread Oguz Bektas
in template_fixup we only call this method for version < 7, but greater versions also need to allow lxc/tty[N] as secure. Signed-off-by: Oguz Bektas --- v1->v2: * call setup_securetty unconditionally src/PVE/LXC/Setup/CentOS.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)

Re: [pve-devel] [PATCH container] fix #2655: don't forget to setup securetty for centos >= 7

2020-05-25 Thread Oguz Bektas
On Mon, May 25, 2020 at 02:24:34PM +0200, Thomas Lamprecht wrote: > On 5/25/20 2:15 PM, Oguz Bektas wrote: > > in template_fixup we only call this method for version < 7, but greater > > versions also need to allow lxc/tty[N] as secure. > > > > Signed-off-by: Oguz Be

[pve-devel] [PATCH container] fix #2655: don't forget to setup securetty for centos >= 7

2020-05-25 Thread Oguz Bektas
in template_fixup we only call this method for version < 7, but greater versions also need to allow lxc/tty[N] as secure. Signed-off-by: Oguz Bektas --- src/PVE/LXC/Setup/CentOS.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PVE/LXC/Setup/CentOS.pm b/src/PVE/

[pve-devel] [PATCH v2 manager 3/3] gui: add nvme as a bus type for creating disks

2020-05-18 Thread Oguz Bektas
Signed-off-by: Oguz Bektas --- www/manager6/Utils.js | 3 ++- www/manager6/form/BusTypeSelector.js| 2 ++ www/manager6/form/ControllerSelector.js | 4 ++-- www/manager6/qemu/CloudInit.js | 4 ++-- www/mobile/QemuSummary.js | 2 +- 5 files changed, 9

[pve-devel] [RFC v2 qemu-server 1/3] fix #2255: add support for nvme emulation

2020-05-18 Thread Oguz Bektas
always be increased without breaking anything (although the same isn't valid for decreasing it). Signed-off-by: Oguz Bektas --- v1->v2: * serial can be configured by user * add missing "id=drive-nvme[X]" in the device string, without this we can't unplug at a

[pve-devel] [PATCH v2 qemu-server 2/3] drive: use more compact for-loop expression for initializing drive descriptions

2020-05-18 Thread Oguz Bektas
Signed-off-by: Oguz Bektas --- PVE/QemuServer/Drive.pm | 25 ++--- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/PVE/QemuServer/Drive.pm b/PVE/QemuServer/Drive.pm index b8a553a..5dc5508 100644 --- a/PVE/QemuServer/Drive.pm +++ b/PVE/QemuServer/Drive.pm

[pve-devel] [RFC v2 0/3] nvme emulation

2020-05-18 Thread Oguz Bektas
ll work however... i'm not sure why this happens, something in qemu isn't being deleted after removing the device/drive, but `info qtree` and `info qom-tree` do not show nvme4 after being unplugged. qemu-server: Oguz Bektas (2): fix #2255: add support for nvme emulation

Re: [pve-devel] [PATCH qemu-server 1/2] add support for nvme emulation

2020-05-14 Thread Oguz Bektas
hi, On Thu, May 14, 2020 at 09:27:31AM +0200, Thomas Lamprecht wrote: > > please always include the bug/feature # somewhere as reference, e.g. a > "fix #2255: ..." ideally in the subject, or at least in the commit message > would be good. will do for v2 > > On

[pve-devel] [PATCH 0/2] nvme emulation

2020-05-13 Thread Oguz Bektas
add nvme emulation support for disks. qemu-server: Oguz Bektas (1): add support for nvme emulation PVE/QemuServer.pm | 20 +--- PVE/QemuServer/Drive.pm | 21 + 2 files changed, 38 insertions(+), 3 deletions(-) pve-manager: Oguz Bektas (1): gui

[pve-devel] [PATCH manager 2/2] gui: add nvme as a bus type for creating disks

2020-05-13 Thread Oguz Bektas
add nvme to the bus list and relevant spots in gui Signed-off-by: Oguz Bektas --- www/manager6/Utils.js | 3 ++- www/manager6/form/BusTypeSelector.js| 2 ++ www/manager6/form/ControllerSelector.js | 4 ++-- www/manager6/qemu/.Snapshot.js.swp | Bin 0 -> 12

[pve-devel] [PATCH qemu-server 1/2] add support for nvme emulation

2020-05-13 Thread Oguz Bektas
now we can add nvme drives; nvme0: local-lvm:vm-103-disk-0,size=32G max number is 8 Signed-off-by: Oguz Bektas --- PVE/QemuServer.pm | 20 +--- PVE/QemuServer/Drive.pm | 21 + 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/PVE

[pve-devel] [PATCH aab] add vi and nano to base template

2020-05-08 Thread Oguz Bektas
Signed-off-by: Oguz Bektas --- PVE/AAB.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PVE/AAB.pm b/PVE/AAB.pm index 405841b..6620ac8 100644 --- a/PVE/AAB.pm +++ b/PVE/AAB.pm @@ -11,8 +11,7 @@ use IPC::Open2; use IPC::Open3; use UUID; use Cwd; - -my @BASE_PACKAGES

[pve-devel] [PATCH container] implement CT reinstall option for restore

2020-04-01 Thread Oguz Bektas
the given template (different distros can be chosen as well, f.e. existing alpine container reinstalled as archlinux). password or ssh key is required for this, since it calls setup routines like post_create_hook (otherwise we won't be able to log-in to CT). Signed-off-by: Oguz Bektas --- src/

Re: [pve-devel] [PATCH v2 qemu-server 5/5] hotplug_pending: allow partial fast plugging

2020-03-12 Thread Oguz Bektas
On Thu, Mar 12, 2020 at 02:18:07PM +0100, Thomas Lamprecht wrote: > On 3/12/20 2:11 PM, Oguz Bektas wrote: > > On Tue, Mar 10, 2020 at 11:25:23AM +0100, Thomas Lamprecht wrote: > >> On 2/19/20 5:07 PM, Oguz Bektas wrote: > >>> adds a loop after the main fastplu

Re: [pve-devel] [PATCH v2 qemu-server 5/5] hotplug_pending: allow partial fast plugging

2020-03-12 Thread Oguz Bektas
hi, On Tue, Mar 10, 2020 at 11:25:23AM +0100, Thomas Lamprecht wrote: > On 2/19/20 5:07 PM, Oguz Bektas wrote: > > adds a loop after the main fastplug loop, to check if any of the options > > are partially fast pluggable. > > > > these are defined in $partial_fast_

[pve-devel] [PATCH] slirp: re-add security patches

2020-03-12 Thread Oguz Bektas
the first two patches were mistakenly left out during the 4.2 qemu rebase. also adds another patch for issue CVE-2019-14378 (heap-based BOF) Signed-off-by: Oguz Bektas --- .../0001-util-add-slirp_fmt-helpers.patch | 126 ...2-tcp_emu-fix-unsafe-snprintf-usages.patch | 135

Re: [pve-devel] [PATCH pve-manager 1/1] fix #2634: if hook-script without permission, prints message, that the script not executable

2020-03-12 Thread Oguz Bektas
hi, works fine. also tested with symlinks. i'd remove the extra whitespace near the end though. Tested-by: Oguz Bektas On Thu, Mar 12, 2020 at 12:18:18PM +0100, Moayad Almalat wrote: > Signed-off-by: Moayad Almalat > --- > PVE/VZDump.pm | 6 ++ > 1 file changed, 6 insert

Re: [pve-devel] [PATCH pve-qemu] slirp: re-add security patches

2020-03-11 Thread Oguz Bektas
On Wed, Mar 11, 2020 at 04:05:22PM +0100, Dominik Csapak wrote: > [...] > > diff --git a/debian/patches/series b/debian/patches/series > > index 651c609..63598ab 100644 > > --- a/debian/patches/series > > +++ b/debian/patches/series > > @@ -30,3 +30,7 @@ pve/0029-PVE-Backup-add-vma-backup-format-co

[pve-devel] [PATCH pve-qemu] slirp: re-add security patches

2020-03-11 Thread Oguz Bektas
the first two patches were mistakenly left out during the 4.2 qemu rebase. also adds another patch for issue CVE-2019-14378 (heap-based BOF) Signed-off-by: Oguz Bektas --- .../0001-util-add-slirp_fmt-helpers.patch | 126 ...2-tcp_emu-fix-unsafe-snprintf-usages.patch | 135

Re: [pve-devel] [PATCH storage] zfs: set cachefile=none when creating pool

2020-03-05 Thread Oguz Bektas
hi, On Thu, Mar 05, 2020 at 03:21:11PM +0100, Thomas Lamprecht wrote: > On 3/5/20 2:16 PM, Oguz Bektas wrote: > > the first rpool we create during setup with our installer has > > cachefile=none set. > > > > when this isn't specified, zfs defaults to /etc/zfs

[pve-devel] [PATCH storage] zfs: set cachefile=none when creating pool

2020-03-05 Thread Oguz Bektas
#post-298984 Signed-off-by: Oguz Bektas --- PVE/API2/Disks/ZFS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Disks/ZFS.pm b/PVE/API2/Disks/ZFS.pm index 551f21a..78484eb 100644 --- a/PVE/API2/Disks/ZFS.pm +++ b/PVE/API2/Disks/ZFS.pm @@ -371,7 +371,7 @@ __PACK

[pve-devel] [PATCH pve-qemu] add patch for CVE-2019-20382 (vnc disconnect memory leak)

2020-03-05 Thread Oguz Bektas
Tested-by: Dominik Csapak Signed-off-by: Oguz Bektas --- ...-fix-memory-leak-when-vnc-disconnect.patch | 1016 + debian/patches/series |1 + 2 files changed, 1017 insertions(+) create mode 100644 debian/patches/extra/0003-vnc-fix-memory-lea

[pve-devel] [PATCH pve-qemu] add patch for CVE-2019-20382 (vnc disconnect memory leak)

2020-03-05 Thread Oguz Bektas
Tested-by: Dominik Csapak Signed-off-by: Oguz Bektas --- ...-fix-memory-leak-when-vnc-disconnect.patch | 1016 + debian/patches/series |1 + 2 files changed, 1017 insertions(+) create mode 100644 debian/patches/extra/0003-vnc-fix-memory-lea

[pve-devel] [PATCH docs] local-zfs: add troubleshooting section

2020-03-04 Thread Oguz Bektas
and an entry for the corrupted cachefile problem which keeps showing up in forum posts. Signed-off-by: Oguz Bektas --- local-zfs.adoc | 29 + 1 file changed, 29 insertions(+) diff --git a/local-zfs.adoc b/local-zfs.adoc index 5cce677..c516db8 100644 --- a/local

Re: [pve-devel] [PATCH Fix: CentOS 8 lxc start After update & upgrade PVE 5.4 1/1] Fix: CentOS 8 After Update & Upgrade PVE-5.4

2020-03-02 Thread Oguz Bektas
e-5] fix ... that makes it easier to realize when sorting through emails for review > > Should i edit the PATCH? yes, please make it '<= 9' to match with the current branch so we don't have to do it one more time later :) > > > On March 2, 2020 2:51 PM Oguz Be

Re: [pve-devel] [PATCH Fix: CentOS 8 lxc start After update & upgrade PVE 5.4 1/1] Fix: CentOS 8 After Update & Upgrade PVE-5.4

2020-03-02 Thread Oguz Bektas
hi, i assume this is for the older 5.x branch. you should mention that in your message. in the 6.x branch this is already set to '<= 9' so you can do that here as well. On Mon, Mar 02, 2020 at 02:33:32PM +0100, Moayad Almalat wrote: > Signed-off-by: Moayad Almalat > --- > src/PVE/LXC/Setup/Cen

Re: [pve-devel] [PATCH i18n 0/1] Update Hungarian translation

2020-02-28 Thread Oguz Bektas
hi, i only received the cover letter here and no patch. perhaps you forgot to send it? On Thu, Feb 27, 2020 at 11:01:43PM +0100, Csanádi Norbert wrote: > From: Norbert Csanadi > > > Norbert Csanadi (1): > Update Hungarian translation, focused on ProxMox Mail Gateway webUI > > hu.po | 1108

Re: [pve-devel] [PATCH v2 container] fix #2598: activate volumes before mounting in stop mode backup

2020-02-19 Thread Oguz Bektas
On Wed, Feb 19, 2020 at 05:10:54PM +0100, Wolfgang Bumiller wrote: > On Tue, Feb 18, 2020 at 02:38:52PM +0100, Oguz Bektas wrote: > > 'stop' mode deactivates the volumes (relevant for LVM backend), and > > they're not reactivated before trying to mount them for bac

[pve-devel] [PATCH v2 qemu-server 5/5] hotplug_pending: allow partial fast plugging

2020-02-19 Thread Oguz Bektas
adds a loop after the main fastplug loop, to check if any of the options are partially fast pluggable. these are defined in $partial_fast_plug_option Signed-off-by: Oguz Bektas --- v1->v2: * set $changes according to partial_fast_plug result as well as fast_plug result * do cleanup_pend

[pve-devel] [PATCH v2 guest-common 4/5] abstractconfig: add partial_fast_plug

2020-02-19 Thread Oguz Bektas
allows partial fast plugging of functions as defined in the $partial_fast_plug_option in qemuserver (and possibly lxc later on) Signed-off-by: Oguz Bektas --- v1->v2: * rename get_partial_fast_plug_map -> get_partial_fast_plug_option * rename variables in partial_fast_plug for reada

[pve-devel] [PATCH v2 container 3/5] use helper functions from GuestHelpers

2020-02-19 Thread Oguz Bektas
remove safe_string_ne and safe_num_ne code which is now shared in GuestHelpers. also change all the calls. Signed-off-by: Oguz Bektas --- v1->v2: * use helpers from @EXPORT_OK src/PVE/LXC.pm | 38 +- 1 file changed, 9 insertions(+), 29 deletions(-) d

[pve-devel] [PATCH v2 guest-common 1/5] guesthelpers: move/add safe comparison functions from lxc and qemu

2020-02-19 Thread Oguz Bektas
move the safe_string_ne and safe_num_ne functions to guesthelpers to remove duplicate code. add the new safe_boolean_ne and typesafe_ne helper functions also add them in @EXPORT_OK Signed-off-by: Oguz Bektas --- v1->v2: * add new helpers to @EXPORT_OK for easy use * add a die to typesafe

[pve-devel] [PATCH v2 qemu-server 2/5] QemuServer: use helper functions from GuestHelpers

2020-02-19 Thread Oguz Bektas
removes safe_string_ne and safe_num_ne code which is now shared in GuestHelpers. also change all the calls to use the shared definitions. Signed-off-by: Oguz Bektas --- v1->v2: * use helpers from @EXPORT_OK PVE/QemuServer.pm | 86 ++- 1 f

[pve-devel] [PATCH v2 container] fix #2598: activate volumes before mounting in stop mode backup

2020-02-18 Thread Oguz Bektas
'stop' mode deactivates the volumes (relevant for LVM backend), and they're not reactivated before trying to mount them for backup. reactivating the volumes before the mount in 'stop' mode backup solves the issue. Signed-off-by: Oguz Bektas --- src/PVE/VZDump/LXC.pm

Re: [pve-devel] [PATCH manager] fix #2598: prepare/activate volumes after stopping container for backup

2020-02-18 Thread Oguz Bektas
this might not be working correctly, please wait before applying On Tue, Feb 18, 2020 at 01:35:21PM +0100, Oguz Bektas wrote: > when doing a 'stop' backup with an LVM backend, volumes are deactivated > by the stop operation. they're not activated before the backup, whic

[pve-devel] [PATCH manager] fix #2598: prepare/activate volumes after stopping container for backup

2020-02-18 Thread Oguz Bektas
rum.proxmox.com/threads/problem-backups-proxmox-6-1.65317/ Signed-off-by: Oguz Bektas --- PVE/VZDump.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm index 87d4b699..514f432b 100644 --- a/PVE/VZDump.pm +++ b/PVE/VZDump.pm @@ -757,

Re: [pve-devel] [PATCH guest-common 1/5] guesthelpers: move/add safe comparison functions from lxc and qemu

2020-02-13 Thread Oguz Bektas
hi, On Thu, Feb 13, 2020 at 11:16:31AM +0100, Stefan Reiter wrote: > On 1/28/20 4:03 PM, Oguz Bektas wrote: > > move the safe_string_ne and safe_num_ne functions to guesthelpers to > > remove duplicate code. > > > > add the new safe_boolean_ne and typesafe_ne helper fu

[pve-devel] [PATCH v3 docs] rewrite and extend pct documentation

2020-02-13 Thread Oguz Bektas
* rephrase some parts. * update old information * add info about pending changes and other "new" features Co-Authored-by: Aaron Lauterer Co-Authored-by: Thomas Lamprecht Signed-off-by: Oguz Bektas --- v2->v3: * move info about disabling apparmor further down * add suggested

[pve-devel] [PATCH ha-manager] fix service name for pve-ha-crm

2020-02-11 Thread Oguz Bektas
"PVE Cluster Resource Manager Daemon" should be "PVE Cluster HA Resource Manager Daemon" [0]: https://forum.proxmox.com/threads/typo-omission.65107/ Signed-off-by: Oguz Bektas --- debian/pve-ha-crm.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

Re: [pve-devel] [PATCH pve-qemu] security patches for libslirp CVE-2020-8608

2020-02-10 Thread Oguz Bektas
hi, On Fri, Feb 07, 2020 at 09:03:50AM +0100, Thomas Lamprecht wrote: > On 2/6/20 3:25 PM, Oguz Bektas wrote: > > original commits and email can be found here[0] > > > > A out-of-bounds heap buffer access issue was found in the SLiRP > > networking implementation of t

[pve-devel] [PATCH v2 docs] network: add note for possible fix/workaround in NAT setup

2020-02-10 Thread Oguz Bektas
apparently sometimes users have problems reaching outside internet with some network setups. this is the workaround a user suggested that we should add in the wiki. Signed-off-by: Oguz Bektas --- v1->v2: * add more rationale as suggested by stoiko * fix indent on one line in the example con

Re: [pve-devel] applied: [PATCH container] apply_pending: call cleanup_pending between change/delete loops

2020-02-06 Thread Oguz Bektas
On Thu, Feb 06, 2020 at 05:15:18PM +0100, Thomas Lamprecht wrote: > On 2/6/20 5:13 PM, Oguz Bektas wrote: > >> Further, while this resolves the issue of a broken config in general the > >> underlying "when are config property values equal" is not solved. I can &g

Re: [pve-devel] applied: [PATCH container] apply_pending: call cleanup_pending between change/delete loops

2020-02-06 Thread Oguz Bektas
property strings the same way (i.e., sorted) - that would be possible > cheaper but not solve that effect for all clients using the API. > but still if you want i can take a look at implementing that soon. > > 0: https://pve.proxmox.com/pipermail/pve-devel/2020-February/041548.htm

[pve-devel] [PATCH pve-qemu] security patches for libslirp CVE-2020-8608

2020-02-06 Thread Oguz Bektas
use this flaw to crash the Qemu process on the host resulting in DoS or potentially execute arbitrary code with privileges of the QEMU process on the host. [0]: https://seclists.org/oss-sec/2020/q1/64 Signed-off-by: Oguz Bektas --- .../0003-util-add-slirp_fmt-helpers.patch | 126

Re: [pve-devel] [PATCH v2 docs] rewrite and extend pct documentation

2020-02-06 Thread Oguz Bektas
hi, any update here? On Tue, Jan 14, 2020 at 05:47:01PM +0100, Oguz Bektas wrote: > * rephrase some parts. > * update old information > * add info about pending changes and other "new" features > > Co-Authored-by: Aaron Lauterer > Signed-off-by: Oguz Bektas >

[pve-devel] [PATCH docs] network: add note for possible fix/workaround in NAT setup

2020-02-05 Thread Oguz Bektas
apparently sometimes users have problems reaching outside internet with some network setups. this is the workaround a user suggested that we should add in the wiki. Signed-off-by: Oguz Bektas --- pve-network.adoc | 9 + 1 file changed, 9 insertions(+) diff --git a/pve-network.adoc b

[pve-devel] [PATCH container] apply_pending: call cleanup_pending between change/delete loops

2020-02-05 Thread Oguz Bektas
instead of calling it while iterating, inbetween the loops is a better place in terms of similarity with qemu side (also this should fix the bug that dominik found[0]) [0]: https://pve.proxmox.com/pipermail/pve-devel/2020-February/041573.html Signed-off-by: Oguz Bektas --- src/PVE/LXC

[pve-devel] [PATCH qemu-server] fix #2578: check if $target is provided in clone

2020-02-03 Thread Oguz Bektas
node '' Signed-off-by: Oguz Bektas --- PVE/API2/Qemu.pm | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index e15c0c3..fe68e87 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -2749,10 +2749,12 @@ __PACKAGE__-&

[pve-devel] [PATCH qemu-server 5/5] hotplug_pending: allow partial fast plugging

2020-01-28 Thread Oguz Bektas
adds a loop after the main fastplug loop, to check if any of the options are partially fast pluggable. these are defined in $partial_fast_plug_option our first use case is the fstrim_cloned_disks option of the qemu-guest-agent Signed-off-by: Oguz Bektas --- PVE/QemuConfig.pm | 7 +++ PVE

[pve-devel] [PATCH qemu-server 2/5] use helper functions from GuestHelpers

2020-01-28 Thread Oguz Bektas
removes safe_string_ne and safe_num_ne code which is now shared in GuestHelpers. also change all the calls Signed-off-by: Oguz Bektas --- PVE/QemuServer.pm | 82 ++- 1 file changed, 31 insertions(+), 51 deletions(-) diff --git a/PVE/QemuServer.pm b

[pve-devel] [PATCH container 3/5] use helper functions from GuestHelpers

2020-01-28 Thread Oguz Bektas
remove safe_string_ne and safe_num_ne code which is now shared in GuestHelpers. also change all the calls. Signed-off-by: Oguz Bektas --- src/PVE/LXC.pm | 36 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm

[pve-devel] [PATCH guest-common 1/5] guesthelpers: move/add safe comparison functions from lxc and qemu

2020-01-28 Thread Oguz Bektas
move the safe_string_ne and safe_num_ne functions to guesthelpers to remove duplicate code. add the new safe_boolean_ne and typesafe_ne helper functions Signed-off-by: Oguz Bektas --- these will be used in the partial fast plug function in this series PVE/GuestHelpers.pm | 49

[pve-devel] [PATCH guest-common 4/5] abstractconfig: add partial_fast_plug

2020-01-28 Thread Oguz Bektas
allows partial fast plugging of functions as defined in the $partial_fast_plug_option in qemuserver (and possibly lxc later on) Signed-off-by: Oguz Bektas --- PVE/AbstractConfig.pm | 44 +++ 1 file changed, 44 insertions(+) diff --git a/PVE

[pve-devel] [PATCH container] fix #2568: hotplug: fix typo 'cpu.shares'

2020-01-27 Thread Oguz Bektas
Signed-off-by: Oguz Bektas --- 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 760ec23..eec6b38 100644 --- a/src/PVE/LXC/Config.pm +++ b/src/PVE/LXC/Config.pm @@ -1188,7 +1188,7 @@ sub

Re: [pve-devel] [RFC qemu-server] qemu: allow partial fastplugging of property string options

2020-01-24 Thread Oguz Bektas
hi, thanks for the review! On Thu, Jan 23, 2020 at 07:41:11AM +0100, Thomas Lamprecht wrote: > On 1/22/20 5:37 PM, Oguz Bektas wrote: > > this patch adds the partial_fast_plug function, which allows to partially > > fastplug an option with a property string. > > > > t

[pve-devel] [RFC qemu-server] qemu: allow partial fastplugging of property string options

2020-01-22 Thread Oguz Bektas
-by: Stefan Reiter Signed-off-by: Oguz Bektas --- i added stefan as a co-author for this, to thank for his help debugging and testing it with me also please note that i'm sending this as RFC for review only, and it shouldn't be applied yet since i'm working on generalizing it a bi

[pve-devel] [PATCH container] setup: allow centos to version 9

2020-01-20 Thread Oguz Bektas
so that we handle all the point releases between 8-9 Signed-off-by: Oguz Bektas --- src/PVE/LXC/Setup/CentOS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/LXC/Setup/CentOS.pm b/src/PVE/LXC/Setup/CentOS.pm index 34430ff..d73c0cf 100644 --- a/src/PVE/LXC/Setup

[pve-devel] [PATCH container] setup: allow centos 8.1

2020-01-17 Thread Oguz Bektas
[0]: https://forum.proxmox.com/threads/centos-8-1-lxc-unsupported-centos-release.63530/ Signed-off-by: Oguz Bektas --- src/PVE/LXC/Setup/CentOS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/LXC/Setup/CentOS.pm b/src/PVE/LXC/Setup/CentOS.pm index cc4c5bb

[pve-devel] [PATCH qemu-server] hotplug_pending: make 'ssd' option non-hotpluggable

2020-01-16 Thread Oguz Bektas
from hotplug_pending we go into 'vmconfig_update_disk', where we check the hotpluggability of options. add 'ssd' there as a non-hotpluggable option (since we'd have to unplug/plug to change the drive type) Signed-off-by: Oguz Bektas --- PVE/QemuServer.pm | 3 ++- 1 f

[pve-devel] [PATCH qemu-server] hotplug_pending: allow hotplugging of 'fstrim_cloned_disks'

2020-01-16 Thread Oguz Bektas
Signed-off-by: Oguz Bektas --- some thoughts about this, based on our offline discussion with dominik. this patch currently allows us to hotplug the fstrim option for agent, when it's the only change. however if the user changes both the type and this option for example, it will not hotplu

[pve-devel] [PATCH v6 qemu-server] vmconfig_apply_pending: remove redundant write/load config calls

2020-01-15 Thread Oguz Bektas
since we handle errors gracefully now, we don't need to write & save config every time we change a setting. Signed-off-by: Oguz Bektas --- v5 -> v6: * style nit from fabian * combine two elsif statements into one, get rid of $new_val and $old_val from last version (not neede

[pve-devel] [PATCH v2 docs] rewrite and extend pct documentation

2020-01-14 Thread Oguz Bektas
* rephrase some parts. * update old information * add info about pending changes and other "new" features Co-Authored-by: Aaron Lauterer Signed-off-by: Oguz Bektas --- v1->v2: changed some of the writing in terms of phrasing and style, with feedback from aaron. thanks! p

[pve-devel] [PATCH v5 qemu-server] vmconfig_apply_pending: remove redundant write/load config calls

2020-01-14 Thread Oguz Bektas
since we handle errors gracefully now, we don't need to write & save config every time we change a setting. Signed-off-by: Oguz Bektas --- v4 -> v5: changed some stuff according to the feedback from fabian and thomas, thanks a lot! * remove forgotten load_config call * some style

[pve-devel] [PATCH i18n] tr: fix whitespace for string

2020-01-08 Thread Oguz Bektas
"ACPI" instead of "ACPI " with whitespace. Signed-off-by: Oguz Bektas --- tr.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tr.po b/tr.po index e94b0fa..b2db822 100644 --- a/tr.po +++ b/tr.po @@ -8,7 +8,7 @@ msgstr "" "Project

[pve-devel] [PATCH v4 qemu-server 1/2] vmconfig_apply_pending: add error handling

2020-01-07 Thread Oguz Bektas
wrap around code which can possibly fail in evals to handle them gracefully, and log errors. Signed-off-by: Oguz Bektas --- v3 -> v4: * use $errors parameter while calling vmconfig_apply_pending PVE/API2/Qemu.pm | 6 ++--- PVE/QemuServer.pm |

[pve-devel] [PATCH v4 qemu-server 2/2] vmconfig_apply_pending: remove redundant write/load config calls

2020-01-07 Thread Oguz Bektas
for some reason, it will get logged in the tasklog but the vm will continue booting regardless. the non-applied change will stay in the pending section of the configuration. Signed-off-by: Oguz Bektas --- v3 -> v4: * add explanation in commit message about behavior change in API

[pve-devel] [PATCH v3 qemu-server 2/2] vmconfig_apply_pending: remove redundant write/load config calls

2020-01-02 Thread Oguz Bektas
since we handle errors gracefully now, we don't need to write & save config every time we change a setting. Signed-off-by: Oguz Bektas --- PVE/QemuServer.pm | 21 + 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer

[pve-devel] [PATCH v3 qemu-server 1/2] vmconfig_apply_pending: add error handling

2020-01-02 Thread Oguz Bektas
wrap around code which can possibly fail in evals to handle them gracefully, and log errors. Signed-off-by: Oguz Bektas --- PVE/API2/Qemu.pm | 4 ++-- PVE/QemuServer.pm | 61 --- 2 files changed, 44 insertions(+), 21 deletions(-) diff --git a/PVE

[pve-devel] [PATCH i18n] update turkish translation

2020-01-02 Thread Oguz Bektas
Signed-off-by: Oguz Bektas --- tr.po | 110 +++--- 1 file changed, 44 insertions(+), 66 deletions(-) diff --git a/tr.po b/tr.po index 1d67201..e94b0fa 100644 --- a/tr.po +++ b/tr.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-V

  1   2   3   4   5   >