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

Alexandre DERUMIER aderumier at odiso.com
Sat Jan 11 20:16:09 CET 2020


>>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? 

oh, I had tested with master-next branch, it seem that they are 1 extra fix commit on top of 2.0.1
https://github.com/CumulusNetworks/ifupdown2/commit/8e9960454d58f648547fcb086a8b4352a4aa4faa




----- Mail original -----
De: "Thomas Lamprecht" <t.lamprecht at proxmox.com>
À: "pve-devel" <pve-devel at pve.proxmox.com>, "aderumier" <aderumier at odiso.com>
Envoyé: Samedi 11 Janvier 2020 17:22:10
Objet: Re: [pve-devel] [PATCH pve-manager] api2: network : check if ifupdown2 is proxmox version

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