[Bug 1448254] Re: openvswitch systemd unit file ordering wrong
Sorry, lost track of the bug as it fell into 100 papercuts... if it helps I solved my ordering problem by modifying the /lib/systemd/sysytem/openvswitch-nonetwork.service as follows [Unit] Description=Open vSwitch Internal Unit PartOf=openvswitch-switch.service # Without this all sorts of looping dependencies occur doh! DefaultDependencies=no #precedants pulled from isup@ service requirements After=apparmor.service local-fs.target systemd-tmpfiles-setup.service #subsequent to this service we need the network to start Wants=network-pre.target openvswitch-switch.service Before=network-pre.target openvswitch-switch.service [Service] Type=oneshot RemainAfterExit=yes EnvironmentFile=-/etc/default/openvswitch-switch ExecStart=/usr/share/openvswitch/scripts/ovs-ctl start \ --system-id=random $OPTIONS ExecStop=/usr/share/openvswitch/scripts/ovs-ctl stop This pulled up the services and allowed my configuration to work openvswitch-nonetwork.service ● ├─openvswitch-switch.service ● └─network-pre.target ● ├─ifup@br-eth2.service ● ├─ifup@br-ex.service ● ├─ifup@eth0.service ● ├─ifup@ovs-system.service ● ├─networking.service ● └─network.target ● ├─mysql.service ● ├─openvswitch-switch.service ● ├─rabbitmq-server.service ● ├─rc-local.service ● ├─ssh.service ● └─network-online.target ● ├─apache2.service ● ├─dns-clean.service ● └─kerneloops.service (the dots are green :) ) There is lots of noise on the net about chickens and eggs, so I do not know if it solves some other case The thing that took me so long to solve it (besides unfamiliarity of systemd) was the AUTOMATIC inclusion of dependencies, who on earth dreamt that up? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openvswitch in Ubuntu. https://bugs.launchpad.net/bugs/1448254 Title: openvswitch systemd unit file ordering wrong To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1448254/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1448254] Re: openvswitch systemd unit file ordering wrong
** Changed in: openvswitch (Ubuntu) Status: Confirmed = Triaged ** Changed in: hundredpapercuts Status: Confirmed = Triaged -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openvswitch in Ubuntu. https://bugs.launchpad.net/bugs/1448254 Title: openvswitch systemd unit file ordering wrong To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1448254/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1448254] Re: openvswitch systemd unit file ordering wrong
** Changed in: openvswitch (Ubuntu) Importance: Undecided = Critical ** Also affects: hundredpapercuts Importance: Undecided Status: New ** Changed in: hundredpapercuts Status: New = Confirmed ** Changed in: hundredpapercuts Importance: Undecided = Critical -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openvswitch in Ubuntu. https://bugs.launchpad.net/bugs/1448254 Title: openvswitch systemd unit file ordering wrong To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1448254/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1448254] Re: openvswitch systemd unit file ordering wrong
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: openvswitch (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openvswitch in Ubuntu. https://bugs.launchpad.net/bugs/1448254 Title: openvswitch systemd unit file ordering wrong To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1448254/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1448254] Re: openvswitch systemd unit file ordering wrong
I have a the same problem. In systemd, there are two files openvswitch-nonetwork.service openvswitch-switch.service which are supposed to fix this problem I am testing OpenStack with VXLAN and require sudo ovs-vsctl add-br br-eth2 sudo ovs-vsctl set port br-eth2 tag=2001 sudo ovs-vsctl add-port br-eth2 vxlan1 sudo ovs-vsctl set interface vxlan1 type=vxlan options:remote_ip=192.168.102.205 sudo ovs-vsctl add-port br-eth2 vxlan2 sudo ovs-vsctl set interface vxlan2 type=vxlan options:remote_ip=192.168.102.234 sudo ovs-vsctl add-br br-ex sudo ovs-vsctl add-port br-ex eth0 then bring up the network from /etc/network/interfaces with auto lo iface lo inet loopback auto eth0 iface eth0 inet manual up ifconfig $IFACE 0.0.0.0 up up ip link set $IFACE promisc on down ip link set $IFACE promisc off down ifconfig $IFACE down auto br-ex iface br-ex inet static address 192.168.102.206 netmask 255.255.255.0 gateway 192.168.102.36 dns-nameservers 192.168.102.10 192.168.102.50 up ip link set $IFACE promisc on down ip link set $IFACE promisc off auto br-eth2 iface br-eth2 inet static address 10.1.0.11 netmask 255.255.255.0 up ip link set $IFACE promisc on down ip link set $IFACE promisc off mtu 1446 from sudo systemctl list-unit-files i get openvswitch-nonetwork.service static openvswitch-switch.service enabled so I assume they are running -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openvswitch in Ubuntu. https://bugs.launchpad.net/bugs/1448254 Title: openvswitch systemd unit file ordering wrong To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1448254/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1448254] Re: openvswitch systemd unit file ordering wrong
Looks we've been through this before with upstart: https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1084028 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openvswitch in Ubuntu. https://bugs.launchpad.net/bugs/1448254 Title: openvswitch systemd unit file ordering wrong To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1448254/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs