Re: [pve-devel] [PATCH ha-manager 1/3] add after_fork method to HA environment and use it in LRM

2016-01-27 Thread Dietmar Maurer
applied all 3 patches ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH common] add upid_wait method

2016-01-27 Thread Dietmar Maurer
applied ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH pve-manager] ext6migrate: fix picker dropdown on ViewSelector initial load

2016-01-27 Thread Dietmar Maurer
applied ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH container 3/3] added 'acl' and 'ro' mountpoint options

2016-01-27 Thread Dietmar Maurer
applied, thanks! ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH container 2/3] lxc.rootfs and lxc.rootfs.options are now invalid

2016-01-27 Thread Dietmar Maurer
applied ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH container 1/3] Remove weird config key entries

2016-01-27 Thread Dietmar Maurer
applied ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH container] fix PVE::HA use clauses

2016-01-27 Thread Thomas Lamprecht
remove to unecessary use clauses and add the PVE2 environment use clause to the other so that the correct HA resource plugins get registered Signed-off-by: Thomas Lamprecht --- src/PVE/API2/LXC.pm | 1 + src/PVE/API2/LXC/Config.pm | 1 - src/PVE/API2/LXC/Snapshot.pm | 1 - src/PVE/API

[pve-devel] Fixing use clauses regarding HA resource plugin changes

2016-01-27 Thread Thomas Lamprecht
Some tools check if a resource is HA Managed in which case the forward the call to the ha-manager, those are namely qm, pct, vzdump. As we changed the way HA resource plugins get registered lately we need to add the respective Environment class to those wo make a "is_vm_ha_managed" check. __

[pve-devel] [PATCH qemu-server] fix PVE::HA use clause so HA resources get registered

2016-01-27 Thread Thomas Lamprecht
Signed-off-by: Thomas Lamprecht --- PVE/API2/Qemu.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index c1dba72..39bd248 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -21,6 +21,7 @@ use PVE::INotify; use PVE::Network; use PVE::Firewall; use

[pve-devel] [PATCH manager] fix PVE::HA use clause so HA resources get registered

2016-01-27 Thread Thomas Lamprecht
Signed-off-by: Thomas Lamprecht --- PVE/API2/Nodes.pm | 1 + PVE/VZDump.pm | 1 + 2 files changed, 2 insertions(+) diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm index b48478d..c265c09 100644 --- a/PVE/API2/Nodes.pm +++ b/PVE/API2/Nodes.pm @@ -23,6 +23,7 @@ use PVE::Firewall; use PVE::L

[pve-devel] [PATCH pve-manager] ext6migrate: fix picker dropdown on ViewSelector initial load

2016-01-27 Thread Emmanuel Kasper
This fixes a nasty bug where an initial click on the ViewSelector trigger would display the picker but hide it immediatly afterwards. What was happening behind the scene, is that without queryMode 'local', the store bound to the picker was loaded on each picker display. Loading the store would t

[pve-devel] [PATCH ha-manager 3/3] move upid_wait from PVE2 env to HA::Tools

2016-01-27 Thread Thomas Lamprecht
We can now use the new wait_upid from PVE::Tools and we output a "Task still active" every five seconds instead of every second, so we trash the log less. Signed-off-by: Thomas Lamprecht --- src/PVE/HA/Env/PVE2.pm| 12 src/PVE/HA/Resources/PVECT.pm | 8 +--- src/PVE/HA/

[pve-devel] [PATCH ha-manager 2/3] fix check if a resource migrated correctly

2016-01-27 Thread Thomas Lamprecht
Move the check from exec_resource_agents to the migrate method of the resource plugins so that we may delete the traces from the additional method 'is_on_node' which was intended for this purpose. Signed-off-by: Thomas Lamprecht --- src/PVE/HA/LRM.pm | 4 ++-- src/PVE/HA/Resour

[pve-devel] [PATCH ha-manager 1/3] add after_fork method to HA environment and use it in LRM

2016-01-27 Thread Thomas Lamprecht
As both the realtime simulator and the real world Environment can fork but we only need to clean up after a fork in the real world introduce a after_fork method In PVE2 it closes the inherited INotify fd and reopens it for the worker. Also a cfs_update gets triggered as (other) workers may change

[pve-devel] [PATCH common] add upid_wait method

2016-01-27 Thread Thomas Lamprecht
Waits for a process identified by a UPID to end by busy waiting and is intended for long running workers. waitfunc gets called every wait cycle after min $sleep_interval seconds and can be used for outputting/logging something or timing out the wait. Signed-off-by: Thomas Lamprecht --- changes:

[pve-devel] [PATCH manager] PendingObjectGrid hasPendingChanges optimization

2016-01-27 Thread Wolfgang Bumiller
Break out of Ext.Array.each early by returning false when we found a pending change. --- www/manager/grid/PendingObjectGrid.js | 1 + www/manager6/grid/PendingObjectGrid.js | 1 + 2 files changed, 2 insertions(+) diff --git a/www/manager/grid/PendingObjectGrid.js b/www/manager/grid/PendingObjec

[pve-devel] [PATCH v2 manager] gui: preserve extra cpu options when changing CPU type

2016-01-27 Thread Wolfgang Bumiller
--- www/manager/Parser.js | 59 ++- www/manager/qemu/ProcessorEdit.js | 23 +-- 2 files changed, 78 insertions(+), 4 deletions(-) diff --git a/www/manager/Parser.js b/www/manager/Parser.js index 5f15a76..90c98c7 100644 --- a/www/manager/

[pve-devel] [PATCH container 2/3] lxc.rootfs and lxc.rootfs.options are now invalid

2016-01-27 Thread Wolfgang Bumiller
lxc.rootfs has been a conflicting option already but now lxc.rootfs.options is too $valid_lxc_conf_keys can now containe an optional warning to be printed when such a key is used. --- src/PVE/LXC.pm | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/PVE/LXC.pm b/src/

[pve-devel] [PATCH container 3/3] added 'acl' and 'ro' mountpoint options

2016-01-27 Thread Wolfgang Bumiller
Note that read-only bind mounts are currently not supported. --- src/PVE/LXC.pm | 41 - 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 4645e86..2426ac3 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@

[pve-devel] [PATCH container 1/3] Remove weird config key entries

2016-01-27 Thread Wolfgang Bumiller
--- src/PVE/LXC.pm | 4 1 file changed, 4 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 64d7d5c..01610dc 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -257,10 +257,6 @@ my $valid_lxc_conf_keys = { 'lxc.start.order' => 1, 'lxc.group' => 1, 'lxc.environme

[pve-devel] [PATCH manager] gui: preserve extra cpu options when changing CPU type

2016-01-27 Thread Wolfgang Bumiller
--- www/manager/qemu/ProcessorEdit.js | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/www/manager/qemu/ProcessorEdit.js b/www/manager/qemu/ProcessorEdit.js index 4bb3d92..54dfa7d 100644 --- a/www/manager/qemu/ProcessorEdit.js +++ b/www/manager/qemu/Proces

Re: [pve-devel] First patch serie for fixing the Ressource Tree

2016-01-27 Thread Dietmar Maurer
applied. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel