[Debian] Re: Bug#495667: VEs started during the boot can't use network sometimes

Ola Lundqvist opal at debian.org
Tue Aug 19 13:20:51 EDT 2008


Hi Frank

On Tue, Aug 19, 2008 at 04:58:43PM +0200, Frank Bauer wrote:
> Package: vzctl
> 
> Hi,
> 
> I'm running stock i386 lenny with current -openvz kernel from unstable.
> Everything runs fine, except the VEs that are started during the boot.
> 
> Sometimes they can't use the network, as if ip_forwarding is not active,
> Which is not the case, I have the following in /etc/sysctl.conf:
>     net.ipv4.ip_forward=1

Can you check if this is active as well after the restart?

> I can "fix" this by restarting the VEs - after that the networking works ok.
> I believe this might be a race condition like starting OpenVZ before
> the ip_forwarding
> feature is set, because it only happens with VEs stared during the boot:

I do not think so, as it should affect others as well, but it could
of course be the case.
If it is a race condition then it is likely to be a problem in the network
script. The reason is that there is a pre-condition for vzctl start.

# required-start: $network $remote_fs $local_fs sshd
# required-stop:

Can you verify this by adding a long sleep in the beginning of the vzctl init
script?

> 1) When I start VE manually (i.e. some time after the boot), networking works.
> 2) When I restart VE, networking works.
> 3) When I let the rc script to start VE, I have like 50% chance
> networking will not work.

Best regards,

// Ola

> 
> Kind Regards
> Frank
> 
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  opal at debian.org                     Annebergsslingan 37      \
|  ola at inguza.com                      654 65 KARLSTAD          |
|  http://inguza.com/                  +46 (0)70-332 1551       |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------


More information about the Debian mailing list