[Bug 564093] New: xend doesn't create bridge during boot after update 11.1 to 11.2
http://bugzilla.novell.com/show_bug.cgi?id=564093 http://bugzilla.novell.com/show_bug.cgi?id=564093#c0 Summary: xend doesn't create bridge during boot after update 11.1 to 11.2 Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Xen AssignedTo: jdouglas@novell.com ReportedBy: yury.buldakov@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.6 (KHTML, like Gecko) Chrome/4.0.267.0 Safari/532.6 After some investigation: On openSUSE 11.1 /dev/shm/sysconfig was created by /etc/sysconfig/network/scripts/functions.common:
# RUN_FILES_BASE contains the path to the configuration data cache. # It __must__ __not__ contain a trailing slash. RUN_FILES_BASE=/dev/shm/sysconfig test -d $RUN_FILES_BASE || mkdir -p $RUN_FILES_BASE xen bridge creation stores information then (/etc/xen/scripts/network-bridge): # Record creation of bridge in /dev/shm/sysconfig/xenbridges so other # tools, e.g. yast2 lan, know that Xen bridging is active. [ -d /dev/shm/sysconfig/xenbridges ] || mkdir /dev/shm/sysconfig/xenbridges touch /dev/shm/sysconfig/xenbridges/${bridge} But in openSUSE 11.2 RUN_FILES_BASE was changed: # RUN_FILES_BASE contains the path to the configuration data cache. # It __must__ __not__ contain a trailing slash. RUN_FILES_BASE=/dev/.sysconfig/network test -d $RUN_FILES_BASE || mkdir -p $RUN_FILES_BASE I was unable to find anything that takes care of creation '/dev/shm/sysconfig' directory used in '/etc/xen/scripts/network-bridge'
Reproducible: Always Steps to Reproduce: I didn't performed anything special - reproduced every boot -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=564093 http://bugzilla.novell.com/show_bug.cgi?id=564093#c1 Jason Douglas <jdouglas@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |jdouglas@novell.com Info Provider| |yury.buldakov@gmail.com AssignedTo|jdouglas@novell.com |jfehlig@novell.com --- Comment #1 from Jason Douglas <jdouglas@novell.com> 2009-12-11 15:48:59 MST --- The /etc/xen/scripts/network-bridge script is not supposed to be used in openSUSE 11.1 or 11.2. All network management / bridge creation is done using `yast2 lan` or by manually modifying standard ifcfg files. Are you using network-bridge on your system? Please post the output of the following command: grep -e "^(network-script" /etc/xen/xend-config.sxp -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=564093 http://bugzilla.novell.com/show_bug.cgi?id=564093#c2 --- Comment #2 from Yury Buldakov <yury.buldakov@gmail.com> 2009-12-14 11:31:06 UTC ---
The /etc/xen/scripts/network-bridge script is not supposed to be used in openSUSE 11.1 or 11.2. All network management / bridge creation is done using `yast2 lan` or by manually modifying standard ifcfg files.
Yes, but in case of xen bridge creation is done inside of /etc/xen/scripts/network-bridge script
Are you using network-bridge on your system? Please post the output of the following command: grep -e "^(network-script" /etc/xen/xend-config.sxp
Yes, I'm using network-bridge on my system:
silentnoise:/etc/xen/scripts # grep -e "^(network-script" /etc/xen/xend-config.sxp (network-script network-bridge)
AFAIK network-bridge should take care of creating appropriate bridge device during rcxend start (it should rename eth0 -> peth0, create bridge eth0 and attach peth0 to it), but:
silentnoise:/etc/xen/scripts # rcxend restart Restarting xend (old pid 5822 5821) mkdir: cannot create directory `/dev/shm/sysconfig/xenbridges': No such file or directory mkdir: cannot create directory `/dev/shm/sysconfig/xenbridges': No such file or directory
silentnoise:/etc/xen/scripts # ifconfig eth0 Link encap:Ethernet HWaddr 00:1D:60:6F:88:51 inet addr:192.168.192.114 Bcast:192.168.223.255 Mask:255.255.224.0 UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:21948815 errors:0 dropped:0 overruns:0 frame:0 TX packets:16486108 errors:0 dropped:0 overruns:0 carrier:10 collisions:0 txqueuelen:1000 RX bytes:21809567495 (20799.2 Mb) TX bytes:1693886480 (1615.4 Mb) Memory:dffc0000-e0000000
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:459392 errors:0 dropped:0 overruns:0 frame:0 TX packets:459392 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:71895150 (68.5 Mb) TX bytes:71895150 (68.5 Mb)
After creating symlink /dev/shm/sysconfig -> /dev/.sysconfig/network:
silentnoise:/etc/xen/scripts # rcxend restart Restarting xend (old pid 8630 8628) eth0
executing additional global stop script if-down.d/21-dhcpcd-hook-samba executing additional global stop script if-down.d/21-smbfs executing additional global stop script if-down.d/xen eth0 eth0 eth0 eth0 No services to handle for 'eth0 eth0' eth0 eth0 eth0 eth0 Shutting down dhcp clients on eth0 eth0 eth0 Shutting down dhcp clients on eth0 eth0 eth0 eth0 eth0 'eth0' is not wireless, exiting eth0
eth0 eth0 'eth0' is not wireless, exiting eth0 eth0 Warning: Bridge eth0 already exists! eth0 eth0 Activating interface eth0 Starting dhcp client: /sbin/dhcpcd --netconfig -L -E -HHH -c /etc/sysconfig/network/scripts/dhcpcd-hook -t "0" -I "silentnoise.intra" -h "silentnoise" eth0 DHCP4(required=no) STARTED=yes STATUS=0 DHCP6(required=no) STARTED=no STATUS=5 eth0 eth0 calling: ip route replace to 169.254.0.0/16 dev eth0 ---> OK
and result:
silentnoise:/etc/xen/scripts # ifconfig eth0 Link encap:Ethernet HWaddr 00:1D:60:6F:88:51 inet addr:192.168.192.114 Bcast:192.168.223.255 Mask:255.255.224.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:505 errors:0 dropped:0 overruns:0 frame:0 TX packets:115 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:66877 (65.3 Kb) TX bytes:61572 (60.1 Kb)
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:460909 errors:0 dropped:0 overruns:0 frame:0 TX packets:460909 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:72082102 (68.7 Mb) TX bytes:72082102 (68.7 Mb)
peth0 Link encap:Ethernet HWaddr 00:1D:60:6F:88:51 UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:21964565 errors:0 dropped:0 overruns:0 frame:0 TX packets:16488261 errors:0 dropped:0 overruns:0 carrier:11 collisions:0 txqueuelen:1000 RX bytes:21813355029 (20802.8 Mb) TX bytes:1694217127 (1615.7 Mb) Memory:dffc0000-e0000000
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=564093 http://bugzilla.novell.com/show_bug.cgi?id=564093#c3 --- Comment #3 from James Fehlig <jfehlig@novell.com> 2009-12-14 17:35:56 UTC --- (In reply to comment #2)
Yes, but in case of xen bridge creation is done inside of /etc/xen/scripts/network-bridge script
But we don't recommend using network-bridge any longer.
Yes, I'm using network-bridge on my system:
silentnoise:/etc/xen/scripts # grep -e "^(network-script" /etc/xen/xend-config.sxp (network-script network-bridge)
Edit /etc/xen/xend-config.sxp to disable it, e.g. (network-script )
AFAIK network-bridge should take care of creating appropriate bridge device during rcxend start (it should rename eth0 -> peth0, create bridge eth0 and attach peth0 to it), but:
Yes, but we don't want this behavior any longer. Using network-bridge breaks a lot of basic networking functionality, e.g. 'rcnetwork restart'.
Restarting xend (old pid 5822 5821) mkdir: cannot create directory `/dev/shm/sysconfig/xenbridges': No such file or directory
I fixed this bug but after 11.2 apparently. I'll make the change in that code base now in the event we do a maintenance update for 11.2.
After creating symlink /dev/shm/sysconfig -> /dev/.sysconfig/network:
The errors you got indicate mixing network-bridge with sysconfig managed bridge AFAICT. You need to disable network-bridge and ifup/ifdown scripts instead. Do you have a up/down script for a bridge? What is contents of /etc/sysconfig/network/ifcfg-* files? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=564093 http://bugzilla.novell.com/show_bug.cgi?id=564093#c4 --- Comment #4 from James Fehlig <jfehlig@novell.com> 2010-03-04 00:18:22 UTC --- Any news here? Does disabling network-bridge script and using distro network configuration tools work for you? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=564093 http://bugzilla.novell.com/show_bug.cgi?id=564093#c5 James Fehlig <jfehlig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|yury.buldakov@gmail.com | Resolution| |NORESPONSE --- Comment #5 from James Fehlig <jfehlig@novell.com> 2010-03-09 21:38:18 UTC --- Cleaning up bugs, no response on this one for quite a while. As mentioned above, don't use network-bridge script as it is deprecated. Use distro networking tools to manage your bridges. Please reopen if you still encounter issues. Thanks! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com