Code

debug lines to figure out jobqueue status problem
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Nov 2008 08:49:29 +0000 (08:49 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Nov 2008 08:49:29 +0000 (08:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12890 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server

index bd0f72f218851a9461ef8fdeb01e5656ba326f03..11c142f85564dc4c27537fc00f4f721afb3ef8fd 100755 (executable)
@@ -1010,6 +1010,9 @@ sub update_jobdb_status_for_send_msgs {
             
         # sending msg faild
         if( $error ) {
+
+daemon_log("D \n$error\n$answer");
+
             if ((not $answer =~ /<header>trigger_action_reinstall<\/header>/) || (not $answer =~ /<header>trigger_action_update<\/header>/)) {
                 my $sql_statement = "UPDATE $job_queue_tn ".
                     "SET status='error', result='can not deliver msg, please consult log file' ".
@@ -1457,6 +1460,8 @@ sub process_task {
                 # Target of msg is a mac address
                 elsif( $answer_target =~ /^([0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2})$/i ) {
                     daemon_log("$session_id INFO: target is mac address '$answer_target', looking for host in known_clients and foreign_clients", 5);
+
+                    # Looking for macaddress in known_clients
                     my $sql_statement = "SELECT * FROM known_clients WHERE macaddress LIKE '$answer_target'";
                     my $query_res = $known_clients_db->select_dbentry( $sql_statement );
                     my $found_ip_flag = 0;
@@ -1469,6 +1474,8 @@ sub process_task {
                         &update_jobdb_status_for_send_msgs($answer, $error);
                         $found_ip_flag++ ;
                     }   
+
+                    # Looking for macaddress in foreign_clients
                     if ($found_ip_flag == 0) {
                         my $sql = "SELECT * FROM $foreign_clients_tn WHERE macaddress LIKE '$answer_target'";
                         my $res = $foreign_clients_db->select_dbentry($sql);
@@ -1498,6 +1505,8 @@ sub process_task {
                             }
                         }
                     }
+
+                    # No mac to ip matching found
                     if( $found_ip_flag == 0) {
                         daemon_log("$session_id WARNING: no host found in known_clients or foreign_clients with mac address '$answer_target'", 3);