-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
1813 lines (1663 loc) · 81.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
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
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
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
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<html><head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://instantcm.com/js/v2/latest/txt-min.js"></script>
<script>
var options = {
id: "487a2105-db8c-4c2c-a631-c357898ce7f6"
};
Txt.render(options);
</script>
<script type="text/javascript" src="SpinBox.js"></script>
<style>
/* width: 90%;*/
.affix {
top: 1;
width: 90%;
z-index: 1;
}
.affix + .container-fluid {
padding-top: 70px;
}
#fixed-progress {
background-color: #F7D358;
}
tleft {
font-family: Helvetica, Verdana, sans-serif;
font-size: 12px;
vertical-align: middle;
}
//####### spinbox styles
@import url(http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css);
.spinner input {
text-align: right;
}
.input-group-btn-vertical {
position: relative;
white-space: nowrap;
width: 2%;
vertical-align: middle;
display: table-cell;
}
.input-group-btn-vertical > .btn {
display: block;
float: none;
width: 100%;
max-width: 100%;
padding: 8px;
margin-left: -1px;
position: relative;
border-radius: 0;
}
.input-group-btn-vertical > .btn:first-child {
border-top-right-radius: 4px;
}
.input-group-btn-vertical > .btn:last-child {
margin-top: -2px;
border-bottom-right-radius: 4px;
}
.input-group-btn-vertical i {
position: absolute;
top: 0;
left: 4px;
}
//####### spinbox styles
</style>
<script>
$(document).ready(function() {
//############## spinboxes fucntions
var output = $('h1');
var isPaused = true;
var defaulttime = 900;
var time = defaulttime;
var hours = 0;
var minutes = 0;
var seconds = 0;
var progress = 0;
var qnumber = $(".qcheckbox").length;
var qweight = 100 / qnumber;
var checked = 0;
var tasks = 0;
$(function(){
$("#footer").load("footer.html");
});
$(function() {
$('.spinner .btn:first-of-type').on('click', function() {
var btn = $(this);
var input = btn.closest('.spinner').find('input');
if (input.attr('max') == undefined || parseInt(input.val()) < parseInt(input.attr('max'))) {
input.val(parseInt(input.val(), 10) + 1);
} else {
btn.next("disabled", true);
}
});
$('.spinner .btn:last-of-type').on('click', function() {
var btn = $(this);
var input = btn.closest('.spinner').find('input');
if (input.attr('min') == undefined || parseInt(input.val()) > parseInt(input.attr('min'))) {
input.val(parseInt(input.val(), 10) - 1);
} else {
btn.prev("disabled", true);
}
});
})
//############## spinboxes fucntions
$('.badge').text(tasks + " / " + qnumber);
var t = window.setInterval(function() {
if (!isPaused) {
time--;
if (time == 0) {
$("#TimesUpModel").modal('show');
time = defaulttime;
//isPaused = true;
alert("")
} else {
hours = Math.floor(time / 3600);
minutes = Math.floor((time - (hours * 3600)) / 60);
seconds = time - (hours * 3600) - (minutes * 60);
output.text("Time left: " + hours + " : " + minutes + " : " + seconds);
}
}
}, 1000);
// timer with jquery
$('.pause').on('click', function(e) {
e.preventDefault();
isPaused = true;
});
$('.play').on('click', function(e) {
e.preventDefault();
isPaused = false;
});
$('.reset').on('click', function(e) {
e.preventDefault();
//isPaused = true;
time = defaulttime;
//alert($('#hourv input').val());
alert($("#hourv").attr('value'));
});
//###############
//var qweight = qweightf.toFixed(3)
/* window.alert(qweight);
window.alert($(".qcheckbox").length); */
function finished(questions) {
if (questions > 100) {
$("#EndModal").modal('show');
}
}
// By default hide all sections
$("#keystone-sectionid").hide();
$("#compute-sectionid").hide();
$("#glance-sectionid").hide();
$("#cinder-sectionid").hide();
$("#swift-sectionid").hide();
$("#heat-sectionid").hide();
// toggle section visibility
$("#keystone-checkboxid").click(function() {
$("#keystone-sectionid").toggle();
});
$("#compute-checkboxid").click(function() {
$("#compute-sectionid").toggle();
});
$("#glance-checkboxid").click(function() {
$("#glance-sectionid").toggle();
});
$("#cinder-checkboxid").click(function() {
$("#cinder-sectionid").toggle();
});
$("#heat-checkboxid").click(function() {
$("#heat-sectionid").toggle();
});
//######################################
function progressbar(id) {
if ($(id).is(":checked") == true) {
// alert('1');
progress = progress + qweight;
tasks = tasks + 1;
$('.badge').text(tasks + " / " + qnumber);
$('#progressbarid > .progress-bar').attr("style", "width:" + progress + "%");
finished(progress);
} else if ($(id).is(":checked") == false) {
// alert('2');
progress = progress - qweight;
tasks = tasks - 1;
$('.badge').text(tasks + " / " + qnumber);
//checked = checked - 1
$('#progressbarid > .progress-bar').attr("style", "width:" + progress + "%");
}
}
//######################################
//identity
$("#identity1 input").on('change', function() {
//alert($(this).attr('id'));
progressbar("#identity1 input")
});
$("#identity2 input").on('change', function() {
progressbar("#identity2 input")
});
//compute
$("#compute1 input").on("change", function() {
progressbar("#compute1 input")
});
$("#compute2 input").on("change", function() {
progressbar("#compute2 input")
});
$("#compute3 input").on("change", function() {
progressbar("#compute3 input")
});
$("#compute4 input").on("change", function() {
progressbar("#compute4 input")
});
$("#compute5 input").on("change", function() {
progressbar("#compute5 input")
});
$("#compute6 input").on("change", function() {
progressbar("#compute6 input")
});
$("#compute7 input").on("change", function() {
progressbar("#compute7 input")
});
//glance
$("#glance1 input").on('change', function() {
progressbar("#glance1 input")
});
$("#glance2 input").on('change', function() {
progressbar("#glance2 input")
});
$("#glance3 input").on('change', function() {
progressbar("#glance3 input")
});
//cinder instance snapshot
$("#cinderis1 input").on("change", function() {
progressbar("#cinderis1 input")
});
$("#cinderis2 input").on("change", function() {
progressbar("#cinderis2 input")
});
$("#cinderis3 input").on("change", function() {
progressbar("#cinderis3 input")
});
$("#cinderis4 input").on("change", function() {
progressbar("#cinderis4 input")
});
$("#cinderis5 input").on("change", function() {
progressbar("#cinderis5 input")
});
$("#cinderis6 input").on("change", function() {
progressbar("#cinderis6 input")
});
//cinder volume snapshot
$("#cindervs1 input").on("change", function() {
progressbar("#cindervs1 input")
});
$("#cindervs2 input").on("change", function() {
progressbar("#cindervs2 input")
});
$("#cindervs3 input").on("change", function() {
progressbar("#cindervs3 input")
});
$("#cindervs4 input").on("change", function() {
progressbar("#cindervs4 input")
});
$("#cindervs5 input").on("change", function() {
progressbar("#cindervs5 input")
});
$("#cindervs6 input").on("change", function() {
progressbar("#cindervs6 input")
});
$("#cindervs7 input").on("change", function() {
progressbar("#cindervs7 input")
});
$("#cindervs8 input").on("change", function() {
progressbar("#cindervs8 input")
});
$("#cindervs9 input").on("change", function() {
progressbar("#cindervs9 input")
});
$("#cindervs10 input").on("change", function() {
progressbar("#cindervs10 input")
});
$("#cindervs11 input").on("change", function() {
progressbar("#cindervs11 input")
});
$("#cindervs12 input").on("change", function() {
progressbar("#cindervs12 input")
});
$("#cindervs13 input").on("change", function() {
progressbar("#cindervs13 input")
});
//cinder volume backup
$("#cinderba1 input").on("change", function() {
progressbar("#cinderba1 input")
});
$("#cinderba2 input").on("change", function() {
progressbar("#cinderba2 input")
});
$("#cinderba3 input").on("change", function() {
progressbar("#cinderba3 input")
});
$("#cinderba4 input").on("change", function() {
progressbar("#cinderba4 input")
});
$("#cinderba5 input").on("change", function() {
progressbar("#cinderba5 input")
});
$("#cinderba6 input").on("change", function() {
progressbar("#cinderba6 input")
});
$("#cinderba7 input").on("change", function() {
progressbar("#cinderba7 input")
});
$("#cinderba8 input").on("change", function() {
progressbar("#cinderba8 input")
});
$("#cinderba9 input").on("change", function() {
progressbar("#cinderba9 input")
});
$("#cinderba10 input").on("change", function() {
progressbar("#cinderba10 input")
});
$("#cinderba11 input").on("change", function() {
progressbar("#cinderba11 input")
});
//cinder volume encryption
$("#cinderve1 input").on("change", function() {
progressbar("#cinderve1 input")
});
$("#cinderve2 input").on("change", function() {
progressbar("#cinderve2 input")
});
$("#cinderve3 input").on("change", function() {
progressbar("#cinderve3 input")
});
$("#cinderve4 input").on("change", function() {
progressbar("#cinderve4 input")
});
$("#cinderve5 input").on("change", function() {
progressbar("#cinderve5 input")
});
//heat
$("#heat1 input").on("change", function() {
progressbar("#heat1 input")
});
$("#heat2 input").on("change", function() {
progressbar("#heat2 input")
});
//###############
});
</script>
</head><body>
<div class="container">
<h2 class="text-center">COA exam simulation</h2>
<div class="panel-group" id="accordion"></div>
</div>
<div class="section">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="btn-link panel panel-warning" id="fixed-progress" data-spy="affix" data-offset-top="20">
<div class="panel-heading">
<h3 class="panel-title text-center">Progress</h3>
</div>
<div class="panel-body">
<div class="progress" id="progressbarid">
<div class="progress-bar progress-bar-succes" role="progressbar" style="width: 0%;"></div>
</div>
<div class="section">
<div class="container">
<div class="col-md-2">
<div class="col-md-12 text-center">
<a href="#">Completed tasks <span class="badge"> </span></a>
</div>
<tleft class="text-center">Time left: 0</tleft>
<div></div>
</div>
<div class="col-md-4">
<div class="container">
<div class="col-md-2 text-center">
<div class="input-group spinner" id="hourv">
<input type="text" class="form-control" value="2" min="0" max="5">
<div class="input-group-btn-vertical">
<button class="btn btn-default" type="button">
<i class="fa fa-caret-up"></i>
</button>
<button class="btn btn-default" type="button">
<i class="fa fa-caret-down"></i>
</button>
</div>
</div>
</div>
<div class="col-md-2">
<div class="input-group spinner">
<input type="text" class="form-control" value="30" min="0" max="60">
<div class="input-group-btn-vertical">
<button class="btn btn-default" type="button">
<i class="fa fa-caret-up"></i>
</button>
<button class="btn btn-default" type="button">
<i class="fa fa-caret-down"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3 text-center">
<button class="play">Play</button>
<button class="pause">Pause</button>
<button class="reset">Reset</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="section">
<div class="container">
<div class="row">
<div id="TimesUpModel" class="modal fade">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h2 class="modal-title text-center text-danger">Time's UP!</h2>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-block btn-info" data-dismiss="modal">Close</button>
<!-- <button type="button" class="btn btn-primary">Save changes</button> -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="section">
<div class="container"></div>
</div>
<div class="section">
<div class="container">
<div class="row">Select the sections you want to make visible:</div>
<div class="row">
<div class="col-md-4">
<form>
<div class="checkbox">
<label>
<input type="checkbox" class="keystone" id="keystone-checkboxid">Keystone</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="compute-checkboxid" class="compute">Compute</label>
</div>
<div class="checkbox ">
<label>
<input type="checkbox" class="glance" id="glance-checkboxid">Glance</label>
</div>
</form>
</div>
<div class="col-md-4">
<form>
<div class="checkbox">
<label>
<input type="checkbox" class="cinder" id="cinder-checkboxid">Cinder</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" class="swift" id="swift-checkboxid">Swift</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" class="heat" id="heat-checkboxid">Heat</label>
</div>
</form>
</div>
<div class="col-md-4"></div>
</div>
</div>
</div>
<div class="section">
<div class="container">
<div class="row">
<div class="col-md-12">
<div id="EndModal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 class="modal-title text-center text-success">Congratulations!</h3>
</div>
<div class="modal-body">
<p class="text-center">You have finished all exam tasks</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-block btn-success" data-dismiss="modal">Close</button>
<!-- <button type="button" class="btn btn-primary">Save changes</button> -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel panel-info" id="keystone-sectionid">
<div class="panel-heading">
<h3 class="panel-title">Identity</h3>
</div>
<div class="panel-body">
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="identity1">
<label>1.
<input type="checkbox" value="">
</label>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse1">
Having an old rc file and without downloading rc file from project > Access and security > API access >, make sure to build rc file for both tenants admin & demo
</a>
</h4>
</div>
</div>
<div class="panel-collapse collapse in" id="collapse1">
<div class="panel-body">Go to identity > project, get project id from old admin-openrc.sh,
replace tentant id with project admin id to build admin credential file
and demo credential file and finally source it: source demorc.sh</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="identity2">
<label>2.
<input type="checkbox" value="">
</label>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseidentity2">
Create a domain named "domain1"
</a>
</h4>
</div>
</div>
<div id="collapseidentity2" class="panel-collapse collapse">
<div class="panel-body">
<p>openstack domain create domain1 --description "domain 1"</p>
<p>openstack domain list</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="compute3">
<label>3.
<input type="checkbox" value="">
</label>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapsecompute3">
Create a project named "domain1_project1" within the domain "domain1"
</a>
</h4>
</div>
</div>
<div id="collapsecompute3" class="panel-collapse collapse">
<div class="panel-body">
<p>openstack project create domain1_project1 --domain domain1</p>
<p>openstack project list</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="compute4">
<label>4.
<input type="checkbox" value="">
</label>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapsecompute4">
Create a user "domain1_admin" in the domain "domain1"
</a>
</h4>
</div>
</div>
<div id="collapsecompute4" class="panel-collapse collapse">
<div class="panel-body">
<p>openstack user create domain1_admin --email "[email protected]" --domain
domain1 --password-prompt</p>
<p>openstack user list --domain domain1</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="compute5">
<label>5.
<input type="checkbox" value="">
</label>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapsecompute5">
Assign domain scope "admin" role to user "domain1_admin"
</a>
</h4>
</div>
</div>
<div id="collapsecompute5" class="panel-collapse collapse">
<div class="panel-body">
<p>openstack role add --user domain1_admin --domain domain1 admin</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="compute6">
<label>6.
<input type="checkbox" value="">
</label>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapsecompute6">
Create a regular user within the domain "domain1"
</a>
</h4>
</div>
</div>
<div id="collapsecompute6" class="panel-collapse collapse">
<div class="panel-body">
<p>openstack user create domain1_user1 --email "[email protected]" --domain
domain1 --password-prompt</p>
<p>openstack user list --domain domain1</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="section">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="panel panel-info" id="compute-sectionid">
<div class="panel-heading">
<h3 class="panel-title">Compute</h3>
</div>
<div class="panel-body">
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="compute1">
<label>1.
<input type="checkbox" value="">
</label>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapsecompute1">
From demo account, generate a public keypair named mypubkey1 for use with openstack instances
</a>
</h4>
</div>
</div>
<div class="panel-collapse collapse" id="collapsecompute1">
<div class="panel-body">
<p>nova keypair-add key1 key1.pem
<br>chmod 600 key1.pem
<br>nova keypair-list</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="compute2">
<label>2.
<input type="checkbox" value="">
</label>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapsecompute2">
<p>
From admin account, create a new flavor named m1.extra_tiny with:</p>
<ul>
<li>RAM: 64mb</li>
<li>Root disk size: 0</li>
<li>cpu: 1</li>
</ul>
</a>
</h4>
</div>
</div>
<div id="collapsecompute2" class="panel-collapse collapse">
<div class="panel-body">
<p>. admin_rc.sh
<br>nova flavor-lis
<br>nova flavor-create m1.extra_tiny auto 64 0 1 --rxtx-factor 1.0</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="compute3">
<label>3.
<input type="checkbox" value="">
</label>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapsecompute3">
Allow the tenant (project) "demo" to access the flavor
</a>
</h4>
</div>
</div>
<div id="collapsecompute3" class="panel-collapse collapse">
<div class="panel-body">
<p>openstack project list
<br>nova flavor-access-add m1.extra_tiny</p>
<p>
<br>Additional commands:
<br>nova flavor-list
<br>nova flavor-delete {flavorid}</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="compute4">
<label>4.
<input type="checkbox" value="">
</label>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapsecompute4">
Add new rules to the default security group "default" to allow access instances from internet through SSH, http and ICMP.
</a>
</h4>
</div>
</div>
<div id="collapsecompute4" class="panel-collapse collapse">
<div class="panel-body">
<p>nova secgroup-list
<br>nova secgroup-list-rules default
<br>nova secgroup-add-rule default tcp 22 22 0.0.0.0/0
<br>nova secgroup-add-rule default tcp 80 80 0.0.0.0/0
<br>nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="compute5">
<label>5.
<input type="checkbox" value="">
</label>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapsecompute5">
Provision the following instance:
<ul>
<li>image: cirros-0.3.4-x86_64-uec</li>
<li>flavor: m1.tiny</li>
<li>keypair: key1</li>
<li>security group: default</li>
</ul>
</a>
</h4>
</div>
</div>
<div id="collapsecompute5" class="panel-collapse collapse">
<div class="panel-body">
<p>nova boot instance2 --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --key-name
key1 --security-group default</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="compute6">
<label>6.
<input type="checkbox" value="">
</label>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapsecompute6">
Log to the machine console using the keypair key1
</a>
</h4>
</div>
</div>
<div id="collapsecompute6" class="panel-collapse collapse">
<div class="panel-body">
<p>Get the instance IP address from nova list command:
<br>ssh -i key1.pem ubuntu@{ip}</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="compute7">
<label>7.
<input type="checkbox" value="">
</label>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapsecompute7">
Create a snapshot named "instance2-snapshot" from the running image instance2
</a>
</h4>
</div>
</div>
<div id="collapsecompute7" class="panel-collapse collapse">
<div class="panel-body">
<p>nova image-create {instance2} {instance2-snapshot}
<br>nova delete {instance2}</p>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-info" id="glance-sectionid">
<div class="panel-heading">
<h3 class="panel-title">Glance</h3>
</div>
<div class="panel-body">
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="glance1">
<label>1.
<input type="checkbox" value="">
</label>
</div>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#glance1">
Retrieve Ubuntu cloud image file from the following link:
</a>
<p>
<a data-toggle="collapse" data-parent="#accordion" href="#compute6"></a>
<a href="https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img">https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img</a>
</p>
</h4>
</div>
<div id="glance1" class="panel-collapse collapse">
<div class="panel-body">wget https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="glance2">
<label>2.
<input type="checkbox" value="">
</label>
</div>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#glance2">
Create an image named "ubuntu-trusty" from the downoaded image file
</a>
</h4>
</div>
<div id="glance2" class="panel-collapse collapse">
<div class="panel-body">glance image-create --progress --name ubuntu-trusty --file trusty-server-cloudimg-amd64-disk1.img
--disk-format qcow2 --container-format bare</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="glance3">
<label>3.
<input type="checkbox" value="">
</label>
</div>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#glance3">
Start an instance named "u1" from the following parameters:
<ul>
<li>image: "ubuntu-trusty"</li>
<li>flavor: m1.small</li>
<li>key: key1</li>
<li>security group: default</li>
</ul>
</a>
</h4>
</div>
<div id="glance3" class="panel-collapse collapse">
<div class="panel-body">nova boot u2 --image ubuntu-trusty --flavor m1.small --key-name key1 --security-group
default</div>
</div>
</div>
</div>
</div>
<div class="panel panel-info" id="cinder-sectionid">
<div class="panel-heading">
<h3 class="panel-title">Cinder</h3>
</div>
<div class="panel-body">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title" contenteditable="true">Instance snapshots</h3>
</div>
<div class="panel-body">
<p></p>
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="cinderis1">
<label>1.
<input type="checkbox" value="">
</label>
</div>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#cinder11">
Create an instance "instance1" from cirros-0.3.4-x86_64-uec image
<li>image: cirros-0.3.4-x86_64-uec</li>
<li>flavor: m1.tiny</li>
<li>keypair: key1</li>
<li>security group: new-secgroup</li>
</a>
</h4>
</div>
<div id="cinder11" class="panel-collapse collapse">
<div class="panel-body">
<p>Make sure, you have a key and the appropriate ICMP and SSH rules in place:</p>
<p>nova keypair-add key1 > key1.pem
<br>chmod 600 key1.pem
<br>nova keypair-list</p>
<p>nova secgroup-list
<br>nova secgroup-list-rules new_secgroup
<br>nova secgroup-add-rule new_secgroup tcp 22 22 0.0.0.0/0
<br>nova secgroup-add-rule new_secgroup icmp -1 -1 0.0.0.0/0
<br>nova boot --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --key_name
key1 instance1</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="qcheckbox" id="cinderis2">
<label>2.
<input type="checkbox" value="">
</label>
</div>
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#cinder12">