adminextend.html 14.9 KB
Newer Older
1 2 3 4 5
<style>
.scrollable-panel {
	max-height:350px;
	overflow-y:scroll;
}
6 7 8 9
.fixedsize-panel {
	max-height:350px;
	height:350px;
}
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
td textarea {
	width: 100%;
	height: 100%;
}
.history-tstamp {
	min-width: 100px;
	width:100px;
	max-width: 100px;
}
pre {
	white-space: pre-wrap;
}
.table th, .table td { 
        border-top: none !important;
        border-left: none !important;
}
.panel-body {
	padding: 3px;
}
.table {
	margin: 2px;
}
.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
	padding: 3px;
}
.panel-heading {
	padding: 5px;
}
43 44 45 46 47
.adminnotes-title {
    display:block;
    width: 100px;
    margin: 0 auto;
}
48 49 50
</style>
<div class="row" id="firstrow"></div>
<div class="row" id="secondrow"></div>
51 52 53
<div class="row hidden" id="extension-reason-row">
  <div class='col-sm-8 col-sm-offset-2' style="margin-bottom: 10px;"><pre></pre></div>
</div>
54
<div id="extension-controls" class='row hidden'>
55 56 57 58 59 60
  <div class='col-sm-8 col-sm-offset-2' style="margin-bottom: 10px;">
    <center>
      Message to send to user
      <br>
      <textarea id='reason'
		class='form-control'
61
		rows=3></textarea>
62
      <div style="margin-top: 10px;">
63 64 65 66
	<span data-toggle='popover'
	     data-delay='{"hide":500, "show":500}'
	     data-content='Schedule termination for the future (in days)
			   or right away (leave days zero).'>
67 68
	  <button class='btn btn-danger btn-sm'
		  style='margin-left: 0px; margin-right: 0px;'
69 70 71 72
		  id="terminate-button"
		  data-toggle='modal' data-target='#confirm-terminate-modal'
		  type='button' name='terminate'>Schedule Termination</button>
	</span>
73 74 75 76 77 78 79 80
	<span style='margin-left: 0px; margin-right: 0px;'
	      data-toggle='popover'
	      data-delay='{"hide":500, "show":500}'
	      data-content="When checked, Deny and Schedule Termination
			    buttons will also disable any new extension
			    requests.">
	  Lockout: <input type="checkbox" id="deny-lockout-checkbox" checked>
	</span>
81
	<button class='btn btn-danger btn-sm'
82
		style='margin-left: 0px; margin-right: 30px;'
83 84
		id='deny-extension'
		type='submit' name='request'>Deny</button>
85
	<input id="howlong" value="0" type="text" size="7">
86
	<button class='btn btn-primary btn-sm'
87
		style='margin-left: 30px;'
88 89
		id='do-extension'
		type='submit' name='request'>Extend</button>
90 91 92 93 94 95
	<span data-toggle='popover'
	      data-delay='{"hide":500, "show":500}'
	      data-content="When checked, the portal will force the cluster to grant
			    the extension even if it causes a reservation system
			    overbooking situation. Be careful!">
	  Force: <input type="checkbox" id="force-extension-checkbox"></span>
96 97 98 99 100 101 102 103 104
	<span style="margin-left: 5px;"
	      data-toggle='popover'
	      data-delay='{"hide":500, "show":500}'
	      data-content="When checked, the experiment will be extended
			    out to the maximum allowed by the current
			    reservation scheule. See above for the current
			    maximum extension. The value in the input field
			    will be ignored.">
	  Max: <input type="checkbox" id="maximum-extension-checkbox"></span>
105
	<button class='btn btn-primary btn-sm'
106
		style='margin-left: 30px;'
107
		id='do-moreinfo'
108
		type='submit' name='moreinfo'>Request More Info</button>
109
      </div>
110 111 112 113 114 115 116 117 118
      <div id="max-extension-warning" class="hidden">
	<span class="text-danger">Granting an extension to
	  <span class="max-extension-date"></span>
	  may cause a reservation overbook situation!</span>
      </div>
      <div id="max-extension-nomax" class="hidden">
	<span class="text-danger">Granting any extension
	  may cause a reservation overbook situation!</span>
      </div>
119 120 121
    </center>
  </div>
</div>
122 123 124 125 126
<div class="row" id="thirdrow">
  <div class='col-sm-6 col-sm-offset-3 hidden thirdrow-error'>
    <div class="well well-sm text-danger"></div>
  </div>
</div>
127 128 129 130 131 132 133 134 135 136
<div class="row hidden" id="reservations-row">
  <div class='col-sm-10 col-sm-offset-1'>
    <div class='panel panel-default'>
      <div class="panel-heading clearfix">
	<center>Reservations for node types used by this experiment</center>
      </div>
      <div class='panel-body'></div>
    </div>
  </div>
</div>
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
<div class='row'>
  <div class='col-sm-10 col-sm-offset-1
	      col-xs-12 col-xs-offset-0'>
    <div class='panel panel-default hidden' id="utilization-panel-div">
      <div class="panel-heading">
	<h5>
	  <a data-toggle="collapse" id="utilization-toggle"
	     href="#utilization-collapse"><span>Utilization</span>
	    <span class="glyphicon glyphicon-chevron-right pull-right"></span>
	  </a>
	</h5>
      </div>
      <div id="utilization-collapse"
	   class="panel-collapse collapse">
	<div class='panel-body'>
	  <div class="scrollable-panel"
	       id="utilization-panel-content"
	       data-status="minimized"></div>
	</div>
      </div>
    </div>
  </div>
  <div id='waitwait_div'></div>
  <div id='oops_div'></div>
</div>
<div class='row'>
  <div class='col-sm-10 col-sm-offset-1
	      col-xs-12 col-xs-offset-0'>
    <div class='panel panel-default hidden' id="history-panel-div">
      <div class="panel-heading">
	<h5>
	  <a data-toggle="collapse" id="history-toggle"
	     href="#history-collapse"><span>Extension History</span>
	    <span class="glyphicon glyphicon-chevron-right pull-right"></span>
	  </a>
	</h5>
      </div>
      <div id="history-collapse"
	   class="panel-collapse collapse">
	<div class='panel-body'>
	  <div class="scrollable-panel"
	       id="history-panel-content"
	       data-status="minimized"></div>
	</div>
      </div>
    </div>
  </div>
</div>
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
<div class='row'>
  <div class='col-sm-10 col-sm-offset-1
	      col-xs-12 col-xs-offset-0'>
    <div class='panel panel-default hidden' id="openstack-panel-div">
      <div class="panel-heading">
	<h5>
	  <a data-toggle="collapse" id="openstack-toggle"
	     href="#openstack-collapse"><span>Openstack Stats</span>
	    <span class="glyphicon glyphicon-chevron-right pull-right"></span>
	  </a>
	</h5>
      </div>
      <div id="openstack-collapse"
	   class="panel-collapse collapse">
	<div class='panel-body'>
	  <div class="scrollable-panel"
	       id="openstack-panel-content"
	       data-status="minimized"></div>
	</div>
      </div>
    </div>
  </div>
</div>
208 209 210
<div class='row'>
  <div class='col-sm-10 col-sm-offset-1
	      col-xs-12 col-xs-offset-0'>
211
    <div class="well well-sm text-danger hidden" id="idledata-error"></div>
212 213 214
    <div class="well well-sm hidden" id="idledata-nodata">
	There is insufficient data to graph, please check back later.
    </div>
215 216
    <div class='panel panel-default hidden' id="loadavg-panel-div">
      <div class="panel-heading">
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232
	<a data-toggle="collapse" id="loadavg-toggle"
	   href="#loadavg-collapse">
	  <span class="glyphicon glyphicon-chevron-right pull-right"></span>
	</a>
	<div class="maxavg-toggles pull-right"
	     style="margin-right: 10px;">
	  <label class="radio-inline">
	    <input type="radio" name="loadav-radio"
		   checked="checked" value="max"> Max
	  </label>
	  <label class="radio-inline">
	    <input type="radio" name="loadav-radio"
		   value="avg"> Avg
	  </label>
	</div>
	<h5><span>Load Average Graph</span></h5>
233 234 235
      </div>
      <div id="loadavg-collapse"
	   class="panel-collapse collapse">
236 237 238 239 240 241 242 243
	<div style="padding-top:5px;" class='panel-body'>
	  <!-- The col setting gives us a "relative" position div -->
	  <div class='col-xs-12 col-xs-offset-0'
	       style="padding:0px;">
	    <div id="loadavg-chart"
		 class='fixedsize-panel with-3d-shadow with-transitions'>
	      <svg></svg>
	    </div>
244 245 246 247 248 249 250 251 252 253 254
	  </div>
	</div>
      </div>
    </div>
  </div>
</div>
<div class='row'>
  <div class='col-sm-10 col-sm-offset-1
	      col-xs-12 col-xs-offset-0'>
    <div class='panel panel-default hidden' id="ctrl-traffic-panel-div">
      <div class="panel-heading">
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287
	<a data-toggle="collapse" class="traffic-toggle"
	   id="ctrl-traffic-toggle" 
	   href="#ctrl-traffic-collapse">
	  <span class="glyphicon glyphicon-chevron-right pull-right"></span>
	</a>
	<div class="maxavg-toggles pull-right"
	     style="margin-right: 10px;">
	  <label class="radio-inline">
	    <input type="radio" name="ctrl-radio"
		   checked="checked" value="max"> Max
	  </label>
	  <label class="radio-inline">
	    <input type="radio" name="ctrl-radio"
		   value="avg"> Avg
	  </label>
	</div>
	<div class="txrx-toggles pull-right"
	     style="margin-right: 15px;">
	  <label class="radio-inline">
	    <input type="radio" name="ctrl-radio-txrx"
		   value="rx"> RX
	  </label>
	  <label class="radio-inline">
	    <input type="radio" name="ctrl-radio-txrx"
		   value="tx"> TX
	  </label>
	  <label class="radio-inline">
	    <input type="radio" name="ctrl-radio-txrx"
		   checked="checked"
		   value="sum"> Sum
	  </label>
	</div>
	<h5><span>Control Traffic Graph</span></h5>
288 289
      </div>
      <div id="ctrl-traffic-collapse"
290
	   class="panel-collapse collapse traffic-collapse">
291 292 293 294 295 296 297 298
	<div class='panel-body' style="padding-top:5px;">
	  <!-- The col setting gives us a "relative" position div -->
	  <div class='col-xs-12 col-xs-offset-0'
	       style="padding:0px;">
	    <div id="ctrl-traffic-chart"
		 class='fixedsize-panel with-3d-shadow with-transitions'>
	      <svg></svg>
	    </div>
299 300 301 302 303 304 305 306 307 308 309
	  </div>
	</div>
      </div>
    </div>
  </div>
</div>
<div class='row'>
  <div class='col-sm-10 col-sm-offset-1
	      col-xs-12 col-xs-offset-0'>
    <div class='panel panel-default hidden' id="expt-traffic-panel-div">
      <div class="panel-heading">
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339
	<a data-toggle="collapse" id="expt-traffic-toggle"
	   href="#expt-traffic-collapse">
	  <span class="glyphicon glyphicon-chevron-right pull-right"></span>
	</a>
	<div class="maxavg-toggles pull-right"
	     style="margin-right: 10px;">
	  <label class="radio-inline">
	    <input type="radio" name="expt-radio"
		   checked="checked" value="max"> Max</label>
	    <label class="radio-inline">
	      <input type="radio" name="expt-radio"
		     value="avg"> Avg</label>
	</div>
	<div class="txrx-toggles pull-right"
	     style="margin-right: 15px;">
	  <label class="radio-inline">
	    <input type="radio" name="expt-radio-txrx"
		   value="rx"> RX
	  </label>
	  <label class="radio-inline">
	    <input type="radio" name="expt-radio-txrx"
		   value="tx"> TX
	  </label>
	  <label class="radio-inline">
	    <input type="radio" name="expt-radio-txrx"
		   checked="checked"
		   value="sum"> Sum
	  </label>
	</div>
	<h5><span>Experiment Traffic Graph</span></h5>
340 341 342
      </div>
      <div id="expt-traffic-collapse"
	   class="panel-collapse collapse">
343 344 345 346 347 348 349 350
	<div class='panel-body' style="padding-top:5px;">
	  <!-- The col setting gives us a "relative" position div -->
	  <div class='col-xs-12 col-xs-offset-0'
	       style="padding:0px;">
	    <div id="expt-traffic-chart"
		 class='fixedsize-panel with-3d-shadow with-transitions'>
	      <svg></svg>
	    </div>
351 352 353 354 355 356
	  </div>
	</div>
      </div>
    </div>
  </div>
</div>
357 358 359 360 361 362 363 364
<div>
  <script id="history-template" type="text/template">
  </script>
</div>
<div>
  <script id="firstrow-template" type="text/template">
  </script>
</div>
365
<div>
366 367 368 369 370 371 372 373 374 375 376
  <script id="secondrow-template" type="text/template">
  </script>
</div>
<div>
  <script id="utilization-template" type="text/template">
  </script>
