[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted

2020-05-13 Thread Rolf Leggewie
*** This bug is a duplicate of bug 852458 ***
https://bugs.launchpad.net/bugs/852458

** This bug has been marked a duplicate of bug 852458
   three snapshots created

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997909

Title:
  apt-btrfs-snapshot creates snapshots that cannot be deleted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted

2016-01-04 Thread Jonathan
** Patch added: "apt_btrfs_snapshot_fix_delete_snapshot.patch"
   
https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+attachment/4543881/+files/apt_btrfs_snapshot_fix_delete_snapshot.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997909

Title:
  apt-btrfs-snapshot creates snapshots that cannot be deleted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted

2016-01-04 Thread Jonathan
Creation of @ snapshot:

 $ sudo apt-btrfs-snapshot snapshot; sudo apt-btrfs-snapshot snapshot
Create a snapshot of '/tmp/apt-btrfs-snapshot-mp-r4lbis5q/@' in 
'/tmp/apt-btrfs-snapshot-mp-r4lbis5q/@apt-snapshot-2016-01-04_09:55:08'
Create a snapshot of '/tmp/apt-btrfs-snapshot-mp-vszwto5y/@' in 
'/tmp/apt-btrfs-snapshot-mp-vszwto5y/@apt-snapshot-2016-01-04_09:55:08/@'

Possible fix, not sure about name root_snapshot_dir though:
 
 $ diff /usr/lib/python3/dist-packages/apt_btrfs_snapshot.py.orig 
/usr/lib/python3/dist-packages/apt_btrfs_snapshot.py -u3
--- /usr/lib/python3/dist-packages/apt_btrfs_snapshot.py.orig   2016-01-04 
09:48:53.632890479 -0500
+++ /usr/lib/python3/dist-packages/apt_btrfs_snapshot.py2016-01-04 
09:53:30.168895671 -0500
@@ -260,7 +260,15 @@
 
 def delete_snapshot(self, snapshot_name):
 mp = self.mount_btrfs_root_volume()
+snapshot_dir = os.path.join(mp, snapshot_name)
+# Check for @ snapshot inside snapshot. Need to delete this
+# snapshot first if exists
+root_snapshot_dir = os.path.join(snapshot_dir, "@")
+if os.path.isdir(root_snapshot_dir):
+res = self.commands.btrfs_delete_snapshot(
+root_snapshot_dir)
+
 res = self.commands.btrfs_delete_snapshot(
-os.path.join(mp, snapshot_name))
+snapshot_dir)
 self.umount_btrfs_root_volume()
 return res


 $ sudo apt-btrfs-snapshot delete @apt-snapshot-2016-01-04_09:55:08
Delete subvolume 
'/tmp/apt-btrfs-snapshot-mp-4g4167i8/@apt-snapshot-2016-01-04_09:55:08/@'
Delete subvolume 
'/tmp/apt-btrfs-snapshot-mp-4g4167i8/@apt-snapshot-2016-01-04_09:55:08'


Also create_btrfs_root_snapshot() could check for an existing snapshot and not 
create another one or add milliseconds to snapshot name.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997909

Title:
  apt-btrfs-snapshot creates snapshots that cannot be deleted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted

2016-01-04 Thread Ubuntu Foundations Team Bug Bot
The attachment "apt_btrfs_snapshot_fix_delete_snapshot.patch" seems to
be a patch.  If it isn't, please remove the "patch" flag from the
attachment, remove the "patch" tag, and if you are a member of the
~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997909

Title:
  apt-btrfs-snapshot creates snapshots that cannot be deleted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted

2014-04-29 Thread Michael
I find it a pity that this long standing bug is still unassigned.

It is still not working correctly even under Ubuntu 14.04 :-(

I am wondering why we report bugs at all ...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997909

Title:
  apt-btrfs-snapshot creates snapshots that cannot be deleted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted

2013-09-12 Thread Andrew Stubbs
The problem appear to be caused by multiple snapshots taken within the
same second. See  #852458.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997909

Title:
  apt-btrfs-snapshot creates snapshots that cannot be deleted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted

2013-03-09 Thread Jacek N
Robert is rith in #6, here is what I did on my system to get rid of the 
snapshots:
mount /dev/sda1 /mnt/tmp #Mounted the same volume for the second time on a 
running system, can be done online
cd /mnt/tmp
btrfs subvolume list /mnt/tmp/
btrfs subvolume delete /mnt/tmp/@apt-snapshot-2013-01-01_12:42:41/@
btrfs subvolume delete /mnt/tmp/@apt-snapshot-2013-01-01_12:42:41

and repeated for all the other snapshots which would not disappear

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997909

Title:
  apt-btrfs-snapshot creates snapshots that cannot be deleted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted

2012-09-22 Thread Robert C.
As a possible workaround, you can attempt to delete those inner
snapshots first. This worked for me to delete all apt-snapshots:

for i in /@apt-* ; sudo btrfs sub del $i/@ ; sudo btrfs sub del $i

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997909

Title:
  apt-btrfs-snapshot creates snapshots that cannot be deleted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted

2012-09-17 Thread Sanjeev Gupta
Hi,

Please see 
  http://www.ogre.com/node/413
for a work-around.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997909

Title:
  apt-btrfs-snapshot creates snapshots that cannot be deleted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted

2012-09-14 Thread Peter Würtz
When upgrading from 12.04 to 12.10, a snapshot of the root filesystem has been 
added:
@apt-snapshot-release-upgrade-quantal-2012-09-07_11:09:47

There seems to be no way of deleting it..

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997909

Title:
  apt-btrfs-snapshot creates snapshots that cannot be deleted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted

2012-06-20 Thread Sanjeev Gupta
Please see comment by MatthewHawn (steamraven) on Bug #852458

That describes this behaviour perfectly.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997909

Title:
  apt-btrfs-snapshot creates snapshots that cannot be deleted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted

2012-05-12 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: apt-btrfs-snapshot (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997909

Title:
  apt-btrfs-snapshot creates snapshots that cannot be deleted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted

2012-05-11 Thread Sanjeev Gupta
-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997909

Title:
  apt-btrfs-snapshot creates snapshots that cannot be deleted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs