Menu

#2 tunctl fail?

open
None
5
2004-09-02
2004-09-02
No

When destroying topology (-d mode) sometimes it seems
there is a fail when destroying some of the tun devices:

Even a polite reboot of the machine fails :(

Trace:

root@morfeo:~/vnuml-devel# vnumlparser.pl -d umlA2.xml -v
host> /bin/touch /var/vnuml/LOCK
umlA1 sshd is ready (socket style)
umlA2 sshd is ready (socket style)
umlA3 sshd is ready (socket style)
umlA4 sshd is ready (socket style)
umlA5 sshd is ready (socket style)
host> /sbin/route -A inet del -net 10.0.0.0/16 gw 10.10.3.1
host> /sbin/route -A inet del default gw 10.10.3.4
host> /usr/bin/ssh -x -1 -l root 192.168.1.146 halt
host> /usr/bin/ssh -x -1 -l root 192.168.1.150 halt
host> /usr/bin/ssh -x -1 -l root 192.168.1.154 halt
host> /usr/bin/ssh -x -1 -l root 192.168.1.158 halt
host> /usr/bin/ssh -x -1 -l root 192.168.1.162 halt
---------- Waiting until UML extinction ----------
5 seconds elapsed...
10 seconds elapsed...
host> /bin/rm /var/vnuml/eth1
host> /sbin/ifconfig Net3 0.0.0.0 promisc up
host> /usr/sbin/brctl delif Net3 eth1
host> /sbin/ifconfig eth1 10.10.3.2 netmask 255.255.255.0
host> /sbin/route add default gw 10.10.3.3
host> /sbin/ifconfig umlA1-eth0 down
host> /usr/sbin/tunctl -d umlA1-eth0 -f /dev/net/tun
Set 'umlA1-eth0' nonpersistent
host> /sbin/ifconfig umlA1-eth1 down
host> /usr/sbin/tunctl -d umlA1-eth1 -f /dev/net/tun
Set 'umlA1-eth1' nonpersistent

Message from syslogd@morfeo at Thu Sep 2 17:04:08 2004 ...
morfeo kernel: unregister_netdevice: waiting for
umlA1-eth1 to become free. Usage count = 1

Discussion


Log in to post a comment.