Changeset 30103
- Timestamp:
- Dec 17, 2010, 10:06:13 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20101205
- Files:
-
- 10 edited
-
PS-IPP-Config/lib/PS/IPP/Config.pm (modified) (2 diffs)
-
dbconfig/changes.txt (modified) (1 diff)
-
dbconfig/notes.txt (modified) (1 diff)
-
dbconfig/publish.md (modified) (1 diff)
-
dbconfig/raw.md (modified) (1 diff)
-
ippMonitor/raw/czartool_labels.php (modified) (9 diffs)
-
ippMonitor/raw/site.php.in (modified) (1 diff)
-
pstamp/scripts/pstamp_job_run.pl (modified) (1 diff)
-
pstamp/scripts/pstampparse.pl (modified) (2 diffs)
-
pstamp/src/ppstampMakeStamp.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/PS-IPP-Config/lib/PS/IPP/Config.pm
r29891 r30103 1107 1107 } 1108 1108 1109 if (file_scheme($output) ne 'neb') { 1109 my $scheme = file_scheme($output); 1110 if (!$scheme or ($scheme ne 'neb')) { 1110 1111 # non-nebulous file we're done 1111 if ($delete_existing ) {1112 if ($delete_existing and $self->file_exists($output)) { 1112 1113 if (!$self->file_delete($output)) { 1113 1114 carp "failed to delete $output"; … … 1181 1182 my $copies = shift; 1182 1183 1183 if (file_scheme($file) ne 'neb') { 1184 my $scheme = file_scheme($file); 1185 if (!$scheme or ($scheme ne 'neb')) { 1184 1186 carp "cannot replicate non-neulous file: $file"; 1185 1187 return 0; -
branches/eam_branches/ipp-20101205/dbconfig/changes.txt
r29902 r30103 1989 1989 UPDATE dbversion set schema_version = '1.1.66', updated= CURRENT_TIMESTAMP(); 1990 1990 1991 -- output format for publishing / unique name for clients 1992 ALTER TABLE publishClient ADD name VARCHAR(64) UNIQUE; -- (Bill's request) 1993 ALTER TABLE publishClient ADD output_format SMALLINT NOT NULL default 1; 1994 1991 1995 -- Version 1.1.67 1996 1997 ALTER TABLE rawImfile ADD column video_cells TINYINT AFTER burntool_state; -
branches/eam_branches/ipp-20101205/dbconfig/notes.txt
r13740 r30103 8 8 * build ippbd ('make src' in dbconfig) 9 9 * check in dbconfig, ippdb, and ippTools 10 * update dbversion.schema.version (added by bills) 10 11 11 12 2007.06.04 : EAM -
branches/eam_branches/ipp-20101205/dbconfig/publish.md
r27028 r30103 9 9 workdir STR 255 10 10 comment STR 255 11 name STR 64 12 output_format S16 0 11 13 END 12 14 -
branches/eam_branches/ipp-20101205/dbconfig/raw.md
r27149 r30103 141 141 md5sum STR 32 142 142 burntool_state S16 0 143 video_cells BOOL f 143 144 END -
branches/eam_branches/ipp-20101205/ippMonitor/raw/czartool_labels.php
r29792 r30103 64 64 include 'version.php'; 65 65 echo "</p>"; 66 echo "<p align=\"center\"> Current status of the IPP as of $lastUpdateTime (faults are shown in parentheses). <br>Documentation can be found <a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Processing\">here</a> and cluster load monitored <a href=\"http://ganglia.pan-starrs.ifa.hawaii.edu/?r=hour&s=descending&c=IPP%2520Production\">here</a><br>Current nightly science status: $nsStatus<br>Use <a href=\"$link\"> $plotTypeLink</a> plots <br/><a href=\"http://ipp004.ifa.hawaii.edu/clusterMonitor/top.html\">Who uses the cluster?</a>< /p>";66 echo "<p align=\"center\"> Current status of the IPP as of $lastUpdateTime (faults are shown in parentheses). <br>Documentation can be found <a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Processing\">here</a> and cluster load monitored <a href=\"http://ganglia.pan-starrs.ifa.hawaii.edu/?r=hour&s=descending&c=IPP%2520Production\">here</a><br>Current nightly science status: $nsStatus<br>Use <a href=\"$link\"> $plotTypeLink</a> plots <br/><a href=\"http://ipp004.ifa.hawaii.edu/clusterMonitor/top.html\">Who uses the cluster?</a><br><a href=\"http://ipp004.ifa.hawaii.edu/ippMetrics\">IPP Metrics</a><br/><a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PS1_IPP_CzarLogs\">Czar log pages</a></p>"; 67 67 68 68 … … 399 399 ."&plottype=".$plotType; 400 400 401 $searchState = "new"; 402 if ($server == "update") $searchState = "update"; 403 401 404 // write rows 402 405 foreach ($labels as &$thisLabel) { … … 437 440 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 438 441 439 $link = "failedChipProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&chipRun.label=" . $thisLabel . "&chipRun.state= new";442 $link = "failedChipProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&chipRun.label=" . $thisLabel . "&chipRun.state=".$searchState; 440 443 getStateAndFaults($db, $thisLabel, $selectedState, "chip", $str, $anyFaults); 441 444 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 442 445 443 $link = "failedCamProcessedExp.php?pass=" . $pass . "&proj=" . $proj . "&camRun.label=" . $thisLabel . "&camRun.state= new";446 $link = "failedCamProcessedExp.php?pass=" . $pass . "&proj=" . $proj . "&camRun.label=" . $thisLabel . "&camRun.state=".$searchState; 444 447 getStateAndFaults($db, $thisLabel, $selectedState, "cam", $str, $anyFaults); 445 448 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 446 449 447 $link = "failedFakeProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&fakeRun.label=" . $thisLabel . "&fakeRun.state= new";450 $link = "failedFakeProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&fakeRun.label=" . $thisLabel . "&fakeRun.state=".$searchState; 448 451 getStateAndFaults($db, $thisLabel, $selectedState, "fake", $str, $anyFaults); 449 452 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 450 453 451 $link = "failedWarpSkyfiles.php?pass=" . $pass . "&proj=" . $proj . "&warpRun.label=" . $thisLabel . "&warpRun.state= new";454 $link = "failedWarpSkyfiles.php?pass=" . $pass . "&proj=" . $proj . "&warpRun.label=" . $thisLabel . "&warpRun.state=".$searchState; 452 455 getStateAndFaults($db, $thisLabel, $selectedState, "warp", $str, $anyFaults); 453 456 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 454 457 455 $link = "failedStackSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&stackRun.label=" . $thisLabel . "&stackRun.state= new";458 $link = "failedStackSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&stackRun.label=" . $thisLabel . "&stackRun.state=".$searchState; 456 459 getStateAndFaults($db, $thisLabel, $selectedState, "stack", $str, $anyFaults); 457 460 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 458 461 459 $link = "failedDiffSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $thisLabel . "&diffRun.state= new";462 $link = "failedDiffSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $thisLabel . "&diffRun.state=".$searchState; 460 463 getStateAndFaults($db, $thisLabel, $selectedState, "diff", $str, $anyFaults); 461 464 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); … … 605 608 ."&allservercmd=stop"; 606 609 607 write_table_cell($class, '%s', $link, "Stop all"); 610 $link = ""; # TODO removed links temporarily 611 write_table_cell($class, '%s', $link, "Stop all"); 608 612 $link = "czartool_labels.php?pass=".$pass 609 613 ."&proj=".$proj … … 613 617 ."&allservercmd=run"; 614 618 615 write_table_cell($class, '%s', $link, "Run all"); 619 $link = ""; # TODO removed links temporarily 620 write_table_cell($class, '%s', $link, "Run all"); 616 621 echo "</tr>\n"; 617 622 … … 628 633 ."&plottype=".$plotType; 629 634 630 write_table_cell($class, '%s', $link, $server); 635 $link = ""; # TODO removed links temporarily 636 write_table_cell($class, '%s', $link, $server); 631 637 write_table_cell($class, '%s', "", $alive ? "yes" : "NO"); 632 638 … … 644 650 645 651 $link = $link . "stop"; 646 write_table_cell($class, '%s', $link, "stop"); 652 $link = ""; # TODO removed links temporarily 653 write_table_cell($class, '%s', $link, "stop"); 647 654 write_table_cell($class, '%s', "", ""); 648 655 } … … 651 658 $link = $link . "run"; 652 659 write_table_cell($class, '%s', "", ""); 653 write_table_cell($class, '%s', $link, "run"); 660 $link = ""; # TODO removed links temporarily 661 write_table_cell($class, '%s', $link, "run"); 654 662 } 655 663 } … … 759 767 ########################################################################### 760 768 function showReplicationsStatus($replHost, $replUser, $replPassword, $replDatabaseName) { 761 #print "<br>$replHost, $replUser, $replPassword, $replDatabaseName<br/>";762 $dbRepl = DB::connect("mysql://$replUser:$replPassword@$replHost");763 if (PEAR::isError($dbRepl)) {764 die("MySQL DB connection error: Check the configuration for $replDatabaseName");765 }766 $res = $dbRepl->query('SHOW SLAVE STATUS');767 while ($res->fetchInto($row)) {768 # Have a look for Last_Errno in http://dev.mysql.com/doc/refman/5.0/en/show-slave-status.html769 $errorStatusInMySql = $row[18];770 $replStatus = ($errorStatusInMySql==0?"OK":"<font color=\"red\">PROBLEM</font>");771 echo "<tr><td>$replDatabaseName</td><td>$replStatus</td></tr>";772 if ($errorStatusInMySql!=0) {773 echo "<tr><td colspan=\"2\">Connect to $replDatabaseName replication host, execute 'SHOW SLAVE STATUS', and fix the problem.<br/>";774 echo "Information <a href=\"http://dev.mysql.com/doc/refman/5.0/en/show-slave-status.html\">here</a></td></tr>";775 }776 }777 $dbRepl->disconnect();769 #print "<br>$replHost, $replUser, $replPassword, $replDatabaseName<br/>"; 770 $dbRepl = DB::connect("mysql://$replUser:$replPassword@$replHost"); 771 if (PEAR::isError($dbRepl)) { 772 die("MySQL DB connection error: Check the configuration for $replDatabaseName"); 773 } 774 $res = $dbRepl->query('SHOW SLAVE STATUS'); 775 while ($res->fetchInto($row)) { 776 # Have a look for Last_Errno in http://dev.mysql.com/doc/refman/5.0/en/show-slave-status.html 777 $errorStatusInMySql = $row[18]; 778 $replStatus = ($errorStatusInMySql==0?"OK":"<font color=\"red\">PROBLEM</font>"); 779 echo "<tr><td>$replDatabaseName</td><td>$replStatus</td></tr>"; 780 if ($errorStatusInMySql!=0) { 781 echo "<tr><td colspan=\"2\">Connect to $replDatabaseName replication host, execute 'SHOW SLAVE STATUS', and fix the problem.<br/>"; 782 echo "Information <a href=\"http://dev.mysql.com/doc/refman/5.0/en/show-slave-status.html\">here</a></td></tr>"; 783 } 784 } 785 $dbRepl->disconnect(); 778 786 } 779 787 -
branches/eam_branches/ipp-20101205/ippMonitor/raw/site.php.in
r29654 r30103 27 27 $REPL_DBNAME_GPC1 = "gpc1"; 28 28 29 $REPL_HOST_NEBULOUS = "ipp 0222.IfA.Hawaii.Edu";29 $REPL_HOST_NEBULOUS = "ippdb02.IfA.Hawaii.Edu"; 30 30 $REPL_USER_NEBULOUS = "ippMonitor"; 31 31 $REPL_PASSWORD_NEBULOUS = "ippMonitor"; -
branches/eam_branches/ipp-20101205/pstamp/scripts/pstamp_job_run.pl
r29885 r30103 277 277 # silently skip them if they don't exist. Perhaps this should be 278 278 # detected in pstampparse so that the user can be notified with 279 # a message in parse_error.txt ("warp do not have a background model") 280 my $cmf_file = $params->{cmf} if ($options & $PSTAMP_SELECT_CMF); 279 # a message in parse_error.txt ("warp does not have a background model") 281 280 my $psf_file = $params->{psf} if ($options & $PSTAMP_SELECT_PSF); 282 281 my $backmdl_file = $params->{backmdl} if ($options & $PSTAMP_SELECT_BACKMDL); 283 282 my $pattern_file = $params->{pattern} if ($options & $PSTAMP_SELECT_BACKMDL); 283 my $cmf_file; 284 if ($stage ne 'chip') { 285 # we don't ship chip stage cmf files because they may not be censored 286 $cmf_file = $params->{cmf} if ($options & $PSTAMP_SELECT_CMF); 287 } 284 288 285 289 my $outdir = dirname($output_base); -
branches/eam_branches/ipp-20101205/pstamp/scripts/pstampparse.pl
r29578 r30103 126 126 } 127 127 128 # Adjust the label for requests coming in over the web interaface 129 130 my $label_changed = 0; 131 if ($label and $label eq "WEB.UP") { 132 my $lcname = lc($req_name); 133 if ($lcname =~ /pitt/) { 134 $label = "PITT"; 135 $label_changed = 1; 136 } elsif ($lcname =~ /cfa/) { 137 $label = "CFA"; 138 $label_changed = 1; 139 } elsif ($lcname =~ /durham/) { 140 $label = "DURHAM"; 141 $label_changed = 1; 142 } elsif ($lcname =~ /qub/) { 143 $label = "QUB"; 144 $label_changed = 1; 145 } 146 print "Setting label for $req_name to $label\n" if $label_changed; 147 } 148 149 128 150 if ($req_id and !$no_update) { 129 151 # update the database with the request name. This will be used as the … … 131 153 my $command = "$pstamptool -updatereq -req_id $req_id -set_name $req_name"; 132 154 $command .= " -set_outProduct $product"; 155 $command .= " -set_label $label" if $label_changed; 133 156 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 134 157 run(command => $command, verbose => $verbose); -
branches/eam_branches/ipp-20101205/pstamp/src/ppstampMakeStamp.c
r29885 r30103 320 320 } 321 321 if (readout->mask) { 322 outReadout->mask = extractStamp(readout->mask, extractRegion, 0); 322 psImageMaskType maskInitValue = pmConfigMaskGet("BLANK", config); 323 outReadout->mask = extractStamp(readout->mask, extractRegion, maskInitValue); 323 324 if (!outReadout->mask) { 324 325 psError(PS_ERR_UNKNOWN, false, "failed to create postage stamp mask image\n");
Note:
See TracChangeset
for help on using the changeset viewer.
