[pve-devel] [PATCH installer] fix #2804: add a root shell on tty3

2020-06-19 Thread Stoiko Ivanov
Tested locally in a VM: The setsid was necessary to give the bash job-control (otherwise Ctrl+C would simply kill the shell). Signed-off-by: Stoiko Ivanov --- unconfigured.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unconfigured.sh b/unconfigured.sh index ed492c9..e36ffc9 100755

[pve-devel] [PATCH container] Move volume activation to vm_start

2020-06-17 Thread Stoiko Ivanov
27;' > /etc/zfs/zpool.cache`, `update-initramfs -k all -u`, reboot Signed-off-by: Stoiko Ivanov --- This should address multiple reports in the forum (e.g. [0,1,2]), about containers on ZFS not starting after a reboot (mitigated by setting the correct cache-file, thus making the pool get impo

Re: [pve-devel] [PATCH common] debian/postinst: check for existing /etc/aliases

2020-06-12 Thread Stoiko Ivanov
sorry - forgot (again :/ ) to add the bugreference: fix #2796 On Fri, 12 Jun 2020 11:14:38 +0200 Stoiko Ivanov wrote: > Signed-off-by: Stoiko Ivanov > --- > Tested by installing libpve-common-perl=6.0-4 on a buster system w/o > /etc/aliases and then installing one with this patch

[pve-devel] [PATCH common] debian/postinst: check for existing /etc/aliases

2020-06-12 Thread Stoiko Ivanov
Signed-off-by: Stoiko Ivanov --- Tested by installing libpve-common-perl=6.0-4 on a buster system w/o /etc/aliases and then installing one with this patch applied (and the libproxmox-acme-perl dependency removed). debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[pve-devel] [PATCH manager v2 1/1] add model information to ZFS create window

2020-06-05 Thread Stoiko Ivanov
and improve the layout by adding flex values and increasing the width. Signed-off-by: Stoiko Ivanov --- www/manager6/node/ZFS.js | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/www/manager6/node/ZFS.js b/www/manager6/node/ZFS.js index c978f742..88c285df

[pve-devel] [PATCH storage v2 1/1] fix #2777 create zpools with stable dev paths

2020-06-05 Thread Stoiko Ivanov
pass them to guests). Additionally the tests were adapted to run successfully. Signed-off-by: Stoiko Ivanov --- PVE/API2/Disks/ZFS.pm | 3 +++ PVE/Diskmanage.pm | 8 test/disk_tests/sas/disklist_expected.json | 3 ++- 3 files changed, 13 inser

[pve-devel] [PATCH storage/manager v2] create zpools with stable disk paths

2020-06-05 Thread Stoiko Ivanov
ger patches could probably be squashed - can gladly send a v2 but am fine if you squash them while applying. pve-storage: Stoiko Ivanov (1): fix #2777 create zpools with stable dev paths PVE/API2/Disks/ZFS.pm | 3 +++ PVE/Diskmanage.pm | 8 t

[pve-devel] [PATCH manager 1/3] fix #2777: create zpool with stable dev links

2020-06-04 Thread Stoiko Ivanov
If a device has a stable /dev/disk/by-id link use that instead of /dev/sdX Signed-off-by: Stoiko Ivanov --- www/manager6/node/ZFS.js | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/www/manager6/node/ZFS.js b/www/manager6/node/ZFS.js index c978f742..b8978559 100644

[pve-devel] [PATCH storage/manager] create zpools with stable disk paths

2020-06-04 Thread Stoiko Ivanov
installer and virtio-block devices). The manager patches could probably be squashed - can gladly send a v2 but am fine if you squash them while applying. pve-storage: Stoiko Ivanov (1): fix #2777 add by-id link to disk udev info PVE/API2/Disks/ZFS.pm | 4 ++-- PVE

[pve-devel] [PATCH storage 1/1] fix #2777 add by-id link to disk udev info

2020-06-04 Thread Stoiko Ivanov
pass them to guests). Additionally the tests were adapted to run successfully. Signed-off-by: Stoiko Ivanov --- PVE/API2/Disks/ZFS.pm | 4 ++-- PVE/Diskmanage.pm | 8 test/disk_tests/sas/disklist_expected.json | 3 ++- 3 files change

[pve-devel] [PATCH manager 3/3] add by-id link as hidden column to disklist

2020-06-04 Thread Stoiko Ivanov
Signed-off-by: Stoiko Ivanov --- www/manager6/node/Disks.js | 8 1 file changed, 8 insertions(+) diff --git a/www/manager6/node/Disks.js b/www/manager6/node/Disks.js index 555956f6..7a1358ff 100644 --- a/www/manager6/node/Disks.js +++ b/www/manager6/node/Disks.js @@ -97,6 +97,14

[pve-devel] [PATCH manager 2/3] adapt zfs pool creation layout for by-id links

2020-06-04 Thread Stoiko Ivanov
hide the Serial column (the by-id link contains the same information) and add flex to all columns Signed-off-by: Stoiko Ivanov --- www/manager6/node/ZFS.js | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/www/manager6/node/ZFS.js b/www/manager6/node/ZFS.js index

Re: [pve-devel] [PATCH firewall] ebtables: keep policy of custom chains

2020-06-02 Thread Stoiko Ivanov
missed that there was a bugzilla issue for this: this fixes #2773 On Tue, 2 Jun 2020 10:06:17 +0200 Stoiko Ivanov wrote: > currently all ebtalbes chains are created with a hardcoded policy of ACCEPT. > This patch changes the functionality to store the configured policy of a > ch

[pve-devel] [PATCH firewall] ebtables: keep policy of custom chains

2020-06-02 Thread Stoiko Ivanov
chains not generated by pve-firewall (the ones having an action of 'ignore' in the status-hash). Reported on the pve-user list: https://pve.proxmox.com/pipermail/pve-user/2020-May/171731.html Minimally tested with the example from the thread. Signed-off-by: Stoiko Ivanov --- src

[pve-devel] [PATCH zfsonlinux 2/6] Use installed python3

2020-05-13 Thread Stoiko Ivanov
From: Antonio Russo adapted from debian-upstream [0] commit 594e747e14f3051513ea499c40c17cadb5d0e92b [0] https://salsa.debian.org/zfsonlinux-team/zfs.git Signed-off-by: Stoiko Ivanov --- .../patches/0007-Use-installed-python3.patch | 60 +++ debian/patches/series

[pve-devel] [PATCH zfsonlinux 6/6] Remove the unnecessary --with systemd dh option.

2020-05-13 Thread Stoiko Ivanov
adapted from debian-upstream [0] commit 53276c973c5e69f75b43371a6c94adc5d9dcfec0 (the systemd sequence is enabled by default since debhelper v10 - see debhelper(7)) [0] https://salsa.debian.org/zfsonlinux-team/zfs.git Signed-off-by: Stoiko Ivanov --- debian/rules | 2 +- 1 file changed, 1

[pve-devel] [PATCH zfsonlinux 3/6] Add dependencies for zfs-test

2020-05-13 Thread Stoiko Ivanov
From: Antonio Russo nfs-kernel-server is required for some tests Signed-off-by: Stoiko Ivanov --- debian/control | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/control b/debian/control index d9196716..62ab6221 100644 --- a/debian/control +++ b/debian/control @@ -185,6 +185,7

[pve-devel] [PATCH zfsonlinux 1/6] update submodule and patches for zfs-0.8.4

2020-05-13 Thread Stoiko Ivanov
Signed-off-by: Stoiko Ivanov --- .../0004-import-with-d-dev-disk-by-id-in-scan-service.patch | 4 ++-- upstream | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/patches/0004-import-with-d-dev-disk-by-id-in-scan

[pve-devel] [PATCH zfsonlinux 0/6] update zfs to 0.8.4

2020-05-13 Thread Stoiko Ivanov
=2666 Antonio Russo (3): Use installed python3 Add dependencies for zfs-test Refresh debian/not-installed Stoiko Ivanov (3): update submodule and patches for zfs-0.8.4 Bump Standards-Version to 4.5.0 (no change). Remove the unnecessary --with systemd dh opti

[pve-devel] [PATCH zfsonlinux 5/6] Bump Standards-Version to 4.5.0 (no change).

2020-05-13 Thread Stoiko Ivanov
ff-by: Stoiko Ivanov --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 62ab6221..422b2c52 100644 --- a/debian/control +++ b/debian/control @@ -14,7 +14,7 @@ Build-Depends: debhelper (>= 10~), python3

[pve-devel] [PATCH zfsonlinux 4/6] Refresh debian/not-installed

2020-05-13 Thread Stoiko Ivanov
://salsa.debian.org/zfsonlinux-team/zfs.git Signed-off-by: Stoiko Ivanov --- debian/not-installed | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/not-installed b/debian/not-installed index 89061916..db0e5603 100644 --- a/debian/not-installed +++ b/debian/not-installed @@ -1,5 +1,6 @@ usr/share/zfs

[pve-devel] [pve-network] only parse version if local sdn file exists

2020-05-05 Thread Stoiko Ivanov
if a file does not exist PVE::Tools::file_read_firstline returns undef. This happens e.g. if you install the libpve-network-perl package before creating the local sdn file. Signed-off-by: Stoiko Ivanov --- caught in my journal after installing updates today: May 05 17:17:20 rosa pvestatd[21735

[pve-devel] [PATCH common] ProcFSTools: fix read_meminfo without KSM

2020-05-05 Thread Stoiko Ivanov
PVE installation, PMG can run quite happily with a different kernel (the reporter had this on an openstack instance at OVH). a quick grep through our codebase showed only the API2::Nodes::Nodeinfo::status call as user of the memshared property. Signed-off-by: Stoiko Ivanov --- reported in our

[pve-devel] [PATCH container] CentOS 6: add '--nohangup' as mingetty arg

2020-04-22 Thread Stoiko Ivanov
l. Tested by creating an unprivileged and a privileged CentOS6 container and with nesting enabled and disabled for both - the console showed up in all cases with this fix. [0] https://wiki.centos.org/About/Product Signed-off-by: Stoiko Ivanov --- I shortly considered setting the contents of '

[pve-devel] [PATCH zfsonlinux] add ident to zedlet-list creation patch

2020-03-26 Thread Stoiko Ivanov
patchqueue. Signed-off-by: Stoiko Ivanov --- noticed while trying to cherry-pick a patch for #2546 .../0006-dont-symlink-zed-scripts.patch | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/debian/patches/0006-dont-symlink-zed-scripts.patch b/debian

[pve-devel] [PATCH zfsonlinux 3/4] Refresh upstream Git repo URL in d/copyright.

2020-03-20 Thread Stoiko Ivanov
From: Mo Zhou (cherry picked from 7916839f3f9f8735b6ee18ee4e25cf1670963272 [0]) [0] https://salsa.debian.org/zfsonlinux-team/zfs.git Signed-off-by: Stoiko Ivanov --- debian/copyright | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/copyright b/debian/copyright

[pve-devel] [PATCH zfsonlinux 0/4] cherry-pick changes from debian 0.8.3-2

2020-03-20 Thread Stoiko Ivanov
configuration on upgrade Mo Zhou (1): Refresh upstream Git repo URL in d/copyright. Richard Laager (1): cron: Do not error if already scrubbing Stoiko Ivanov (1): Reword ZFS Description debian/control| 44 +-- debian/copyright

[pve-devel] [PATCH zfsonlinux 2/4] cron: Do not error if already scrubbing

2020-03-20 Thread Stoiko Ivanov
it Signed-off-by: Stoiko Ivanov --- debian/tree/zfsutils-linux/usr/lib/zfs-linux/scrub | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/debian/tree/zfsutils-linux/usr/lib/zfs-linux/scrub b/debian/tree/zfsutils-linux/usr/lib/zfs-linux/scrub index 29b77096..38f071af 10

[pve-devel] [PATCH zfsonlinux 1/4] Reword ZFS Description

2020-03-20 Thread Stoiko Ivanov
(cherry-picked and adapted from ff8fbee152caa6b995839dae723dab484c3d295a [0]) [0] https://salsa.debian.org/zfsonlinux-team/zfs.git Signed-off-by: Stoiko Ivanov --- debian/control | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a

[pve-devel] [PATCH zfsonlinux 4/4] Preserve /etc/zfs/zed.d configuration on upgrade

2020-03-20 Thread Stoiko Ivanov
ymlinks to removed zedlets at package postinst. (cherry picked and adapted from 5cee380324d74e640d5dd7a360faba3994c8007f [0]) [0] https://salsa.debian.org/zfsonlinux-team/zfs.git Signed-off-by: Stoiko Ivanov --- .../0006-dont-symlink-zed-scripts.patch | 12 +++ debian/patc

Re: [pve-devel] [PATCH common] inotify: fix compatibillity with address + netmask separate passed

2020-03-12 Thread Stoiko Ivanov
: Reviewed-By: Stoiko Ivanov Tested-By: Stoiko Ivanov On Thu, 12 Mar 2020 15:49:07 +0100 Thomas Lamprecht wrote: > On 3/12/20 3:24 PM, Thomas Lamprecht wrote: > > + } elsif (my $mask = > > PVE::JSONSchema::get_netmask_bits("netmask$suffix")) {

Re: [pve-devel] [PATCH dab] raise postifx main.cf compatibility_level to 2

2020-02-20 Thread Stoiko Ivanov
sorry - hadn't setup the subject prefix for the dab repo! On Thu, 20 Feb 2020 19:25:48 +0100 Stoiko Ivanov wrote: > otherwise mail received via TCP (localhost port 25) is not accepted, since > there is no default smptd_relay_restriction set, which would make the system > a

[pve-devel] [PATCH] raise postifx main.cf compatibility_level to 2

2020-02-20 Thread Stoiko Ivanov
ation' reported via the pve-user list: https://pve.proxmox.com/pipermail/pve-user/2020-February/171368.html Signed-off-by: Stoiko Ivanov --- DAB.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DAB.pm b/DAB.pm index 3d51c1e..ebc541f 100644 --- a/DAB.pm +++ b/DAB.pm @@ -42,6 +42,8 @@

Re: [pve-devel] [PATCH installer] fix behavior if zfs disks have no by-id path

2020-02-19 Thread Stoiko Ivanov
After a (not so) short detour into debian policy and the current state of policy-rc.d usage: Thanks for tracking this down so fast (and sorry for introducing the regression in the first place). The patch definitely makes sense - and works in my few tests: Reviewed-By: Stoiko Ivanov Tested-By

[pve-devel] [RFC installer] Revert "drop unused policy-disable-rc.d"

2020-02-19 Thread Stoiko Ivanov
fixed, glitch (missing '||true') in pve-lxc's postinst script. [0] https://people.debian.org/~hmh/invokerc.d-policyrc.d-specification.txt (did not find anything more current, contradicting the information there) Signed-off-by: Stoiko Ivanov --- Sent as RFC because I'm not

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

2020-02-05 Thread Stoiko Ivanov
On Wed, 5 Feb 2020 15:57:13 +0100 Oguz Bektas wrote: > 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. Thanks for the initiative - that does come up indeed every now and then

[pve-devel] [PATCH docs] cert-management: mention symlinks in /etc/pve

2020-01-23 Thread Stoiko Ivanov
c/pve/local' is a symlink to '/etc/pve/nodes/NODENAME' should make the warning more clear. Signed-off-by: Stoiko Ivanov --- reported in: https://forum.proxmox.com/threads/setting-up-cluster-and-certificates-which-order.63955/ I tried explicitly naming both paths for both files, b

[pve-devel] [PATCH dab-pve-appliances v2] pmg: optionally verify cvd files with sigtool

2020-01-09 Thread Stoiko Ivanov
s the verification if not (in order to not depend on an installed clamav package). Signed-off-by: Stoiko Ivanov --- v1 -> v2 * changed the check for sigtool's existence to the posix compatible `command -v $cmd` instead of relying on hardcoded paths (and not using them during the actu

[pve-devel] [PATCH dab-pve-appliances 0/2] download clamav signatures for pmg templates

2020-01-02 Thread Stoiko Ivanov
rmail/pmg-devel/2019-December/000869.html Stoiko Ivanov (2): pmg: include clamav cvd files in template pmg: optionally verify cvd files with sigtool debian-10.0-pmg-64/Makefile | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) -- 2

[pve-devel] [PATCH dab-pve-appliances 1/2] pmg: include clamav cvd files in template

2020-01-02 Thread Stoiko Ivanov
ng an image, starting a container from that image and verifying that clamav-daemon starts up upon first boot. Signed-off-by: Stoiko Ivanov --- debian-10.0-pmg-64/Makefile | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/debian-10.0-pmg-64/Makefile b/debian-10.0-p

[pve-devel] [PATCH dab-pve-appliances 2/2] pmg: optionally verify cvd files with sigtool

2020-01-02 Thread Stoiko Ivanov
s the verification if not (in order to not depend on an installed clamav package). Signed-off-by: Stoiko Ivanov --- debian-10.0-pmg-64/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/debian-10.0-pmg-64/Makefile b/debian-10.0-pmg-64/Makefile index b2ff0b0..87d5e51 100644 --- a/debian-10.0-p

[pve-devel] [PATCH proxmox-ve 0/3] minor improvements to the buildsys

2020-01-02 Thread Stoiko Ivanov
Stoiko Ivanov (3): buildsys: run lintian for all packages buildsys: fix lintian warning for proxmox-ve buildsys: fix lintian warnings for pve-headers Makefile | 2 +- debian/control | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) -- 2.20.1

[pve-devel] [PATCH proxmox-ve 1/3] buildsys: run lintian for all packages

