To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 095ba676 authored by Reto Da Forno's avatar Reto Da Forno

minor correction, unused files removed, mmc_check file moved

parent 90e66ed8
<?xml version="1.0" encoding="UTF-8"?>
<testConf xmlns="http://www.flocklab.ethz.ch" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.flocklab.ethz.ch xml/flocklab.xsd">
<!-- General configuration -->
<generalConf>
<name>FlockLab MMC check</name>
<description>Do a periodic check of all SD cards for badblocks and fragmentation.</description>
<scheduleAsap>
<durationSecs>28800</durationSecs>
</scheduleAsap>
<emailResults>no</emailResults>
</generalConf>
<targetConf>
<obsIds>001</obsIds>
<voltage>3.3</voltage>
<noImage>1</noImage>
</targetConf>
<gpioTracingConf>
<obsIds>001</obsIds>
<pinConf>
<pin>LED1</pin>
<edge>both</edge>
<mode>single</mode>
</pinConf>
</gpioTracingConf>
</testConf>
......@@ -429,9 +429,13 @@ function validate_test($test_config_file, &$errors) {
*/
function trigger_scheduler() {
global $CONFIG;
$cmd = "ssh ".$CONFIG['testmanagementserver']['user']."@".$CONFIG['testmanagementserver']['host']." '".$CONFIG['testmanagementserver']['basedir']."/flocklab_scheduler.py --debug >> /dev/null &'";
if ($CONFIG['testmanagementserver']['host'] == 'localhost') {
$cmd = $CONFIG['testmanagementserver']['basedir']."/flocklab_scheduler.py --debug >> /dev/null &";
}
else {
$cmd = "ssh ".$CONFIG['testmanagementserver']['user']."@".$CONFIG['testmanagementserver']['host']." '".$CONFIG['testmanagementserver']['basedir']."/flocklab_scheduler.py --debug >> /dev/null &'";
}
exec($cmd , $output, $ret);
return $ret;
}
......@@ -789,7 +793,7 @@ function schedule_test($testconfig, $resources, $exclude_test = NULL) {
$db = db_connect();
$guard_setup_min = $CONFIG['tests']['setuptime'];
$guard_cleanup_min = $CONFIG['tests']['cleanuptime'];
$allow_parallel_tests = $CONFIG['tests']['allowparalleltests']; # added by rdaforno
$allow_parallel_tests = $CONFIG['tests']['allowparalleltests'];
$isAsap = isset($testconfig->generalConf->scheduleAsap);
$now = new DateTime ();
$now->setTimeZone(new DateTimeZone("UTC"));
......
<HTML>
<BODY>
<H2>FlockLab is currently down for maintenance.</H2>
</BODY>
</HTML>
This diff is collapsed.
......@@ -58,7 +58,7 @@
<a href='testbedstatus.php'><img src='pics/icons/right_arrow.png' alt="menuitem"> FlockLab Status</a><br>
<a href='topology.php'><img src='pics/icons/right_arrow.png' alt="menuitem"> Connectivity Map</a><br>
<a href='statistics.php'><img src='pics/icons/right_arrow.png' alt="menuitem"> Statistics</a><br>
<a href='https://gitlab.ethz.ch/tec/public/flocklab/wikis/Index' target='_blank'><img src='pics/icons/right_arrow.png' alt="menuitem"> Help</a><br>
<a href='https://flocklab.ethz.ch' target='_blank'><img src='pics/icons/right_arrow.png' alt="menuitem"> Help</a><br>
<a href='logout.php'><img src='pics/icons/right_arrow.png' alt="menuitem"> Logout</a><br>
<!-- ADMIN_START --><a href='admin_group_reservation.php'><img src='pics/icons/right_arrow.png' alt="menuitem"> Group Reservations</a><br><!-- ADMIN_END -->
<!-- ADMIN_START --><a href='admin_groups.php'><img src='pics/icons/right_arrow.png' alt="menuitem"> Groups</a><br><!-- ADMIN_END -->
......
......@@ -24,7 +24,7 @@
mysqli_close($db);
$all = array();
while ($row = mysqli_fetch_array($rs, MYSQL_ASSOC)) {
while ($row = mysqli_fetch_array($rs, MYSQLI_ASSOC)) {
$all[]=$row;
}
// JSON-encode test info
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment