[PKG-Openstack-devel] Bug#842075: glare-common: unowned directories after purge: /var/lib/glance, /var/lib/glance/*, /var/log/glance

Ivan Udovichenko iudovichenko at mirantis.com
Tue Oct 25 23:32:43 UTC 2016


Hi Andreas,

Thank you for finding this issue!

Actually those folder are created by glance-store component [1].
Also Glance package creates /var/lib/glance/* itself [2].

I'm thinking of moving this logic to glance-store as both packages
depend on it. But it is better to discuss it with the OS team.


[1]
https://github.com/openstack/glance_store/blob/master/glance_store/_drivers/filesystem.py#L310-L329
[2]
https://review.openstack.org/gitweb?p=openstack/deb-glance.git;a=blob;f=debian/glance-common.dirs;h=e7647fdb3db944614b0c85795673c0318c01799d;hb=refs/heads/debian/newton

On 10/25/2016 08:49 PM, Andreas Beckmann wrote:
> Package: glare-common
> Version: 0.1.0-2
> Severity: important
> User: debian-qa at lists.debian.org
> Usertags: piuparts
> 
> Hi,
> 
> during a test with piuparts I noticed your package left unowned
> directories on the system after purge, which is a violation of
> policy 6.8:
> 
> https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-removedetails
> 
> Filing this as important as having a piuparts clean archive is a release
> goal since lenny.
> 
> The maintainer scripts create (and later remove) a file in that
> directory. Manual directory removal may be not appropriate as this
> directory is shared between several packages.
> 
> If the package would ship this as an empty directory, dpkg would take
> care of the creation and removal (if it's empty).
> 
>>From the attached log (scroll to the bottom...):
> 
> 2m27.3s ERROR: FAIL: Package purging left files on system:
>   /var/lib/glance/	 not owned
>   /var/lib/glance/cache/	 not owned
>   /var/lib/glance/images/	 not owned
>   /var/log/glance/	 not owned
> 
> 
> BTW, shouldn't that be */glare/* ?
> 
> 
> cheers,
> 
> Andreas
> 
> _______________________________________________
> Openstack-devel mailing list
> Openstack-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/openstack-devel
> 



More information about the Openstack-devel mailing list