-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
1037 lines (889 loc) · 28.1 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>TripleO - Provision your datacenter with OpenStack</title>
<meta name="description" content="Slides for the presentation at DevConf 2014.">
<meta name="author" content="Imre Farkas, Ladislav Smola">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/default.css" id="theme">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
<script>
document.write( '<link rel="stylesheet" href="css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h1>TripleO</h1>
<h3>Provision your datacenter with OpenStack</h3>
<p>
<small>Imre Farkas and Ladislav Smola</small>
</p>
</section>
<section data-background="images/l3BKgPQ.jpg">
<h2>Agenda</h2>
<p>
<ul>
<li>TripleO tools</li>
<li>How to deploy OpenStack?</li>
<li>Architecture</li>
<li>Tuskar & Tuskar-UI</li>
<li>Advanced features</li>
</ul>
</p>
</section>
<section>
<h2>What is TripleO?</h2>
<p>
<blockquote cite="https://wiki.openstack.org/wiki/TripleO">
“TripleO is a program aimed at installing, upgrading and operating OpenStack clouds using OpenStack's own cloud facilities as the foundations - building on Nova, Neutron, Heat and Ironic to automate fleet management at datacenter scale (and scaling down to as few as 2 machines).”
</blockquote>
</p>
<aside class="notes">
<ul>
<li>deploy OpenStack</li>
<li>using OpenStack</li>
<li>baremetal machines</li>
<li>datacenter scale</li>
</ul>
</aside>
</section>
<!-- <section>
<h2>What is TripleO? - Goals</h2>
<p>
<ul>
<li>deploy OpenStack</li>
<li>using OpenStack</li>
<li>baremetal machines</li>
<li>datacenter scale</li>
</ul>
</p>
</section> -->
<section>
<section id="fragments">
<h2>How to launch an application?</h2>
<ol>
<li class="fragment">grab an image</li>
<li class="fragment">deploy</li>
<li class="fragment">configure</li>
</ol>
</section>
</section>
<section>
<h2>Grab an image</h2>
<p>
<pre><code data-trim>
wget http://download.fedoraproject.org/pub/fedora/linux/releases/20/
Images/x86_64/Fedora-x86_64-20-20131211.1-sda.qcow2
</code></pre>
</p>
</section>
<section>
<h2>How to launch an application?</h2>
<ol>
<li><strike>grab an image</strike></li>
<li><strong>deploy</strong></li>
<li>configure</li>
</ol>
</section>
<section>
<h2>How to deploy a VM? - Solution #1</h2>
<pre><code data-trim>
nova boot myCentOSServer
--image "3afe97b2-26dc-49c5-a2cc-a2fc8d80c001"
--flavor m1.small
</code></pre>
<p>Use Puppet, Chef, Ansible or whatever for configuration</p>
</section>
<section>
<section>
<h2>How to deploy a VM? - Solution #2</h2>
<p><strong>Use Heat!</strong></p>
</section>
<section>
<h2>Heat template</h2>
<p><pre><code data-trim>
heat_template_version: 2013-05-23
description:
...
parameters:
...
resources:
...
outputs:
...
</code></pre></p>
<aside class="notes">
Just an overview, in-depth coming on next slides!
</aside>
</section>
<section>
<h2>Heat template - parameters</h2>
<pre><code data-trim>
parameters:
db_name:
type: string
description: WordPress database name
default: wordpress
constraints:
- length: { min: 1, max: 64 }
description: db_name must be between 1 and 64 characters
- allowed_pattern: '[a-zA-Z][a-zA-Z0-9]*'
description: >
db_name must begin with a letter and contain only alphanumeric
characters
</code></pre>
</section>
<section>
<h2>Heat template - resources</h2>
<pre><code data-trim>
resources:
wordpress_instance:
type: OS::Nova::Server
properties:
image: { get_param: image_id }
flavor: { get_param: instance_type }
key_name: { get_param: key_name }
user_data:
...
</code></pre>
</section>
<section>
<h2>Heat template - resource properties: user_data (1)</h2>
<pre><code data-trim>
user_data:
str_replace:
template: |
#!/bin/bash -v
yum -y install mysql mysql-server httpd wordpress
systemctl enable mysqld.service
systemctl enable httpd.service
systemctl start mysqld.service
systemctl start httpd.service
firewall-cmd --add-service=http
firewall-cmd --permanent --add-service=http
</code></pre>
</section>
<!-- <section>
<h2>Heat template - resource properties: user_data (2)</h2>
<pre><code data-trim>
# Setup MySQL root password and create a user
mysqladmin -u root password db_rootpassword
cat << EOF | mysql -u root --password=db_rootpassword
CREATE DATABASE db_name;
GRANT ALL PRIVILEGES ON db_name.* TO "db_user"@"localhost"
IDENTIFIED BY "db_password";
FLUSH PRIVILEGES;
EXIT
EOF
</code></pre>
</section>
<section>
<h2>Heat template - resources properties: user_data (3)</h2>
<pre><code data-trim>
sed -i "/Deny from All/d" /etc/httpd/conf.d/wordpress.conf
sed -i "s/Require local/Require all granted/" /etc/httpd/conf.d/wordpress.conf
sed -i s/database_name_here/db_name/ /etc/wordpress/wp-config.php
sed -i s/username_here/db_user/ /etc/wordpress/wp-config.php
sed -i s/password_here/db_password/ /etc/wordpress/wp-config.php
systemctl restart httpd.service
params:
db_rootpassword: { get_param: db_root_password }
db_name: { get_param: db_name }
db_user: { get_param: db_username }
db_password: { get_param: db_password }
</code></pre>
</section> -->
<section>
<h2>Heat template - outputs</h2>
<pre><code data-trim>
outputs:
WebsiteURL:
description: URL for Wordpress wiki
value:
str_replace:
template: http://host/wordpress
params:
host: { get_attr: [wordpress_instance, first_address] }
</code></pre>
</section>
<section>
<h2>How to deploy an VM? - Solution #2</h2>
<pre><code data-trim>
heat stack-create mystack
--template-file=WordPress_Single_Instance.yaml
--parameters="db_name=$db_name;db_rootpassword=..."
</code></pre>
</section>
<section>
<h2>tripleo-heat-templates</h2>
<aside class="notes">
This is how heat works and this is how we use it in TripleO!
</aside>
</section>
</section>
<section>
<h2>How to launch an application?</h2>
<ol>
<li><strong><strike>grab</strike>/build an image</strong></li>
<li><strike>deploy</strike></li>
<li>configure</li>
</ol>
</section>
<section>
<section>
<h2>Image building</h2>
</section>
<section>
<h2>The goal of image building in TripleO</h2>
<p>
<blockquote cite="https://github.com/openstack/diskimage-builder/blob/master/README.md">
“The goal of the image building process is to produce blank slate machines that have all the necessary bits to fulfill a specific purpose in the running of an Openstack cloud: e.g. a nova-compute node.”
</blockquote>
</p>
</section>
<section>
<h2>diskimage-builder</h2>
<p>
<ul>
<li>disk images / file system images / ramdisk images</li>
<li>virtual / baremetal machines</li>
<li>stock of elements</li>
<li>easily extensible</li>
</ul>
</p>
<aside class="notes">
An element is a particular set of code that alters how the image is built, or runs within the chroot to prepare the image.
</aside>
</section>
<!-- <section>
<h2>diskimage-builder</h2>
<p>
<ul>
<li>creates a tmpfs mount to build the image in</li>
<li>image is built using a chroot </li>
<li>bind mounted /proc /sys and /dev</li>
</ul>
</p>
</section> -->
<section>
<h2>diskimage-builder</h2>
<h3>Scripts execution phases</h3>
<p>
<ul>
<li>root.d</li>
<li>finalise.d</li>
<li>cleanup.d</li>
<li>block-device.d</li>
<li>extra-data.d</li>
<li>pre-install.d</li>
<li>install.d</li>
<li>post-install.d</li>
<li>environment.d</li>
</ul>
</p>
<aside class="notes">
<ul>
<li>creates a tmpfs mount to build the image in</li>
<li>image is built using a chroot and bind mounted /proc /sys and /dev</li>
<li>once the file system tree is assembled a loopback device with filesystem (or partition table and file system) is created and the tree copied into it.</li>
</ul>
</aside>
</section>
<section>
<h2>element example: Fedora</h2>
<p><pre><code data-trim>
bin/install-packages
bin/map-packages
bin/map-services
finalise.d/01-clean-old-kernels.sh
finalise.d/99-setup-first-boot
install.d/00-fedora-fixup-audit
install.d/00-fedora-fixup-openssl
install.d/00-fedora-fixup-pyopenssl
install.d/01-install-deps
pre-install.d/15-fedora-remove-grub
pre-install.d/00-usr-local-bin-secure-path
pre-install.d/02-lsb
root.d/10-fedora-cloud-image
README.md
element-deps
source-repository-fedora
</code></pre></p>
<aside class="notes">
dib-run-parts
</aside>
</section>
</section>
<section>
<h2>How to launch an application?</h2>
<ol>
<li><strike>grab/build an image</strike></li>
<li><strike>deploy</strike></li>
<li><strong>configure</strong></li>
</ol>
</section>
<section>
<section>
<h2>Configuration</h2>
</section>
<section>
<h2>os-collect-config</h2>
<pre><code data-trim>
[default]
command=os-refresh-config
[cfn]
metadata_url=http://192.0.2.99:8000/v1/
access_key_id = ABCDEFGHIJLMNOP01234567890
secret_access_key = 01234567890ABCDEFGHIJKLMNOP
path = MyResource
stack_name = my.stack
</code></pre>
</section>
<section>
<h2>Heat template - metadata</h2>
<pre><code data-trim>
resources:
wordpress_instance:
type: OS::Nova::Server
properties:
image: { get_param: image_id }
...
metadata:
key: value
</code></pre>
</section>
<section>
<h2>os-refresh-config</h2>
<p>
<h3>Scripts execution phases</h3>
<ul>
<li>pre-configure.d</li>
<li>configure.d</li>
<li>migration.d</li>
<li>post-configure.d</li>
</il>
</p>
</section>
<section>
<h2>os-apply-config</h2>
<p>converts JSON file to service config</p>
<pre><code data-trim>
{"keystone": {"database": {"host": "127.0.0.1",
"user": "keystone",
"password": "foobar"}}}
</code></pre>
<pre><code data-trim>
[sql]
connection = mysql://keystone:[email protected]/keystone
</code></pre>
</section>
<section>
<h2>mustache template example</h2>
<pre><code data-trim>
[database]
connection={{tuskar.db}}
[heat_keystone]
username = {{tuskar.user}}
tenant_name = {{tuskar.tenant_name}}
password = {{tuskar.password}}
auth_url = http://{{keystone.host}}:35357/v2.0
</code></pre>
</section>
<section>
<h2>tripleo-image-elements</h2>
</section>
<section>
<h2>diskimage-builder/elements vs tripleo-image-elements</h2>
</section>
<section>
<h2>element example: Nova</h2>
<pre><code data-trim>
install.d/nova-source-install/74-nova
os-apply-config/etc/nova/nova.conf
os-refresh-config/configure.d/10-nova-state
pre-install.d/00-disable-requiretty
README.md
element-deps
source-repository-nova
</code></pre>
</section>
</section>
<section>
<section>
<h2>VM vs baremetal</h2>
<p>
<ul>
<li>pxe boot</li>
<li>autodiscovery</li>
<li>hw specs</li>
<li>perf metrics</li>
</ul>
</p>
</section>
<section>
<h2>Ironic</h2>
</section>
</section>
<!-- <section>
<section>
<h2>Tools</h2>
</section>
<section>
<h2>tripleo-incubator</h2>
</section>
<section>
<h2>diskimage-builder</h2>
</section>
<section>
<h2>tripleo-image-elements</h2>
</section>
<section>
<h2>os-collect-config</h2>
</section>
<section>
<h2>os-refresh-config</h2>
</section>
<section>
<h2>os-apply-config</h2>
</section>
<section>
<h2>tripleo-heat-templates</h2>
</section>
<section>
<h2>tuskar & tuskar-ui</h2>
</section>
</section> -->
<section>
<section>
<h2>TripleO == OpenStack On OpenStack</h2>
</section>
<section>
<h2>In reality: TripleO == OpenStack on OpenStack on OpenStack</h2>
</section>
<section>
<h2>Architecture</h2>
</section>
<section>
<h2>Overcloud</h2>
</section>
<section>
<h2>Undercloud</h2>
</section>
<section>
<h2>Seed</h2>
</section>
<section>
<h2>Workflow</h2>
</section>
<section>
<h2>Seed</h2>
<img class="stretch" src="images/seed.jpg"/>
</section>
<section>
<h2>Deploy Undercloud</h2>
<img class="stretch" src="images/undercloud-deploy.jpg"/>
</section>
<section>
<h2>Deploy Overcloud</h2>
<img class="stretch" src="images/overcloud-deploy.jpg"/>
</section>
</section>
<section>
<section>
<h2>Devtest</h2>
</section>
<section>
<h2>Seed - setup VM</h2>
<pre><code data-trim>
setup-seed-vm -a $NODE_ARCH
$TRIPLEO_ROOT/diskimage-builder/bin/ramdisk-image-create \
-a $NODE_ARCH $NODE_DIST $DEPLOY_IMAGE_ELEMENT \
-o $TRIPLEO_ROOT/deploy-ramdisk
boot-seed-vm -a $NODE_ARCH $NODE_DIST neutron-dhcp-agent
</code></pre>
</section>
<section>
<h2>Seed - register services</h2>
<pre><code data-trim>
init-keystone -p unset unset 192.0.2.1 [email protected] [email protected]
setup-endpoints 192.0.2.1 --glance-password unset
--heat-password unset
--neutron-password unset
--nova-password unset
</code></pre>
</section>
<section>
<h2>Undercloud - create image</h2>
<p><pre><code data-trim>
$TRIPLEO_ROOT/diskimage-builder/bin/disk-image-create $NODE_DIST
-a $NODE_ARCH -o $TRIPLEO_ROOT/undercloud
boot-stack nova-baremetal os-collect-config dhcp-all-interfaces
neutron-dhcp-agent
UNDERCLOUD_ID=$(load-image $TRIPLEO_ROOT/undercloud.qcow2)
</code></pre></p>
</section>
<section>
<h2>Undercloud - deploy with Heat</h2>
<p><pre><code data-trim>
make -C $TRIPLEO_ROOT/tripleo-heat-templates undercloud-vm.yaml
heat stack-create
-f $TRIPLEO_ROOT/tripleo-heat-templates/undercloud-vm.yaml
-P "PowerUserName=$(whoami);AdminToken=${UNDERCLOUD_ADMIN_TOKEN};
AdminPassword=${UNDERCLOUD_ADMIN_PASSWORD};
GlancePassword=${UNDERCLOUD_GLANCE_PASSWORD};
HeatPassword=${UNDERCLOUD_HEAT_PASSWORD};
NeutronPassword=${UNDERCLOUD_NEUTRON_PASSWORD};
NovaPassword=${UNDERCLOUD_NOVA_PASSWORD};
BaremetalArch=${NODE_ARCH};
PowerManager=$POWER_MANAGER;
undercloudImage=${UNDERCLOUD_ID}"
undercloud
</code></pre></p>
</section>
<section>
<h2>Undercloud - register services</h2>
<p><pre><code data-trim>
init-keystone -p $UNDERCLOUD_ADMIN_PASSWORD $UNDERCLOUD_ADMIN_TOKEN
$UNDERCLOUD_IP [email protected] heat-admin@$UNDERCLOUD_IP
setup-endpoints $UNDERCLOUD_IP
--glance-password $UNDERCLOUD_GLANCE_PASSWORD
--heat-password $UNDERCLOUD_HEAT_PASSWORD
--neutron-password $UNDERCLOUD_NEUTRON_PASSWORD
--nova-password $UNDERCLOUD_NOVA_PASSWORD
</code></pre></p>
</section>
<section>
<h2>Overcloud - create the control image</h2>
<p><pre><code data-trim>
$TRIPLEO_ROOT/diskimage-builder/bin/disk-image-create $NODE_DIST
-a $NODE_ARCH -o $TRIPLEO_ROOT/overcloud-control
boot-stack cinder-api cinder-volume os-collect-config
neutron-network-node dhcp-all-interfaces swift-proxy swift-storage
OVERCLOUD_CONTROL_ID=$(load-image -d $TRIPLEO_ROOT/overcloud-control.qcow2)
</code></pre></p>
</section>
<section>
<h2>Overcloud - create the compute image</h2>
<p><pre><code data-trim>
$TRIPLEO_ROOT/diskimage-builder/bin/disk-image-create $NODE_DIST \
-a $NODE_ARCH -o $TRIPLEO_ROOT/overcloud-compute \
nova-compute nova-kvm neutron-openvswitch-agent os-collect-config \
dhcp-all-interfaces
OVERCLOUD_COMPUTE_ID=$(load-image -d $TRIPLEO_ROOT/overcloud-compute.qcow2)
</code></pre></p>
</section>
<section>
<h2>Undercloud - deploy with Heat</h2>
<p><pre><code data-trim>
make -C $TRIPLEO_ROOT/tripleo-heat-templates overcloud.yaml
heat stack-create -f $TRIPLEO_ROOT/tripleo-heat-templates/overcloud.yaml
-P "AdminToken=${OVERCLOUD_ADMIN_TOKEN};
AdminPassword=${OVERCLOUD_ADMIN_PASSWORD};
CinderPassword=${OVERCLOUD_CINDER_PASSWORD};
GlancePassword=${OVERCLOUD_GLANCE_PASSWORD};
HeatPassword=${OVERCLOUD_HEAT_PASSWORD};
NeutronPassword=${OVERCLOUD_NEUTRON_PASSWORD};
NovaPassword=${OVERCLOUD_NOVA_PASSWORD};
NeutronPublicInterface=${NeutronPublicInterface};
SwiftPassword=${OVERCLOUD_SWIFT_PASSWORD};
SwiftHashSuffix=${OVERCLOUD_SWIFT_HASH}${OVERCLOUD_LIBVIRT_TYPE};
SSLCertificate=${OVERCLOUD_SSL_CERT};SSLKey=${OVERCLOUD_SSL_KEY}"
overcloud
</code></pre></p>
</section>
<section>
<h2>Undercloud - register services</h2>
<p><pre><code data-trim>
init-keystone -p $OVERCLOUD_ADMIN_PASSWORD $OVERCLOUD_ADMIN_TOKEN
$OVERCLOUD_IP [email protected] heat-admin@$OVERCLOUD_IP
${SSLBASE:+--ssl $PUBLIC_API_URL}
setup-endpoints $OVERCLOUD_IP --cinder-password $OVERCLOUD_CINDER_PASSWORD
--glance-password $OVERCLOUD_GLANCE_PASSWORD
--heat-password $OVERCLOUD_HEAT_PASSWORD
--neutron-password $OVERCLOUD_NEUTRON_PASSWORD
--nova-password $OVERCLOUD_NOVA_PASSWORD
--swift-password $OVERCLOUD_SWIFT_PASSWORD
${SSLBASE:+--ssl $PUBLIC_API_URL}
</code></pre></p>
</section>
</section>
<section>
<h2>CI/CD pipeline</h2>
<aside class="notes">
application + library updates, installation and removal of packages, operation system version updates
</aside>
</section>
<section>
<h2>Updates</h2>
</section>
<section data-background="images/l3BKgPQ.jpg">
<h1>So far...</h1>
<p>
<ul>
<li>TripleO tools</li>
<li>How to deploy OpenStack?</li>
<li>Architecture</li>
</ul>
</p>
</section>
<section>
<section>
<h2>Overcloud deployment with Tuskar</h2>
</section>
<section>
<h2>Registering of baremetal nodes(manual)</h2>
<img class="stretch" src="images/adding_overcloud_nodes.png"/>
</section>
<section>
<h2>Hardware profiles (Flavors)</h2>
<p>
<ul>
<li>Standard openstack flavors with architecture field (i386/amd64) added</li>
<li>Heat uses nova-boot for provisioning, nova scheduler looks for available hardware by doing exact match of node specs with chosen flavor</li>
</ul>
</p>
</section>
<section>
<h2>Images</h2>
<p>
<ul>
<li>Created by image builder and uploaded to Glance.</li>
</ul>
</p>
</section>
<section>
<h2>Deployment Role</h2>
<p>
<ul>
<li>Creates a group of baremetals running the same group of services. (E.g. nova compute, block storage, etc.)</li>
<li>Relation to hardware profiles(flavors)</li>
<li>Relation to image</li>
<li>Relation to heat template</li>
</ul>
</p>
</section>
<section>
<h2>Limited for these roles for Icehouse</h2>
<p>
<ul>
<li>Controller (all services control planes)</li>
<li>Compute (Nova)</li>
<li>Object storage (Swift)</li>
<li>Block storage (Cinder)</li>
</ul>
</p>
</section>
<section>
<h2>Deployment role example</h2>
<img class="stretch" src="images/adding_flavors_to_roles.png"/>
</section>
<section>
<h2>Deploying Overcloud example</h2>
<img class="stretch" src="images/deployment.png" />
</section>
<section>
<h2>Deploying Overcloud example</h2>
<img class="stretch" src="images/deployment_in_progress.png" />
</section>
<section>
<h2>Deploying Overcloud example</h2>
<img class="stretch" src="images/deployed.png" />
</section>
<section>
<h2>Future (Juno) management of Deployment Roles</h2>
<p>
<ul>
<li>Assigning Image</li>
<li>Assigning Template</li>
<li>Assigning Hardware profiles (flavors)</li>
</ul>
</p>
<p>Then we are prepared to deploy any service on the separate baremetals, that can be
easily scaled, e.g. Neutron, Ceilometer, Ironic, etc....</p>
<p>In future we will allow to provision multiple images on one machine with Docker.</p>
</section>
<section>
<h2>Future possible needed services</h2>
<p>
<ul>
<li>Heat Template repository as Openstack service?</li>
<li>Image builder as a Openstack service?</li>
</ul>
</p>
</section>
</section>
<section>
<section>
<h2>Overcloud monitoring with Tuskar</h2>
</section>
<section>
<h2>Monitoring of baremetals</h2>
<p>
<ul>
<li>Icehouse: monitoring via SNMP: cpu_util, memory, disk, network</li>
<li>Juno: monitoring via IPMI: Temperature, Fan Speed, Volt, etc. Plus
pluggable architecture for vendor specific metrics.</li>
</ul>
</p>
</section>
<section>
<h2>Storing and querying stats</h2>
<p>
<ul>
<li>Using Ceilometer agent for polling of the samples</li>
<li>Using Ceilometer as generic samples and meters storage</li>
<li>Using Ceilometer for querying statistics</li>
<li>Ceilometer is supporting many backends MongoDB, MySQL, PostgreSQL,
HBase, DB2 (Elastic search in progress)</li>
</ul>
</p>
</section>
<section>
<h2>Using D3 and rickshaw libraries for rendering charts</h2>
<img class="stretch" src="images/charts_example.png" />
</section>
<section>
<h2>Future (Juno) Adding 'events time-line' to charts</h2>
<p>
<ul>
<li>Under the each chart, there will be a time-line of the events, as a context for the chart data.</li>
<li>E.g. machine updated, powered down, bad health, etc..</li>
</ul>
</p>
</section>
<section>
<h2>Future (Juno) monitoring of running services</h2>
<p>
<ul>
<li>Extending Glance, so it can return list of services packed in image</li>
<li>Monitoring of services on each baremetal using Ceilometer</li>
</ul>
</p>
</section>
<section>
<h2>Future(Juno) monitoring of the running services</h2>
<img class="stretch" src="images/service_monitoring.png" />
</section>
</section>
<section>
<section>
<h2>Overcloud management with Tuskar</h2>
</section>
<section>
<h2>Scaling of the Overcloud</h2>
<img class="stretch" src="images/scaling.png" />
</section>
<section>
<h2>Downscaling of the overcloud</h2>
<p>
<ul>
<li>Deleting resource manually then update stack.</li>
<li>Choosing which resource to unprovision when downscaling, so
users can evacuate services running inside, before downscaling happens</li>
<li>Next: defining hooks for upscaling/downscaling so the evacuating behavior can
be defined on template level, so it will be automatic.</li>
</ul>
</p>
</section>
<section>
<h2>Future (Juno) Auto-scaling of the overcloud</h2>
<p>
<ul>
<li>We are waiting on ability to scale nested stacks, implemented in Heat</li>
<li>Auto-scaling using Ceilometer alarms defined in the Heat template </li>
<li>Auto-scaling with conditions we need, e.g. cpu_util bigger than 50% for 1 minute
</ul>
</p>
</section>
<section>
<h2>FUTURE (Juno) Auto-scaling examples</h2>
<ul>
<li>Newly plugged hardware can be auto-discovered and auto-scaled.</li>
<li>It can be combined, as you application is scaling, the more hardware will be needed.
That can be taken from e.g. other scaling down and releasing the hardware.</li>
</ul>
</section>
</section>
<section>
<section>
<h2>Running overcloud in HA</h2>
<ul>
<li>AMQP - Rabit MQ cluster in active-active</li>
<li>Openstack API instances - Virtual IP and keepalived + HA proxy</li>
<li>DB - Mysql Percona XtraDB Cluster</li>
</ul>
</section>
</section>
<section>
<h2>Tuskar API and Tuskar-UI summary</h2>
<p>
<ul>
<li>Deploy overcloud</li>
<li>Monitor overcloud</li>
<li>Manage overcloud</li>
<ul>
<li>Scale</li>
<li>Update</li>
</ul>
</ul>
</p>
</section>
<section>
<h2>Resources</h2>
<p>
<ul>
<li>https://wiki.openstack.org/wiki/TripleO</li>
<li>http://docs.openstack.org/developer/tripleo-incubator/</li>
</ul>
</p>
</section>
<section>
<h2>Questions</h2>
</section>
<section data-background="images/134-ducklings-1920x1080-animal-wallpaper.jpg">
<h2>Thanks for your attention!</h2>
<h3>Give us feedback! http://devconf.cz/f/16</h3>
<img class="stretch" src="images/cutest-cat.jpg"/>
</section>
</div>