Re: [pve-devel] Forum down

2015-06-29 Thread Alexandre DERUMIER
it's up for me - Mail original - De: datanom.net m...@datanom.net À: pve-devel pve-devel@pve.proxmox.com Envoyé: Lundi 29 Juin 2015 14:33:07 Objet: [pve-devel] Forum down Hi all, It seems that the forum is down? -- Hilsen/Regards Michael Rasmussen Get my public GnuPG keys:

[pve-devel] [PATCH] fix hotplug ip configuration V2

2015-06-29 Thread Alexandre Derumier
changelog: find lxc pid from /proc/ Signed-off-by: Alexandre Derumier aderum...@odiso.com --- src/PVE/LXC.pm | 191 - 1 file changed, 161 insertions(+), 30 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 76c512d..5df5a5e

Re: [pve-devel] [PATCH] fix hotplug ip configuration

2015-06-29 Thread Dietmar Maurer
On June 29, 2015 at 2:09 PM Alexandre DERUMIER aderum...@odiso.com wrote: - die no network bridge defined\n if !$net-{bridge}; - - my $res = bridge=$net-{bridge}; + my $res = {}; why? In case we want to switch to a new bridge, and a failure occur - unplug tap from

[pve-devel] Forum down

2015-06-29 Thread Michael Rasmussen
Hi all, It seems that the forum is down? -- Hilsen/Regards Michael Rasmussen Get my public GnuPG keys: michael at rasmussen dot cc http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xD3C9A00E mir at datanom dot net http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE501F51C mir at miras dot org

[pve-devel] [PATCH] add node embedded vnc console

2015-06-29 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- www/manager/VNCConsole.js | 15 +-- www/manager/node/Config.js | 7 +++ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/www/manager/VNCConsole.js b/www/manager/VNCConsole.js index 4dd983c..db90388 100644

Re: [pve-devel] [PATCH] add node embedded vnc console

2015-06-29 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] fix hotplug ip configuration

2015-06-29 Thread Alexandre DERUMIER
- die no network bridge defined\n if !$net-{bridge}; - - my $res = bridge=$net-{bridge}; + my $res = {}; why? In case we want to switch to a new bridge, and a failure occur - unplug tap from initial bridge write config - plug tap to new bridge -failed Technically, it's not a

Re: [pve-devel] [PATCH] fix hotplug ip configuration

2015-06-29 Thread Alexandre DERUMIER
I wonder if we can avoid running lxc-info, by using something similar we have in: sub find_lxc_console_pids { ... } We can get the pids of all running containers, including pids for console, and we can also replace list_active_containers() ? yes, I think it better too if we can need to run

Re: [pve-devel] [PATCH] fix hotplug ip configuration

2015-06-29 Thread Dietmar Maurer
diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 76c512d..2b7069b 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -775,11 +775,9 @@ sub vmstatus { sub print_lxc_network { my $net = shift; -die no network bridge defined\n if !$net-{bridge}; - -my $res =

[pve-devel] [PATCH] fix hotplug ip configuration

2015-06-29 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier aderum...@odiso.com --- src/PVE/LXC.pm | 185 +++-- 1 file changed, 155 insertions(+), 30 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 76c512d..2b7069b 100644 --- a/src/PVE/LXC.pm +++

Re: [pve-devel] [PATCH] fix hotplug ip configuration

2015-06-29 Thread Alexandre DERUMIER
But why do you set $rest to '{}', instead of ''? And I think the resulting value starts with ','? oh,yes, don't known what I have done here... I think I have mixed print_lxc_network and parse_lxc_network, ... sorry ... maybe simply sub print_lxc_network { my ($data) = @_; die no

[pve-devel] [PATCH] fix hotplug ip configuration V3

2015-06-29 Thread Alexandre Derumier
changelog: V2: find lxc pid from /proc/ V3: fix parse_lxc_network (name is mandatory, bridge optionnal) Signed-off-by: Alexandre Derumier aderum...@odiso.com --- src/PVE/LXC.pm | 191 - 1 file changed, 162 insertions(+), 29 deletions(-)

Re: [pve-devel] [PATCH] fix hotplug ip configuration V3

2015-06-29 Thread Dietmar Maurer
I am not sure if that always works. AFAIK the init process can be an arbitrary name, and that is why lxc-info calls a monitor command to get the PID? Also, your code opens/close many files. So I think the original approach calling lxc-info is better for now. And it is more efficient once we have

[pve-devel] [PATCH] firewall autodisable GUI update

2015-06-29 Thread Alen Grizonic
Signed-off-by: Alen Grizonic a.grizo...@proxmox.com --- www/manager/grid/FirewallOptions.js | 80 - www/manager/window/Edit.js | 2 + 2 files changed, 80 insertions(+), 2 deletions(-) diff --git a/www/manager/grid/FirewallOptions.js

Re: [pve-devel] [PATCH] fix hotplug ip configuration V3

2015-06-29 Thread Alexandre DERUMIER
I am not sure if that always works. AFAIK the init process can be an arbitrary name, oh, ok, didn't known that and that is why lxc-info calls a monitor command to get the PID? I really don't known, don't have dig inside the lxc-info code Also, your code opens/close many files. So I think the

[pve-devel] [PATCH] fix hotplug ip configuration V4

2015-06-29 Thread Alexandre Derumier
changelog: V2: find lxc pid from /proc/ V3: fix parse_lxc_network (name is mandatory, bridge optionnal) V4: revert find_lxc_pid Signed-off-by: Alexandre Derumier aderum...@odiso.com --- src/PVE/LXC.pm | 185 - 1 file changed, 156

Re: [pve-devel] [PATCH] fix hotplug ip configuration

2015-06-29 Thread Dietmar Maurer
+sub find_lxc_pid { +my ($vmid) = @_; + +my $pid = undef; +my $parser = sub { + my $line = shift; + $pid = $1 if $line =~ m/PID:\s+(\d+)/; +}; +PVE::Tools::run_command(['lxc-info', '-n', $vmid], outfunc = $parser); + + return $pid; +} + I wonder if we

Re: [pve-devel] [PATCH 1/2] ExtJS: backport Ext.ux.IFrame from ExtJS 4.2

2015-06-29 Thread Dietmar Maurer
Why not? I wanted to say : do you want that I make a patch to add console for host too ? ;) Yes, please. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH 1/2] ExtJS: backport Ext.ux.IFrame from ExtJS 4.2

2015-06-29 Thread Dietmar Maurer
(do we need it for hosts console too ?) Why not? ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH 1/2] ExtJS: backport Ext.ux.IFrame from ExtJS 4.2

2015-06-29 Thread Alexandre DERUMIER
Why not? I wanted to say : do you want that I make a patch to add console for host too ? ;) - Mail original - De: dietmar diet...@proxmox.com À: aderumier aderum...@odiso.com Cc: pve-devel pve-devel@pve.proxmox.com Envoyé: Lundi 29 Juin 2015 09:48:59 Objet: Re: [pve-devel] [PATCH 1/2]