Syntax error in /usr/lib/lxd/upgrade-bridge

Bug #1629766 reported by Barry Price on 2016-10-03
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
lxd (Ubuntu)
Undecided
Unassigned

Bug Description

Version 2.3-0ubuntu5 of the lxd package in yakkety contains a typo in a script, which breaks package installation:

Setting up lxd (2.3-0ubuntu5) ...
Installing new version of config file /etc/init.d/lxd ...
Installing new version of config file /etc/init/lxd.conf ...

Old bridge configuration detected in /etc/default/lxd-bridge, upgrading
Unsetting deprecated profile options
Attempting to kill current lxd-bridge
/usr/lib/lxd/upgrade-bridge: 58: kill: No such process

Bringing down and renaming existing bridge lxdbr0 to lxd-upgrade
Creating a new LXD bridge
/usr/lib/lxd/upgrade-bridge: 147: /usr/lib/lxd/upgrade-bridge: Syntax error: end of file unexpected (expecting "fi")
dpkg: error processing package lxd (--configure):
 subprocess installed post-installation script returned error exit status 2

On closer inspection, there's an extra "t" on line 93, "fit" instead of "fi". Manually correcting this line and running "sudo apt-get install -f" solves the problem:

http://pastebin.ubuntu.com/23268764/

Barry Price (barryprice) on 2016-10-03
description: updated
Stéphane Graber (stgraber) wrote :

Uploaded a fix for this. Sorry about it.

Changed in lxd (Ubuntu):
status: New → Fix Committed
Scott Moser (smoser) wrote :

I ended up having to move /etc/default/lxd-bridge out of the way to get an upgrade to work.

Stéphane Graber (stgraber) wrote :

Yeah, the upgrade is still going through autopkgtest...

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxd - 2.3-0ubuntu6

---------------
lxd (2.3-0ubuntu6) yakkety; urgency=medium

  * Fix typo in migration script and make shellcheck happier. (LP: #1629766)

 -- Stéphane Graber <email address hidden> Mon, 03 Oct 2016 01:04:42 -0400

Changed in lxd (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers