[Xenial] 0.9.1~fan1 from ppa:apw/fan-staging fanatic fails if lxd not installed

Bug #1590217 reported by Leann Ogasawara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-fan (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I was testing fanatic from apw's fan-staging ppa:

ubuntu-fan:
  Installed: 0.9.1~fan1
  Candidate: 0.9.1~fan1
  Version table:
 *** 0.9.1~fan1 0
        500 http://ppa.launchpad.net/apw/fan-staging/ubuntu/ xenial/main amd64 Packages
        100 /var/lib/dpkg/status
     0.9.0 0
        500 http://us.archive.ubuntu.com/ubuntu/ xenial/main amd64 Packages

I didn't have lxd installed when running fanatic and get the following error:

$ sudo fanatic
Welcome to the fanatic fan networking wizard. This will help you set
up an example fan network and optionally configure docker and/or LXD to
use this network. See fanatic(1) for more details.

Configure fan underlay (hit return to accept, or specify alternative) [192.168.0.0/16]:
Configure fan overlay (hit return to accept, or specify alternative) [250.0.0.0/8]:
vxlan: unknown command "fan-map"?
Usage: ... vxlan id VNI [ { group | remote } ADDR ] [ local ADDR ]
                 [ ttl TTL ] [ tos TOS ] [ dev PHYS_DEV ]
                 [ dstport PORT ] [ srcport MIN MAX ]
                 [ [no]learning ] [ [no]proxy ] [ [no]rsc ]
                 [ [no]l2miss ] [ [no]l3miss ]
                 [ ageing SECONDS ] [ maxaddress NUMBER ]
                 [ [no]udpcsum ] [ [no]udp6zerocsumtx ] [ [no]udp6zerocsumrx ]
                 [ gbp ]

Where: VNI := 0-16777215
       ADDR := { IP_ADDRESS | any }
       TOS := { NUMBER | inherit }
       TTL := { 1..255 | inherit }
/usr/sbin/fanctl: ip link add ftun0 type vxlan id 16384000 dev enp0s25 dstport 0 local 192.168.1.16 fan-map 250.0.0.0/8:192.168.0.0/16
/usr/sbin/fanctl: WARNING: ftun0: failed to configure address translation
RTNETLINK answers: Cannot assign requested address
iptables: Bad rule (does a matching rule exist in that chain?).
rm: cannot remove ‘/run/ubuntu-fan/nat-core’: No such file or directory
Cannot find device "ftun0"
/usr/sbin/fanctl: ip link set dev ftun0 up
/usr/sbin/fanctl: WARNING: ftun0: failed to up interface
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: No chain/target/match by that name.
rm: cannot remove ‘/run/ubuntu-fan/nat-core’: No such file or directory
interface ftun0 does not exist!
/usr/sbin/fanctl: brctl addif fan-250 ftun0
/usr/sbin/fanctl: WARNING: ftun0: failed to add vxlan interface to bridge
Cannot find device "ftun0"
Cannot find device "ftun0"
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: No chain/target/match by that name.
rm: cannot remove ‘/run/ubuntu-fan/nat-core’: No such file or directory
Cannot find device "fan-250"
/usr/sbin/fanctl: ip addr add 250.1.16.1/8 dev fan-250
/usr/sbin/fanctl: WARNING: fan-250: failed to add 250.1.16.1/8 address
iptables: Too many links.
Cannot find device "fan-250"
/usr/sbin/fanctl: ip link set dev fan-250 up
/usr/sbin/fanctl: WARNING: fan-250: failed to bring interface up
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Too many links.
rm: cannot remove ‘/run/ubuntu-fan/nat-core’: No such file or directory
dnsmasq: failed to create listening socket for 250.1.16.1: Cannot assign requested address
/usr/sbin/fanctl: dnsmasq -u dnsmasq --strict-order --bind-interfaces --pid-file=/run/ubuntu-fan/dnsmasq-fan-250.pid --conf-file= --listen-address 250.1.16.1 --dhcp-range 250.1.16.2,250.1.16.254 --dhcp-no-override --except-interface=lo --interface=fan-250 --dhcp-leasefile=/var/lib/misc/dnsmasq.fan-250.leases --dhcp-authoritative
/usr/sbin/fanctl: WARNING: fan-250: failed to start dnsmasq
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Too many links.
rm: cannot remove ‘/run/ubuntu-fan/nat-core’: No such file or directory
/usr/sbin/fanctl: /etc/network/fan:22 192.168.0.0/16 250.0.0.0/8 -- failed err=1
LXD not installed, unable to configure

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hrm, something is not quite right with this test box, I'm going to reimage it. Testing fanatic from ubuntu-fan-0.9.1~fan1 without lxd on another system is not exhibiting this issue. Marking this Invalid while I continue to investigate.

Changed in ubuntu-fan (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.