</div>
<div>
  <script id="summary-template" type="text/template">
  </script>
</div>
377 378 379 380 381 382 383 384 385 386 387 388 389 390
<!-- Loading Data -->
<div id='confirm-terminate-modal' class='modal fade'>
  <div class='modal-dialog'>
    <div class='modal-content'>
      <div class='modal-body'>
        <button type='button' class='close' data-dismiss='modal'
                aria-hidden='true'>&times;</button>
        <center><h3>Confirm to Terminate</h3>
          <button class='btn btn-danger btn-sm'
		  id='do-terminate'>Confirm</button></center>
      </div>
    </div>
  </div>
</div>
391 392 393 394 395 396 397 398 399
<!-- Confirm Terminate -->
<div id='confirm-terminate-modal' class='modal fade'>
  <div class='modal-dialog'>
    <div class='modal-content'>
      <div class='modal-body'>
        <button type='button' class='close' data-dismiss='modal'
                aria-hidden='true'>&times;</button>
        <center><h3>Confirm to Terminate</h3>
          <button class='btn btn-danger btn-sm'
Leigh Stoller's avatar
Leigh Stoller committed
400
		  id='do-terminate'>Confirm</button></center>
401 402 403 404
      </div>
    </div>
  </div>
</div>
405 406 407 408 409 410 411 412 413 414 415 416 417 418 419
<!-- Finished -->
<div id='success-modal' class='modal fade'>
  <div class='modal-dialog'>
    <div class='modal-content'>
      <div class='modal-body'>
        <button type='button' class='close' data-dismiss='modal'
                aria-hidden='true'>&times;</button>
        <center><h3>Operation Successful</h3>
	  <br>
          <button class='btn btn-success btn-sm'
		  data-dismiss='modal'>Close</button></center>
      </div>
    </div>
  </div>
</div>
420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437
<div id='metrics-modal' class='modal fade'>
  <div class='modal-dialog'>
    <div class='modal-content'>
      <div class='modal-body'>
        <button type='button' class='close' data-dismiss='modal'
                aria-hidden='true'>&times;</button>
	<div class='clearfix'></div>	
	<div class='panel panel-default'>
	  <div class='panel-body'>
	    <div class="scrollable-panel">
	      <pre id="metrics-content"></pre>
	    </div>
	  </div>
	</div>
      </div>
    </div>
  </div>
</div>
438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465
<div id='lockdown-refused' class='modal fade'>
  <div class='modal-dialog'>
    <div class='modal-content'>
      <div class="modal-header text-center">
	<h4>Lockdown Refused</h4>
      </div>
      <div class='modal-body'>
	<p>
	  The lockdown request has been refused by one or more of the backend
	  clusters because it would throw the reservation system into chaos.
	  If you want to force this lockdown, click below.
	</p>
	<div>
	  <pre></pre>
	</div>
	If you want to force this lockdown, click below.
	<center>
          <button type='button' style='margin-right: 20px;'
		  data-dismiss='modal'
                  class='btn btn-primary btn-sm'
		  id='cancel-lockdown'>Cancel</button>
          <button class='btn btn-danger btn-sm'
		  id='force-lockdown'>Lockdown</button>
	</center>
      </div>
    </div>
  </div>
</div>
466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482
<div id='disable-extension-modal' class='modal fade'>
  <div class='modal-dialog'>
    <div class='modal-content'>
      <div class='modal-body'>
        <button type='button' class='close' data-dismiss='modal'
                aria-hidden='true'>&times;</button>
        <center><h4>Confirm to Disable Extensions</h4>
	  <div>
	    <textarea class='form-control reason'rows=5></textarea>
	  </div>
	  <br>
          <button class='btn btn-danger btn-sm confirm-button'>Confirm</button>
	</center>
      </div>
    </div>
  </div>
</div>
483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503
<div class='modal fade' id="resusage-graph-modal">
  <div class='modal-dialog'>
    <div class='modal-content'>
      <div class='modal-body'>
	<div class='panel panel-default'>
	  <div class="panel-heading panel-heading-list">
            <button type='button' class='close' data-dismiss='modal'
                    aria-hidden='true'>&times;</button>
	    <center>
	      <h5>Reservation Usage
		<span class="resusage-graph-details"></span></h5>
	    </center>
	  </div>
	  <div class='panel-body panel-body-dashboard'>
	    <svg style="height: 75%; padding: 0px;"></svg>
	  </div>
	</div>
      </div>
    </div>
  </div>
</div>