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

Bug #1729608 reported by Hadmut Danisch
48
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Canonical Juju
New
Undecided
Unassigned
OPNFV
New
Undecided
Unassigned
ubuntu-fan (Ubuntu)
Confirmed
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)

Revision history for this message
Hadmut Danisch (hadmut) wrote :
Revision history for this message
cjin (cjauzenne) wrote :

im seeing this in ubuntu 17.04 also.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in ubuntu-fan (Ubuntu):
status: New → Confirmed
Revision history for this message
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.

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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