7998e54dc2567808c5dd7c356dcde2f590b6665c
[www-register-wizard.git] / application / views / stage8_rebootpcu.php
1 <div class="plroundedupdate">
2 <div class="plroundedwhite">
3 <h3>Confirm Reboot Node With PCU</h3>
4 <dl>
5         <?php if ( $node['boot_state'] == "disable" ): ?>
6         <dt>Step 1</dt>
7                 <dd>
8                         <span class='error'>
9                         Use the 'Test Reboot' button.  This will set the boot state to 'rins' and 
10                         attempt to reboot your machine using the registered PCU.
11                         </span>
12                 </dd>
13         <?php elseif ( $node['boot_state'] == "rins" || $node['boot_state'] == "reinstall" ): ?>
14         <dt>If Reboot succeeds,</dt><dd>
15                         your machine will reboot, install the bootstrap image, and 
16                         contacted PLC.  Finally, the boot state will be updated to 'boot'.
17                         <br>
18                         Continue using the 'Reload' button to check whether the node has
19                         completed its installation.
20         </dd>
21         <dt>If Reboot fails,</dt><dd>
22                         there will be an error displayed that will assist you in
23                         diagnosing the error.  Otherwise, please double check the
24                         registered information for the PCU, and that you can operate the
25                         PCU manually (using it's web or ssh interface).
26                         <br>
27                         To try the test again, use 'Test Reboot'.<br>
28         </dd>
29         <?php else: ?>
30         <dt><b>Success!!</b></dt><dd>
31                         The installation is complete; your machine has reached the final
32                         'boot' state.  You can continue to the final stage.</dd>
33         <?php endif; ?>
34 </dl>
35
36 <table><tbody>
37         <tr><th>Site: </th><td> <a href='/db/sites/index.php?id=<?= $site_id ?>'><?= $site['name'] ?></a></td></tr>
38         <tr><th>Hostname: </th><td nowrap><?= $node['hostname'] ?></td></tr>
39         <tr><th>Boot State: </th><td><?= $node['boot_state'] ?> </td>
40                 <td>
41                 <?php if ( $node['boot_state'] == "disable" ): ?>
42                         <span class='error'> Start with the 'Test Reboot' button.</span>
43                 <?php elseif ( $node['boot_state'] == "rins" ): ?>
44                         <br>'Test Reboot' to start again.<br>
45                         'Reload' to Reload this page.
46                 <?php else: ?>
47                         <b>Success!!</b> Your machine has booted and contacted PLC.
48                         'Continue' to the final stage.
49                 <?php endif; ?>
50                 </td>
51         </tr>
52         <tr><th>Model: </th><td><?= $node['model'] ?></td></tr>
53         <tr><th>Version: </th><td nowrap='1'><?= $node['version'] ?></td></tr>
54         <tr><th>Last Contact: </th><td><?= $last_contact_str ?></td></tr>
55 <?php if ( isset($error) && ! empty($error) ): ?>
56         <tr>
57                 <td colspan=2>
58                         <span class='error'> <?= $error ?> </span>
59                 </td>
60         </tr>
61 <?php endif; ?>
62         <tr>
63                 <td>
64                 </td>
65                 <td colspan='2'>
66                         <?= form_open("confirm/reboot/$site_id/$pcu_id/$node_id", 
67                                                    array('style' => 'display: inline; margin: 0px')) ?>
68                                 <input type='submit' name='reboot_node' value='Test Reboot'>
69                         </form>
70                         <?= form_open("confirm/stage8_rebootpcu/$pcu_id/$site_id/$node_id", array('style' => 'display: inline; margin: 0px')) ?>
71                                 <input type='submit' name='reload_contact' value='Reload'>
72                         </form>
73                         <?= form_open("confirm/complete/$site_id/$pcu_id/$node_id", 
74                                                    array('style' => 'display: inline; margin: 0px')) ?>
75                 <?php if ( $node['boot_state'] == "boot" ): ?>
76                                 <input type='submit' value='Continue'>
77                 <?php else: ?>
78                                 <input type='submit' disabled value='Continue'>
79                 <?php endif; ?>
80                                 <input type='submit' value='Debug Continue'>
81                 </form>
82 </tbody></table><br />
83 </div>
84 </div>
85
86 <h3>Tips:</h3>
87 <ul>
88     <li>
89                         If you do not see an error, this does not mean that none have
90                         occurred.  We need your help in verifying that the PCU function is
91                         configured correctly.
92         </li>
93     <li>
94                         Please be patient.  Installations may take between 10 to 30
95                         minutes depending on the speed of your hardware and network.  Checking the
96                         console is the fastest way to verify that the installation is proceeding.
97         </li>
98 </ul>