2020-01-02 Thread Stoiko Ivanov
Signed-off-by: Stoiko Ivanov --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8ca3f52..94c3377 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ ${PVE_DEB}: debian cp -ar debian/* ${BUILD_DIR}/debian/ echo "git

[pve-devel] [PATCH proxmox-ve 2/3] buildsys: fix lintian warning for proxmox-ve

2020-01-02 Thread Stoiko Ivanov
fix 'description-synopsis-starts-with-article' lintian warning by simply dropping the article. Signed-off-by: Stoiko Ivanov --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index b5a1e3f..f49eb98 100644 --- a/debi

[pve-devel] [PATCH proxmox-ve 3/3] buildsys: fix lintian warnings for pve-headers

2020-01-02 Thread Stoiko Ivanov
fix 'empty-binary-package' [0] and 'extended-description-line-too-long' [1] lintian warnings for the pve-headers metapackage. [0] https://lintian.debian.org/tags/empty-binary-package.html [1] https://lintian.debian.org/tags/description-synopsis-starts-with-article.html S

[pve-devel] [PATCH installer 6/6] move vgrename check to other sanitychecks

2019-11-29 Thread Stoiko Ivanov
since the check runs at the same time as the one for existing ESPs and rpool move the code there. Signed-off-by: Stoiko Ivanov --- proxinstall | 120 ++-- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/proxinstall b/proxinstall

[pve-devel] [PATCH installer 5/6] ask for renaming of existing pmg/pve VGs early

2019-11-29 Thread Stoiko Ivanov
alog generation from ask_existing_diskconfig_or_abort. Signed-off-by: Stoiko Ivanov --- proxinstall | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/proxinstall b/proxinstall index d2abdcd..7eddafb 100755 --- a/proxinstall +++ b/proxinstall @@ -10

[pve-devel] [PATCH installer 4/6] warn on existing rpool if installing on ZFS

2019-11-29 Thread Stoiko Ivanov
named pve), since this would fail if the pool is not importable (e.g. user added only one old disk from a RAIDZ install to that system. The alternative of running `zpool labelclear` would potentially destroy data. Signed-off-by: Stoiko Ivanov --- proxinstall | 27 +++ 1 file

[pve-devel] [PATCH installer 1/6] fixup 4kn install support

2019-11-29 Thread Stoiko Ivanov
address 2 improvments suggested by Fabian. Signed-off-by: Stoiko Ivanov --- proxinstall | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/proxinstall b/proxinstall index 399faa4..911ee3d 100755 --- a/proxinstall +++ b/proxinstall @@ -1767,14 +1767,11 @@ _EOD

[pve-devel] [PATCH installer 2/6] umount testdir recursively in check-* and clean

2019-11-29 Thread Stoiko Ivanov
recursively unmount testdir before removing it. This prevents the subsequent call to try to remove files in potentially still bindmounted /proc, /sys, /dev filesystems. Signed-off-by: Stoiko Ivanov --- Makefile | 4 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index

[pve-devel] [PATCH installer 3/6] warn users about existing ESPs on unused disks

2019-11-29 Thread Stoiko Ivanov
'OK' button might lead to unexpected data-loss. ESPs are identified by their partition-type, using `lsblk`'s json output The message dialog generation is factored in a sub of its own for later reuse. Signed-off-by: Stoiko Ivanov --- debian/control | 2 ++ prox

[pve-devel] [PATCH installer 0/6] small improvements for pre-used disks

2019-11-29 Thread Stoiko Ivanov
27;), which starts proxinstall and runs a clear_disk on all disks found after you confirm. (But this would be a future improvement) Stoiko Ivanov (6): fixup 4kn install support umount testdir recursively in check-* targets warn users about existing ESPs on unused disks warn on existing rp

Re: [pve-devel] applied: [PATCH installer v2 0/6] add 4kn support and small improvements

2019-11-27 Thread Stoiko Ivanov
On Wed, Nov 27, 2019 at 07:19:02PM +0100, Thomas Lamprecht wrote: > On 11/27/19 5:06 PM, Stoiko Ivanov wrote: > > This patchset adds support for installing on 4kn disks. > > > > v1->v2: > > * Dominik suggested to do it correctly - so i tried, which resulted in a &g

[pve-devel] [PATCH installer v2 3/6] linewrap bootdevinfo generation

2019-11-27 Thread Stoiko Ivanov
Signed-off-by: Stoiko Ivanov --- proxinstall | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/proxinstall b/proxinstall index fec9772..d81d71d 100755 --- a/proxinstall +++ b/proxinstall @@ -1294,8 +1294,12 @@ sub extract_data

[pve-devel] [PATCH installer v2 1/6] expand comment on /sys/block/$dev/size

2019-11-27 Thread Stoiko Ivanov
/sys/block/$dev/size is also given in 512b sectors even for 4kn disks. Since it surprised me - mention it explicitly in the comment Signed-off-by: Stoiko Ivanov --- proxinstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxinstall b/proxinstall index 5d02b34..1a5acc5

[pve-devel] [PATCH installer v2 0/6] add 4kn support and small improvements

2019-11-27 Thread Stoiko Ivanov
e consistency in `lsblk` outputs and the like * should we still install grub with target i386 on 512b sector disks in setups that mix 4kn and 512e disks? Feedback welcome! Stoiko Ivanov (6): expand comment on /sys/block/$dev/size add logical_blocksize to hd_list infos linewrap bootdevinfo genera

[pve-devel] [PATCH installer v2 4/6] fix #1211: allow install on 4kn disks

2019-11-27 Thread Stoiko Ivanov
in legacy mode grub fails to install, if any 4kn disk is in the pool, even if it's not in the first vdev) * EXT4 [0] http://savannah.gnu.org/bugs/?46700 Signed-off-by: Stoiko Ivanov --- proxinstall | 58 +++-- 1 file changed, 47 insertions(+),

[pve-devel] [PATCH installer v2 5/6] wipe partitiontable after early exits

2019-11-27 Thread Stoiko Ivanov
by wiping the partition table after the initial sanity checks regarding minimal size and blocksize of the device, no data is destroyed for an install that would fail in any case. Signed-off-by: Stoiko Ivanov --- proxinstall | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

[pve-devel] [PATCH installer v2 2/6] add logical_blocksize to hd_list infos

2019-11-27 Thread Stoiko Ivanov
in preparation for 4kn installer support add the logical_blocksize to each disk found. Signed-off-by: Stoiko Ivanov --- proxinstall | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/proxinstall b/proxinstall index 1a5acc5..fec9772 100755 --- a

[pve-devel] [PATCH installer v2 6/6] use by-id paths for all vdevs on pool creation

2019-11-27 Thread Stoiko Ivanov
vdevs. Signed-off-by: Stoiko Ivanov --- proxinstall | 7 +++ 1 file changed, 7 insertions(+) diff --git a/proxinstall b/proxinstall index 7873ace..b531619 100755 --- a/proxinstall +++ b/proxinstall @@ -1354,6 +1354,13 @@ sub extract_data { $vdev =~ s/ $devname/ $osdev

[pve-devel] [PATCH installer 0/3] add 4kn support

2019-11-26 Thread Stoiko Ivanov
reate an empty 1M partition on 4k disks (we cannot use it to install grub with target i386 anyways) for more consistency in `lsblk` outputs and the like * should we still install grub with target i386 on 512b sector disks in setups that mix 4kn and 512e disks? Feedback welcome! Stoiko Ivan

[pve-devel] [PATCH installer 1/3] expand comment on /sys/block/$dev/size

2019-11-26 Thread Stoiko Ivanov
/sys/block/$dev/size is also given in 512b sectors even for 4kn disks. Since it surprised me - mention it explicitly in the comment Signed-off-by: Stoiko Ivanov --- proxinstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxinstall b/proxinstall index 5d02b34..1a5acc5

[pve-devel] [PATCH installer 2/3] linewrap bootdevinfo generation

2019-11-26 Thread Stoiko Ivanov
Signed-off-by: Stoiko Ivanov --- proxinstall | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/proxinstall b/proxinstall index 1a5acc5..a0ba91f 100755 --- a/proxinstall +++ b/proxinstall @@ -1278,8 +1278,12 @@ sub extract_data

[pve-devel] [PATCH installer 3/3] fix #1211: allow install on 4kn disks

2019-11-26 Thread Stoiko Ivanov
' to the disk's device lines and installing: * ZFS RAIDZ1 * ZFS single-disk * EXT4 [0] http://savannah.gnu.org/bugs/?46700 Signed-off-by: Stoiko Ivanov --- proxinstall | 58 ++--- 1 file changed, 42 insertions(+), 16 deletions(-) d

Re: [pve-devel] [PATCH common v2] schema: only check for cycles during build

2019-11-22 Thread Stoiko Ivanov
On Fri, 22 Nov 2019 19:37:20 +0100 Thomas Lamprecht wrote: > Do not check for cycles or for self-validation if not in a build > environment. > > The slight drawback is that we also avoid this cycle checks when we > do (development) testing through the API and don't remeber to set the > PROXMOX_F

Re: [pve-devel] [RFC common] fix misleading warning caused by Devel::Cycle

2019-11-22 Thread Stoiko Ivanov
On Fri, 22 Nov 2019 19:05:44 +0100 Thomas Lamprecht wrote: > On 11/22/19 7:03 PM, Thomas Lamprecht wrote: > > On 11/22/19 6:21 PM, Stoiko Ivanov wrote: > >> When validating the parameters (or return values) of an API call against > >> the > >> schema we

[pve-devel] [RFC common] fix misleading warning caused by Devel::Cycle

2019-11-22 Thread Stoiko Ivanov
overriding the warnhandler ($SIG{'__WARN__'}, [0,1]) for the time when find_cycle runs, to ignore messages starting with 'Unhandled type: GLOB at'. The particular location of and in in Devel::Cycle might change and is left out of the match. [0] man perlvar [1] perldoc -f warn S

[pve-devel] [PATCH installer v2 1/2] raise postifx main.cf compatibility_level to 2

2019-10-23 Thread Stoiko Ivanov
otherwise a warning was issued (when missing /etc/aliases.db) that the system is using the backward compatible setting of $mydestination for $relay_domain (see [0]). [0] http://www.postfix.org/COMPATIBILITY_README.html#relay_domains Signed-off-by: Stoiko Ivanov --- proxinstall | 2 ++ 1 file

[pve-devel] [PATCH installer/manager v2] generate /etc/aliases.db

2019-10-23 Thread Stoiko Ivanov
e-manager's postinst script calling newaliases (to fix the issue for users having installed from our ISO before) Thanks to Martin for reporting this! pve-installer: Stoiko Ivanov (2): raise postifx main.cf compatibility_level to 2 ensure /etc/aliases.db is generated proxinstall | 4

[pve-devel] [PATCH manager v2 1/1] add versioned postinst run of newaliases

2019-10-23 Thread Stoiko Ivanov
When installing from ISO '/etc/aliases' gets written correctly, however postfix needs '/etc/aliases.db' (generated by running newaliases) in order to work. added to the postinst script to fix the issue for users having installed from the ISO before this fix. Signed-o

[pve-devel] [PATCH installer v2 2/2] ensure /etc/aliases.db is generated

2019-10-23 Thread Stoiko Ivanov
postfix relies on /etc/aliases.db for forwarding mail, without this file all mails get deferred. (see `man newaliases`) Signed-off-by: Stoiko Ivanov --- proxinstall | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxinstall b/proxinstall index 6ee3aa0..5d02b34 100755 --- a/proxinstall

Re: [pve-devel] [PATCH installer] fix postfix installation

2019-10-22 Thread Stoiko Ivanov
On Tue, 22 Oct 2019 09:22:24 +0200 Thomas Lamprecht wrote: > On 10/21/19 10:11 PM, Stoiko Ivanov wrote: > > by: > > * running /usr/bin/newaliases (generating /etc/aliases.db) > > * setting the compatibility_level to 2 > > ** otherwise a warning was issued with broken

[pve-devel] [PATCH installer] fix postfix installation

2019-10-21 Thread Stoiko Ivanov
ISO and creating a cronjob which runs 'echo test' every minute. Thanks to Martin for reporting this! [0] http://www.postfix.org/COMPATIBILITY_README.html#relay_domains Signed-off-by: Stoiko Ivanov --- proxinstall | 4 1 file changed, 4 insertions(+) diff --git a/proxinstall b/p

[pve-devel] [PATCH manager 1/1] change .pve-hint to .pmx-hint css-class

2019-10-07 Thread Stoiko Ivanov
With introducing pmx-hint to pmg as well, by adding a 'pmx-hint' css-class to proxmox-widget-toolkit, it makes sense to use the definition everywhere. this patch drops the .pve-hint class from pve's css and replaces all occurences in the GUI-source. Signed-off-by: Stoiko Ivanov --

[pve-devel] [PATCH widget-toolkit 1/1] add pmx-hint css class

2019-10-07 Thread Stoiko Ivanov
since we need it in PMG as well - pull it here (and independently refactor pve-manager) Signed-off-by: Stoiko Ivanov --- This patch also got sent to pmg-de...@proxmox.com with the dkim-series css/ext6-pmx.css | 4 1 file changed, 4 insertions(+) diff --git a/css/ext6-pmx.css b/css/ext6

[pve-devel] [PATCH manager/widget-toolkit] pull pve-hint into proxmox-widet-toolkit

2019-10-07 Thread Stoiko Ivanov
Since we need the pve-hint css-class in pmg as well this patchset pulls the definition into proxmox-widget-toolkit and changes its use throughout pve-manager. widget-toolkit: Stoiko Ivanov (1): add pmx-hint css class css/ext6-pmx.css | 4 1 file changed, 4 insertions(+) pve-manager

[pve-devel] [PATCH pve-kernel 4.15] fix #2354: backport 32-bit overflow fix in blk-lib

2019-09-19 Thread Stoiko Ivanov
orted.' warning) in Ubuntu-4.15.0-63.72, so it is not as high a priority. (Discards still don't work for LVS with 2T+ sizes) Signed-off-by: Stoiko Ivanov --- This patch fixes the issue on my reproducer. However - given that the original commit-message indicates to fix an issue introduced

Re: [pve-devel] [PATCH storage 0/3] Fixes for LIO backend

2019-09-17 Thread Stoiko Ivanov
Hi, Thanks for the patches and the work you put into them. On a first quick glance the changes look reasonable. I'll try to take a more detailed look and do some testing in the coming 1-2 weeks and provide some feedback! Best Regards, stoiko On Tue, 17 Sep 2019 12:44:01 +0200 Daniel Berteaud

[pve-devel] [PATCH common 2/2] CLIHandler: consider valid prefixes for completion

2019-07-30 Thread Stoiko Ivanov
f the available (sub) commands anymore. By checking if the current argument is a valid prefix of a possible command, and conditionally not setting the 'ref' hash to undef, the functionality is restored. Additionally a small whitespace glitch was fixed. Signed-off-by: Stoiko

[pve-devel] [PATCH common 0/2] fix partial shell completion

2019-07-30 Thread Stoiko Ivanov
command is a prefix of a valid command, and returns undef otherwise. Roughly tested, but 'resolve_cmd' is used in quite a few contexts and its return values often serve more than one purpose - so I'd be grateful for a review! Stoiko Ivanov (2): CLIHandler: remove spurious abor

[pve-devel] [PATCH common 1/2] CLIHandler: remove spurious abort()

2019-07-30 Thread Stoiko Ivanov
The abort currently cannot be reached, instead the error with the same message (unknown command '$cmdstr') in handle_cmd is raised. Signed-off-by: Stoiko Ivanov --- src/PVE/CLIHandler.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandle

[pve-devel] [PATCH docs v2 2/2] Refer to the bootloader chapter in remaining docs

2019-07-10 Thread Stoiko Ivanov
Editing the kernel commandline is described centrally in the bootloaders chapter. Refer to it where appropriate (qm-pci-passthrough.adoc). Additionally update the documentation on ZFS as rpool to the inclusion of `systemd-boot` Signed-off-by: Stoiko Ivanov --- local-zfs.adoc | 20

[pve-devel] [PATCH docs v2 0/2] add initial documentation for systemd-boot

2019-07-10 Thread Stoiko Ivanov
able for reading on the command-line (e.g. by creating a manpage out of it, or by copying it to /usr/share/doc/pve-docs as plain-text) - then we could refer to the information also in man-pages. Stoiko Ivanov (2): Add documentation on bootloaders (systemd-boot) Refer to the bootloader chapter in

[pve-devel] [PATCH docs v2 1/2] Add documentation on bootloaders (systemd-boot)

2019-07-10 Thread Stoiko Ivanov
stemd-boot` Signed-off-by: Stoiko Ivanov --- sysadmin.adoc | 2 + system-booting.adoc | 174 2 files changed, 176 insertions(+) create mode 100644 system-booting.adoc diff --git a/sysadmin.adoc b/sysadmin.adoc index 21537f1..e045610 100644

[pve-devel] [PATCH installer v2 2/2] copy /etc/hostid from installer root to target

2019-07-09 Thread Stoiko Ivanov
/hostid from the installer into the target system we ensure that it stays consistent Signed-off-by: Stoiko Ivanov --- proxinstall | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxinstall b/proxinstall index 97af4b9..b256c6e 100755 --- a/proxinstall +++ b/proxinstall @@ -1514,6 +1514,9

[pve-devel] [PATCH installer v2 0/2] create unique identifiers on install

2019-07-09 Thread Stoiko Ivanov
by installing twice successfully and comparing ids Stoiko Ivanov (2): fix #1603: create a new and unique machine-id copy /etc/hostid from installer root to target proxinstall | 5 + 1 file changed, 5 insertions(+) -- 2.20.1 *** BLURB HERE *** Stoiko Ivanov (2): fix #1603: create a new

[pve-devel] [PATCH installer v2 1/2] fix #1603: create a new and unique machine-id

2019-07-09 Thread Stoiko Ivanov
-by: Stoiko Ivanov --- proxinstall | 4 1 file changed, 4 insertions(+) diff --git a/proxinstall b/proxinstall index 380abdf..97af4b9 100755 --- a/proxinstall +++ b/proxinstall @@ -1510,6 +1510,10 @@ sub extract_data { diversion_add($targetdir, "/usr/sbin/update-grub",

[pve-devel] [PATCH installer 2/2] copy /etc/hostid from installer root to target

2019-07-09 Thread Stoiko Ivanov
/hostid from the installer into the target system we ensure that it stays consistent Signed-off-by: Stoiko Ivanov --- proxinstall | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxinstall b/proxinstall index 19d0896..8ac00d0 100755 --- a/proxinstall +++ b/proxinstall @@ -1511,6 +1511,8

[pve-devel] [PATCH installer 1/2] fix #1603: create a new and unique machine-id

2019-07-09 Thread Stoiko Ivanov
see machine-id(5). The machine-id serves as a partial replacement to the hostid (gethostid(3)) used by systemd and should be unique, by not shipping one in the ISO and generating one after the installation the installer ensures the uniqueness. Signed-off-by: Stoiko Ivanov --- proxinstall | 3

[pve-devel] [PATCH installer 0/2] create unique identifiers on install

2019-07-09 Thread Stoiko Ivanov
was not shipped in the installed system, which could lead to unimportable pools if it gets generated later on. Stoiko Ivanov (2): fix #1603: create a new and unique machine-id copy /etc/hostid from installer root to target proxinstall | 5 + 1 file changed, 5 insertions(+) -- 2.20.1

Re: [pve-devel] [PATCH docs 1/2] Add documentation on bootloaders (systemd-boot)

2019-07-08 Thread Stoiko Ivanov
On Mon, 8 Jul 2019 11:09:38 +0200 Aaron Lauterer wrote: > Some things that I have seen, mostly regarding style and readability. Thanks big time - incorporated and will be included in my v2 > > On 7/5/19 6:31 PM, Stoiko Ivanov wrote: > > With the recently added support for boot

Re: [pve-devel] [PATCH docs 1/2] Add documentation on bootloaders (systemd-boot)

2019-07-05 Thread Stoiko Ivanov
On Fri, 5 Jul 2019 19:21:52 +0200 Thomas Lamprecht wrote: > On 7/5/19 6:31 PM, Stoiko Ivanov wrote: > > With the recently added support for booting ZFS on root on EFI > > systems via `systemd-boot` the documentation needs adapting (mostly > > related to editing t

[pve-devel] [PATCH docs 0/2] add initial documentation for systemd-boot

2019-07-05 Thread Stoiko Ivanov
/Booting_a_ZFS_root_file_system_via_UEFI I was wondering whether we want to make the sysadmin chapter available for reading on the command-line (e.g. by creating a manpage out of it, or by copying it to /usr/share/doc/pve-docs as plain-text) - then we could refer to the information also in man-pages. Stoiko Ivanov (2): Add

[pve-devel] [PATCH docs 2/2] Refer to the bootloader chapter in remaining docs

2019-07-05 Thread Stoiko Ivanov
Editing the kernel commandline is described centrally in the bootloaders chapter. Refer to it where appropriate (qm-pci-passthrough.adoc). Additionally update the documentation on ZFS as rpool to the inclusion of `systemd-boot` Signed-off-by: Stoiko Ivanov --- local-zfs.adoc | 20

[pve-devel] [PATCH docs 1/2] Add documentation on bootloaders (systemd-boot)

2019-07-05 Thread Stoiko Ivanov
stemd-boot` Signed-off-by: Stoiko Ivanov --- sysadmin.adoc | 2 + system-booting.adoc | 144 2 files changed, 146 insertions(+) create mode 100644 system-booting.adoc diff --git a/sysadmin.adoc b/sysadmin.adoc index 21537f1..e045610 100644

[pve-devel] [PATCH installer 1/2] clear zpool labels on selected disks' partitions

2019-07-02 Thread Stoiko Ivanov
along with `pvremove -ff` and writing zeroes to the first 16M of all partitions, which belong to disks selected in the installer run `zpool labelclear`. This prevents a failure to boot after installation, if the disks were previously also used as a zpool called rpool, but in a different configurat

[pve-devel] [PATCH installer 2/2] use by-id diskpath for zpool create

2019-07-02 Thread Stoiko Ivanov
With the recent fixes to the installers initial /dev creation, the installer and the kernel should now have the same view on the created devices and links --- proxinstall | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/proxinstall b/proxinstall index 5f4544a..d3b2f7c 100755

[pve-devel] [PATCH installer 0/2] small improvements for installs on zfs

2019-07-02 Thread Stoiko Ivanov
to forget sending them next month ;) Stoiko Ivanov (2): clear zpool labels on selected disks' partitions use by-id diskpath for zpool create proxinstall | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.20.1 ___ pve-devel m

[pve-devel] [PATCH installer] update systemd-boot config after initializing esps

2019-07-01 Thread Stoiko Ivanov
run the kernel-postinst hook once (like we do for update-grub) instead of once per ESP. This fixes an error (the hook does not write entries for mounted partitions), and save quite a bit of (un)mounting and copying in case of multiple ESPs Signed-off-by: Stoiko Ivanov --- tested by successfully

[pve-devel] [PATCH proxmox-ve 1/1] add efiboot and autoremoval kernel postinst hooks

2019-06-27 Thread Stoiko Ivanov
In order to add support for booting with ZFS on Root on EFI systems this patch uses systemd-boot as boot loader. The rationale for not using grub is that there have been quite a few problems observed with grub and ZFS, e.g. certain RAID-controllers only having a 32bit implementation in grub, but Z

  1   2   3   4   5   >