[pve-devel] [PATCH manager 05/15] gui: ceph: add 'old' to ceph health

2019-05-27 Thread Dominik Csapak
this will be used for the dashboard to show outdated services/osds Signed-off-by: Dominik Csapak --- www/manager6/Utils.js | 4 1 file changed, 4 insertions(+) diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js index 67e461f5..87457078 100644 --- a/www/manager6/Utils.js +++ b/www

[pve-devel] [PATCH manager 10/15] gui: ceph: make status panel node independant

2019-05-27 Thread Dominik Csapak
and use the cluster wide api call if no nodename is given Signed-off-by: Dominik Csapak --- www/manager6/ceph/Status.js | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/www/manager6/ceph/Status.js b/www/manager6/ceph/Status.js index 78b6c925..8ab74ab3 100644

[pve-devel] [PATCH manager 08/15] gui: ceph: remove mon specific code from StatusDetail

2019-05-27 Thread Dominik Csapak
will be handled in ceph/Services.js Signed-off-by: Dominik Csapak --- www/manager6/ceph/StatusDetail.js | 144 +- 1 file changed, 2 insertions(+), 142 deletions(-) diff --git a/www/manager6/ceph/StatusDetail.js b/www/manager6/ceph/StatusDetail.js index

[pve-devel] [PATCH manager 04/15] gui: StateProvider: add fireevent option to set

2019-05-27 Thread Dominik Csapak
this way, we can control if we want to fire the 'statechanged' event when we set a value in the stateprovider Signed-off-by: Dominik Csapak --- www/manager6/StateProvider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/manager6/StateProvider.js b/www/manager6

[pve-devel] [PATCH manager 03/15] add cluster wide ceph api calls

2019-05-27 Thread Dominik Csapak
filesystem about the services, as well as the 'ceph YYY metadata' info we get from ceph. with this info we can convieniently display which services exists, which are running and which versions they have Signed-off-by: Dominik Csapak --- PVE/API2/Cluster.pm | 115

[pve-devel] [PATCH manager 02/15] broadcast ceph service data to cluster

2019-05-27 Thread Dominik Csapak
so that we have a list of all existing ceph services in the cluster Signed-off-by: Dominik Csapak --- PVE/Service/pvestatd.pm | 28 1 file changed, 28 insertions(+) diff --git a/PVE/Service/pvestatd.pm b/PVE/Service/pvestatd.pm index ce2adbbd..6cbd59fb 100755

[pve-devel] [PATCH manager 06/15] gui: ceph: add get_ceph_icon_html to utils

2019-05-27 Thread Dominik Csapak
returns html code for a ceph health icon, will be used in Services.js Signed-off-by: Dominik Csapak --- www/manager6/Utils.js | 9 + 1 file changed, 9 insertions(+) diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js index 87457078..a159445b 100644 --- a/www/manager6/Utils.js

Re: [pve-devel] LDAP integration with G Suite?

2019-05-27 Thread Dominik Csapak
Also we do not have a bounty program (or similar), but if you can find something that is willing to implement it for you s/something/someone/ of course :) ___ pve-devel mailing list pve-devel@pve.proxmox.com

[pve-devel] [PATCH cluster] get_node_kv: unpack result from pmxcfs

2019-05-27 Thread Dominik Csapak
in 'broadcast_node_kv' we send the status and make sure its always a scalar so it gets send as a null terminated string via pack(Z*) when we get it back from pmxcfs we have to unpack(Z*) again, or we get a string with a trailing '\0' Signed-off-by: Dominik Csapak --- data/PVE/Cluster.pm | 2

Re: [pve-devel] LDAP integration with G Suite?

2019-05-27 Thread Dominik Csapak
beforehand. (To avoid unnecessary work and patch revisions) Thanks, Victor I hope i could help you Regards, Dominik 0: https://git.proxmox.com/?p=pve-docs.git;a=summary 1: https://pve.proxmox.com/wiki/Developer_Documentation 2: https://bugzilla.proxmox.com On Fri, May 24, 2019 at 6:49 PM Domin

Re: [pve-devel] [RFC qemu-server] vm_resume: correctly honor $nocheck

2019-05-24 Thread Dominik Csapak
On 5/24/19 9:52 AM, Thomas Lamprecht wrote: On 5/24/19 9:36 AM, Fabian Grünbichler wrote: On Fri, May 24, 2019 at 08:24:17AM +0200, Dominik Csapak wrote: LGTM, i introduced this seemingly sometime last year... (oops) the question remains why it sometimes takes so long for a rename

Re: [pve-devel] LDAP integration with G Suite?

2019-05-24 Thread Dominik Csapak
hi, i now tested it successfully my /etc/pve/domains.cfg looks like this: 8< ldap: google base_dn dc=anguslab,dc=io server1 ldap.google.com user_attr uid verify 1 cert /root/google.crt certkey /root/google.key default 0

Re: [pve-devel] [RFC qemu-server] vm_resume: correctly honor $nocheck

2019-05-24 Thread Dominik Csapak
LGTM, i introduced this seemingly sometime last year... (oops) the question remains why it sometimes takes so long for a rename to be propagated in my opinion this violates the assumptions we make regarding ownership of files/vms since it seems here that nobody own the vm when this happens (the

Re: [pve-devel] LDAP integration with G Suite?

2019-05-24 Thread Dominik Csapak
On 5/23/19 5:46 PM, Victor Hooi wrote: G Suite also has audit records for the Secure LDAP service: https://i.imgur.com/rvV9BXL.png In this case - I can see entries for each time I used ldapsearch. However, I do *not* see any entries for each time I try to login on Proxmox. So it seems like

Re: [pve-devel] LDAP integration with G Suite?

2019-05-23 Thread Dominik Csapak
On 5/23/19 1:11 PM, Victor Hooi wrote: Hi, I thought I'd try setting the "secure" value to true: ``` # pvesh create /access/domains --realm anguslab.io --type ldap --base_dn dc=anguslab,dc=io --server1 ldap.google.com --port 636 --cert /root/Google_2022_05_22_3494.crt --certkey /root/Google_20

Re: [pve-devel] LDAP integration with G Suite?

2019-05-23 Thread Dominik Csapak
On 5/23/19 6:34 AM, Victor Hooi wrote: *(Sending again with screenshots removed)* Hi, Hi, Aha, I am glad to know it's meant to work out of the box - I merely had some concerns around support for LDAP certificate authentication (forum post

Re: [pve-devel] LDAP integration with G Suite?

2019-05-22 Thread Dominik Csapak
On 5/22/19 3:16 AM, Victor Hooi wrote: Hi, Hi, I'm interested in getting Proxmox's LDAP integrated with the Secure LDAP feature from G Suite. Does anybody know how difficult this would be, or what would be involved? As far as i can see from their guide[0], this should generally work out

Re: [pve-devel] [PATCH manager] Fix #352: Limit the length of backup logs for mails

2019-05-17 Thread Dominik Csapak
first of all, great that you include tests :) +1 second, i am not really happy with the approach, since it is quite a bit of code, for not that much gain On 5/14/19 12:20 PM, Dominic Jäger wrote: When creating a backup the log for a single job can be to big to be transferred by mail. To ensure

[pve-devel] [PATCH cluster v4 2/2] add generic data broadcast interface

2019-05-16 Thread Dominik Csapak
similar to how we handle the cluster wide tasklist and rrd data, have an interface that can sync data across the cluster this data is only transient and will not be written to disk we can use this for a number of things, e.g. listing ceph services across the cluster, etc. Signed-off-by: Dominik

[pve-devel] [PATCH cluster v4 0/2] generic broadcast interface

2019-05-16 Thread Dominik Csapak
this series add a new generic interface to broadcast (transient) data to the cluster members Dominik Csapak (2): pmxcfs: make status entry removable add generic data broadcast interface data/PVE/Cluster.pm | 54 + data/src/status.c | 4

[pve-devel] [PATCH cluster v4 1/2] pmxcfs: make status entry removable

2019-05-16 Thread Dominik Csapak
we can now do a CFS_IPC_SET_STATUS with no data, which results in removal of the entry in the kv entries Signed-off-by: Dominik Csapak --- new in v4 data/PVE/Cluster.pm | 6 ++ data/src/status.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/data/PVE/Cluster.pm b

Re: [pve-devel] [PATCH manager 2/2] fix #1451: add more mount options to containers in gui

