apt-btrfs-snapshot crashes without any arguments

Bug #1217828 reported by Andrew Stubbs
74
This bug affects 16 people
Affects Status Importance Assigned to Milestone
apt-btrfs-snapshot (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The failure looks like this:

$ sudo apt-btrfs-snapshot
Traceback (most recent call last):
  File "/usr/bin/apt-btrfs-snapshot", line 98, in <module>
    if args.command == "supported":
AttributeError: 'Namespace' object has no attribute 'command'

Adding a command or --help works fine, but this isn't what you'd call "graceful failure".

Tags: bionic

Related branches

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

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

Changed in apt-btrfs-snapshot (Ubuntu):
status: New → Confirmed
Revision history for this message
Jonathan (jjcf89) wrote :

 $ diff /usr/bin/apt-btrfs-snapshot.orig /usr/bin/apt-btrfs-snapshot
98c98,101
< if args.command == "supported":
---
> if "command" not in args:
> parser.print_help()
> res = False
> elif args.command == "supported":

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Still unresolved in bionic

tags: added: bionic
Revision history for this message
flrnd (flrnd) wrote :

Same in focal.

This happened after a revert.

When you revert you loose all the previous snapshots, I was about to file a bug but then had a second problem.

When you rollback from snapper (which doesn't work either because how the Ubuntu subvolumen layout works) apt-btrfs-snapshot stops working and throw you that error.

Thankfully I tested this on a virtual machine before going to production because I was really skeptic about it. And I was right.

It's clear that after so many years this is not going to be fixed, at least please put a big huge warning to people wanting to use both snapper and apt-btrfs-snapshot with known issues.

Revision history for this message
Mathias Rangger (masteroforion) wrote :

This is still an issue today.
The fix seems already be there. Why is it not resolved?

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

Other bug subscribers

Related questions

Remote bug watches

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