Package: release.debian.org
Severity: normal
User: release.debian....@packages.debian.org
Usertags: unblock

unblock slapos.core/1.2.4.1-2

slapos-node-unofficial currently in unstable  should Depends on at least
version  >=   2.0.0  of   python-psutil  (because   of  API   change  in
python-psutil)  but it  does not  currently and  this makes  subcommands
fails (with AttributeError  because of psutil API change)  when using it
on stable (where only psutil 0.5.1 is available).

Also,  I  noticed that  the  crontab  is  wrong  and makes  the  package
unuseable with a master node (which is one of the main usage at the end)
because one script is only ran once a day and this is not enough.

I have attached a diff and would like  to know if I could get an unblock
for this? Thanks in advance!

Cheers,
-- 
Arnaud Fontaine
Index: debian/control
===================================================================
--- debian/control	(revision 11537)
+++ debian/control	(working copy)
@@ -52,7 +52,8 @@
 # slapos.format
          bridge-utils,
          uml-utilities,
-         python-netaddr (>= 0.7.5~)
+         python-netaddr (>= 0.7.5~),
+         python-psutil (>= 2.0.0),
 Breaks: ${python:Breaks},
         slapos-client (<< 1.0.2.1-1~)
 # slapos.grid
Index: debian/slapos-node-unofficial.cron.d
===================================================================
--- debian/slapos-node-unofficial.cron.d	(revision 11537)
+++ debian/slapos-node-unofficial.cron.d	(working copy)
@@ -2,7 +2,18 @@
 PATH=/usr/bin:/usr/sbin:/sbin:/bin
 MAILTO=root
 
-*/5 * * * *	root	/usr/bin/slapos node software --log-file=/var/log/slapos/slapos-node-software.log
-*/5 * * * *	root	/usr/bin/slapos node instance --log-file=/var/log/slapos/slapos-node-instance.log
-0   0 * * *	root	/usr/bin/slapos node report --log-file=/var/log/slapos/slapos-node-report.log
-0 0 * * *	root	/usr/bin/slapos node format
+# Run "Installation/Destruction of Software Releases" and "Deploy/Start/Stop Partitions" once per minute
+* * * * *       root    /usr/bin/slapos node software --verbose --logfile=/var/log/slapos/slapos-node-software.log --pidfile=/var/run/slapos-node-software.pid > /dev/null 2>&1
+* * * * *       root    /usr/bin/slapos node instance --promise-timeout 20 --verbose --log-file=/var/log/slapos/slapos-node-instance.log --pidfile=/var/run/slapos-node-instance.pid > /dev/null 2>&1
+
+# Run "Destroy Partitions to be destroyed" once per hour
+0 * * * *       root    /usr/bin/slapos node report --maximal_delay=3600 --verbose --logfile=/var/log/slapos/slapos-node-report.log > /dev/null 2>&1
+
+# Run "Check/add IPs and so on" once per hour
+0 * * * *       root    /usr/bin/slapos node format >> /var/log/slapos/slapos-node-format.log 2>&1
+
+# Run "Booting" on every system start
+@reboot         root    /usr/bin/slapos node boot >> /var/log/slapos/slapos-node-boot.log 2>&1
+
+# Run "Collect" once a minute
+* * * * *       root    /usr/bin/slapos node collect >> /var/log/slapos/slapos-node-collect.log 2>&1

Attachment: signature.asc
Description: PGP signature

Reply via email to