Project

General

Profile

Ovh » History » Version 2

Cron Tab, 11/24/2015 06:00 AM

1 1 Cron Tab
h3. Crontab<pre>MAILTO="ceph-infra@redhat.com"
2
CEPH_QA_EMAIL="ceph-qa@ceph.com"
3
4
# Edit this file to introduce tasks to be run by cron.
5
# 
6
# Each task to run has to be defined through a single line
7
# indicating with different fields when the task will be run
8
# and what command to run for the task
9
# 
10
# To define the time you can provide concrete values for
11
# minute (m), hour (h), day of month (dom), month (mon),
12
# and day of week (dow) or use '*' in these fields (for 'any').# 
13
# Notice that tasks will be started based on the cron's system
14
# daemon's notion of time and timezones.
15
# 
16
# Output of the crontab jobs (including errors) is sent through
17
# email to the user the crontab file belongs to (unless redirected).
18
# 
19
# For example, you can run a backup of all your user accounts
20
# at 5 a.m every week with:
21
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
22
# 
23
# For more information see the manual pages of crontab(5) and cron(8)
24
# 
25
# m h  dom mon dow   command
26
27
PATH=/home/teuthology/src/teuthology_master/virtualenv/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
28
29 2 Cron Tab
30
#Publish this crontab to the Tracker page http://tracker.ceph.com/projects/ceph-releases/wiki/Ovh
31
00 6 * * *  crontab=$(crontab -l | perl -p -e 's/&lt;/&lt;/g; s/&gt;/&gt;/g; s/&/&amp;/g') ; header=$(echo h3. Crontab ; echo) ; curl --verbose -X PUT --header 'Content-type: application/xml' --data-binary '&lt;?xml version="1.0"?&gt;&lt;wiki_page&gt;&lt;text&gt;'"$header"'&lt;pre&gt;'"$crontab"'&lt;/pre&gt;&lt;/text&gt;&lt;/wiki_page&gt;' http://tracker.ceph.com/projects/ceph-releases/wiki/ovh.xml?key=$(cat /etc/redmine-key)
32
33 1 Cron Tab
# Ensure teuthology is up-to-date
34
55 13 * * *   cd /home/teuthology/src/teuthology_master && git pull
35
59 13 * * *   cd /home/teuthology/src/ceph-qa-suite_master && git pull
36
# Ensure ceph-sepia-secrets is up-to-date not needed in ovh
37
#57 13 * * *   cd /home/teuthology/ceph-sepia-secrets && git pull
38
39 2 Cron Tab
40
41
########################## infernalis ##################
42
### rados suite divided into 14 parts 1 part every day of the 2 weeks, the bc part does 0-6 on even weeks and 7-13 on odd
43
### % is escaped because it is a special character to chron
44
FILTER_OUT="--filter-out=random.yaml\,async.yaml"
45
MACHINE_NAME="openstack"
46
47
00 21 * * 1 /home/teuthology/bin/schedule_rados.sh 0 infernalis $MACHINE_NAME $CEPH_QA_EMAIL $FILTER_OUT
48
00 21 * * 2 /home/teuthology/bin/schedule_rados.sh 1 infernalis $MACHINE_NAME $CEPH_QA_EMAIL $FILTER_OUT
49
00 21 * * 3 /home/teuthology/bin/schedule_rados.sh 2 infernalis $MACHINE_NAME $CEPH_QA_EMAIL $FILTER_OUT
50
00 21 * * 4 /home/teuthology/bin/schedule_rados.sh 3 infernalis $MACHINE_NAME $CEPH_QA_EMAIL $FILTER_OUT
51
00 21 * * 5 /home/teuthology/bin/schedule_rados.sh 4 infernalis $MACHINE_NAME $CEPH_QA_EMAIL $FILTER_OUT
52
00 21 * * 6 /home/teuthology/bin/schedule_rados.sh 5 infernalis $MACHINE_NAME $CEPH_QA_EMAIL $FILTER_OUT
53
00 21 * * 7 /home/teuthology/bin/schedule_rados.sh 6 infernalis $MACHINE_NAME $CEPH_QA_EMAIL $FILTER_OUT
54
##########################
55
56
00 23 * * 2 teuthology-suite -v -c infernalis -m $MACHINE_NAME -k distro -s rbd -e $CEPH_QA_EMAIL
57
02 23 * * 1 teuthology-suite -v -c infernalis -m $MACHINE_NAME -k distro -s rgw -e $CEPH_QA_EMAIL
58
04 23 * * 2 teuthology-suite -v -c infernalis -m $MACHINE_NAME -s fs -e $CEPH_QA_EMAIL
59
06 23 * * 1 teuthology-suite -v -c infernalis -m $MACHINE_NAME -k testing -s krbd -e $CEPH_QA_EMAIL
60
08 23 * * 1 teuthology-suite -v -c infernalis -m $MACHINE_NAME -k testing -s kcephfs -e $CEPH_QA_EMAIL
61
10 23 * * 1 teuthology-suite -v -c infernalis -m $MACHINE_NAME -k testing -s knfs -e $CEPH_QA_EMAIL
62
12 23 * * 7 teuthology-suite -v -c infernalis -m $MACHINE_NAME -s hadoop -e $CEPH_QA_EMAIL
63
14 23 * * 7 teuthology-suite -v -c infernalis -m $MACHINE_NAME -s samba -e $CEPH_QA_EMAIL
64
16 23 * * 7 teuthology-suite -v -c infernalis -m $MACHINE_NAME -s rest -e $CEPH_QA_EMAIL
65
18 23 * * 7 teuthology-suite -v -c infernalis -m $MACHINE_NAME -k testing -s multimds -e $CEPH_QA_EMAIL
66
20 23 * * 2 teuthology-suite -v -c infernalis -m $MACHINE_NAME -k distro -s upgrade/client-upgrade -e $CEPH_QA_EMAIL
67
68 1 Cron Tab
69
##### running off -t wip-13622-fix-wusui temporarily
70
71
30 22 * * 1   teuthology-suite -v -c firefly -m openstack -k distro -s rados -e $CEPH_QA_EMAIL -t wip-13622-fix-wusui
72
00 23 * * 2   teuthology-suite -v -c firefly -m openstack -k distro -s rbd -e $CEPH_QA_EMAIL -t wip-13622-fix-wusui
73
02 23 * * 2   teuthology-suite -v -c firefly -m openstack -k distro -s rgw -e $CEPH_QA_EMAIL -t wip-13622-fix-wusui
74
04 23 * * 2   teuthology-suite -v -c firefly -m openstack -k distro -s fs -e $CEPH_QA_EMAILi -t wip-13622-fix-wusui
75
06 23 * * 2   teuthology-suite -v -c firefly -m openstack -k testing -s krbd -e $CEPH_QA_EMAIL -t wip-13622-fix-wusui
76
08 23 * * 2   teuthology-suite -v -c firefly -m openstack -k testing -s kcephfs -e $CEPH_QA_EMAIL -t wip-13622-fix-wusui
77
10 23 * * 2   teuthology-suite -v -c firefly -m openstack -k distro -s samba --filter ubuntu_ -e $CEPH_QA_EMAIL -t wip-13622-fix-wusui
78
20 16 * * 2   teuthology-suite -v -c firefly -m openstack -k distro -s ceph-deploy --filter ubuntu_ -e $CEPH_QA_EMAIL -t wip-13622-fix-wusui
79
05 17 * * 2   teuthology-suite -v -c firefly -k distro -m openstack -s upgrade/firefly --filter ubuntu_ -e $CEPH_QA_EMAIL -t wip-13622-fix-wusui
80
81
##########################
82
### rados suite divided into 14 parts 1 part every day of the 2 weeks
83
84
00 21 * * 1 /home/teuthology/bin/schedule_rados.sh 0 hammer openstack $CEPH_QA_EMAIL
85
00 21 * * 2 /home/teuthology/bin/schedule_rados.sh 1 hammer openstack $CEPH_QA_EMAIL
86
55 20 * * 3 /home/teuthology/bin/schedule_rados.sh 2 hammer openstack $CEPH_QA_EMAIL
87
00 21 * * 4 /home/teuthology/bin/schedule_rados.sh 3 hammer openstack $CEPH_QA_EMAIL
88
00 21 * * 5 /home/teuthology/bin/schedule_rados.sh 4 hammer openstack $CEPH_QA_EMAIL
89
00 21 * * 6 /home/teuthology/bin/schedule_rados.sh 5 hammer openstack $CEPH_QA_EMAIL
90
00 21 * * 7 /home/teuthology/bin/schedule_rados.sh 6 hammer openstack $CEPH_QA_EMAIL
91
92
#00 18 * * 3,5,7 teuthology-suite -v -c hammer -m openstack -k distro -s rbd -e $CEPH_QA_EMAIL
93
#02 18 * * 3,4,6 teuthology-suite -v -c hammer -m openstack -k distro -s rgw -e $CEPH_QA_EMAIL
94
00 18 * * 4 teuthology-suite -v -c hammer -m openstack -s fs -e $CEPH_QA_EMAIL
95
06 18 * * 5 teuthology-suite -v -c hammer -m openstack -k testing -s krbd -e $CEPH_QA_EMAIL
96
08 18 * * 7 teuthology-suite -v -c hammer -m openstack -k testing -s kcephfs -e $CEPH_QA_EMAIL
97
10 18 * * 7 teuthology-suite -v -c hammer -m openstack -k testing -s knfs -e $CEPH_QA_EMAIL
98
12 18 * * 6 teuthology-suite -v -c hammer -m openstack -s hadoop -e $CEPH_QA_EMAIL
99
14 18 * * 6 teuthology-suite -v -c hammer -m openstack -s samba -e $CEPH_QA_EMAIL
100
16 18 * * 6 teuthology-suite -v -c hammer -m openstack -s rest -e $CEPH_QA_EMAIL
101
18 18 * * 4 teuthology-suite -v -c hammer -m openstack -s -k testing multimds -e $CEPH_QA_EMAIL
102
11 21 * * 3 teuthology-suite -v -c hammer -m openstack -k distro -s upgrade/client-upgrade -e $CEPH_QA_EMAIL
103
104
10 17 1 * *     teuthology-suite -v -c hammer -k distro -m openstack -s upgrade/dumpling-firefly-x --filter ubuntu_ --timeout 54000 -e $CEPH_QA_EMAIL
105
13 17 * * 4     teuthology-suite -v -c hammer -k distro -m openstack -s upgrade/firefly-x -e $CEPH_QA_EMAIL
106
05 16 * * 3,5,7 teuthology-suite -v -c hammer -k distro -m openstack -s upgrade/hammer -e $CEPH_QA_EMAIL</pre>