added a variety of updates to templates, to reference each other.
[monitor.git] / web / MonitorWeb / monitorweb / templates / pcuview.kid
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <?python
3 layout_params['page_title'] = "Monitor PCU View"
4 from monitor.util import diff_time
5 from monitor import config
6 from pcucontrol.reboot import pcu_name, model_to_object
7 from links import *
8 ?>
9 <html py:layout="'sitemenu.kid'"
10       xmlns:py="http://purl.org/kid/ns#"
11           xmlns:mochi="http://www.mochi.org">
12
13   <div py:match="item.tag == 'content'">
14     <h3>PCU Status</h3>
15                 <table id="sortable_table" class="datagrid" border="1" width="100%">
16                         <thead>
17                                 <tr>
18                                         <th mochi:format="int"></th>
19                                         <th mochi:format="str">Site</th>
20                                         <th>PCU Name</th>
21                                         <th>Missing Fields</th>
22                                         <th>DNS Status</th>
23                                         <th>Port Status</th>
24                                         <th width="80%">Test Results</th>
25                                         <th>Model</th>
26                                         <th>Nodes</th>
27                                 </tr>
28                         </thead>
29                         <tbody>
30                                 <tr py:for="i,node in enumerate(pcuquery)" class="${i%2 and 'odd' or 'even'}" >
31                                         <td></td>
32                                         <td><a class="ext-link" href="${plc_site_link_id(node.plc_pcu_stats['site_id'])}">
33                                                         <span class="icon">${node.loginbase}</span>
34                                                 </a>
35                                         </td>
36                                         <td nowrap="true" >
37                                                 <a class="ext-link" href="${plc_pcu_link_id(node.plc_pcu_stats['pcu_id'])}">
38                                                         <span class="icon">${pcu_name(node.plc_pcu_stats)}</span>
39                                                 </a>
40                                         </td>
41                                         <td py:content="node.entry_complete"></td>
42                                         <td id="dns-${node.dns_status}" py:content="node.dns_status"></td>
43                                         <td>
44                                                 <span py:for="port,state in node.ports" 
45                                                 id="port${state}" py:content="'%s, ' % port">80</span>
46                                         </td>
47                                         <td width="40" id="status-${node.status}" py:content="node.reboot_trial_status"></td>
48                                         <td py:content="node.plc_pcu_stats['model']"></td>
49                                         <td py:content="len(node.plc_pcu_stats['node_ids'])"></td>
50                                 </tr>
51                         </tbody>
52                 </table>
53         <h3>Controls</h3>
54                 ... node list ...
55                 <br/>
56                 form for reboot
57
58         <h3>Legend</h3>
59
60         <table border="1" align="center" width="80%">
61                 <tr><th colspan="2">Legend for 'DNS Status'</th></tr>
62
63                 <tr><td id="dns-DNS-OK">DNS-OK</td>
64                         <td>This indicates that the DNS name and registered IP address match.</td>
65                 </tr>
66                 <tr><td id="dns-DNS-MISMATCH">DNS-MISMATCH</td>
67                         <td>Sometimes, the registered IP and DNS IP address do not match.  
68                                 In these cases it is not clear which is correct, 
69                                 so an error is flagged.</td>
70                 </tr>
71                 <tr><td id="dns-DNS-NOENTRY">DNS-NOENTRY</td>
72                         <td>While a hostname is provided in the registration, the hostname is not actually registered in DNS.</td>
73                 </tr>
74                 <tr><td id="dns-NOHOSTNAME">NOHOSTNAME</td>
75                         <td>While we prefer that a hostname be registered, it is not
76                         strictly required, since simply the IP address, if it is static, is enough to access the PCU.</td>
77                 </tr>
78                 <tr><td>&nbsp;</td></tr>
79         <!--/table>
80         <table border=1-->
81                 <tr><th colspan="2">Legend for 'Port Status'</th></tr>
82
83                 <tr><td id="portopen">Open</td>
84                         <td>Green port numbers are believed to be open.</td>
85                 </tr>
86                 <tr><td id="portfiltered">Filtered</td>
87                         <td>Gold port numbers are believed to be filtered or simply offline.</td>
88                 </tr>
89                 <tr><td id="portclosed">Closed</td>
90                         <td>Finally, red ports appear to be closed.</td>
91                 </tr>
92                 <tr><td>&nbsp;</td></tr>
93         <!--/table>
94         <table border=1-->
95                 <tr><th colspan="2">Legend for 'Test Results'</th></tr>
96
97                 <tr><td id="status-0">OK</td>
98                         <td>The PCU is accessible, and short of actually rebooting the node, everything appears to work.</td>
99                 </tr>
100                 <tr><td id="status-NetDown">NetDown</td>
101                         <td>The PCU is inaccessible from the PlanetLab address block 128.112.139.0/25, or it is simply offline.</td>
102                 </tr>
103                 <tr><td id="status-Not_Run">Not_Run</td>
104                         <td>Previous errors, such as DNS or an incomplete configuration prevented the actual test from begin performed.</td>
105                 </tr>
106                 <tr><td id="status-error">Other Errors</td>
107                         <td>Other errors are reported by the test that are more specific to the block encountered by the script.</td>
108                 </tr>
109         </table>
110
111   </div>
112
113 </html>