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

Bug #1629766 reported by Barry Price
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
lxd (Ubuntu)
Fix Released
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)
description: updated
Revision history for this message
Stéphane Graber (stgraber) wrote :

Uploaded a fix for this. Sorry about it.

Changed in lxd (Ubuntu):
status: New → Fix Committed
Revision history for this message
Scott Moser (smoser) wrote :

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

Revision history for this message
Stéphane Graber (stgraber) wrote :

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

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

Other bug subscribers

Remote bug watches

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