xenial: lxcbr0 does not initiate correctly after reboot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Wishlist
|
Michael Gugino |
Bug Description
After reboot, lxcbr0 is not initiated correctly. The interface is in some unusable but configured state. The interface is usable after running ifdown lxcbr0; ifup lxcbr0. However, ifdown fails with some output, as seen below:
<system reboot>
root@1604aio:~# brctl show
bridge name bridge id STP enabled interfaces
br-mgmt 8000.000000000000 no
br-storage 8000.000000000000 no
br-vlan 8000.d6f72b3e87b4 no br-vlan-veth
br-vxlan 8000.000000000000 no
root@1604aio:~# ifup lxcbr0
ifup: interface lxcbr0 already configured
root@1604aio:~# brctl show
bridge name bridge id STP enabled interfaces
br-mgmt 8000.000000000000 no
br-storage 8000.000000000000 no
br-vlan 8000.d6f72b3e87b4 no br-vlan-veth
br-vxlan 8000.000000000000 no
root@1604aio:~# ifdown lxcbr0
Cannot find device "lxcbr0"
Cannot find device "lxcbr0"
Cannot find device "lxcbr0"
run-parts: /etc/network/
Removing LXC IPtables rules.
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
LXC IPtables rules removed.
root@1604aio:~# ifup lxcbr0
Creating LXC IPtables rules.
LXC IPtables rules created.
Starting LXC dnsmasq.
dnsmasq started.
root@1604aio:~# brctl show
bridge name bridge id STP enabled interfaces
br-mgmt 8000.000000000000 no
br-storage 8000.000000000000 no
br-vlan 8000.d6f72b3e87b4 no br-vlan-veth
br-vxlan 8000.000000000000 no
lxcbr0 8000.000000000000 no
Changed in openstack-ansible: | |
status: | New → Confirmed |
assignee: | nobody → Jimmy McCrory (jimmy-mccrory) |
importance: | Undecided → Wishlist |
Changed in openstack-ansible: | |
assignee: | Jimmy McCrory (jimmy-mccrory) → Michael Gugino (gugino-michael) |
status: | Confirmed → In Progress |
Looks like this is caused by a conflict with the lxc-net service.
May 11 21:01:00 host2-osa dnsmasq[1100]: failed to create listening socket for 10.100.100.1: Cannot assign requested address
May 11 21:01:00 host2-osa dnsmasq[1100]: FAILED to start up
May 11 21:01:00 host2-osa lxc-net[994]: Failed to setup lxc-net.
In 14.04 the service was disabled, it doesn't seem to be disabled in systemd systems.
The options would be to either disable lxc-net, or to remove /etc/network/ interfaces. d/lxc-net- bridge. cfg and let lxc-net handle managing the bridge.