Public bug reported:

Hi,
this has puzzled me for a while and I think I now at least have enough data to 
report it for discussion.

It seems that when I sync images they get created without the right 
permissions/ownership?
Effectively I see after a sync of images that they look fine in a query:

uvt-simplestreams-libvirt query
release=xenial arch=amd64 label=daily (20160914)
release=yakkety arch=amd64 label=daily (20160914)

Those are the images of yesterday (this will become important)

And in the FS those look like
ll 
/var/lib/uvtool/libvirt/images/x-uvt-b64-Y29tLnVidW50dS5jbG91ZC5kYWlseTpzZXJ2ZXI6MTYuMDQ6YW1kNjQgMjAxNjA5MDk=
-rw------- 1 libvirt-qemu kvm 1020067840 Sep 14 09:22 
/var/lib/uvtool/libvirt/images/x-uvt-b64-Y29tLnVidW50dS5jbG91ZC5kYWlseTpzZXJ2ZXI6MTYuMDQ6YW1kNjQgMjAxNjA5MDk=

All fine and working.
But on a subsequent sync that wants to unlink those uvt is failing, the same 
happens for a purge.
uvt-simplestreams-libvirt purge
Traceback (most recent call last):
  File "/usr/bin/uvt-simplestreams-libvirt", line 27, in <module>
    uvtool.libvirt.simplestreams.main()
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/simplestreams.py", line 
326, in main
    args.func(args)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/simplestreams.py", line 
286, in main_purge
    purge_pool()
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/simplestreams.py", line 
142, in purge_pool
    volume.delete(0)
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3359, in delete
    if ret == -1: raise libvirtError ('virStorageVolDelete() failed', vol=self)
libvirt.libvirtError: cannot unlink file 
'/var/lib/uvtool/libvirt/images/x-uvt-b64-Y29tLnVidW50dS5jbG91ZC5kYWlseTpzZXJ2ZXI6MTYuMDQ6YW1kNjQgMjAxNjA5MDk=':
 Permission denied

I wonder if something in my setup is odd - e.g. that the permissions
shouldn't be this way to begin. And I wanted to discuss that before we
debug deeper into what is happening in the code while executing.

** Affects: uvtool (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  images created are not unlinkable and cause uvtool to fail next sync

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/uvtool/+bug/1623803/+subscriptions

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

Reply via email to