update to oneiric quit due to missing btrfs

Bug #800908 reported by Hans Bakker
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt-btrfs-snapshot (Ubuntu)
Fix Released
Medium
Michael Vogt
update-manager (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Traceback (most recent call last):

  File "/tmp/update-manager-3uvvzV/oneiric", line 7, in <module>
    sys.exit(main())

  File "/tmp/update-manager-3uvvzV/DistUpgradeMain.py", line 202, in main
    if app.run():

  File "/tmp/update-manager-3uvvzV/DistUpgradeController.py", line 1642, in run
    return self.fullUpgrade()

  File "/tmp/update-manager-3uvvzV/DistUpgradeController.py", line 1612, in fullUpgrade
    if not self.doDistUpgrade():

  File "/tmp/update-manager-3uvvzV/DistUpgradeController.py", line 1006, in doDistUpgrade
    self._maybe_create_apt_btrfs_snapshot()

  File "/tmp/update-manager-3uvvzV/DistUpgradeController.py", line 990, in _maybe_create_apt_btrfs_snapshot
    res = apt_btrfs.create_btrfs_root_snapshot(prefix)

  File "/tmp/update-manager-3uvvzV/apt_btrfs_snapshot.py", line 122, in create_btrfs_root_snapshot
    os.path.join(mp, self.SNAP_PREFIX+additional_prefix+snap_id))

  File "/tmp/update-manager-3uvvzV/apt_btrfs_snapshot.py", line 69, in btrfs_subvolume_snapshot
    source, dest])

  File "/usr/lib/python2.7/subprocess.py", line 486, in call
    return Popen(*popenargs, **kwargs).wait()

  File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
    errread, errwrite)

  File "/usr/lib/python2.7/subprocess.py", line 1213, in _execute_child
    raise child_exception

OSError: [Errno 2] File or directory does not exist

Revision history for this message
Hans Bakker (hansmbakker) wrote :
Revision history for this message
Hans Bakker (hansmbakker) wrote :
Revision history for this message
Eduard Hasenleithner (eduard-hasenleithner) wrote :

Apparently, "/tmp/update-manager-xxx/apt-btrfs_snapshot.py" does not check the existence of the "btrfs" tool and tries to call it unconditionally. After doing a "apt-get install btrfs-utils" - I don't have any btrfs partition - the upgrade continues.

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

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

Changed in update-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

As far as I can tell apt_btrfs_snapshot is copied into update-manager at build time so its actually the apt-btrfs-snapshot where the fix will need to be made.

affects: update-manager → update-manager (Ubuntu)
Changed in apt-btrfs-snapshot (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Brian Murray (brian-murray) wrote :

apt-btrfs-utils depends on btrfs but update-manager doesn't.

Changed in apt-btrfs-snapshot (Ubuntu):
assignee: nobody → Michael Vogt (mvo)
summary: - Manual update to oneiric is aborted because of error
+ update to oneiric quit due to missing btrfs
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-btrfs-snapshot - 0.2.1

---------------
apt-btrfs-snapshot (0.2.1) oneiric; urgency=low

  * test/test_apt_btrfs_snapshot.py, test/data/fstab.bug872145:
    - fix crash in fstab parsing (LP: #872145)
  * apt_btrfs_snapshot.py:
    - test for /sbin/btrfs in snapshot_supported() as well (LP: #800908)
 -- Michael Vogt <email address hidden> Tue, 11 Oct 2011 10:17:41 +0200

Changed in apt-btrfs-snapshot (Ubuntu):
status: Triaged → Fix Released
Michael Vogt (mvo)
Changed in update-manager (Ubuntu):
status: New → Fix Committed
Changed in update-manager (Ubuntu):
status: Fix Committed → 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.