2019-05-16 Thread Dominik Csapak
i would really like to have some kind of multiselect combobox instead of 4+ new checkboxes On 5/15/19 6:15 PM, Oguz Bektas wrote: adds atime related options (noatime, nodiratime, relatime, strictatime) and other extra mount options for performance (nobarrier) and security (noexec, nosuid,

Re: [pve-devel] [PATCH container 1/2] fix #1451: add more mount options for containers

2019-05-16 Thread Dominik Csapak
hmm, i am not sure if we want to add a seperate option for each one? maybe it would be better to have one 'mountoptions' option that is a ';' seperated list like the qemu cpu flags? @Wolfgang, @Thomas what do you say? On 5/15/19 6:15 PM, Oguz Bektas wrote: added atime-related options (noatime,

Re: [pve-devel] [PATCH storage 0/1] Fix for ZFS over iSCSI on Solaris 11

2019-05-16 Thread Dominik Csapak
On 5/15/19 5:19 PM, David Hedbor wrote: I'm testing out ZFS over iSCSI with a Oracle Solaris 11.3 server (Sparc based specifically). It almost works - what doesn't work is when I try to act on the disk in any way (such as start KVM). Specifically it is unable to find the LUN. Looking at the

[pve-devel] [PATCH mini-journalreader v2 5/5] use memcpy/cmp instead of strncpy/cmp

2019-05-16 Thread Dominik Csapak
faster since it does not have to look for '\0' Signed-off-by: Dominik Csapak --- src/mini-journalreader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mini-journalreader.c b/src/mini-journalreader.c index 3be348e..d5c55fd 100644 --- a/src/mini-journalreader.c

[pve-devel] [PATCH mini-journalreader v2 2/5] fix implicit type conversions

2019-05-16 Thread Dominik Csapak
by either fixing the type, or manually casting this makes the types more explicit Signed-off-by: Dominik Csapak --- src/mini-journalreader.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mini-journalreader.c b/src/mini-journalreader.c index fd229b9..0747d7c

[pve-devel] [PATCH mini-journalreader v2 3/5] reuse get_timestamp

2019-05-16 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- src/mini-journalreader.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mini-journalreader.c b/src/mini-journalreader.c index 0747d7c..1586592 100644 --- a/src/mini-journalreader.c +++ b/src/mini-journalreader.c @@ -110,11 +110,9

[pve-devel] [PATCH mini-journalreader v2 1/5] add static to functions

2019-05-16 Thread Dominik Csapak
this changes link behaviour and those functions are not exported to other files when some c code is linked against our code Signed-off-by: Dominik Csapak --- src/mini-journalreader.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/mini

[pve-devel] [PATCH mini-journalreader v2 0/5] various fixes/improvements

2019-05-16 Thread Dominik Csapak
fixes various type issues and changes to fwrite_unlocked from write for more details see the commit messages changes from v1: * more detailed commit messages Dominik Csapak (5): add static to functions fix implicit type conversions reuse get_timestamp use fwrite_unlocked instead

[pve-devel] [PATCH mini-journalreader v2 4/5] use fwrite_unlocked instead of manually printing to buffer

2019-05-16 Thread Dominik Csapak
this does the same as our old code, but is a lot shorter, so it was uneccessary to have and the performance is the same (no measureable difference) we still need a wrapper to be sure that we wrote everything Signed-off-by: Dominik Csapak --- src/mini-journalreader.c | 34

[pve-devel] [PATCH mini-journalreader 4/5] use fwrite_unlocked instead of manually printing to buffer

2019-05-16 Thread Dominik Csapak
we still need a wrapper to be sure that we wrote everything Signed-off-by: Dominik Csapak --- src/mini-journalreader.c | 34 ++ 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/src/mini-journalreader.c b/src/mini-journalreader.c index 1586592

[pve-devel] [PATCH mini-journalreader 5/5] use memcpy/cmp instead of strncpy/cmp

2019-05-16 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- src/mini-journalreader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mini-journalreader.c b/src/mini-journalreader.c index 3be348e..d5c55fd 100644 --- a/src/mini-journalreader.c +++ b/src/mini-journalreader.c @@ -91,12 +91,12

[pve-devel] [PATCH mini-journalreader 0/5] various fixes/improvements

2019-05-16 Thread Dominik Csapak
fixes various type issues and changes to fwrite_unlocked from write Dominik Csapak (5): add static to functions fix implicit type conversions reuse get_timestamp use fwrite_unlocked instead of manually printing to buffer use memcpy/cmp instead of strncpy/cmp src/mini-journalreader.c

[pve-devel] [PATCH mini-journalreader 2/5] fix implicit type conversions

2019-05-16 Thread Dominik Csapak
by either fixing the type, or manually casting Signed-off-by: Dominik Csapak --- src/mini-journalreader.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mini-journalreader.c b/src/mini-journalreader.c index fd229b9..0747d7c 100644 --- a/src/mini-journalreader.c

[pve-devel] [PATCH mini-journalreader 1/5] add static to functions

2019-05-16 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- src/mini-journalreader.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/mini-journalreader.c b/src/mini-journalreader.c index 508de02..fd229b9 100644 --- a/src/mini-journalreader.c +++ b/src/mini-journalreader.c

[pve-devel] [PATCH mini-journalreader 3/5] reuse get_timestamp

2019-05-16 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- src/mini-journalreader.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mini-journalreader.c b/src/mini-journalreader.c index 0747d7c..1586592 100644 --- a/src/mini-journalreader.c +++ b/src/mini-journalreader.c @@ -110,11 +110,9

Re: [pve-devel] [PATCH pmg-api v2 1/1] node: add journal api

2019-05-15 Thread Dominik Csapak
disregard this for now, copying was not enough ___ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH manager v2 1/2] node: add journal api

2019-05-15 Thread Dominik Csapak
this uses the new journalreader instead of journalctl, which is a bit faster and can read from/to cursor and returns a start/end cursor also you can give an unix epoch as time parameters Signed-off-by: Dominik Csapak --- PVE/API2/Nodes.pm | 71

[pve-devel] [PATCH manager v2 2/2] gui: node: change syslog to JournalView and journal api

2019-05-15 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- www/manager6/node/Config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/www/manager6/node/Config.js b/www/manager6/node/Config.js index 831d2e02..700ca611 100644 --- a/www/manager6/node/Config.js +++ b/www/manager6/node/Config.js

[pve-devel] [PATCH widget-toolkit/manager/pmg-api v2] improve syslog tab

2019-05-15 Thread Dominik Csapak
-> lastentries * add the same api call to pmg-api (i will send the pmg-gui patch later) * add dependency of pve-manager/pmg-api proxmox-widget-toolkit: Dominik Csapak (1): add panel/JournalView Makefile | 1 + panel/JournalView.js | 335 +++

[pve-devel] [PATCH pmg-api v2 1/1] node: add journal api

2019-05-15 Thread Dominik Csapak
this uses the new journalreader instead of journalctl, which is a bit faster and can read from/to cursor and returns a start/end cursor also you can give an unix epoch as time parameters Signed-off-by: Dominik Csapak --- PMG/API2/Nodes.pm | 71

[pve-devel] [PATCH widget-toolkit v2 1/1] add panel/JournalView

2019-05-15 Thread Dominik Csapak
-off-by: Dominik Csapak --- Makefile | 1 + panel/JournalView.js | 335 +++ 2 files changed, 336 insertions(+) create mode 100644 panel/JournalView.js diff --git a/Makefile b/Makefile index d2b905c..049a1fb 100644 --- a/Makefile +++ b

Re: [pve-devel] [PATCH storage] pvesm set: handle deletion of properties

2019-05-15 Thread Dominik Csapak
works like expected, there is some issue in the context though (comment inline) On 5/14/19 4:24 PM, Thomas Lamprecht wrote: the delete parameter get's injected by the SectionConfigs updateSchem, but we need to handle it ourself in the code This makes the following possible: pvesm set

[pve-devel] [PATCH common] prevent autovivification of sectionconfig options

2019-05-15 Thread Dominik Csapak
of entries when updating an entry of a different type, since all entries of the original types suddenly did not satisfy their required options and would not get parsed by read_file anymore (thus missing when a successful write_file was done) Signed-off-by: Dominik Csapak --- src/PVE

[pve-devel] [PATCH cluster v3] add generic data broadcast interface

2019-05-14 Thread Dominik Csapak
similar to how we handle the cluster wide tasklist and rrd data, have an interface that can sync data across the cluster this data is only transient and will not be written to disk we can use this for a number of things, e.g. listing ceph services across the cluster, etc. Signed-off-by: Dominik

Re: [pve-devel] [RFC manager 1/2] node: add journal api

2019-05-13 Thread Dominik Csapak
On 5/13/19 4:32 PM, Dietmar Maurer wrote: comments inline On 13 May 2019 at 14:49 Dominik Csapak wrote: this uses the new journalreader instead of journalctl, which is a bit faster and can read from/to cursor and returns a start/end cursor also you can give an unix epoch as time parameters

Re: [pve-devel] [RFC manager 1/2] node: add journal api

2019-05-13 Thread Dominik Csapak
i found an error (comment inline) On 5/13/19 2:49 PM, Dominik Csapak wrote: this uses the new journalreader instead of journalctl, which is a bit faster and can read from/to cursor and returns a start/end cursor also you can give an unix epoch as time parameters Signed-off-by: Dominik Csapak

Re: [pve-devel] [RFC widget-toolkit 1/1] add panel/JournalView

2019-05-13 Thread Dominik Csapak
there is an error in this patch(comment inline) On 5/13/19 2:49 PM, Dominik Csapak wrote: similar to LogView, but expects the result from the /node/journal api call, which is an array of strings, with start/endcursor instead of an array of objects with line numbers the new api call also does

[pve-devel] [RFC common 1/1] add Tools::print_journal

2019-05-13 Thread Dominik Csapak
which uses the new journalreader tool instead of journalctl, with different parameters and a different return format: array of strings with a start/end cursor Signed-off-by: Dominik Csapak --- src/PVE/Tools.pm | 25 + 1 file changed, 25 insertions(+) diff --git a/src

[pve-devel] [RFC widget-toolkit 1/1] add panel/JournalView

2019-05-13 Thread Dominik Csapak
-off-by: Dominik Csapak --- Makefile | 1 + panel/JournalView.js | 335 +++ 2 files changed, 336 insertions(+) create mode 100644 panel/JournalView.js diff --git a/Makefile b/Makefile index d2b905c..049a1fb 100644 --- a/Makefile +++ b

[pve-devel] [RFC pve-journalreader 1/1] inital commit for journalreader

2019-05-13 Thread Dominik Csapak
provides a minimalistic binary to show the journal content shows a cursor after and before the output Signed-off-by: Dominik Csapak --- Makefile | 23 debian/changelog | 5 + debian/compat| 1 + debian/control | 13 ++ debian/copyright | 22

[pve-devel] [RFC manager 1/2] node: add journal api

2019-05-13 Thread Dominik Csapak
this uses the new journalreader instead of journalctl, which is a bit faster and can read from/to cursor and returns a start/end cursor also you can give an unix epoch as time parameters Signed-off-by: Dominik Csapak --- PVE/API2/Nodes.pm | 52

[pve-devel] [RFC journalreader/common/widget-toolkit/manager] improve syslog tab

2019-05-13 Thread Dominik Csapak
structure, but found no good way to keep backwards compatibility pve-journalreader: Dominik Csapak (1): inital commit for journalreader pve-common: Dominik Csapak (1): add Tools::print_journal src/PVE/Tools.pm | 25 + 1 file changed, 25 insertions(+) proxmox-widget

[pve-devel] [RFC manager 2/2] gui: node: change syslog to JournalView and journal api

2019-05-13 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- www/manager6/node/Config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/www/manager6/node/Config.js b/www/manager6/node/Config.js index 831d2e02..700ca611 100644 --- a/www/manager6/node/Config.js +++ b/www/manager6/node/Config.js

Re: [pve-devel] [PATCH v2 manager] fix #2185: add option to change nfs version on gui

2019-05-13 Thread Dominik Csapak
On 5/13/19 8:23 AM, Thomas Lamprecht wrote: Am 5/10/19 um 2:52 PM schrieb Oguz Bektas: this enables us to specify an nfs version while editing/creating an nfs mount. it used to default to vers=3 without the ability to change it in gui. now it supports: 3, 4, 4.1 and 4.2 it should also be

Re: [pve-devel] [PATCH manager] ui: NodeSelector: check status field for offline nodes

2019-05-10 Thread Dominik Csapak
On 5/9/19 6:32 PM, Thomas Lamprecht wrote: On 5/8/19 11:12 AM, Dominik Csapak wrote: the memory stat is not available if the user has no audit privilges on /nodes/NODENAME but the status is always available but couldn't it be argued that this is desired behaviour? Or is it out of consistency

[pve-devel] [PATCH manager] ui: NodeSelector: check status field for offline nodes

2019-05-08 Thread Dominik Csapak
the memory stat is not available if the user has no audit privilges on /nodes/NODENAME but the status is always available also it makes simple more sense to check if it is online not only if the memory value is there Signed-off-by: Dominik Csapak --- www/manager6/form/NodeSelector.js | 2 +- 1

[pve-devel] [PATCH manager 1/2] ui: TFAEdit: change tfa_type default to null

2019-05-07 Thread Dominik Csapak
If a dependency of a formula returns undefined, it will not get updated, even if the other parts of the formula would work. So we change the default to 'null' which gets handled differently, but serves the same purpose for us. Signed-off-by: Dominik Csapak --- www/manager6/dc/TFAEdit.js | 10

[pve-devel] [PATCH manager 2/2] ui: TFAEdit: use new tfa api call

2019-05-07 Thread Dominik Csapak
with the api call to userid/tfa we get the users tfa type as well as the realm tfa type, so we can replace the call to the realm with this to properly show the loadmask, we want to initiate the api call when the window is already shown, the 'show' event works for this Signed-off-by: Dominik

Re: [pve-devel] [PATCH storage] Fix #582: Make removing backups a background task

2019-05-07 Thread Dominik Csapak
i would prefer that it behaves like the update_vm_api sub in PVE/API2/Qemu.pm (line ~1000) there we have a parameter 'background_delay' which we could use to make the removal async (this can already work in the gui) and the return value is type string but optional, so you could return undef

[pve-devel] [PATCH manager v2] fix #2183: fix blinking subscription and show unknown status

2019-05-03 Thread Dominik Csapak
we skip offline nodes, check for nodes without subscription, and finally check for different levels if for some reason we do not get any subscription status (should not happen) we show 'unknown' Signed-off-by: Dominik Csapak --- changes from v1: * explicitely check for offline nodes

Re: [pve-devel] [PATCH qemu 2/2] migrate: log which local resource causes error

2019-05-03 Thread Dominik Csapak
On 5/3/19 1:38 PM, Tim Marx wrote: It looks like this: can't migrate VM which uses local devices-usb1-usb2-usb0-hostpci0 Seems ok for me? mhmm looks weird to me since devices-1-2-3-4 is not a real word/sentence/... would it not also work to build an array and simply return that? if some

Re: [pve-devel] [PATCH qemu 2/2] migrate: log which local resource causes error

2019-05-03 Thread Dominik Csapak
afaics, the error will look like: "can't migrate VM which uses local devicesivshmem-usb0-hostpci1' ? would it not be better to do something like my $loc_res = []; loop { push @$loc_res, 'local_resource'; } return join(", ", @$loc_res)? On 5/3/19 1:25 PM, Tim Marx wrote: Signed-off-by:

[pve-devel] [PATCH cluster v2] add generic data broadcast interface

2019-05-03 Thread Dominik Csapak
across the cluster, etc. Signed-off-by: Dominik Csapak --- sending it alone, awaiting review of the rest of my series changes from v1: * use modern sub syntax * better naming data/PVE/Cluster.pm | 47 +++ 1 file changed, 47 insertions(+) diff --git

[pve-devel] [PATCH access-control v2] add /access/user/{id}/tfa api call to get tfa types

2019-05-03 Thread Dominik Csapak
this api call will be used to display the right kind of tfa for the gui Signed-off-by: Dominik Csapak --- i send only this for now in v2, waiting for the review of the gui changes from v1: * enums in return values * no postif variable declarations PVE/API2/User.pm | 59

[pve-devel] [PATCH widget-toolkit v2 1/2] show cidr in network view and optimize renderer

2019-05-03 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- node/NetworkView.js | 45 + 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/node/NetworkView.js b/node/NetworkView.js index b38a07e..e3f7e60 100644 --- a/node/NetworkView.js +++ b/node/NetworkView.js

[pve-devel] [PATCH common v2 2/2] INotify: map address/netmask to cidr while parsing interfaces

2019-05-03 Thread Dominik Csapak
ave a new field that contains that information again (cidr) Signed-off-by: Dominik Csapak --- changes from v1: * moved the cidr parsing into the if condition src/PVE/INotify.pm | 32 1 file changed, 32 insertions(+) diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.p

Re: [pve-devel] [PATCH manager] make the logout button a menu and move the username there

2019-05-03 Thread Dominik Csapak
On 4/18/19 1:46 PM, Dominik Csapak wrote: so we have a more 'web-app' like appearance for the user the menu contains links to: * browser localstorage settings * password change * tfa change * logout any comment? ___ pve-devel mailing list pve-devel

[pve-devel] [PATCH common v2 1/2] JSONSchema: add get_netmask_bits and missing netmask

2019-05-03 Thread Dominik Csapak
so one can use the mapping from outside the module Signed-off-by: Dominik Csapak --- src/PVE/JSONSchema.pm | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 51ef3ab..d458ec1 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE

[pve-devel] [PATCH manager v2 1/1] add new parameters cidr(6) to the network api

2019-05-03 Thread Dominik Csapak
to also allow to set it directly and not via address/netmask Signed-off-by: Dominik Csapak --- changes from v1: * indented correctly PVE/API2/Network.pm | 44 +++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/PVE/API2/Network.pm b/PVE

[pve-devel] [PATCH common/manager/pmg-api/widget-toolkit v2] implement cidr api for host network

2019-05-03 Thread Dominik Csapak
and vms changes from v1: * moved the cidr parsing in the if condition * indented correctly i send it only to pve-devel from now on pve-common: Dominik Csapak (2): JSONSchema: add get_netmask_bits and missing netmask INotify: map address/netmask to cidr while parsing interfaces src/PVE

[pve-devel] [PATCH pmg-api v2 1/1] add new parameters cidr(6) to the network api

2019-05-03 Thread Dominik Csapak
to also allow to set it directly and not only via address/netmask Signed-off-by: Dominik Csapak --- changes from v1: * indented correctly PMG/API2/Network.pm | 44 +++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/PMG/API2/Network.pm b

[pve-devel] [PATCH widget-toolkit v2 2/2] change network input from address/netmask to cidr and change labels

2019-05-03 Thread Dominik Csapak
this makes the ui easier and is consistent with the rest of our ui (container and cloud init) Signed-off-by: Dominik Csapak --- node/NetworkEdit.js | 68 +++-- 1 file changed, 8 insertions(+), 60 deletions(-) diff --git a/node/NetworkEdit.js b

[pve-devel] [PATCH widget-toolkit] reduce syslog api calls

2019-04-30 Thread Dominik Csapak
do not poll the syslog api call multiple times simultaneously, since it can be very costly, depending on the journal size with this, there is always only one per client Signed-off-by: Dominik Csapak --- panel/LogView.js | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

Re: [pve-devel] [RFC cluster 1/1] add generic data broadcast interface

2019-04-29 Thread Dominik Csapak
not yet really sure about this, or better said, I'm sure I don't want this for locks, but for things like ceph service states it could be OK. yeah i am not sure about this either, hence i sent it as RFC ;) i would prefer it for locks over the config parsing in the api call though hmm, I'm

Re: [pve-devel] [RFC manager 1/3] add get_local_services for ceph

2019-04-26 Thread Dominik Csapak
On 4/26/19 10:47 AM, Thomas Lamprecht wrote: Am 4/26/19 um 8:21 AM schrieb Dominik Csapak: this returns a hash of existing service links for mds/mgr/mons so that we know which services exists this is necessary since ceph itself does not save if a service is defined somewhere, only when it runs

Re: [pve-devel] [RFC cluster 1/1] add generic data broadcast interface

2019-04-26 Thread Dominik Csapak
On 4/26/19 10:43 AM, Thomas Lamprecht wrote: Am 4/26/19 um 8:21 AM schrieb Dominik Csapak: similar to how we handle the cluster wide tasklist and rrd data, have an interface that can sync data across the cluster this data is only transient and will not be written to disk we can use

[pve-devel] [RFC manager 2/3] broadcast ceph service data to cluster

2019-04-26 Thread Dominik Csapak
so that we have a list of all existing ceph services in the cluster Signed-off-by: Dominik Csapak --- PVE/Service/pvestatd.pm | 14 ++ 1 file changed, 14 insertions(+) diff --git a/PVE/Service/pvestatd.pm b/PVE/Service/pvestatd.pm index ce2adbbd..b8abc8f2 100755 --- a/PVE/Service

[pve-devel] [RFC cluster 1/1] add generic data broadcast interface

2019-04-26 Thread Dominik Csapak
across the cluster, etc. Signed-off-by: Dominik Csapak --- data/PVE/Cluster.pm | 47 +++ 1 file changed, 47 insertions(+) diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm index 5af11e6..ea36a0a 100644 --- a/data/PVE/Cluster.pm +++ b/data/PVE

[pve-devel] [RFC manager 3/3] add cluster wide ceph api calls

2019-04-26 Thread Dominik Csapak
filesystem about the services, as well as the 'ceph YYY metadata' info we get from ceph. with this info we can convieniently display which services exists, which are running and which versions they have Signed-off-by: Dominik Csapak --- PVE/API2/Cluster.pm | 64

[pve-devel] [RFC manager 1/3] add get_local_services for ceph

2019-04-26 Thread Dominik Csapak
this returns a hash of existing service links for mds/mgr/mons so that we know which services exists this is necessary since ceph itself does not save if a service is defined somewhere, only when it runs Signed-off-by: Dominik Csapak --- PVE/Ceph/Services.pm | 18 ++ 1 file

[pve-devel] [RFC cluster/manager] prepare for cluster wide ceph dashboard

2019-04-26 Thread Dominik Csapak
option, or a compelling opinion for any other of the options, please share it Dominik Csapak (1): add generic data broadcast interface data/PVE/Cluster.pm | 47 +++ 1 file changed, 47 insertions(+) pve-manager: Dominik Csapak (3): add

[pve-devel] [PATCH manager] adapt osd api call for ceph nautilus

2019-04-19 Thread Dominik Csapak
ceph nautilus changed the structure of 'pg dump osds' they moved the data one level below parse both new and old format, and bail if it returns anything else Signed-off-by: Dominik Csapak --- PVE/API2/Ceph/OSD.pm | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git

[pve-devel] [PATCH manager] fix #2183: fix blinking subscription and show unknown status

2019-04-18 Thread Dominik Csapak
not happen) we show 'unknown' Signed-off-by: Dominik Csapak --- www/manager6/dc/Summary.js | 36 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/www/manager6/dc/Summary.js b/www/manager6/dc/Summary.js index 091ece76..b26eeb92 100644 --- a/www/manager6/dc

[pve-devel] [PATCH manager] make the logout button a menu and move the username there

2019-04-18 Thread Dominik Csapak
so we have a more 'web-app' like appearance for the user the menu contains links to: * browser localstorage settings * password change * tfa change * logout Signed-off-by: Dominik Csapak --- this patch needs my previous series for tfa, to correctly use the TFAEdit window www/manager6

[pve-devel] [PATCH access-control 1/1] add /access/user/{id}/tfa api call to get tfa types

2019-04-18 Thread Dominik Csapak
this api call will be used to display the right kind of tfa for the gui Signed-off-by: Dominik Csapak --- PVE/API2/User.pm | 56 1 file changed, 56 insertions(+) diff --git a/PVE/API2/User.pm b/PVE/API2/User.pm index 4458fc1..afdbfee

[pve-devel] [PATCH access-control/manager] improve TFA Panel

2019-04-18 Thread Dominik Csapak
this series adds a new api call to get the tfa type(s) and uses that in the tfa panel to show/hide/disable the correct things, while doing this we optimize the panel a bit Dominik Csapak (1): add /access/user/{id}/tfa api call to get tfa types PVE/API2/User.pm | 56

[pve-devel] [PATCH manager 1/1] dc/TFAEdit: rewrite enabling/disabling logic using userid/tfa api call

2019-04-18 Thread Dominik Csapak
instead of that, simply enable or disable the component directly (especially since this was only called once anyway) keep the viewmodel for things that can change dynamically, e.g. the tab or the validity Signed-off-by: Dominik Csapak --- www/manager6/dc/TFAEdit.js | 163

[pve-devel] [PATCH manager] fix #1910: urlencode usernames in UserEdit

2019-04-17 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- www/manager6/dc/UserEdit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/manager6/dc/UserEdit.js b/www/manager6/dc/UserEdit.js index 8dd1ae53..1665f4b0 100644 --- a/www/manager6/dc/UserEdit.js +++ b/www/manager6/dc/UserEdit.js @@ -17,7

[pve-devel] [PATCH manager 2/2] allow overwriting u2f key

2019-04-17 Thread Dominik Csapak
so one can setup a new u2f key when one is already set, otherwise showing anything at all makes no sense Signed-off-by: Dominik Csapak --- www/manager6/dc/TFAEdit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/manager6/dc/TFAEdit.js b/www/manager6/dc/TFAEdit.js index

[pve-devel] [PATCH manager 1/2] fix wrongly disabled TFA Window

2019-04-17 Thread Dominik Csapak
if we have no info about TFA in the userview (x as key instead of x!oath or x!u2f) we disabled the whole window and the only action was to delete instead show all options, so the user can overwrite the setting Signed-off-by: Dominik Csapak --- www/manager6/dc/TFAEdit.js | 4 ++-- 1 file

[pve-devel] [PATCH widget-toolkit 1/2] show cidr in network view and optimize renderer

2019-04-16 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- node/NetworkView.js | 45 + 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/node/NetworkView.js b/node/NetworkView.js index b38a07e..e3f7e60 100644 --- a/node/NetworkView.js +++ b/node/NetworkView.js

[pve-devel] [PATCH common 2/2] INotify: map address/netmask to cidr while parsing interfaces

2019-04-16 Thread Dominik Csapak
ave a new field that contains that information again (cidr) Signed-off-by: Dominik Csapak --- src/PVE/INotify.pm | 32 1 file changed, 32 insertions(+) diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm index c52d992..83c592a 100644 --- a/src/PVE/INotify.pm +++ b/src

[pve-devel] [PATCH pmg-api 1/1] add new parameters cidr(6) to the network api

2019-04-16 Thread Dominik Csapak
to also allow to set it directly and not only via address/netmask Signed-off-by: Dominik Csapak --- PMG/API2/Network.pm | 44 +++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/PMG/API2/Network.pm b/PMG/API2/Network.pm index 6636553

[pve-devel] [PATCH widget-toolkit 2/2] change network input from address/netmask to cidr and change labels

2019-04-16 Thread Dominik Csapak
this makes the ui easier and is consistent with the rest of our ui (container and cloud init) Signed-off-by: Dominik Csapak --- node/NetworkEdit.js | 68 +++-- 1 file changed, 8 insertions(+), 60 deletions(-) diff --git a/node/NetworkEdit.js b

[pve-devel] [PATCH manager 1/1] add new parameters cidr(6) to the network api

2019-04-16 Thread Dominik Csapak
to also allow to set it directly and not only via address/netmask Signed-off-by: Dominik Csapak --- PVE/API2/Network.pm | 44 +++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/PVE/API2/Network.pm b/PVE/API2/Network.pm index 0284410a

[pve-devel] [PATCH common/manager/pmg-api/widget-toolkit] implement cidr api for host network

2019-04-16 Thread Dominik Csapak
and vms pve-common: Dominik Csapak (2): JSONSchema: add get_netmask_bits and missing netmask INotify: map address/netmask to cidr while parsing interfaces src/PVE/INotify.pm| 32 src/PVE/JSONSchema.pm | 6 ++ 2 files changed, 38 insertions(+) pve

[pve-devel] [PATCH qemu-server 2/2] allow non root users to add spice usb port

2019-04-12 Thread Dominik Csapak
using the same logic like serialX: socket users need VM.Config.HWType for usbX: spice but only root can add/remove real devices Signed-off-by: Dominik Csapak --- PVE/API2/Qemu.pm | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE

[pve-devel] [PATCH qemu-server 1/2] move check for serialX: socket

2019-04-12 Thread Dominik Csapak
since we do not want the user to change a device which has a real devices already set, we have to check it later when we have the config so we do not have to give the params to vm_check_modify_config_perm anymore also improve the regex to \d+ Signed-off-by: Dominik Csapak --- PVE/API2/Qemu.pm

[pve-devel] [PATCH qemu-server] fix #1811: allow non root user to edit serialX: socket entries

2019-04-11 Thread Dominik Csapak
use VM.Config.HWType for 'socket' and root@pam for real serial devices Signed-off-by: Dominik Csapak --- PVE/API2/Qemu.pm | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index d8c9726..7195ec2 100644 --- a/PVE/API2

<    3   4   5   6   7   8   9   10   11   12   >