[pve-devel] [PATCH pve-manager] api2: network : check if ifupdown2 is proxmox version

Thomas Lamprecht t.lamprecht at proxmox.com
Sat Jan 11 17:22:10 CET 2020


On 1/11/20 1:41 PM, Alexandre Derumier wrote:
> 1 user forgot to add proxmox repo, and have installed debian version.
> https://forum.proxmox.com/threads/bridge-cant-be-found-and-vm-failed-to-start.63138/
> 
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
>  PVE/API2/Network.pm | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/PVE/API2/Network.pm b/PVE/API2/Network.pm
> index 01da0de1..94349998 100644
> --- a/PVE/API2/Network.pm
> +++ b/PVE/API2/Network.pm
> @@ -575,6 +575,11 @@ __PACKAGE__->register_method({
>  
>  	die "you need ifupdown2 to reload networking\n" if !-e '/usr/share/ifupdown2';
>  
> +	PVE::Tools::run_command(['ifreload', '-V'], outfunc => sub {
> +	    my $line = shift;
> +	    die "you need ifupdown2 package from proxmox repository" if $line !~ m/pve/;
> +	});
> +
>  	if (-x '/usr/bin/ovs-vsctl') {
>  	    my $ovs_configured = sub {
>  		my $ifaces = shift;
> 

something else, with the new 2.0 version of ifupdown2 I get an error on ifreload -a:

# ifreload -a
error: main exception: 'Namespace' object has no attribute 'nldebug'

do you know something of that one?




More information about the pve-devel mailing list