Hello,<div><br></div><div>I'm trying dual bridge network setting(br0 and br1) for route redundancy(like <a href="http://192.168.100.1/24">192.168.100.1/24</a> and <a href="http://192.168.200.1/24">192.168.200.1/24</a>).</div>
<div>Host and Guest OS is CentOS6.3(2.6.32-279.11.1.el6) and Host is running on VMware Player.</div><div>Lxc version is 0.8.0-rc2.</div><div><br></div><div>Container is running successfully and some checking is seeing ok(ssh remote login, isolated devpts, etc).</div>
<div>But I get two error messages.</div><div><br></div><div>1.When reboot/shutdown in container, I get following log in Host's /var/log/messages.</div><div>------------------------------------------------------------------</div>
<div><div>Oct 23 01:09:26 localhost kernel: br0: port 2(vethD7p1uW) entering disabled state</div><div>Oct 23 01:09:26 localhost kernel: br0: port 2(vethD7p1uW) entering disabled state</div><div>Oct 23 01:09:26 localhost kernel: ------------[ cut here ]------------</div>
<div>Oct 23 01:09:26 localhost kernel: WARNING: at kernel/sysctl.c:2372 unregister_sysctl_table+0xb1/0x120() (Not tainted)</div><div>Oct 23 01:09:26 localhost kernel: Hardware name: VMware Virtual Platform</div><div>Oct 23 01:09:26 localhost kernel: Modules linked in: veth bridge stp llc ipt_REJECT nf_conntrack_ipv4 nf_defrag_ipv4 iptable_filter ip_tables ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables ipv6 ppdev parport_pc parport snd_ens1371 snd_rawmidi snd_ac97_codec ac97_bus snd_seq snd_seq_device snd_pcm snd_timer snd soundcore snd_page_alloc e1000 vmware_balloon i2c_piix4 i2c_core sg shpchp ext4 mbcache jbd2 sd_mod crc_t10dif sr_mod cdrom mptspi mptscsih mptbase scsi_transport_spi pata_acpi ata_generic ata_piix dm_mirror dm_region_hash dm_log dm_mod [last unloaded: scsi_wait_scan]</div>
<div>Oct 23 01:09:26 localhost kernel: Pid: 10, comm: netns Not tainted 2.6.32-279.11.1.el6.x86_64 #1</div><div>Oct 23 01:09:26 localhost kernel: Call Trace:</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffff8106b7a7>] ? warn_slowpath_common+0x87/0xc0</div>
<div>Oct 23 01:09:26 localhost kernel: [<ffffffff8106b7fa>] ? warn_slowpath_null+0x1a/0x20</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffff81076aa1>] ? unregister_sysctl_table+0xb1/0x120</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffffa02ff10b>] ? __ipv6_dev_mc_dec+0xcb/0x120 [ipv6]</div>
<div>Oct 23 01:09:26 localhost kernel: [<ffffffff81443e87>] ? neigh_sysctl_unregister+0x27/0x50</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffffa02e3fea>] ? addrconf_ifdown+0x29a/0x3d0 [ipv6]</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffffa02e76bd>] ? addrconf_notify+0xdd/0x970 [ipv6]</div>
<div>Oct 23 01:09:26 localhost kernel: [<ffffffff810e1265>] ? call_rcu_sched+0x15/0x20</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffff810e127e>] ? call_rcu+0xe/0x10</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffff815038f5>] ? notifier_call_chain+0x55/0x80</div>
<div>Oct 23 01:09:26 localhost kernel: [<ffffffff810981b6>] ? raw_notifier_call_chain+0x16/0x20</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffff8143b91b>] ? call_netdevice_notifiers+0x1b/0x20</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffff8143c397>] ? rollback_registered+0x77/0x130</div>
<div>Oct 23 01:09:26 localhost kernel: [<ffffffff8143c472>] ? unregister_netdevice+0x22/0x70</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffffa03e222a>] ? veth_dellink+0x1a/0x30 [veth]</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffff8143dd2a>] ? default_device_exit+0x9a/0x100</div>
<div>Oct 23 01:09:26 localhost kernel: [<ffffffff81437410>] ? cleanup_net+0x0/0xa0</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffff8143747e>] ? cleanup_net+0x6e/0xa0</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffff8108c7f0>] ? worker_thread+0x170/0x2a0</div>
<div>Oct 23 01:09:26 localhost kernel: [<ffffffff81092160>] ? autoremove_wake_function+0x0/0x40</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffff8108c680>] ? worker_thread+0x0/0x2a0</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffff81091df6>] ? kthread+0x96/0xa0</div>
<div>Oct 23 01:09:26 localhost kernel: [<ffffffff8100c14a>] ? child_rip+0xa/0x20</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffff81091d60>] ? kthread+0x0/0xa0</div><div>Oct 23 01:09:26 localhost kernel: [<ffffffff8100c140>] ? child_rip+0x0/0x20</div>
<div>Oct 23 01:09:26 localhost kernel: ---[ end trace a3e2fc9bc2611149 ]---</div><div>Oct 23 01:09:26 localhost kernel: br1: port 2(vethFUgOpJ) entering disabled state</div><div>Oct 23 01:09:26 localhost kernel: br1: port 2(vethFUgOpJ) entering disabled state</div>
</div><div>------------------------------------------------------------------</div><div>This log appear only dual bridge and reboot/shutdown in container.</div><div>I've try one bridge setting, not appear this message.</div>
<div>I've try to change container's ipv6 setting(to disable by /etc/sysctl.conf), not appear too.</div><div>(ipv6 setting refference: <a href="http://lifeofageekadmin.com/disable-ipv6-on-centos-6/">http://lifeofageekadmin.com/disable-ipv6-on-centos-6/</a>)</div>
<div>And I've try to stop container with lxc-stop, not appear.</div><div><br></div><div>2.When running lxc-start with -o test.log option, I get following WARN message in test.log</div><div>------------------------------------------------------------------</div>
<div><div> lxc-start 1350923335.375 DEBUG lxc_cgroup - using cgroup mounted at '/cgroup'</div><div> lxc-start 1350923335.375 DEBUG lxc_cgroup - lxc_cgroup_path_get: returning /cgroup/lxc63_01 for subsystem devices.allow</div>
<div> lxc-start 1350923335.375 DEBUG lxc_conf - cgroup 'devices.allow' set to 'c 254:0 rwm'</div></div><div><div> lxc-start 1350923335.375 INFO lxc_conf - cgroup has been setup</div><div> lxc-start 1350923335.375 INFO lxc_conf - console has been setup</div>
<div> lxc-start 1350923335.379 INFO lxc_conf - 4 tty(s) has been setup</div><div> lxc-start 1350923335.382 DEBUG lxc_conf - mountpoint for old rootfs is '/usr/local/lib/lxc/rootfs/mnt'</div><div> lxc-start 1350923335.382 DEBUG lxc_conf - pivot_root syscall to '/usr/local/lib/lxc/rootfs' successful</div>
<div> lxc-start 1350923335.382 DEBUG lxc_conf - umounted '/mnt/dev/pts'</div><div> lxc-start 1350923335.382 DEBUG lxc_conf - umounted '/mnt/dev/shm'</div><div> lxc-start 1350923335.383 DEBUG lxc_conf - umounted '/mnt/proc/bus/usb'</div>
<div> lxc-start 1350923335.383 DEBUG lxc_conf - umounted '/mnt/proc/sys/fs/binfmt_misc'</div><div> lxc-start 1350923335.383 DEBUG lxc_conf - umounted '/mnt/sys'</div><div> lxc-start 1350923335.383 DEBUG lxc_conf - umounted '/mnt/boot'</div>
<div> lxc-start 1350923335.383 DEBUG lxc_conf - umounted '/mnt/cgroup'</div><div> lxc-start 1350923335.383 DEBUG lxc_conf - umounted '/mnt/proc'</div><div> lxc-start 1350923335.383 INFO lxc_conf - lazy unmount of '/mnt'</div>
<div>>> lxc-start 1350923335.383 WARN lxc_conf - failed to unmount '/mnt/dev'</div><div> lxc-start 1350923335.383 DEBUG lxc_conf - capabilities has been setup</div><div> lxc-start 1350923335.384 NOTICE lxc_conf - 'lxc63_01' is setup.</div>
<div> lxc-start 1350923335.384 NOTICE lxc_start - exec'ing '/sbin/init'</div><div> lxc-start 1350923335.384 NOTICE lxc_start - '/sbin/init' started with pid '3349'</div><div> lxc-start 1350923335.384 DEBUG lxc_utmp - Added '/proc/3349/root/var/run' to inotifywatch</div>
<div> lxc-start 1350923335.609 DEBUG lxc_utmp - got inotify event 256 for utmp</div><div> lxc-start 1350923335.635 DEBUG lxc_utmp - got inotify event 2 for utmp</div><div> lxc-start 1350923335.635 DEBUG lxc_utmp - got inotify event 2 for utmp</div>
<div> lxc-start 1350923335.635 DEBUG lxc_utmp - utmp handler - run level is ^@/3</div><div>------------------------------------------------------------------</div></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:16px;background-color:rgb(255,255,255)">Probably, this WARN is not for dual bridge setting...</span></div>
<div><div><br></div><div>So I search google and checking lxc source code, but I couldn't judge that two message is critical or not critical.</div><div>Anyone can help?</div><div><br></div></div><div><br></div><div>At last, I describe about how to create my environment.</div>
<div><br></div><div>My script is in github.(lxc-centos template).</div><div>(<a href="https://github.com/koji--/lxc-centos">https://github.com/koji--/lxc-centos</a>)</div><div>I take command for creating container, like this.</div>
<div>----------------------------------------------------------------------------</div><div>[root@localhost ~]# lxc-centos --name=lxc63_01 --utsname=<a href="http://lxc63_01.example.com">lxc63_01.example.com</a> --path=/home/lxc --first-ipv4=<a href="http://192.168.1.129/24">192.168.1.129/24</a> --second-ipv4=<a href="http://192.168.2.129/24">192.168.2.129/24</a> --arch=x86_64 --arch-base=x86_64</div>
<div>----------------------------------------------------------------------------</div><div><br></div><div>And running container like this.</div><div><div>----------------------------------------------------------------------------</div>
</div><div><div>[root@localhost ~]# lxc-start -n lxc63_01 -f /home/lxc/lxc63_01/config -o test.log -l DEBUG</div><div>----------------------------------------------------------------------------</div></div><div><br></div>
<div>Host's /etc/fstab is like this.</div><div>------------------------------------------------------------------------------------------</div><div><div>[root@localhost ~]# cat /etc/fstab | grep 'devpts\|cgroup'</div>
<div>devpts /dev/pts devpts gid=5,mode=620,newinstance,ptmxmode=0666 0 0</div><div>none /cgroup cgroup defaults 0 0</div></div><div>------------------------------------------------------------------------------------------</div>
<div><br></div><div>Sorry for such a long text...</div><div>Thanks.</div><div>Koji Takiguchi</div>