public inbox for pve-user@lists.proxmox.com
 help / color / mirror / Atom feed
* Re: [PVE-User] PVE 8 on Bookworm, ifupdown2 fails
       [not found] <mailman.75.1687767907.232.pve-user@lists.proxmox.com>
@ 2023-06-26  8:32 ` DERUMIER, Alexandre
  2023-06-26  8:34   ` DERUMIER, Alexandre
       [not found]   ` <mailman.78.1687768939.232.pve-user@lists.proxmox.com>
  0 siblings, 2 replies; 5+ messages in thread
From: DERUMIER, Alexandre @ 2023-06-26  8:32 UTC (permalink / raw)
  To: pve-user

>>I just installed PVE8 on top of a Debian Bookworm install
>>(unfortunatly, IPMI access on my OVH server is not working, so I had
to >>go with Debian first). 

>>Most of the installation went fine, except a few minor issues (like :
>>had to create /run/network dir manually, as ifupdown2 would fail its
>>installation and prevent some other package to install) 

mmm, this is strange, ifupdown2 is creating the directory at service
start


/usr/share/ifupdown2/sbin/start-networking:	[ ! -e /run/network ]
&& mkdir -p /run/network &>/dev/null



>>Anyway, now most things are working, except I cannot update network
>>configuration (nor can I apply SDN changes). If I run ifreload -a I
get 

>>root@maurice:~# ifreload -a 
>>error: name 'traceback' is not defined 

seem to be a missing python lib

(just to be sure , what is the output of "ifreload -a -d" ) ?


python3 is installed right ?

dpkg -l|grep python ?




(maybe the /run/network is not created, because ifupdown2 is crashing)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PVE-User] PVE 8 on Bookworm, ifupdown2 fails
  2023-06-26  8:32 ` [PVE-User] PVE 8 on Bookworm, ifupdown2 fails DERUMIER, Alexandre
@ 2023-06-26  8:34   ` DERUMIER, Alexandre
       [not found]   ` <mailman.78.1687768939.232.pve-user@lists.proxmox.com>
  1 sibling, 0 replies; 5+ messages in thread
From: DERUMIER, Alexandre @ 2023-06-26  8:34 UTC (permalink / raw)
  To: pve-user

(also, do you have installed ifupdown2 after configuring the proxmox
repos ? just to be sure it's installing the proxmox ifupdown2 version,
and not the debian version)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PVE-User] PVE 8 on Bookworm, ifupdown2 fails
       [not found]   ` <mailman.78.1687768939.232.pve-user@lists.proxmox.com>
@ 2023-06-26  8:45     ` DERUMIER, Alexandre
       [not found]       ` <2051887193.15675.1687769253403.JavaMail.zimbra@lapiole.org>
  0 siblings, 1 reply; 5+ messages in thread
From: DERUMIER, Alexandre @ 2023-06-26  8:45 UTC (permalink / raw)
  To: pve-user

debug: lo: up : running script /etc/network/if-up.d/resolved
info: executing /etc/network/if-up.d/resolved
error: name 'traceback' is not defined

mmm, it seem to have because of this script "/etc/network/if-
up.d/resolved"


not sure, do you use systemd-resolvd or something like that ?


can you try to remove it ?  (and before, can you send the content of
this file ?)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PVE-User] PVE 8 on Bookworm, ifupdown2 fails
       [not found]       ` <2051887193.15675.1687769253403.JavaMail.zimbra@lapiole.org>
@ 2023-06-26  8:51         ` DERUMIER, Alexandre
  2023-06-26  9:20           ` DERUMIER, Alexandre
  0 siblings, 1 reply; 5+ messages in thread
From: DERUMIER, Alexandre @ 2023-06-26  8:51 UTC (permalink / raw)
  To: dani; +Cc: pve-user

yep, proxmox don't use systemd-resolvd.

But I think the traceback is a bug in ifupdown2.

It's used to log debug info, but maybe the module is not yet loaded
when the scripts in /etc/network/if-up.d/ are exec.

I think I have seen a report about traceback on the forum some days
ago.

I'll try to reproduce on my side, maybe if the traceback is fixed,
ifupdown2 will simply skip the error and continue.


Thanks for the report !


Le lundi 26 juin 2023 à 10:47 +0200, Daniel Berteaud a écrit :
> 
> 
> ----- Le 26 Juin 23, à 10:45, DERUMIER, Alexandre
> alexandre.derumier@groupe-cyllene.com a écrit :
> 
> > debug: lo: up : running script /etc/network/if-up.d/resolved
> > info: executing /etc/network/if-up.d/resolved
> > error: name 'traceback' is not defined
> > 
> > mmm, it seem to have because of this script "/etc/network/if-
> > up.d/resolved"
> > 
> > 
> > not sure, do you use systemd-resolvd or something like that ?
> > 
> > 
> > can you try to remove it ?  (and before, can you send the content
> > of
> > this file ?)
> 
> Well, I just saw that systemd-resolved was enabled. Disabling it
> fixed the issue. Thanks for pointing me in the right direction :-)
> Attached is the resolved script
> 
> Cheers,
> Daniel
> 
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PVE-User] PVE 8 on Bookworm, ifupdown2 fails
  2023-06-26  8:51         ` DERUMIER, Alexandre
@ 2023-06-26  9:20           ` DERUMIER, Alexandre
  0 siblings, 0 replies; 5+ messages in thread
From: DERUMIER, Alexandre @ 2023-06-26  9:20 UTC (permalink / raw)
  To: pve-user, dani

ok, was able to reproduce with a segfaulting script

this patch should fix it:

https://github.com/CumulusNetworks/ifupdown2/pull/267/files


adding import traceback  in /usr/share/ifupdown2/ifupdown/scheduler.py





Le lundi 26 juin 2023 à 08:51 +0000, DERUMIER, Alexandre a écrit :
> yep, proxmox don't use systemd-resolvd.
> 
> But I think the traceback is a bug in ifupdown2.
> 
> It's used to log debug info, but maybe the module is not yet loaded
> when the scripts in /etc/network/if-up.d/ are exec.
> 
> I think I have seen a report about traceback on the forum some days
> ago.
> 
> I'll try to reproduce on my side, maybe if the traceback is fixed,
> ifupdown2 will simply skip the error and continue.
> 
> 
> Thanks for the report !
> 
> 
> Le lundi 26 juin 2023 à 10:47 +0200, Daniel Berteaud a écrit :
> > 
> > 
> > ----- Le 26 Juin 23, à 10:45, DERUMIER, Alexandre
> > alexandre.derumier@groupe-cyllene.com a écrit :
> > 
> > > debug: lo: up : running script /etc/network/if-up.d/resolved
> > > info: executing /etc/network/if-up.d/resolved
> > > error: name 'traceback' is not defined
> > > 
> > > mmm, it seem to have because of this script "/etc/network/if-
> > > up.d/resolved"
> > > 
> > > 
> > > not sure, do you use systemd-resolvd or something like that ?
> > > 
> > > 
> > > can you try to remove it ?  (and before, can you send the content
> > > of
> > > this file ?)
> > 
> > Well, I just saw that systemd-resolved was enabled. Disabling it
> > fixed the issue. Thanks for pointing me in the right direction :-)
> > Attached is the resolved script
> > 
> > Cheers,
> > Daniel
> > 
> > 
> 
> _______________________________________________
> pve-user mailing list
> pve-user@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-26  9:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.75.1687767907.232.pve-user@lists.proxmox.com>
2023-06-26  8:32 ` [PVE-User] PVE 8 on Bookworm, ifupdown2 fails DERUMIER, Alexandre
2023-06-26  8:34   ` DERUMIER, Alexandre
     [not found]   ` <mailman.78.1687768939.232.pve-user@lists.proxmox.com>
2023-06-26  8:45     ` DERUMIER, Alexandre
     [not found]       ` <2051887193.15675.1687769253403.JavaMail.zimbra@lapiole.org>
2023-06-26  8:51         ` DERUMIER, Alexandre
2023-06-26  9:20           ` DERUMIER, Alexandre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal