[Pkg-linaro-lava-devel] Bug#925353: Bug#925353: lava-server: logrotate complains about "parent directory has insecure permissions"

Andreas Beckmann anbe at debian.org
Thu Mar 28 17:01:38 GMT 2019


On 2019-03-28 17:31, Steve McIntyre wrote:
> I'm a little bit at a loss to see what's causing it... :-/

I tried to normalize the logs (remove timestamps, tmpdir and everything
before the dist-upgrade to buster) and then diff them to find this:

@@ -6631,10 +6227,9 @@
  INFO: Package lava-server contains logrotate file: /etc/logrotate.d/lava-master-log
  INFO: Package lava-server contains logrotate file: /etc/logrotate.d/lava-publisher-log
  INFO: Package lava-server contains logrotate file: /etc/logrotate.d/lava-server-gunicorn-log
- INFO: Package lava-server contains logrotate file: /etc/logrotate.d/lava-server-uwsgi-log
  DEBUG: Starting command: ['chroot', '<<tmpdir>>', 'dpkg-query', '-W', '-f', '${Status}\\t${binary:Package}\\t${Package}\\t${Version}\\n']

and further up:

@@ -5953,11 +5600,6 @@
  DEBUG: Command ok: ['adequate', '--root', '<<tmpdir>>', 'lava-server']
  ERROR: WARN: Inadequate results from running adequate!
   lava-server: broken-symlink /usr/share/lava-server/static/docs -> ../../doc/lava-server-doc/html
-  lava-server: obsolete-conffile /etc/logrotate.d/lava-server-uwsgi-log
-  lava-server: obsolete-conffile /etc/lava-server/lava-server.wsgi
-  lava-server: obsolete-conffile /etc/lava-server/debug.wsgi
-  lava-server: obsolete-conffile /etc/lava-server/uwsgi.ini
-  lava-server: obsolete-conffile /etc/lava-server/uwsgi.reload
   lava-server: obsolete-conffile /etc/logrotate.d/lava-scheduler-log
   lava-server: obsolete-conffile /etc/lava-server/lava-server-gunicorn.service
   lava-server: obsolete-conffile /etc/lava-server/dispatcher-config/device-types/nxp-k64f.jinja2
@@ -5975,11 +5617,6 @@
  DEBUG: Command ok: ['chroot', '<<tmpdir>>', 'tmp/scripts/pre_remove_40_find_missing_md5sums']
  DEBUG: Starting command: ['chroot', '<<tmpdir>>', 'tmp/scripts/pre_remove_40_find_obsolete_conffiles']
  DUMP:
-  OBSOLETE CONFFILE /etc/logrotate.d/lava-server-uwsgi-log REGISTERED BY lava-server
-  OBSOLETE CONFFILE /etc/lava-server/lava-server.wsgi REGISTERED BY lava-server
-  OBSOLETE CONFFILE /etc/lava-server/debug.wsgi REGISTERED BY lava-server
-  OBSOLETE CONFFILE /etc/lava-server/uwsgi.ini REGISTERED BY lava-server
-  OBSOLETE CONFFILE /etc/lava-server/uwsgi.reload REGISTERED BY lava-server
   OBSOLETE CONFFILE /etc/logrotate.d/lava-scheduler-log REGISTERED BY lava-server (MISSING)
   OBSOLETE CONFFILE /etc/lava-server/lava-server-gunicorn.service REGISTERED BY lava-server
   OBSOLETE CONFFILE /etc/lava-server/dispatcher-config/device-types/nxp-k64f.jinja2 REGISTERED BY lava-server

So you have a lot of conffile cruft stemming from both jessie and stretch ...
debian/lava-server.maintscript will be your friend :-)

We have the data already:
https://piuparts.debian.org/stretch2buster/obsolete_conffiles_issue.html
Someone needs to start filing bugs ... obsolete conffiles will bite you in the future :-)

Andreas



More information about the Pkg-linaro-lava-devel mailing list