arithmetic expression: expecting primary: " (32-)/4 "

Bug #1729608 reported by Hadmut Danisch on 2017-11-02
48
This bug affects 10 people
Affects Status Importance Assigned to Milestone
OPNFV
Undecided
Unassigned
juju
Undecided
Unassigned
ubuntu-fan (Ubuntu)
Undecided
Unassigned

Bug Description

Hi,

I've configured a bridge interface (named vlan0) through interfaces, but can't take it up with ifup, since the if-up-script from ubuntu-fan aborts with error status

reason:

# fanctl net start vlan0
/usr/sbin/fanctl: 41: /usr/sbin/fanctl: arithmetic expression: expecting primary: " (32-)/4 "

As far as I can see the problem is that in cmd_net_up() the line

addr="${addr%/*}"

cuts the mask from the interface config and passes the pure ip address only, but later config_filename() calls width_to_mask(), which tries to use the (now missing) mask.

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: ubuntu-fan 0.12.6
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic x86_64
NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
ApportVersion: 2.20.7-0ubuntu3.1
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Nov 2 14:26:42 2017
InstallationDate: Installed on 2017-10-24 (9 days ago)
InstallationMedia: Lubuntu 17.10 "Artful Aardvark" - Release amd64 (20171017.1)
PackageArchitecture: all
SourcePackage: ubuntu-fan
UpgradeStatus: No upgrade log present (probably fresh install)

Hadmut Danisch (hadmut) wrote :
cjin (cjauzenne) wrote :

im seeing this in ubuntu 17.04 also.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-fan (Ubuntu):
status: New → Confirmed
bsb (bshro) wrote :

When I configured the network without NetworkManager, the networking.service wont start. Status showed this error, see reason. My workaround was to rename the /etc/network/fan to fan.bak to get it start.

Narinder Gupta (narindergupta) wrote :

can reproduce this issue with juju deploy pike bundle on xenial

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers