-
Notifications
You must be signed in to change notification settings - Fork 1
/
4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju.html
1697 lines (1471 loc) · 351 KB
/
4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju.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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0092)http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/ -->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"><head profile="http://gmpg.org/xfn/11"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width">
<title>juju | golang | cloud | Nodes Networking: Deploying OpenStack on MAAS 1.9+ with Juju | blog.naydenov.net</title>
<link rel="pingback" href="http://blog.naydenov.net/xmlrpc.php">
<title>Nodes Networking: Deploying OpenStack on MAAS 1.9+ with Juju – blog.naydenov.net</title>
<link rel="dns-prefetch" href="http://cdn.jsdelivr.net/">
<link rel="dns-prefetch" href="http://s.w.org/">
<link rel="alternate" type="application/rss+xml" title="blog.naydenov.net » Feed" href="http://blog.naydenov.net/feed/">
<link rel="alternate" type="application/rss+xml" title="blog.naydenov.net » Comments Feed" href="http://blog.naydenov.net/comments/feed/">
<link rel="alternate" type="application/rss+xml" title="blog.naydenov.net » Nodes Networking: Deploying OpenStack on MAAS 1.9+ with Juju Comments Feed" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/feed/">
<script async="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/icons.27.svg.js"></script><script async="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/page.js"></script><script type="text/javascript">
window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/2.4\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/2.4\/svg\/","svgExt":".svg","source":{"concatemoji":"http:\/\/blog.naydenov.net\/wp-includes\/js\/wp-emoji-release.min.js?ver=4.9.5"}};
!function(a,b,c){function d(a,b){var c=String.fromCharCode;l.clearRect(0,0,k.width,k.height),l.fillText(c.apply(this,a),0,0);var d=k.toDataURL();l.clearRect(0,0,k.width,k.height),l.fillText(c.apply(this,b),0,0);var e=k.toDataURL();return d===e}function e(a){var b;if(!l||!l.fillText)return!1;switch(l.textBaseline="top",l.font="600 32px Arial",a){case"flag":return!(b=d([55356,56826,55356,56819],[55356,56826,8203,55356,56819]))&&(b=d([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]),!b);case"emoji":return b=d([55357,56692,8205,9792,65039],[55357,56692,8203,9792,65039]),!b}return!1}function f(a){var c=b.createElement("script");c.src=a,c.defer=c.type="text/javascript",b.getElementsByTagName("head")[0].appendChild(c)}var g,h,i,j,k=b.createElement("canvas"),l=k.getContext&&k.getContext("2d");for(j=Array("flag","emoji"),c.supports={everything:!0,everythingExceptFlag:!0},i=0;i<j.length;i++)c.supports[j[i]]=e(j[i]),c.supports.everything=c.supports.everything&&c.supports[j[i]],"flag"!==j[i]&&(c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&c.supports[j[i]]);c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&!c.supports.flag,c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.everything||(h=function(){c.readyCallback()},b.addEventListener?(b.addEventListener("DOMContentLoaded",h,!1),a.addEventListener("load",h,!1)):(a.attachEvent("onload",h),b.attachEvent("onreadystatechange",function(){"complete"===b.readyState&&c.readyCallback()})),g=c.source||{},g.concatemoji?f(g.concatemoji):g.wpemoji&&g.twemoji&&(f(g.twemoji),f(g.wpemoji)))}(window,document,window._wpemojiSettings);
</script><script src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/wp-emoji-release.min.js" type="text/javascript" defer=""></script>
<style type="text/css">
img.wp-smiley,
img.emoji {
display: inline !important;
border: none !important;
box-shadow: none !important;
height: 1em !important;
width: 1em !important;
margin: 0 .07em !important;
vertical-align: -0.1em !important;
background: none !important;
padding: 0 !important;
}
</style>
<link rel="stylesheet" id="crayon-css" href="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/crayon.min.css" type="text/css" media="all">
<link rel="stylesheet" id="crayon-theme-classic-css" href="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/classic.css" type="text/css" media="all">
<link rel="stylesheet" id="crayon-font-sourcecodepro-css" href="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/sourcecodepro.css" type="text/css" media="all">
<link rel="stylesheet" id="bodhi-svgs-attachment-css" href="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/svgs-attachment.css" type="text/css" media="all">
<link rel="stylesheet" id="codium_grid-style-css" href="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/style.css" type="text/css" media="all">
<link rel="stylesheet" id="addtoany-css" href="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/addtoany.min.css" type="text/css" media="all">
<script type="text/javascript" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/jquery.js"></script>
<script type="text/javascript" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/jquery-migrate.min.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
var CrayonSyntaxSettings = {"version":"_2.7.2_beta","is_admin":"0","ajaxurl":"http:\/\/blog.naydenov.net\/wp-admin\/admin-ajax.php","prefix":"crayon-","setting":"crayon-setting","selected":"crayon-setting-selected","changed":"crayon-setting-changed","special":"crayon-setting-special","orig_value":"data-orig-value","debug":""};
var CrayonSyntaxStrings = {"copy":"Press %s to Copy, %s to Paste","minimize":"Click To Expand Code"};
/* ]]> */
</script>
<script type="text/javascript" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/crayon.min.js"></script>
<script type="text/javascript" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/addtoany.min.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
var cssTarget = "img.style-svg";
var ForceInlineSVGActive = "false";
/* ]]> */
</script>
<script type="text/javascript" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/svgs-inline-min.js"></script>
<link rel="https://api.w.org/" href="http://blog.naydenov.net/wp-json/">
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://blog.naydenov.net/xmlrpc.php?rsd">
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://blog.naydenov.net/wp-includes/wlwmanifest.xml">
<link rel="prev" title="MAAS Setup: Deploying OpenStack on MAAS 1.9+ with Juju" href="http://blog.naydenov.net/2016/01/maas-setup-deploying-openstack-on-maas-1-9-with-juju/">
<link rel="next" title="Advanced Networking: Deploying OpenStack on MAAS 1.9+ with Juju" href="http://blog.naydenov.net/2016/06/advanced-networking-deploying-openstack-on-maas-1-9-with-juju/">
<meta name="generator" content="WordPress 4.9.5">
<link rel="canonical" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/">
<link rel="shortlink" href="http://blog.naydenov.net/?p=404">
<link rel="alternate" type="application/json+oembed" href="http://blog.naydenov.net/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fblog.naydenov.net%2F2016%2F01%2Fnodes-networking-deploying-openstack-on-maas-1-9-with-juju%2F">
<link rel="alternate" type="text/xml+oembed" href="http://blog.naydenov.net/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fblog.naydenov.net%2F2016%2F01%2Fnodes-networking-deploying-openstack-on-maas-1-9-with-juju%2F&format=xml">
<script data-cfasync="false">
window.a2a_config=window.a2a_config||{};a2a_config.callbacks=[];a2a_config.overlays=[];a2a_config.templates={};
(function(d,s,a,b){a=d.createElement(s);b=d.getElementsByTagName(s)[0];a.async=1;a.src="https://static.addtoany.com/menu/page.js";b.parentNode.insertBefore(a,b);})(document,"script");
</script>
<meta name="description" content="For information about juju, call us today! Dimiter Naydenov's blog"><link href="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/css" rel="stylesheet" type="text/css">
<link href="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/css(1)" rel="stylesheet" type="text/css">
<link href="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/css(2)" rel="stylesheet" type="text/css">
<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
<style type="text/css">
h1.blogtitle a,.description { color:#444; }
</style>
<style type="text/css">.a2a_menu,.a2a_menu *{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;float:none;margin:0;padding:0;position:static;height:auto;width:auto}.a2a_menu{border-radius:6px;display:none;direction:ltr;background:#FFF;font:16px sans-serif-light,HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Arial,Helvetica,"Liberation Sans",sans-serif;color:#000;line-height:12px;border:1px solid #CCC;vertical-align:baseline;outline:0;overflow:hidden}.a2a_mini{min-width:200px;position:absolute;width:300px;z-index:9999997}.a2a_overlay{display:none;background:#CCC;_height:expression( ((e=document.documentElement.clientHeight)?e:document.body.clientHeight)+"px" );_width:expression( ((e=document.documentElement.clientWidth)?e:document.body.clientWidth)+"px" );filter:alpha(opacity=50);opacity:.7;position:fixed;_position:absolute;top:0;right:0;left:0;bottom:0;z-index:9999998;-webkit-tap-highlight-color:rgba(0,0,0,0);transition:opacity .14s}.a2a_full{background:#FFF;height:auto;height:calc(320px);top:15%;_top:expression(40+((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+"px");left:50%;margin-left:-320px;position:fixed;_position:absolute;text-align:center;width:640px;z-index:9999999;transition:transform .14s,opacity .14s}.a2a_full_footer,.a2a_full_header,.a2a_full_services{border:0;margin:0;padding:12px;box-sizing:border-box}.a2a_full_header{padding-bottom:8px}.a2a_full_services{height:280px;overflow-y:scroll;padding:0 12px;-webkit-overflow-scrolling:touch}.a2a_full_services .a2a_i{display:inline-block;float:none;width:181px;width:calc(33.334% - 18px)}div.a2a_full_footer{font-size:12px;text-align:center;padding:8px 14px}div.a2a_full_footer a,div.a2a_full_footer a:visited{display:inline;font-size:12px;line-height:14px;padding:8px 14px}div.a2a_full_footer a:focus,div.a2a_full_footer a:hover{background:0 0;border:0;color:#0166FF}div.a2a_full_footer a span.a2a_s_a2a,div.a2a_full_footer a span.a2a_w_a2a{background-size:14px;border-radius:3px;display:inline-block;height:14px;line-height:14px;margin:0 3px 0 0;vertical-align:top;*vertical-align:middle;width:14px}.a2a_modal{background:#FFF;font:24px sans-serif-light,HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Arial,Helvetica,"Liberation Sans",sans-serif;height:auto;top:50%;_top:expression(40+((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+"px");left:50%;margin-left:-320px;margin-top:-36px;position:fixed;_position:absolute;text-align:center;width:640px;z-index:9999999;transition:transform .14s,opacity .14s;-webkit-tap-highlight-color:rgba(0,0,0,0)}.a2a_copy_link_container{position:relative}span.a2a_s_link#a2a_copy_link_icon,span.a2a_w_link#a2a_copy_link_icon{background-size:48px;border-radius:0;display:inline-block;height:48px;left:0;line-height:48px;margin:0 3px 0 0;position:absolute;vertical-align:top;*vertical-align:middle;width:48px}#a2apage_modal input#a2a_copy_link_text{background-color:transparent;_background-color:#FFF;border:0;color:#2A2A2A;font:inherit;height:48px;left:62px;padding:0;position:relative;width:564px;width:calc(100% - 76px)}#a2a_copy_link_copied{background-color:#0166ff;background:linear-gradient(90deg,#0166ff 80%,#9cbfff);color:#fff;display:none;font:inherit;font-size:16px;padding:6px 8px}@media print{.a2a_floating_style,.a2a_menu,.a2a_overlay{visibility:hidden}}@keyframes a2aFadeIn{from{opacity:0}to{opacity:1}}.a2a_starting{opacity:0}.a2a_starting.a2a_full{transform:scale(.8)}@media (max-width:639px){.a2a_full{border-radius:0;top:15%;left:0;margin-left:auto;width:100%}.a2a_modal{left:0;margin-left:10px;width:calc(100% - 20px)}}@media (min-width:318px) and (max-width:437px){.a2a_full .a2a_full_services .a2a_i{width:calc(50% - 18px)}}@media (max-width:317px){.a2a_full .a2a_full_services .a2a_i{width:calc(100% - 18px)}}@media (max-height:436px){.a2a_full{bottom:40px;height:auto;top:40px}}.a2a_menu a{color:#0166FF;text-decoration:none;font:16px sans-serif-light,HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Arial,Helvetica,"Liberation Sans",sans-serif;line-height:14px;height:auto;width:auto;outline:0;-moz-outline:none}.a2a_menu a:visited{color:#0166FF}.a2a_menu a:active,.a2a_menu a:focus,.a2a_menu a:hover{color:#2A2A2A;border-color:#EEE;border-style:solid;background-color:#EEE;text-decoration:none}.a2a_menu span.a2a_s_find{background-size:24px;height:24px;left:8px;position:absolute;top:7px;width:24px}.a2a_menu span.a2a_s_find svg{background-color:#FFF}.a2a_menu span.a2a_s_find svg path{fill:#CCC}#a2a_menu_container{display:inline-block}#a2a_menu_container{_display:inline}.a2a_menu_find_container{border:1px solid #CCC;border-radius:6px;padding:2px 24px 2px 0;position:relative;text-align:left}.a2a_cols_container .a2a_col1{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}#a2apage_modal input,#a2apage_modal input[type=text],.a2a_menu input,.a2a_menu input[type=text]{display:block;background-image:none;box-shadow:none;line-height:100%;margin:0;outline:0;overflow:hidden;padding:0;-moz-box-shadow:none;-webkit-box-shadow:none;-webkit-appearance:none}#a2apage_find_container input,#a2apage_find_container input[type=text]{background-color:transparent;_background-color:#FFF;border:0;color:#2A2A2A;font:inherit;font-size:16px;height:28px;line-height:20px;left:38px;outline:0;margin:0;padding:2px 0;position:relative;width:99%}.a2a_clear{clear:both} .a2a_svg{background-repeat:no-repeat;display:block;overflow:hidden;height:32px;line-height:32px;width:32px}.a2a_svg svg{background-repeat:no-repeat;background-position:50% 50%;border:none;display:block;left:0;margin:0 auto;overflow:hidden;padding:0;position:relative;top:0;width:auto;height:auto}a.a2a_i,i.a2a_i{display:block;float:left;border:1px solid #FFF;line-height:24px;padding:6px 8px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:132px}a.a2a_i span,a.a2a_more span{display:inline-block;overflow:hidden;vertical-align:top;*vertical-align:middle}a.a2a_i .a2a_svg{margin:0 6px 0 0}a.a2a_i .a2a_svg,a.a2a_more .a2a_svg{background-size:24px;height:24px;line-height:24px;width:24px}a.a2a_sss:hover{border-left:1px solid #CCC}a.a2a_menu_show_more_less{border-bottom:1px solid #FFF;border-left:0;border-right:0;line-height:24px;margin:6px 0 0;padding:6px;-webkit-touch-callout:none}a.a2a_menu_show_more_less span{display:inline-block;height:24px;margin:0 6px 0 0}.a2a_kit .a2a_svg{background-repeat:repeat}.a2a_default_style a{float:left;line-height:16px;padding:0 2px}.a2a_default_style a:hover .a2a_svg,.a2a_floating_style a:hover .a2a_svg,.a2a_overlay_style a:hover .a2a_svg svg{opacity:.7}.a2a_overlay_style.a2a_default_style a:hover .a2a_svg{opacity:1}.a2a_default_style .a2a_count,.a2a_default_style .a2a_svg,.a2a_floating_style .a2a_svg,.a2a_menu .a2a_svg,.a2a_vertical_style .a2a_count,.a2a_vertical_style .a2a_svg{border-radius:4px}.a2a_default_style .a2a_counter img,.a2a_default_style .a2a_dd,.a2a_default_style .a2a_svg{float:left}.a2a_default_style .a2a_img_text{margin-right:4px}.a2a_default_style .a2a_divider{border-left:1px solid #000;display:inline;float:left;height:16px;line-height:16px;margin:0 5px}.a2a_kit a{cursor:pointer}.a2a_floating_style{background-color:#fff;border-radius:6px;position:fixed;z-index:9999995}.a2a_floating_style,.a2a_overlay_style{animation:a2aFadeIn .2s ease-in;padding:4px}.a2a_vertical_style a{clear:left;display:block;overflow:hidden;padding:4px;text-decoration:none}.a2a_floating_style.a2a_default_style{bottom:0}.a2a_floating_style.a2a_default_style a,.a2a_overlay_style.a2a_default_style a{padding:4px}.a2a_count{background-color:#fff;border:1px solid #ccc;box-sizing:border-box;color:#2a2a2a;display:block;float:left;font:12px Arial,Helvetica,sans-serif;height:16px;margin-left:4px;position:relative;text-align:center;width:50px}.a2a_count:after,.a2a_count:before{border:solid transparent;border-width:4px 4px 4px 0;content:"";height:0;left:0;line-height:0;margin:-4px 0 0 -4px;position:absolute;top:50%;width:0}.a2a_count:before{border-right-color:#ccc}.a2a_count:after{border-right-color:#fff;margin-left:-3px}.a2a_count span{animation:a2aFadeIn .14s ease-in}.a2a_vertical_style .a2a_counter img{display:block}.a2a_vertical_style .a2a_count{float:none;margin-left:0;margin-top:6px}.a2a_vertical_style .a2a_count:after,.a2a_vertical_style .a2a_count:before{border:solid transparent;border-width:0 4px 4px 4px;content:"";height:0;left:50%;line-height:0;margin:-4px 0 0 -4px;position:absolute;top:0;width:0}.a2a_vertical_style .a2a_count:before{border-bottom-color:#ccc}.a2a_vertical_style .a2a_count:after{border-bottom-color:#fff;margin-top:-3px}.a2a_nowrap{white-space:nowrap}.a2a_note{margin:0 auto;padding:9px;font-size:12px;text-align:center}.a2a_note .a2a_note_note{margin:0;color:#2A2A2A}.a2a_wide a{display:block;margin-top:3px;border-top:1px solid #EEE;text-align:center}.a2a_label{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);clip-path:polygon(0 0,0 0,0 0);-webkit-clip-path:polygon(0 0,0 0,0 0);overflow:hidden;height:1px;width:1px}.a2a_kit,.a2a_menu,.a2a_modal,.a2a_overlay{-ms-touch-action:manipulation;touch-action:manipulation}.a2a_dd img{border:0}.a2a_button_facebook_like iframe{max-width:none}iframe[id^=PIN_][id$="_nag"]{display:none!important}</style></head>
<body class="post-template-default single single-post postid-404 single-format-standard juju ubuntu tag-juju-2 tag-maas tag-networking tag-openstack">
<div id="wrappermenu" class="">
<div id="access" class="container_15">
<div class="menu"><ul>
<li class="page_item page-item-20"><a href="http://blog.naydenov.net/about/" data-slimstat="5">About</a></li>
</ul></div>
</div><!-- #access -->
<div class="clear"></div>
</div>
<div id="wrapperheader" class="container_15">
<div id="header">
<div class="headertop">
<div id="blog-title" class="blogtitle"><a href="http://blog.naydenov.net/" title="blog.naydenov.net" data-slimstat="5">blog.naydenov.net</a></div>
<div class="description">Dimiter Naydenov's blog </div>
</div>
</div><!-- #header -->
</div><!-- #wrapperpub -->
<div class="clear"></div>
<div id="wrapper" class="container_15">
<div class="clear"></div>
<div id="container">
<div id="content" class="grid_10 postsingle push_5">
<div class="cat-links post-404 post type-post status-publish format-standard has-post-thumbnail hentry category-juju category-ubuntu tag-juju-2 tag-maas tag-networking tag-openstack author-dimitern juju ubuntu"><a href="http://blog.naydenov.net/category/juju/" rel="category tag" data-slimstat="5">Juju</a> <a href="http://blog.naydenov.net/category/ubuntu/" rel="category tag" data-slimstat="5">Ubuntu</a></div>
<div class="postsingletext">
<div id="post-404" class="post-404 post type-post status-publish format-standard has-post-thumbnail hentry category-juju category-ubuntu tag-juju-2 tag-maas tag-networking tag-openstack author-dimitern juju ubuntu">
<h1 class="single-entry-title">Nodes Networking: Deploying OpenStack on MAAS 1.9+ with Juju</h1>
<div class="linebreak"></div>
<div class="entry-content">
<p>This is part 4 of my ongoing “Deploying OpenStack on MAAS 1.9+ with Juju” series. The last post, <em><a href="http://blog.naydenov.net/2016/01/maas-setup-deploying-openstack-on-maas-1-9-with-juju/" target="_blank" data-slimstat="5">MAAS Setup: Deploying OpenStack on MAAS 1.9+ with Juju</a></em>, described the steps to deploy MAAS 1.9 itself and configure it with the fabrics, subnets, and VLANs we need to deploy OpenStack. In this post we’ll finish the MAAS setup, add to MAAS the 4 dual-NIC NUC nodes and commission them, and finally configure each node’s network interfaces as required.</p>
<h3><span style="color: #008000;">Updates</span></h3>
<p><span style="color: #008000;">A lot has happened since I started these posts, MAAS 1.9 (latest stable is 1.9.4) got released, then Juju 1.25 (latest stable is 1.25.7) got released (with a subset of the features I’m talking about, while most of the new networking improvements are part of the recently released Juju 2.0.1). MAAS 2.0 (even 2.1) is out now (latest stable version in <strong>ppa:maas/stable</strong>). I’m updating the posts to reflect the changes where appropriate, using <strong>green</strong> text color, so stay tuned! <img draggable="false" class="emoji" alt="🙂" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/1f642.svg"></span></p>
<h2>Dual Zone MAAS Setup</h2>
<div id="attachment_330" style="width: 657px" class="wp-caption aligncenter"><img class="size-full wp-image-330" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/maas-physical-network.png" alt="MAAS physical-network layout for OpenStack" width="647" height="357" srcset="http://blog.naydenov.net/wp-content/uploads/2015/11/maas-physical-network.png 647w, http://blog.naydenov.net/wp-content/uploads/2015/11/maas-physical-network-300x166.png 300w" sizes="(max-width: 647px) 100vw, 647px"><p class="wp-caption-text">MAAS physical-network layout for OpenStack</p></div>
<p>As I mentioned in the <a href="http://blog.naydenov.net/2015/11/deploying-openstack-on-maas-1-9-with-juju-network-setup/" target="_blank" data-slimstat="5">first post</a> of the series, we’ll use 2 physical zones in MAAS – each containing 2 nodes (Intel NUCs) plugged into a VLAN-enabled switch. Switches are configured to trunk all VLANs on certain ports – those used to connect to the other switch or to the MAAS cluster controller. I’ve decided to use IP addresses with the following format:</p>
<p><strong>10.<em>X</em>.<em>Y.Z</em></strong><em> </em>– where:</p>
<ul>
<li><em><strong>X</strong></em> is either 14 (for the PXE managed subnet 10.14.0.0/20) or it’s equal to the VLAN ID the address is from (e.g. 10.150.0.100);</li>
<li><em><strong>Y</strong></em> is 0 for zone 1 and 1 for zone 2 (e.g. zone 1’s switch uses 10.14.0.2, while zone 2’s switch uses 10.14.1.2);</li>
<li><em><strong>Z</strong></em> is 1 only for the IP address of the MAAS cluster controller’s primary NIC (the default gateway), 2 for each switch’s IP address, 100 + or matches the last part of node’s hostname (when possible) – e.g. node-11’s IP in VLAN 250 will be 10.250.0.111, while node-21’s IP in VLAN 30 is 10.30.1.121.</li>
</ul>
<p>MAAS comes with a “default” zone where all nodes end up when added. It cannot be removed, but we can easily add more using the MAAS CLI, like this:</p>
<p></p><!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdcc6e682775913723" class="crayon-syntax crayon-theme-classic crayon-font-sourcecodepro crayon-os-mac print-yes notranslate crayon-wrapped" data-settings=" minimize scroll-mouseover wrap" style="clear: none; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important; height: 18px !important; line-height: 18px !important; margin-top: -19px; display: none; position: absolute; z-index: 2;"><span class="crayon-title"></span>
<div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><div class="crayon-button crayon-nums-button crayon-pressed" title="Toggle Line Numbers"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-plain-button" title="Toggle Plain Code"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-wrap-button crayon-pressed" title="Toggle Line Wrap"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-expand-button" title="Expand Code" style="display: none;"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-copy-button" title="Copy"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-popup-button" title="Open Code In New Window"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div></div></div>
<div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;"></div>
<div class="crayon-plain-wrap"><textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="tab-size: 4; font-size: 12px !important; line-height: 15px !important; z-index: 0; opacity: 0; overflow: hidden;">$ maas 19-root zones create name=zone1 description='First MAAS zone, using maas-zone1-sw.maas (TP-LINK TL-SG1024DE 24-port switch)'
$ maas 19-root zones create name=zone2 description='Second MAAS zone, using maas-zone2-sw.maas (D-LINK DSG-1100-08 8-port switch)'</textarea></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5b04cdcc6e682775913723-1" style="height: 30px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e682775913723-2" style="height: 15px;">2</div><div class="crayon-num" data-line="crayon-5b04cdcc6e682775913723-3" style="height: 30px;">3</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5b04cdcc6e682775913723-1">$ maas 19-root zones create name=zone1 description='First MAAS zone, using maas-zone1-sw.maas (TP-LINK TL-SG1024DE 24-port switch)'</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e682775913723-2"> </div><div class="crayon-line" id="crayon-5b04cdcc6e682775913723-3">$ maas 19-root zones create name=zone2 description='Second MAAS zone, using maas-zone2-sw.maas (D-LINK DSG-1100-08 8-port switch)'</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0002 seconds] -->
<p></p>
<p>The same can be done from the MAAS web UI – click on “Zones” in the header, then click “Add zone”. Description is optional, but why not use it for clarity? When done, you can list all zones to verify and should get the same output as below:</p>
<p></p><!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdcc6e690643853396" class="crayon-syntax crayon-theme-classic crayon-font-sourcecodepro crayon-os-mac print-yes notranslate crayon-wrapped" data-settings=" minimize scroll-mouseover wrap" style="clear: none; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important; height: 18px !important; line-height: 18px !important; margin-top: -19px; display: none; position: absolute; z-index: 2;"><span class="crayon-title"></span>
<div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><div class="crayon-button crayon-nums-button crayon-pressed" title="Toggle Line Numbers"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-plain-button" title="Toggle Plain Code"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-wrap-button crayon-pressed" title="Toggle Line Wrap"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-expand-button" title="Expand Code" style="display: none;"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-copy-button" title="Copy"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-popup-button" title="Open Code In New Window"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><span class="crayon-language">JavaScript</span></div></div>
<div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;"></div>
<div class="crayon-plain-wrap"><textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="tab-size: 4; font-size: 12px !important; line-height: 15px !important; z-index: 0; opacity: 0; overflow: hidden;">$ maas 19-root zones read
Success.
Machine-readable output follows:
[
{
"resource_uri": "/MAAS/api/1.0/zones/default/",
"name": "default",
"description": ""
},
{
"resource_uri": "/MAAS/api/1.0/zones/zone1/",
"name": "zone1",
"description": "First MAAS zone, using maas-zone1-sw.maas (TP-LINK TL-SG1024DE 24-port switch)"
},
{
"resource_uri": "/MAAS/api/1.0/zones/zone2/",
"name": "zone2",
"description": "Second MAAS zone, using maas-zone2-sw.maas (D-LINK DSG-1100-08 8-port switch)"
}
]</textarea></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5b04cdcc6e690643853396-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e690643853396-2" style="height: 15px;">2</div><div class="crayon-num" data-line="crayon-5b04cdcc6e690643853396-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e690643853396-4" style="height: 15px;">4</div><div class="crayon-num" data-line="crayon-5b04cdcc6e690643853396-5" style="height: 15px;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e690643853396-6" style="height: 15px;">6</div><div class="crayon-num" data-line="crayon-5b04cdcc6e690643853396-7" style="height: 15px;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e690643853396-8" style="height: 15px;">8</div><div class="crayon-num" data-line="crayon-5b04cdcc6e690643853396-9" style="height: 15px;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e690643853396-10" style="height: 15px;">10</div><div class="crayon-num" data-line="crayon-5b04cdcc6e690643853396-11" style="height: 15px;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e690643853396-12" style="height: 15px;">12</div><div class="crayon-num" data-line="crayon-5b04cdcc6e690643853396-13" style="height: 15px;">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e690643853396-14" style="height: 15px;">14</div><div class="crayon-num" data-line="crayon-5b04cdcc6e690643853396-15" style="height: 15px;">15</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e690643853396-16" style="height: 15px;">16</div><div class="crayon-num" data-line="crayon-5b04cdcc6e690643853396-17" style="height: 15px;">17</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e690643853396-18" style="height: 15px;">18</div><div class="crayon-num" data-line="crayon-5b04cdcc6e690643853396-19" style="height: 15px;">19</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e690643853396-20" style="height: 15px;">20</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5b04cdcc6e690643853396-1">$ maas 19-root zones read</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e690643853396-2">Success.</div><div class="crayon-line" id="crayon-5b04cdcc6e690643853396-3">Machine-readable output follows:</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e690643853396-4">[</div><div class="crayon-line" id="crayon-5b04cdcc6e690643853396-5"> {</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e690643853396-6"> "resource_uri": "/MAAS/api/1.0/zones/default/", </div><div class="crayon-line" id="crayon-5b04cdcc6e690643853396-7"> "name": "default", </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e690643853396-8"> "description": ""</div><div class="crayon-line" id="crayon-5b04cdcc6e690643853396-9"> }, </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e690643853396-10"> {</div><div class="crayon-line" id="crayon-5b04cdcc6e690643853396-11"> "resource_uri": "/MAAS/api/1.0/zones/zone1/", </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e690643853396-12"> "name": "zone1", </div><div class="crayon-line" id="crayon-5b04cdcc6e690643853396-13"> "description": "First MAAS zone, using maas-zone1-sw.maas (TP-LINK TL-SG1024DE 24-port switch)"</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e690643853396-14"> }, </div><div class="crayon-line" id="crayon-5b04cdcc6e690643853396-15"> {</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e690643853396-16"> "resource_uri": "/MAAS/api/1.0/zones/zone2/", </div><div class="crayon-line" id="crayon-5b04cdcc6e690643853396-17"> "name": "zone2", </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e690643853396-18"> "description": "Second MAAS zone, using maas-zone2-sw.maas (D-LINK DSG-1100-08 8-port switch)"</div><div class="crayon-line" id="crayon-5b04cdcc6e690643853396-19"> }</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e690643853396-20">]</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0003 seconds] -->
<p></p>
<p>So what are those 2 hostnames I mentioned above? MAAS can provide DHCP and DNS services to other things, not just nodes it manages, but also other <strong>devices</strong> on the network – like switches, Apple TVs, containers, etc. While not required, I decided it’s nice add the two switches as devices in MAAS, with the following CLI commands (or by clicking “Add Device” on the “Nodes” page):</p>
<p></p><!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdcc6e696415512111" class="crayon-syntax crayon-theme-classic crayon-font-sourcecodepro crayon-os-mac print-yes notranslate crayon-wrapped" data-settings=" minimize scroll-mouseover wrap" style="clear: none; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important; height: 18px !important; line-height: 18px !important; margin-top: -19px; display: none; position: absolute; z-index: 2;"><span class="crayon-title"></span>
<div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><div class="crayon-button crayon-nums-button crayon-pressed" title="Toggle Line Numbers"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-plain-button" title="Toggle Plain Code"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-wrap-button crayon-pressed" title="Toggle Line Wrap"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-expand-button" title="Expand Code" style="display: none;"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-copy-button" title="Copy"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-popup-button" title="Open Code In New Window"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div></div></div>
<div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;"></div>
<div class="crayon-plain-wrap"><textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="tab-size: 4; font-size: 12px !important; line-height: 15px !important; z-index: 0; opacity: 0; overflow: hidden;"># for MAAS 1.9 on trusty:
$ maas 19-root devices new hostname=maas-zone1-sw mac_addresses=c4:e9:84:f5:0a:fe
$ maas 19-root devices new hostname=maas-zone2-sw mac_addresses=70:62:b8:08:2e:8a
# for MAAS 2.0 on xenial:
$ maas 20-root devices create hostname=maas-zone1-sw mac_addresses=c4:e9:84:f5:0a:fe
$ maas 20-root devices create hostname=maas-zone2-sw mac_addresses=70:62:b8:08:2e:8a</textarea></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5b04cdcc6e696415512111-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e696415512111-2" style="height: 15px;">2</div><div class="crayon-num" data-line="crayon-5b04cdcc6e696415512111-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e696415512111-4" style="height: 15px;">4</div><div class="crayon-num crayon-marked-num crayon-top" data-line="crayon-5b04cdcc6e696415512111-5" style="height: 16px;">5</div><div class="crayon-num crayon-marked-num crayon-striped-num" data-line="crayon-5b04cdcc6e696415512111-6" style="height: 15px;">6</div><div class="crayon-num crayon-marked-num crayon-bottom" data-line="crayon-5b04cdcc6e696415512111-7" style="height: 16px;">7</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5b04cdcc6e696415512111-1"># for MAAS 1.9 on trusty:</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e696415512111-2">$ maas 19-root devices new hostname=maas-zone1-sw mac_addresses=c4:e9:84:f5:0a:fe</div><div class="crayon-line" id="crayon-5b04cdcc6e696415512111-3">$ maas 19-root devices new hostname=maas-zone2-sw mac_addresses=70:62:b8:08:2e:8a</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e696415512111-4"> </div><div class="crayon-line crayon-marked-line crayon-top" id="crayon-5b04cdcc6e696415512111-5"># for MAAS 2.0 on xenial:</div><div class="crayon-line crayon-marked-line crayon-striped-line" id="crayon-5b04cdcc6e696415512111-6">$ maas 20-root devices create hostname=maas-zone1-sw mac_addresses=c4:e9:84:f5:0a:fe</div><div class="crayon-line crayon-marked-line crayon-bottom" id="crayon-5b04cdcc6e696415512111-7">$ maas 20-root devices create hostname=maas-zone2-sw mac_addresses=70:62:b8:08:2e:8a</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0002 seconds] -->
<p></p>
<p>Now the nodes UI page will show “0 Nodes | 2 Devices”, and clicking on the latter you can this nice summary:</p>
<p><img class="size-large wp-image-410 aligncenter" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/switches-as-devices-1024x426.png" alt="switches-as-devices" width="620" height="258" srcset="http://blog.naydenov.net/wp-content/uploads/2016/01/switches-as-devices-1024x426.png 1024w, http://blog.naydenov.net/wp-content/uploads/2016/01/switches-as-devices-300x125.png 300w, http://blog.naydenov.net/wp-content/uploads/2016/01/switches-as-devices-768x319.png 768w, http://blog.naydenov.net/wp-content/uploads/2016/01/switches-as-devices.png 1546w" sizes="(max-width: 620px) 100vw, 620px"></p>
<h2>Adding and Commissioning All Nodes</h2>
<p>OK, now we’re ready to add the nodes. Assuming all NUCs, switches, and MAAS itself are plugged in as described in the diagram in the beginning, the process is really simple: <strong>just turn them on!</strong> I’d recommend to do that one node at a time for simplicity (i.e. you know which one is on currently, which can be tricky when more than one NUC is on – you have to match MAC addresses to distinguish between them).</p>
<p>What happens during the initial enlistment, in brief:</p>
<ul>
<li>MAAS will detect the new node while it’s trying to PXE boot.</li>
<li>An ephemeral image will be given to the node, and during the initial boot some hardware information will be collected (takes a couple of minutes).</li>
<li>When done, the node will shut down automatically.</li>
<li>A node with status <em>New</em> will appear with a randomly generated hostname (quite funny sometimes).</li>
</ul>
<p>You can then (from the UI or CLI) finish the node config and get it commissioned (so it’s ready to use):</p>
<ul>
<li>Accept the node and fill in the power settings to use, change the hostname, and set the zone.</li>
<li>Once those changes are saved, MAAS should automatically commission the node (takes a bit longer and involves at least 2 reboots – again, node shuts down when done).</li>
<li>During commissioning MAAS discovers the rest of the machine details, including hardware specs, storage, and networking.</li>
<li>Unless commissioning fails, the node should transition from <em>Commissioning</em> to <em>Ready</em>.</li>
</ul>
<p>A lot more details can be found in the <a href="http://maas.ubuntu.com/docs/" target="_blank" data-slimstat="5">MAAS Documentation</a>. I’ll be using the web UI for the next steps, but of course they can also be done via the CLI, following the documentation. I’m happy to include those CLI steps later, if someone asks about them.</p>
<p>Remember the steps we did in <a href="http://blog.naydenov.net/2015/11/deploying-openstack-on-maas-1-9-with-juju-hardware-setup/" target="_blank" data-slimstat="5">an earlier post</a> – <em>Preparing the NUCs for MAAS </em>? Now we need the IP and MAC addresses for each NUC’s on-board NIC and the password set in the Intel MEBx BIOS. Revisiting Dustin’s <em><a href="http://blog.dustinkirkland.com/2013/12/everything-you-need-to-know-about-intel.html" target="_blank" data-slimstat-clicked="false" data-slimstat-type="0" data-slimstat-tracking="true" data-slimstat-callback="false" data-slimstat-async="true" data-slimstat="5">“Everything you need to know about Intel”</a></em> blog post will help a lot should you need to redo or change AMT settings.</p>
<p>Here is a summary of what to change for each node, in order (i.e. from the UI, edit the <em>New</em> node and first set the hostname, save, then zone – save again, finally set the power settings).</p>
<table style="width: 100%;">
<tbody>
<tr>
<th>Node #</th>
<th>Hostname</th>
<th>Zone</th>
<th>Power Type</th>
<th>MAC Address</th>
<th>Power Password</th>
<th>Power Address</th>
</tr>
<tr>
<td>1</td>
<td>node-11.maas</td>
<td>zone1</td>
<td>Intel AMT</td>
<td><em>on-board NIC’s MAC address</em></td>
<td><em>(as set in Intel MEBx)</em></td>
<td>10.14.0.11</td>
</tr>
<tr>
<td>2</td>
<td>node-12.maas</td>
<td>zone1</td>
<td>Intel AMT</td>
<td><em>on-board NIC’s MAC address</em></td>
<td><em>(as set in Intel MEBx)</em></td>
<td>10.14.0.12</td>
</tr>
<tr>
<td>3</td>
<td>node-21.maas</td>
<td>zone2</td>
<td>Intel AMT</td>
<td><em>on-board NIC’s MAC address</em></td>
<td><em>(as set in Intel MEBx)</em></td>
<td>10.14.1.21</td>
</tr>
<tr>
<td>4</td>
<td>node-22.maas</td>
<td>zone2</td>
<td>Intel AMT</td>
<td><em>on-board NIC’s MAC address</em></td>
<td><em>(as set in Intel MEBx)</em></td>
<td>10.14.1.22</td>
</tr>
</tbody>
</table>
<p><strong>NOTE:</strong> While editing the node from the UI, MAAS can show a warning / suggestion you need to install <strong>wsmancli</strong> package on the cluster controller machine in order to be able to use AMT. Verify the <strong>amttool</strong> (which MAAS uses to power AMT nodes on/off) binary exists, if not – install it with <code>$ sudo apt-get install wsmancli</code>.</p>
<p>Once all 4 nodes are ready, your “Nodes” page in the UI should look very much like this:</p>
<p><img class="aligncenter wp-image-417 size-large" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/all-nodes-ready-1024x394.png" alt="all-nodes-ready" width="620" height="239" srcset="http://blog.naydenov.net/wp-content/uploads/2016/01/all-nodes-ready-1024x394.png 1024w, http://blog.naydenov.net/wp-content/uploads/2016/01/all-nodes-ready-300x115.png 300w, http://blog.naydenov.net/wp-content/uploads/2016/01/all-nodes-ready-768x296.png 768w" sizes="(max-width: 620px) 100vw, 620px"></p>
<p>Now we can let MAAS can deploy each node (one by one or all at once – doesn’t matter) to verify it works. From the UI, click on the checkbox next to FQDN to select all nodes, then from the “Take action” drop down menu (that just replaced the “Add Hardware” button) pick Deploy, choose series/kernel (defaults are OK) and click “Go”. Watch as nodes “come to life” and the UI auto-updates. It should take no more than 10-15 m for a node to get from <em>Deploying</em> to <em>Deployed</em> (unless an issue occurs). Try to SSH into each node (username “ubuntu”, and eth0’s IP address as seen in the node details page), check external connectivity, DNS resolution, pinging MAAS, both switches, other nodes, etc.</p>
<h2>Setting up Nodes Networking</h2>
<p>Now that all your nodes can be deployed successfully, we need to change the network interfaces on each node to make them usable for hosting the needed OpenStack components.</p>
<p>As described in the <a href="http://blog.naydenov.net/2015/11/deploying-openstack-on-maas-1-9-with-juju-network-setup/" target="_blank" data-slimstat="5">first post</a>, 3 of the nodes will host nova-compute units (with ntp and neutron-openvswitch as subordinates), and collocated ceph units. The remaining node will hosts neutron-gateway (with ntp as a subordinate), ceph-osd, and is also used for the Juju Controller. The rest of the OpenStack services are deployed inside LXD containers, distributed across the 4 nodes.</p>
<p>We can summarize each node’s connectivity requirements (i.e. to which subnet each NIC should be linked to and what IP address to use) in the following matrix:</p>
<table style="font-size: 50%; width: 100%; border-color: #000000;" border="1" cellspacing="0" cellpadding="5px">
<tbody>
<tr>
<td style="width: 20%; border-color: black; text-align: center; background-color: #bababa;">
<p><strong> Subnet, Space, VLAN / Node</strong></p>
</td>
<td style="width: 20%; border-color: #000000; text-align: center; background-color: #ffffff;"><strong>node-11</strong></td>
<td style="width: 20%; border-color: #000000; text-align: center; background-color: #ffffff;"><strong>node-12</strong></td>
<td style="width: 20%; border-color: #000000; text-align: center; background-color: #ffffff;"><strong>node-21</strong></td>
<td style="width: 20%; border-color: #000000; text-align: center; background-color: #ffffff;"><strong>node-22</strong></td>
</tr>
<tr>
<td style="width: 10%; border-color: #000000; vertical-align: middle; text-align: center; background-color: #ffffff;">
<p>subnet: <strong>10.14.0.0/20</strong></p>
<p>space: <strong>default</strong></p>
<p>VLAN: untagged(0)</p>
</td>
<td style="text-align: center;">
<p><strong>eth0: 10.14.0.111</strong></p>
<p><strong>eth1: 10.14.2.111</strong></p>
</td>
<td style="text-align: center;">
<p><strong>eth0: 10.14.0.112</strong></p>
<p><strong>eth1: 10.14.2.112</strong></p>
</td>
<td style="text-align: center;">
<p><strong>eth0: 10.14.1.121</strong></p>
<p><strong>eth1: 10.14.2.121</strong></p>
</td>
<td style="text-align: center;">
<p><strong>eth0: 10.14.1.122</strong></p>
<p><strong>eth1: 10.14.2.122</strong></p>
</td>
</tr>
<tr>
<td style="width: 10%; border-color: #000000; vertical-align: middle; text-align: center; background-color: #ffffff;">
<p>subnet: <strong>10.50.0.0/20</strong></p>
<p>space: <strong>public-api</strong></p>
<p>VLAN: 50</p>
</td>
<td style="text-align: center;">
<p><strong>eth0.50: 10.50.0.111</strong></p>
</td>
<td style="text-align: center;"><strong>eth0.50: 10.50.0.112</strong></td>
<td style="text-align: center;"><strong>eth0.50: 10.50.1.121</strong></td>
<td style="text-align: center;"><strong>eth0.50: 10.50.1.122</strong></td>
</tr>
<tr>
<td style="width: 10%; border-color: #000000; vertical-align: middle; text-align: center; background-color: #ffffff;">
<p>subnet: <strong>10.100.0.0/20</strong></p>
<p>space: <strong>internal-api</strong></p>
<p>VLAN: 100</p>
</td>
<td style="text-align: center;">
<p><strong>eth0.100: 10.100.0.111</strong></p>
</td>
<td style="text-align: center;"><strong>eth0.100: 10.100.0.112</strong></td>
<td style="text-align: center;"><strong>eth0.100: 10.100.1.121</strong></td>
<td style="text-align: center;"><strong>eth0.100: 10.100.1.122</strong></td>
</tr>
<tr>
<td style="width: 10%; border-color: #000000; vertical-align: middle; text-align: center; background-color: #ffffff;">
<p>subnet: <strong>10.150.0.0/20</strong></p>
<p>space: <strong>admin-api</strong></p>
<p>VLAN: 150</p>
</td>
<td style="text-align: center;">
<p><strong>eth0.150: 10.150.0.111</strong></p>
</td>
<td style="text-align: center;"><strong>eth0.150: </strong><strong>10.150.0.112</strong></td>
<td style="text-align: center;"><strong>eth0.150: 10.150.1.121</strong></td>
<td style="text-align: center;"><strong>eth0.150: 10.150.1.122</strong></td>
</tr>
<tr>
<td style="width: 10%; border-color: #000000; vertical-align: middle; text-align: center; background-color: #ffffff;">
<p>subnet: <strong>10.200.0.0/20</strong></p>
<p>space: <strong>storage-data</strong></p>
<p>VLAN: 200</p>
</td>
<td style="text-align: center;">
<p><strong>eth1.200: 10.200.0.111</strong></p>
</td>
<td style="text-align: center;"><strong>eth1.200: 10.200.0.112</strong></td>
<td style="text-align: center;"><strong>eth1.200: 10.200.1.121</strong></td>
<td style="text-align: center;"><strong>eth1.200: 10.200.1.122</strong></td>
</tr>
<tr>
<td style="width: 10%; border-color: #000000; vertical-align: middle; text-align: center; background-color: #ffffff;">
<p>subnet: <strong>10.250.0.0/20</strong></p>
<p>space: <strong>compute-data</strong></p>
<p>VLAN: 250</p>
</td>
<td style="text-align: center;"><strong>eth1.250: 10.250.0.111</strong></td>
<td style="text-align: center;"><strong>eth1.250: 10.250.0.112</strong></td>
<td style="text-align: center;"><strong>eth1.250: 10.250.1.121</strong></td>
<td style="text-align: center;"><strong>eth1.250: 10.250.1.122</strong></td>
</tr>
<tr>
<td style="width: 10%; border-color: #000000; vertical-align: middle; text-align: center; background-color: #ffffff;">
<p>subnet: <strong>10.30.0.0/20</strong></p>
<p>space: <strong>storage-cluster</strong></p>
<p>VLAN: 30</p>
</td>
<td style="text-align: center;"><strong>N/A</strong></td>
<td style="text-align: center;"><strong>eth1.30: 10.30.0.112</strong></td>
<td style="text-align: center;"><strong>eth1.30: 10.30.1.121</strong></td>
<td style="text-align: center;"><strong>eth1.30: 10.30.1.122</strong></td>
</tr>
<tr>
<td style="width: 10%; border-color: #000000; vertical-align: middle; text-align: center; background-color: #ffffff;">
<p>subnet: <strong>10.99.0.0/20</strong></p>
<p>space: <strong>compute-external</strong></p>
<p>VLAN: 99</p>
</td>
<td style="text-align: center;"><strong>eth1.99: unconfigured</strong></td>
<td style="text-align: center;"><strong>N/A</strong></td>
<td style="text-align: center;"><strong>N/A</strong></td>
<td style="text-align: center;"><strong>N/A</strong></td>
</tr>
</tbody>
</table>
<p>Since the I found some issues while using the web UI to configure node NICs, I recommend using the CLI instead for the remaining steps, which roughly are:</p>
<ul>
<li>Starting from the basic dual-NIC config, post-commissioning MAAS creates 2 physical NICs for each node.</li>
<li>Additionally, on each node we need to create as many VLAN NIC as specified above.</li>
<li>For node-11 in particular, we need the second NIC eth1.99 to be linked to VLAN 99 and subnet 10.99.0.0/20 in the “compute-external” space. This is required for OpenStack Neturon Gateway to work as expected. No need to assign an IP address, as Neutron will ignore it (i.e. leave eth1.99 unconfigured).</li>
<li>Finally, we need to link each NIC (physical or VLAN) to the subnet it needs to use and associate a static IP address for the NIC.<br>
<strong>NOTE:</strong> Using statically assigned IP addresses for each NIC vs. auto-assigned addresses is not required, but I’d like to have less gaps to fill in and more consistency across the board. </li>
</ul>
<p><em><strong>TIP:</strong> In case you need to later redo the network config from scratch, the easiest way I found is to simply <strong>re-commission all nodes</strong>, which will reset any existing NICs except for the physical ones discovered (again) during commissioning.</em></p>
<p>We can create a VLAN NIC on a node with the following CLI command (taking the node’s system ID, and the MAAS IDs for the VLAN and parent NIC):</p>
<p></p><!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdcc6e6a6843635615" class="crayon-syntax crayon-theme-classic crayon-font-sourcecodepro crayon-os-mac print-yes notranslate crayon-wrapped" data-settings=" minimize scroll-mouseover wrap" style="clear: none; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important; height: 18px !important; line-height: 18px !important; margin-top: -19px; display: none; z-index: 4;"><span class="crayon-title"></span>
<div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><div class="crayon-button crayon-nums-button crayon-pressed" title="Toggle Line Numbers"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-plain-button" title="Toggle Plain Code"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-wrap-button crayon-pressed" title="Toggle Line Wrap"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-expand-button" title="Expand Code" style="display: none;"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-copy-button" title="Copy"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-popup-button" title="Open Code In New Window"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div></div></div>
<div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;"></div>
<div class="crayon-plain-wrap"><textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="tab-size: 4; font-size: 12px !important; line-height: 15px !important; z-index: 0; opacity: 0; overflow: hidden;">$ maas 19-root interfaces create-vlan <node-id> vlan=<vlan-maas-id> parent=<nic-maas-id></textarea></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5b04cdcc6e6a6843635615-1" style="height: 15px;">1</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5b04cdcc6e6a6843635615-1">$ maas 19-root interfaces create-vlan <node-id> vlan=<vlan-maas-id> parent=<nic-maas-id></div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
<p></p>
<p><strong>NOTE:</strong> It’s confusing, but the “vlan=” argument expects to see the (database) ID of the VLAN (e.g. 5009 – all of these are >5000), <em>NOT</em> the VLAN “tag” (e.g. 200) as you might expect.</p>
<p>Unfortunately, we can’t use a prefixed reference for the <code>vlan</code> and <code>parent</code> arguments. It would’ve been a nicer experience, if the <code>create-vlan</code> CLI supported “vlan=vid:50” and “parent=name:eth0”. So we need to first list all VLANs in the “maas-management” fabric to get their IDs. And to do that, we need to also know the fabric ID. Once we have the VLAN IDs, we then need the IDs of both physical NICs of the node. To summarize the sequence of commands we need to run initially, in order to get all the VLAN IDs we need:</p>
<p></p><!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdcc6e6ac324868663" class="crayon-syntax crayon-theme-classic crayon-font-sourcecodepro crayon-os-mac print-yes notranslate crayon-wrapped" data-settings=" minimize scroll-mouseover wrap" style="clear: none; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important; height: 18px !important; line-height: 18px !important; margin-top: -19px; display: none; position: absolute; z-index: 2;"><span class="crayon-title"></span>
<div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><div class="crayon-button crayon-nums-button crayon-pressed" title="Toggle Line Numbers"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-plain-button" title="Toggle Plain Code"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-wrap-button crayon-pressed" title="Toggle Line Wrap"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-expand-button" title="Expand Code" style="display: none;"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-copy-button" title="Copy"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-popup-button" title="Open Code In New Window"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div></div></div>
<div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;"></div>
<div class="crayon-plain-wrap"><textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="tab-size: 4; font-size: 12px !important; line-height: 15px !important; z-index: 0; opacity: 0; overflow: hidden;">$ maas 19-root fabrics read
# let's assume "maas-management" fabric has ID=1
$ maas 19-root vlans read 1
# let's assume VLAN #50 has ID=5050, VLAN #100 has ID=5100, etc.</textarea></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5b04cdcc6e6ac324868663-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6ac324868663-2" style="height: 15px;">2</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6ac324868663-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6ac324868663-4" style="height: 15px;">4</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6ac324868663-5" style="height: 15px;">5</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5b04cdcc6e6ac324868663-1">$ maas 19-root fabrics read</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6ac324868663-2"># let's assume "maas-management" fabric has ID=1</div><div class="crayon-line" id="crayon-5b04cdcc6e6ac324868663-3"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6ac324868663-4">$ maas 19-root vlans read 1</div><div class="crayon-line" id="crayon-5b04cdcc6e6ac324868663-5"># let's assume VLAN #50 has ID=5050, VLAN #100 has ID=5100, etc.</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
<p></p>
<p>Once we have these, on each node we run one or more of the following commands to set up each needed VLAN NIC and assign a static IP to it:</p>
<p></p><!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdcc6e6b1888336126" class="crayon-syntax crayon-theme-classic crayon-font-sourcecodepro crayon-os-mac print-yes notranslate crayon-wrapped" data-settings=" minimize scroll-mouseover wrap" style="clear: none; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important; height: 18px !important; line-height: 18px !important; margin-top: -19px; display: none; position: absolute; z-index: 2;"><span class="crayon-title"></span>
<div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><div class="crayon-button crayon-nums-button crayon-pressed" title="Toggle Line Numbers"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-plain-button" title="Toggle Plain Code"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-wrap-button crayon-pressed" title="Toggle Line Wrap"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-expand-button" title="Expand Code" style="display: none;"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-copy-button" title="Copy"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-popup-button" title="Open Code In New Window"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div></div></div>
<div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;"></div>
<div class="crayon-plain-wrap"><textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="tab-size: 4; font-size: 12px !important; line-height: 15px !important; z-index: 0; opacity: 0; overflow: hidden;">$ maas 19-root interfaces read node-1344f864-afc3-11e5-b374-001a4b79bef8
# let's assume eth0 has ID=1000, eth0 has ID=2000
$ maas 19-root interfaces create-vlan node-1344f864-afc3-11e5-b374-001a4b79bef8 vlan=5050 parent=100
# creates the eth0.50 on the node, returning its ID, e.g. 1050
$ maas 19-root interface link-subnet node-1344f864-afc3-11e5-b374-001a4b79bef8 eth0.50 subnet=cidr:10.50.0.0/20 mode=static ip_address=10.50.0.111
# assign the static IP 10.50.0.111 to eth0.50 we just created</textarea></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5b04cdcc6e6b1888336126-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6b1888336126-2" style="height: 15px;">2</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6b1888336126-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6b1888336126-4" style="height: 15px;">4</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6b1888336126-5" style="height: 15px;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6b1888336126-6" style="height: 15px;">6</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6b1888336126-7" style="height: 30px;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6b1888336126-8" style="height: 15px;">8</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5b04cdcc6e6b1888336126-1">$ maas 19-root interfaces read node-1344f864-afc3-11e5-b374-001a4b79bef8</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6b1888336126-2"># let's assume eth0 has ID=1000, eth0 has ID=2000</div><div class="crayon-line" id="crayon-5b04cdcc6e6b1888336126-3"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6b1888336126-4">$ maas 19-root interfaces create-vlan node-1344f864-afc3-11e5-b374-001a4b79bef8 vlan=5050 parent=100</div><div class="crayon-line" id="crayon-5b04cdcc6e6b1888336126-5"># creates the eth0.50 on the node, returning its ID, e.g. 1050</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6b1888336126-6"> </div><div class="crayon-line" id="crayon-5b04cdcc6e6b1888336126-7">$ maas 19-root interface link-subnet node-1344f864-afc3-11e5-b374-001a4b79bef8 eth0.50 subnet=cidr:10.50.0.0/20 mode=static ip_address=10.50.0.111</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6b1888336126-8"># assign the static IP 10.50.0.111 to eth0.50 we just created</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0002 seconds] -->
<p></p>
<p>See how much nicer to use is the <code>link-subnet</code> command, allowing you to use “eth0.50” instead of the NIC ID (e.g. 1050), and similarly “cidr:10.50.0.0/20” for the subnet instead of its ID ?</p>
<p>Now we can use the CLI commands described above to configure each node’s NICs as required (see the table in the beginning of this section). For simplicity, in the commands below we’ll use variables like <code>$VLAN50_ID</code>, <code>$NODE11_ID</code>, <code>$NODE21_ETH0_ID</code>, and <code>$NODE22_ETH1_ID</code> to refer to any IDs we need to use. Those variables should make it easier to automate the steps using a script which pre-populates the IDs and the runs the steps.</p>
<h3>node-11</h3>
<p></p><!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdcc6e6b7260231004" class="crayon-syntax crayon-theme-classic crayon-font-sourcecodepro crayon-os-mac print-yes notranslate crayon-wrapped" data-settings=" minimize scroll-mouseover wrap" style="clear: none; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important; height: 18px !important; line-height: 18px !important; margin-top: -19px; display: none; position: absolute; z-index: 2;"><span class="crayon-title"></span>
<div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><div class="crayon-button crayon-nums-button crayon-pressed" title="Toggle Line Numbers"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-plain-button" title="Toggle Plain Code"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-wrap-button crayon-pressed" title="Toggle Line Wrap"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-expand-button" title="Expand Code" style="display: none;"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-copy-button" title="Copy"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-popup-button" title="Open Code In New Window"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div></div></div>
<div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;"></div>
<div class="crayon-plain-wrap"><textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="tab-size: 4; font-size: 12px !important; line-height: 15px !important; z-index: 0; opacity: 0; overflow: hidden;">$ maas 19-root interfaces create-vlan $NODE11_ID vlan=$VLAN50_ID parent=$NODE11_ETH0_ID
$ maas 19-root interface link-subnet $NODE11_ID eth0.50 subnet=cidr:10.50.0.0/20 mode=static ip=10.50.0.111
$ maas 19-root interfaces create-vlan $NODE11_ID vlan=$VLAN100_ID parent=$NODE11_ETH0_ID
$ maas 19-root interface link-subnet $NODE11_ID eth0.100 subnet=cidr:10.100.0.0/20 mode=static ip=10.100.0.111
$ maas 19-root interfaces create-vlan $NODE11_ID vlan=$VLAN150_ID parent=$NODE11_ETH0_ID
$ maas 19-root interface link-subnet $NODE11_ID eth0.150 subnet=cidr:10.150.0.0/20 mode=static ip=10.150.0.111
$ maas 19-root interfaces create-vlan $NODE11_ID vlan=$VLAN200_ID parent=$NODE11_ETH1_ID
$ maas 19-root interface link-subnet $NODE11_ID eth1.200 subnet=cidr:10.200.0.0/20 mode=static ip=10.200.0.111
$ maas 19-root interfaces create-vlan $NODE11_ID vlan=$VLAN250_ID parent=$NODE11_ETH1_ID
$ maas 19-root interface link-subnet $NODE11_ID eth1.250 subnet=cidr:10.250.0.0/20 mode=static ip=10.250.0.111
$ maas 19-root interfaces create-vlan $NODE11_ID vlan=$VLAN99_ID parent=$NODE11_ETH1_ID
$ maas 19-root interface link-subnet $NODE11_ID eth1.99 subnet=cidr:10.99.0.0/20 mode=static ip=10.99.0.111</textarea></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5b04cdcc6e6b7260231004-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6b7260231004-2" style="height: 30px;">2</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6b7260231004-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6b7260231004-4" style="height: 15px;">4</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6b7260231004-5" style="height: 30px;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6b7260231004-6" style="height: 15px;">6</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6b7260231004-7" style="height: 15px;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6b7260231004-8" style="height: 30px;">8</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6b7260231004-9" style="height: 15px;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6b7260231004-10" style="height: 15px;">10</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6b7260231004-11" style="height: 30px;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6b7260231004-12" style="height: 15px;">12</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6b7260231004-13" style="height: 15px;">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6b7260231004-14" style="height: 30px;">14</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6b7260231004-15" style="height: 15px;">15</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6b7260231004-16" style="height: 15px;">16</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6b7260231004-17" style="height: 30px;">17</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5b04cdcc6e6b7260231004-1">$ maas 19-root interfaces create-vlan $NODE11_ID vlan=$VLAN50_ID parent=$NODE11_ETH0_ID</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6b7260231004-2">$ maas 19-root interface link-subnet $NODE11_ID eth0.50 subnet=cidr:10.50.0.0/20 mode=static ip=10.50.0.111</div><div class="crayon-line" id="crayon-5b04cdcc6e6b7260231004-3"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6b7260231004-4">$ maas 19-root interfaces create-vlan $NODE11_ID vlan=$VLAN100_ID parent=$NODE11_ETH0_ID</div><div class="crayon-line" id="crayon-5b04cdcc6e6b7260231004-5">$ maas 19-root interface link-subnet $NODE11_ID eth0.100 subnet=cidr:10.100.0.0/20 mode=static ip=10.100.0.111</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6b7260231004-6"> </div><div class="crayon-line" id="crayon-5b04cdcc6e6b7260231004-7">$ maas 19-root interfaces create-vlan $NODE11_ID vlan=$VLAN150_ID parent=$NODE11_ETH0_ID</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6b7260231004-8">$ maas 19-root interface link-subnet $NODE11_ID eth0.150 subnet=cidr:10.150.0.0/20 mode=static ip=10.150.0.111</div><div class="crayon-line" id="crayon-5b04cdcc6e6b7260231004-9"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6b7260231004-10">$ maas 19-root interfaces create-vlan $NODE11_ID vlan=$VLAN200_ID parent=$NODE11_ETH1_ID</div><div class="crayon-line" id="crayon-5b04cdcc6e6b7260231004-11">$ maas 19-root interface link-subnet $NODE11_ID eth1.200 subnet=cidr:10.200.0.0/20 mode=static ip=10.200.0.111</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6b7260231004-12"> </div><div class="crayon-line" id="crayon-5b04cdcc6e6b7260231004-13">$ maas 19-root interfaces create-vlan $NODE11_ID vlan=$VLAN250_ID parent=$NODE11_ETH1_ID</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6b7260231004-14">$ maas 19-root interface link-subnet $NODE11_ID eth1.250 subnet=cidr:10.250.0.0/20 mode=static ip=10.250.0.111</div><div class="crayon-line" id="crayon-5b04cdcc6e6b7260231004-15"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6b7260231004-16">$ maas 19-root interfaces create-vlan $NODE11_ID vlan=$VLAN99_ID parent=$NODE11_ETH1_ID</div><div class="crayon-line" id="crayon-5b04cdcc6e6b7260231004-17">$ maas 19-root interface link-subnet $NODE11_ID eth1.99 subnet=cidr:10.99.0.0/20 mode=static ip=10.99.0.111</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0005 seconds] -->
<p></p>
<h3>node-12</h3>
<p></p><!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdcc6e6bc801586342" class="crayon-syntax crayon-theme-classic crayon-font-sourcecodepro crayon-os-mac print-yes notranslate crayon-wrapped" data-settings=" minimize scroll-mouseover wrap" style="clear: none; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important; height: 18px !important; line-height: 18px !important; margin-top: -19px; display: none; position: absolute; z-index: 2;"><span class="crayon-title"></span>
<div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><div class="crayon-button crayon-nums-button crayon-pressed" title="Toggle Line Numbers"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-plain-button" title="Toggle Plain Code"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-wrap-button crayon-pressed" title="Toggle Line Wrap"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-expand-button" title="Expand Code" style="display: none;"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-copy-button" title="Copy"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-popup-button" title="Open Code In New Window"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div></div></div>
<div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;"></div>
<div class="crayon-plain-wrap"><textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="tab-size: 4; font-size: 12px !important; line-height: 15px !important; z-index: 0; opacity: 0; overflow: hidden;">$ maas 19-root interfaces create-vlan $NODE12_ID vlan=$VLAN50_ID parent=$NODE12_ETH0_ID
$ maas 19-root interface link-subnet $NODE12_ID eth0.50 subnet=cidr:10.50.0.0/20 mode=static ip=10.50.0.112
$ maas 19-root interfaces create-vlan $NODE12_ID vlan=$VLAN100_ID parent=$NODE12_ETH0_ID
$ maas 19-root interface link-subnet $NODE12_ID eth0.100 subnet=cidr:10.100.0.0/20 mode=static ip=10.100.0.112
$ maas 19-root interfaces create-vlan $NODE12_ID vlan=$VLAN150_ID parent=$NODE12_ETH0_ID
$ maas 19-root interface link-subnet $NODE12_ID eth0.150 subnet=cidr:10.150.0.0/20 mode=static ip=10.150.0.112
$ maas 19-root interfaces create-vlan $NODE12_ID vlan=$VLAN200_ID parent=$NODE12_ETH1_ID
$ maas 19-root interface link-subnet $NODE12_ID eth1.200 subnet=cidr:10.200.0.0/20 mode=static ip=10.200.0.112
$ maas 19-root interfaces create-vlan $NODE12_ID vlan=$VLAN250_ID parent=$NODE12_ETH1_ID
$ maas 19-root interface link-subnet $NODE12_ID eth1.250 subnet=cidr:10.250.0.0/20 mode=static ip=10.250.0.112
$ maas 19-root interfaces create-vlan $NODE12_ID vlan=$VLAN30_ID parent=$NODE12_ETH1_ID
$ maas 19-root interface link-subnet $NODE12_ID eth1.30 subnet=cidr:10.30.0.0/20 mode=static ip=10.30.0.112</textarea></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5b04cdcc6e6bc801586342-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6bc801586342-2" style="height: 30px;">2</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6bc801586342-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6bc801586342-4" style="height: 15px;">4</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6bc801586342-5" style="height: 30px;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6bc801586342-6" style="height: 15px;">6</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6bc801586342-7" style="height: 15px;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6bc801586342-8" style="height: 30px;">8</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6bc801586342-9" style="height: 15px;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6bc801586342-10" style="height: 15px;">10</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6bc801586342-11" style="height: 30px;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6bc801586342-12" style="height: 15px;">12</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6bc801586342-13" style="height: 15px;">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6bc801586342-14" style="height: 30px;">14</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6bc801586342-15" style="height: 15px;">15</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6bc801586342-16" style="height: 15px;">16</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6bc801586342-17" style="height: 30px;">17</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5b04cdcc6e6bc801586342-1">$ maas 19-root interfaces create-vlan $NODE12_ID vlan=$VLAN50_ID parent=$NODE12_ETH0_ID</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6bc801586342-2">$ maas 19-root interface link-subnet $NODE12_ID eth0.50 subnet=cidr:10.50.0.0/20 mode=static ip=10.50.0.112</div><div class="crayon-line" id="crayon-5b04cdcc6e6bc801586342-3"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6bc801586342-4">$ maas 19-root interfaces create-vlan $NODE12_ID vlan=$VLAN100_ID parent=$NODE12_ETH0_ID</div><div class="crayon-line" id="crayon-5b04cdcc6e6bc801586342-5">$ maas 19-root interface link-subnet $NODE12_ID eth0.100 subnet=cidr:10.100.0.0/20 mode=static ip=10.100.0.112</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6bc801586342-6"> </div><div class="crayon-line" id="crayon-5b04cdcc6e6bc801586342-7">$ maas 19-root interfaces create-vlan $NODE12_ID vlan=$VLAN150_ID parent=$NODE12_ETH0_ID</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6bc801586342-8">$ maas 19-root interface link-subnet $NODE12_ID eth0.150 subnet=cidr:10.150.0.0/20 mode=static ip=10.150.0.112</div><div class="crayon-line" id="crayon-5b04cdcc6e6bc801586342-9"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6bc801586342-10">$ maas 19-root interfaces create-vlan $NODE12_ID vlan=$VLAN200_ID parent=$NODE12_ETH1_ID</div><div class="crayon-line" id="crayon-5b04cdcc6e6bc801586342-11">$ maas 19-root interface link-subnet $NODE12_ID eth1.200 subnet=cidr:10.200.0.0/20 mode=static ip=10.200.0.112</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6bc801586342-12"> </div><div class="crayon-line" id="crayon-5b04cdcc6e6bc801586342-13">$ maas 19-root interfaces create-vlan $NODE12_ID vlan=$VLAN250_ID parent=$NODE12_ETH1_ID</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6bc801586342-14">$ maas 19-root interface link-subnet $NODE12_ID eth1.250 subnet=cidr:10.250.0.0/20 mode=static ip=10.250.0.112</div><div class="crayon-line" id="crayon-5b04cdcc6e6bc801586342-15"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6bc801586342-16">$ maas 19-root interfaces create-vlan $NODE12_ID vlan=$VLAN30_ID parent=$NODE12_ETH1_ID</div><div class="crayon-line" id="crayon-5b04cdcc6e6bc801586342-17">$ maas 19-root interface link-subnet $NODE12_ID eth1.30 subnet=cidr:10.30.0.0/20 mode=static ip=10.30.0.112</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0005 seconds] -->
<p></p>
<h3>node-21</h3>
<p></p><!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdcc6e6c2195166777" class="crayon-syntax crayon-theme-classic crayon-font-sourcecodepro crayon-os-mac print-yes notranslate crayon-wrapped" data-settings=" minimize scroll-mouseover wrap" style="clear: none; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important; height: 18px !important; line-height: 18px !important; margin-top: -19px; display: none; position: absolute; z-index: 2;"><span class="crayon-title"></span>
<div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><div class="crayon-button crayon-nums-button crayon-pressed" title="Toggle Line Numbers"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-plain-button" title="Toggle Plain Code"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-wrap-button crayon-pressed" title="Toggle Line Wrap"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-expand-button" title="Expand Code" style="display: none;"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-copy-button" title="Copy"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-popup-button" title="Open Code In New Window"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div></div></div>
<div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;"></div>
<div class="crayon-plain-wrap"><textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="tab-size: 4; font-size: 12px !important; line-height: 15px !important; z-index: 0; opacity: 0; overflow: hidden;">$ maas 19-root interfaces create-vlan $NODE21_ID vlan=$VLAN50_ID parent=$NODE21_ETH0_ID
$ maas 19-root interface link-subnet $NODE21_ID eth0.50 subnet=cidr:10.50.0.0/20 mode=static ip=10.50.1.121
$ maas 19-root interfaces create-vlan $NODE21_ID vlan=$VLAN100_ID parent=$NODE21_ETH0_ID
$ maas 19-root interface link-subnet $NODE21_ID eth0.100 subnet=cidr:10.100.0.0/20 mode=static ip=10.100.1.121
$ maas 19-root interfaces create-vlan $NODE21_ID vlan=$VLAN150_ID parent=$NODE21_ETH0_ID
$ maas 19-root interface link-subnet $NODE21_ID eth0.150 subnet=cidr:10.150.0.0/20 mode=static ip=10.150.1.121
$ maas 19-root interfaces create-vlan $NODE21_ID vlan=$VLAN200_ID parent=$NODE21_ETH1_ID
$ maas 19-root interface link-subnet $NODE21_ID eth1.200 subnet=cidr:10.200.0.0/20 mode=static ip=10.200.1.121
$ maas 19-root interfaces create-vlan $NODE21_ID vlan=$VLAN250_ID parent=$NODE21_ETH1_ID
$ maas 19-root interface link-subnet $NODE21_ID eth1.250 subnet=cidr:10.250.0.0/20 mode=static ip=10.250.1.121
$ maas 19-root interfaces create-vlan $NODE21_ID vlan=$VLAN30_ID parent=$NODE21_ETH1_ID
$ maas 19-root interface link-subnet $NODE21_ID eth1.30 subnet=cidr:10.30.0.0/20 mode=static ip=10.30.1.121</textarea></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5b04cdcc6e6c2195166777-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c2195166777-2" style="height: 30px;">2</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c2195166777-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c2195166777-4" style="height: 15px;">4</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c2195166777-5" style="height: 30px;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c2195166777-6" style="height: 15px;">6</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c2195166777-7" style="height: 15px;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c2195166777-8" style="height: 30px;">8</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c2195166777-9" style="height: 15px;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c2195166777-10" style="height: 15px;">10</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c2195166777-11" style="height: 30px;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c2195166777-12" style="height: 15px;">12</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c2195166777-13" style="height: 15px;">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c2195166777-14" style="height: 30px;">14</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c2195166777-15" style="height: 15px;">15</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c2195166777-16" style="height: 15px;">16</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c2195166777-17" style="height: 30px;">17</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5b04cdcc6e6c2195166777-1">$ maas 19-root interfaces create-vlan $NODE21_ID vlan=$VLAN50_ID parent=$NODE21_ETH0_ID</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c2195166777-2">$ maas 19-root interface link-subnet $NODE21_ID eth0.50 subnet=cidr:10.50.0.0/20 mode=static ip=10.50.1.121</div><div class="crayon-line" id="crayon-5b04cdcc6e6c2195166777-3"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c2195166777-4">$ maas 19-root interfaces create-vlan $NODE21_ID vlan=$VLAN100_ID parent=$NODE21_ETH0_ID</div><div class="crayon-line" id="crayon-5b04cdcc6e6c2195166777-5">$ maas 19-root interface link-subnet $NODE21_ID eth0.100 subnet=cidr:10.100.0.0/20 mode=static ip=10.100.1.121</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c2195166777-6"> </div><div class="crayon-line" id="crayon-5b04cdcc6e6c2195166777-7">$ maas 19-root interfaces create-vlan $NODE21_ID vlan=$VLAN150_ID parent=$NODE21_ETH0_ID</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c2195166777-8">$ maas 19-root interface link-subnet $NODE21_ID eth0.150 subnet=cidr:10.150.0.0/20 mode=static ip=10.150.1.121</div><div class="crayon-line" id="crayon-5b04cdcc6e6c2195166777-9"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c2195166777-10">$ maas 19-root interfaces create-vlan $NODE21_ID vlan=$VLAN200_ID parent=$NODE21_ETH1_ID</div><div class="crayon-line" id="crayon-5b04cdcc6e6c2195166777-11">$ maas 19-root interface link-subnet $NODE21_ID eth1.200 subnet=cidr:10.200.0.0/20 mode=static ip=10.200.1.121</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c2195166777-12"> </div><div class="crayon-line" id="crayon-5b04cdcc6e6c2195166777-13">$ maas 19-root interfaces create-vlan $NODE21_ID vlan=$VLAN250_ID parent=$NODE21_ETH1_ID</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c2195166777-14">$ maas 19-root interface link-subnet $NODE21_ID eth1.250 subnet=cidr:10.250.0.0/20 mode=static ip=10.250.1.121</div><div class="crayon-line" id="crayon-5b04cdcc6e6c2195166777-15"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c2195166777-16">$ maas 19-root interfaces create-vlan $NODE21_ID vlan=$VLAN30_ID parent=$NODE21_ETH1_ID</div><div class="crayon-line" id="crayon-5b04cdcc6e6c2195166777-17">$ maas 19-root interface link-subnet $NODE21_ID eth1.30 subnet=cidr:10.30.0.0/20 mode=static ip=10.30.1.121</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0005 seconds] -->
<p></p>
<h3>node-22</h3>
<p></p><!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdcc6e6c7454491137" class="crayon-syntax crayon-theme-classic crayon-font-sourcecodepro crayon-os-mac print-yes notranslate crayon-wrapped" data-settings=" minimize scroll-mouseover wrap" style="clear: none; font-size: 12px !important; line-height: 15px !important; height: auto;">
<div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important; height: 18px !important; line-height: 18px !important; margin-top: -19px; display: none; position: absolute; z-index: 2;"><span class="crayon-title"></span>
<div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><div class="crayon-button crayon-nums-button crayon-pressed" title="Toggle Line Numbers"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-plain-button" title="Toggle Plain Code"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-wrap-button crayon-pressed" title="Toggle Line Wrap"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-expand-button" title="Expand Code" style="display: none;"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-copy-button" title="Copy"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div><div class="crayon-button crayon-popup-button" title="Open Code In New Window"><div class="crayon-button-icon" style="background-size: 48px 128px; background-image: url("http://blog.naydenov.net/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/[email protected]");"></div></div></div></div>
<div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;"></div>
<div class="crayon-plain-wrap"><textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="tab-size: 4; font-size: 12px !important; line-height: 15px !important; z-index: 0; opacity: 0; overflow: hidden;">$ maas 19-root interfaces create-vlan $NODE22_ID vlan=$VLAN50_ID parent=$NODE22_ETH0_ID
$ maas 19-root interface link-subnet $NODE22_ID eth0.50 subnet=cidr:10.50.0.0/20 mode=static ip=10.50.1.122
$ maas 19-root interfaces create-vlan $NODE22_ID vlan=$VLAN100_ID parent=$NODE22_ETH0_ID
$ maas 19-root interface link-subnet $NODE22_ID eth0.100 subnet=cidr:10.100.0.0/20 mode=static ip=10.100.1.122
$ maas 19-root interfaces create-vlan $NODE22_ID vlan=$VLAN150_ID parent=$NODE22_ETH0_ID
$ maas 19-root interface link-subnet $NODE22_ID eth0.150 subnet=cidr:10.150.0.0/20 mode=static ip=10.150.1.122
$ maas 19-root interfaces create-vlan $NODE22_ID vlan=$VLAN200_ID parent=$NODE22_ETH1_ID
$ maas 19-root interface link-subnet $NODE22_ID eth1.200 subnet=cidr:10.200.0.0/20 mode=static ip=10.200.1.122
$ maas 19-root interfaces create-vlan $NODE22_ID vlan=$VLAN250_ID parent=$NODE22_ETH1_ID
$ maas 19-root interface link-subnet $NODE22_ID eth1.250 subnet=cidr:10.250.0.0/20 mode=static ip=10.250.1.122
$ maas 19-root interfaces create-vlan $NODE22_ID vlan=$VLAN30_ID parent=$NODE22_ETH1_ID
$ maas 19-root interface link-subnet $NODE22_ID eth1.30 subnet=cidr:10.30.0.0/20 mode=static ip=10.30.1.122</textarea></div>
<div class="crayon-main" style="position: relative; z-index: 1; overflow: hidden;">
<table class="crayon-table" style="">
<tbody><tr class="crayon-row">
<td class="crayon-nums " data-settings="show">
<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-5b04cdcc6e6c7454491137-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c7454491137-2" style="height: 30px;">2</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c7454491137-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c7454491137-4" style="height: 15px;">4</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c7454491137-5" style="height: 30px;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c7454491137-6" style="height: 15px;">6</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c7454491137-7" style="height: 15px;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c7454491137-8" style="height: 30px;">8</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c7454491137-9" style="height: 15px;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c7454491137-10" style="height: 15px;">10</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c7454491137-11" style="height: 30px;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c7454491137-12" style="height: 15px;">12</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c7454491137-13" style="height: 15px;">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c7454491137-14" style="height: 30px;">14</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c7454491137-15" style="height: 15px;">15</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdcc6e6c7454491137-16" style="height: 15px;">16</div><div class="crayon-num" data-line="crayon-5b04cdcc6e6c7454491137-17" style="height: 30px;">17</div></div>
</td>
<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-5b04cdcc6e6c7454491137-1">$ maas 19-root interfaces create-vlan $NODE22_ID vlan=$VLAN50_ID parent=$NODE22_ETH0_ID</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c7454491137-2">$ maas 19-root interface link-subnet $NODE22_ID eth0.50 subnet=cidr:10.50.0.0/20 mode=static ip=10.50.1.122</div><div class="crayon-line" id="crayon-5b04cdcc6e6c7454491137-3"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c7454491137-4">$ maas 19-root interfaces create-vlan $NODE22_ID vlan=$VLAN100_ID parent=$NODE22_ETH0_ID</div><div class="crayon-line" id="crayon-5b04cdcc6e6c7454491137-5">$ maas 19-root interface link-subnet $NODE22_ID eth0.100 subnet=cidr:10.100.0.0/20 mode=static ip=10.100.1.122</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c7454491137-6"> </div><div class="crayon-line" id="crayon-5b04cdcc6e6c7454491137-7">$ maas 19-root interfaces create-vlan $NODE22_ID vlan=$VLAN150_ID parent=$NODE22_ETH0_ID</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c7454491137-8">$ maas 19-root interface link-subnet $NODE22_ID eth0.150 subnet=cidr:10.150.0.0/20 mode=static ip=10.150.1.122</div><div class="crayon-line" id="crayon-5b04cdcc6e6c7454491137-9"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c7454491137-10">$ maas 19-root interfaces create-vlan $NODE22_ID vlan=$VLAN200_ID parent=$NODE22_ETH1_ID</div><div class="crayon-line" id="crayon-5b04cdcc6e6c7454491137-11">$ maas 19-root interface link-subnet $NODE22_ID eth1.200 subnet=cidr:10.200.0.0/20 mode=static ip=10.200.1.122</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c7454491137-12"> </div><div class="crayon-line" id="crayon-5b04cdcc6e6c7454491137-13">$ maas 19-root interfaces create-vlan $NODE22_ID vlan=$VLAN250_ID parent=$NODE22_ETH1_ID</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c7454491137-14">$ maas 19-root interface link-subnet $NODE22_ID eth1.250 subnet=cidr:10.250.0.0/20 mode=static ip=10.250.1.122</div><div class="crayon-line" id="crayon-5b04cdcc6e6c7454491137-15"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdcc6e6c7454491137-16">$ maas 19-root interfaces create-vlan $NODE22_ID vlan=$VLAN30_ID parent=$NODE22_ETH1_ID</div><div class="crayon-line" id="crayon-5b04cdcc6e6c7454491137-17">$ maas 19-root interface link-subnet $NODE22_ID eth1.30 subnet=cidr:10.30.0.0/20 mode=static ip=10.30.1.122</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0005 seconds] -->
<p></p>
<p>We can verify the steps works by listing all NICs of each node with <code>$ maas 19-root interfaces read $NODE##_ID</code>, or with a quick look in the web UI.</p>
<h2>Next Steps: <a href="http://blog.naydenov.net/2016/06/advanced-networking-deploying-openstack-on-maas-1-9-with-juju/" data-slimstat="5">Advanced networking with Juju (on MAAS)</a></h2>
<p><em>Whew…</em> quite a few steps needed to configure MAAS nodes for complex networking scenarios. Automating those with scripts seems the obvious solution, and in fact I’m working on a generalized solution, which I’ll post about soon, when it’s in a usable state. </p>
<p>We now have the nodes configured the way we want them to be, in the following post we’ll take a deeper look into how to orchestrate the deployment of OpenStack on this MAAS with Juju. You’ll have a brief overview of the advanced networking features available in Juju 2.0.1 <span style="color: #000000;">(released in October, 2016)</span>. <strong>Stay tuned, and thanks for reading so far! <img draggable="false" class="emoji" alt="🙂" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/1f642.svg"></strong></p>
<p>Convenient links to all articles in the series:</p>
<ol>
<li><a href="http://blog.naydenov.net/2015/11/deploying-openstack-on-maas-1-9-with-juju-network-setup/" data-slimstat="5"><strong>Introduction</strong></a></li>
<li><a href="http://blog.naydenov.net/2015/11/deploying-openstack-on-maas-1-9-with-juju-hardware-setup/" data-slimstat="5"><strong>Hardware Setup</strong></a></li>
<li><a href="http://blog.naydenov.net/2016/01/maas-setup-deploying-openstack-on-maas-1-9-with-juju/" data-slimstat="5"><strong>MAAS Setup</strong></a></li>
<li>Nodes Networking (this one)</li>
<li><a href="http://blog.naydenov.net/2016/06/advanced-networking-deploying-openstack-on-maas-1-9-with-juju/" data-slimstat="5"><strong>Advanced Networking</strong></a></li>
<li><a href="http://blog.naydenov.net/2016/11/finale-openstack-deployed-on-maas-with-juju/" data-slimstat="5"><strong>Finale</strong></a></li>
</ol>
<div class="addtoany_share_save_container addtoany_content addtoany_content_bottom"><div class="a2a_kit a2a_kit_size_16 addtoany_list" data-a2a-url="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/" data-a2a-title="Nodes Networking: Deploying OpenStack on MAAS 1.9+ with Juju" style="line-height: 16px;"><a class="a2a_button_facebook" href="http://blog.naydenov.net/#facebook" title="Facebook" rel="nofollow noopener" target="_blank" data-slimstat="5"><span class="a2a_svg a2a_s__default a2a_s_facebook" style="background-color: rgb(59, 89, 152); width: 16px; line-height: 16px; height: 16px; background-size: 16px; border-radius: 2px;"><svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#FFF" d="M17.78 27.5V17.008h3.522l.527-4.09h-4.05v-2.61c0-1.182.33-1.99 2.023-1.99h2.166V4.66c-.375-.05-1.66-.16-3.155-.16-3.123 0-5.26 1.905-5.26 5.405v3.016h-3.53v4.09h3.53V27.5h4.223z"></path></svg></span><span class="a2a_label">Facebook</span></a><a class="a2a_button_twitter" href="http://blog.naydenov.net/#twitter" title="Twitter" rel="nofollow noopener" target="_blank" data-slimstat="5"><span class="a2a_svg a2a_s__default a2a_s_twitter" style="background-color: rgb(85, 172, 238); width: 16px; line-height: 16px; height: 16px; background-size: 16px; border-radius: 2px;"><svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#FFF" d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z"></path></svg></span><span class="a2a_label">Twitter</span></a><a class="a2a_button_google_plus" href="http://blog.naydenov.net/#google_plus" title="Google+" rel="nofollow noopener" target="_blank" data-slimstat="5"><span class="a2a_svg a2a_s__default a2a_s_google_plus" style="background-color: rgb(221, 75, 57); width: 16px; line-height: 16px; height: 16px; background-size: 16px; border-radius: 2px;"><svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M27 15h-2v-2h-2v2h-2v2h2v2h2v-2h2m-15-2v2.4h3.97c-.16 1.03-1.2 3.02-3.97 3.02-2.39 0-4.34-1.98-4.34-4.42s1.95-4.42 4.34-4.42c1.36 0 2.27.58 2.79 1.08l1.9-1.83C15.47 9.69 13.89 9 12 9c-3.87 0-7 3.13-7 7s3.13 7 7 7c4.04 0 6.72-2.84 6.72-6.84 0-.46-.05-.81-.11-1.16H12z" fill="#FFF"></path></svg></span><span class="a2a_label">Google+</span></a><a class="a2a_button_reddit" href="http://blog.naydenov.net/#reddit" title="Reddit" rel="nofollow noopener" target="_blank" data-slimstat="5"><span class="a2a_svg a2a_s__default a2a_s_reddit" style="background-color: rgb(255, 69, 0); width: 16px; line-height: 16px; height: 16px; background-size: 16px; border-radius: 2px;"><svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#fff"></path></svg></span><span class="a2a_label">Reddit</span></a><a class="a2a_button_stumbleupon" href="http://blog.naydenov.net/#stumbleupon" title="StumbleUpon" rel="nofollow noopener" target="_blank" data-slimstat="5"><span class="a2a_svg a2a_s__default a2a_s_stumbleupon" style="background-color: rgb(239, 78, 35); width: 16px; line-height: 16px; height: 16px; background-size: 16px; border-radius: 2px;"><svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#FFF" d="M16.97 14.245l1.25.583 1.865-.557v-1.29A4.088 4.088 0 0 0 16 9.01a4.089 4.089 0 0 0-4.085 3.943v5.912a.969.969 0 0 1-1.937 0V16.36H6.846v2.538a4.093 4.093 0 0 0 4.092 4.093c2.242 0 4.06-1.8 4.09-4.03l.005-5.84a.97.97 0 0 1 1.94 0v1.127h-.004zm5.05 2.114v2.62a.97.97 0 1 1-1.938 0v-2.57l-1.864.555-1.25-.583v2.552a4.093 4.093 0 0 0 8.186-.036v-2.54H22.02z"></path></svg></span><span class="a2a_label">StumbleUpon</span></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=http%3A%2F%2Fblog.naydenov.net%2F2016%2F01%2Fnodes-networking-deploying-openstack-on-maas-1-9-with-juju%2F&title=Nodes%20Networking%3A%20Deploying%20OpenStack%20on%20MAAS%201.9%2B%20with%20Juju" data-slimstat="5"><img src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/favicon.png" alt="Share"></a></div></div>
<div class="clear"></div>
</div>
<div class="entry-meta">
<span class="meta-prep meta-prep-author">Posted on</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/" title="20:53" rel="bookmark" data-slimstat="5"><span class="entry-date">January 31, 2016</span></a> <span class="meta-sep">by</span> <span class="author vcard"><a class="url fn n" href="http://blog.naydenov.net/author/dimitern/" title="View all posts by dimitern" rel="author" data-slimstat="5">dimitern</a></span>. This entry was posted in <a href="http://blog.naydenov.net/category/juju/" rel="category tag" data-slimstat="5">Juju</a>, <a href="http://blog.naydenov.net/category/ubuntu/" rel="category tag" data-slimstat="5">Ubuntu</a> and tagged <a href="http://blog.naydenov.net/tag/juju-2/" rel="tag" data-slimstat="5">juju</a>, <a href="http://blog.naydenov.net/tag/maas/" rel="tag" data-slimstat="5">maas</a>, <a href="http://blog.naydenov.net/tag/networking/" rel="tag" data-slimstat="5">networking</a>, <a href="http://blog.naydenov.net/tag/openstack/" rel="tag" data-slimstat="5">openstack</a>. Bookmark the <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/" title="Permalink to Nodes Networking: Deploying OpenStack on MAAS 1.9+ with Juju" rel="bookmark" data-slimstat="5">permalink</a>.
</div>
<div class="clear"></div>
</div><!-- .post -->
<div class="linebreak"></div>
<div id="nav-below" class="navigation">
<div class="nav-previous"><a href="http://blog.naydenov.net/2016/01/maas-setup-deploying-openstack-on-maas-1-9-with-juju/" rel="prev" data-slimstat="5"><span class="meta-nav">«</span> MAAS Setup: Deploying OpenStack on MAAS 1.9+ with Juju</a></div>
<div class="nav-next"><a href="http://blog.naydenov.net/2016/06/advanced-networking-deploying-openstack-on-maas-1-9-with-juju/" rel="next" data-slimstat="5">Advanced Networking: Deploying OpenStack on MAAS 1.9+ with Juju <span class="meta-nav">»</span></a></div>
</div>
<div id="comments">
<div id="comments-list" class="comments">
<h3><span>41</span> Comments</h3>
<div id="comments-nav-above" class="comments-navigation">
</div>
<li id="comment-4289" class="comment even thread-even depth-1">
<div class="comment-author vcard">
<img alt="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/a73e954ea8355defd2ef34f43a249333.jpg" srcset="http://1.gravatar.com/avatar/a73e954ea8355defd2ef34f43a249333?s=96&r=g 2x" class="avatar avatar-48 photo" height="48" width="48"> <div class="fn">Tsvetin Vasilev</div> </div>
<div class="comment-meta">March 11, 2016 - 11:46 <span class="meta-sep">|</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/#comment-4289" title="Permalink to this comment" data-slimstat="5">Permalink</a></div>
<div class="clear"></div>
<div class="comment-body"><p>Hi Dimiter,</p>
<p>It is very interesting article but it is still unclear for me how that env will be integrated with Openstack?</p>
<p>Configuring all the networks described what will be our benefit at the end? Is there a way to push openstack using these via juju because now looks like when I deploy the openstack charms they’re going to use first available network, do we need to create manually some ovs bridges in order to utilize maas configured network?<br>
Is there a way to instruct juju what network shall be used, for example if I have:<br>
1. Maas server with two networks 192.168.0.0/24(eth0) and 10.0.0.0/24(eth1) both set managed with DHCP & DNS enabled<br>
2. Juju server with one addapter in 10.0.0.0<br>
3. openstack controller node again with one adapter in 10.0.0.0<br>
4. compute node connected to both 192.168.0.0 and 10.0.0.0<br>
When I start deploying juju it brings up juju-br0 on 10.0.0.0 network on 2 & 3 but when it comes to the compute node when both networks are available it try to utilize 192.168.0.0. for juju-br0 and that create problems. I tried to set 192.168.0.0 to unmanaged state (without dns/dhcp) or even to delete it and add it afterwards but I hit exactly the same result. Looks like for some reason juju decide to use that network for its activities instead of 10.0.0.0 as on all the other nodes.<br>
May be there is a way how to specify what network/adapter shall be used?</p>
<p>Kind regards,<br>
Tsvetin</p>
</div>
<div class="reply">
<a rel="nofollow" class="comment-reply-link" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/?replytocom=4289#respond" onclick="return addComment.moveForm( "comment-4289", "4289", "respond", "404" )" aria-label="Reply to Tsvetin Vasilev" data-slimstat="5">Reply</a> </div>
<ul class="children">
<li id="comment-4318" class="comment byuser comment-author-dimitern bypostauthor odd alt depth-2">
<div class="comment-author vcard">
<img alt="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/6889e0065cf206ab0e4b3873576b5026.png" srcset="http://0.gravatar.com/avatar/6889e0065cf206ab0e4b3873576b5026?s=96&r=g 2x" class="avatar avatar-48 photo" height="48" width="48"> <div class="fn">dimitern</div> </div>
<div class="comment-meta">March 14, 2016 - 19:58 <span class="meta-sep">|</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/#comment-4318" title="Permalink to this comment" data-slimstat="5">Permalink</a></div>
<div class="clear"></div>
<div class="comment-body"><p>Hi Tsvetin,</p>
<p>I’ve been crazily busy lately, so I didn’t have time to reply earlier. </p>
<p>So, a short answer: the next post(s) will describe exactly the details you’re asking about – i.e. how Juju can use and manage the described MAAS setup to deploy components of OpenStack to the machines / containers they need to go to, including setting up a multi-NIC network config on the machines / containers.</p>
<p>Right now the plan is to finish the bulk of the feature work for Juju 2.0 by the end of this month, including the enhanced networking features.<br>
I’ll post updates with a lot more details once the mentioned features are usable.</p>
<p>Thanks!<br>
Dimiter</p>
</div>
<div class="reply">
<a rel="nofollow" class="comment-reply-link" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/?replytocom=4318#respond" onclick="return addComment.moveForm( "comment-4318", "4318", "respond", "404" )" aria-label="Reply to dimitern" data-slimstat="5">Reply</a> </div>
<ul class="children">
<li id="comment-4345" class="comment even depth-3">
<div class="comment-author vcard">
<img alt="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/a73e954ea8355defd2ef34f43a249333.jpg" srcset="http://1.gravatar.com/avatar/a73e954ea8355defd2ef34f43a249333?s=96&r=g 2x" class="avatar avatar-48 photo" height="48" width="48"> <div class="fn">Tsvetin Vasilev</div> </div>
<div class="comment-meta">March 17, 2016 - 10:49 <span class="meta-sep">|</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/#comment-4345" title="Permalink to this comment" data-slimstat="5">Permalink</a></div>
<div class="clear"></div>
<div class="comment-body"><p>Thanks a lot Dimiter! </p>
<p>Will wait for your new posts with great interest</p>
<p>BTW, I think would be useful if those posts/docs are somehow attached to official juju/maas/ubuntu page, they have lot of detailed info what is not well described in the official docs (there are very-very basic use cases and almost no info about the openstack on top of juju/maas )</p>
<p>Thanks a lot,<br>
Tsvetin</p>
</div>
<div class="reply">
<a rel="nofollow" class="comment-reply-link" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/?replytocom=4345#respond" onclick="return addComment.moveForm( "comment-4345", "4345", "respond", "404" )" aria-label="Reply to Tsvetin Vasilev" data-slimstat="5">Reply</a> </div>
</li><!-- #comment-## -->
</ul><!-- .children -->
</li><!-- #comment-## -->
</ul><!-- .children -->
</li><!-- #comment-## -->
<li id="comment-4537" class="comment odd alt thread-odd thread-alt depth-1">
<div class="comment-author vcard">
<img alt="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/c570c1b5ac52747ca8fb0c9e31bfdda2.jpg" srcset="http://0.gravatar.com/avatar/c570c1b5ac52747ca8fb0c9e31bfdda2?s=96&r=g 2x" class="avatar avatar-48 photo" height="48" width="48"> <div class="fn"><a href="http://arctoslabs.com/" rel="external nofollow" class="url" data-slimstat="5">David Gustavsson</a></div> </div>
<div class="comment-meta">April 27, 2016 - 22:11 <span class="meta-sep">|</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/#comment-4537" title="Permalink to this comment" data-slimstat="5">Permalink</a></div>
<div class="clear"></div>
<div class="comment-body"><p>Hi Dimiter<br>
Thanks for some great posts!<br>
I bit curious when you will publish the post about Advanced networking? Both Juju 2.0 and MAAS 2.0 is on the way and things will change a lot compared to previous versions. Will you update your posts with the 2.0 versions?<br>
Thanks again!<br>
David</p>
</div>
<div class="reply">
<a rel="nofollow" class="comment-reply-link" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/?replytocom=4537#respond" onclick="return addComment.moveForm( "comment-4537", "4537", "respond", "404" )" aria-label="Reply to David Gustavsson" data-slimstat="5">Reply</a> </div>
<ul class="children">
<li id="comment-4539" class="comment byuser comment-author-dimitern bypostauthor even depth-2">
<div class="comment-author vcard">
<img alt="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/6889e0065cf206ab0e4b3873576b5026.png" srcset="http://0.gravatar.com/avatar/6889e0065cf206ab0e4b3873576b5026?s=96&r=g 2x" class="avatar avatar-48 photo" height="48" width="48"> <div class="fn">dimitern</div> </div>
<div class="comment-meta">April 28, 2016 - 08:59 <span class="meta-sep">|</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/#comment-4539" title="Permalink to this comment" data-slimstat="5">Permalink</a></div>
<div class="clear"></div>
<div class="comment-body"><p>Thanks David!<br>
I will post the last 2 articles in the series soon, not sure when as we’re pretty busy around the 2.0 release of Juju.<br>
So once it’s out, I’ll have some time for new posts.<br>
I plan later to post updates to outline the differences between Juju 1.25 and 2.0 on MAAS 1.9 and 2.0.</p>
</div>
<div class="reply">
<a rel="nofollow" class="comment-reply-link" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/?replytocom=4539#respond" onclick="return addComment.moveForm( "comment-4539", "4539", "respond", "404" )" aria-label="Reply to dimitern" data-slimstat="5">Reply</a> </div>
<ul class="children">
<li id="comment-4545" class="comment odd alt depth-3">
<div class="comment-author vcard">
<img alt="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/3a1d0331171e9d2fd43eb66557903694.jpg" srcset="http://0.gravatar.com/avatar/3a1d0331171e9d2fd43eb66557903694?s=96&r=g 2x" class="avatar avatar-48 photo" height="48" width="48"> <div class="fn">Johan</div> </div>
<div class="comment-meta">April 29, 2016 - 22:19 <span class="meta-sep">|</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/#comment-4545" title="Permalink to this comment" data-slimstat="5">Permalink</a></div>
<div class="clear"></div>
<div class="comment-body"><p>Looking forward to the next two articles in this series and the differences between Juju 1.25 and 2.0 and MAAS 1.9 and 2.0. We are currently setting up a test environment for Juju and MAAS. Thanks for your hard work <img draggable="false" class="emoji" alt="🙂" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/1f642.svg"></p>
</div>
<div class="reply">
<a rel="nofollow" class="comment-reply-link" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/?replytocom=4545#respond" onclick="return addComment.moveForm( "comment-4545", "4545", "respond", "404" )" aria-label="Reply to Johan" data-slimstat="5">Reply</a> </div>
</li><!-- #comment-## -->
</ul><!-- .children -->
</li><!-- #comment-## -->
</ul><!-- .children -->
</li><!-- #comment-## -->
<li id="comment-4559" class="comment even thread-even depth-1">
<div class="comment-author vcard">
<img alt="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/c570c1b5ac52747ca8fb0c9e31bfdda2.jpg" srcset="http://0.gravatar.com/avatar/c570c1b5ac52747ca8fb0c9e31bfdda2?s=96&r=g 2x" class="avatar avatar-48 photo" height="48" width="48"> <div class="fn"><a href="http://arctoslabs.com/" rel="external nofollow" class="url" data-slimstat="5">David Gustavsson</a></div> </div>
<div class="comment-meta">May 2, 2016 - 12:53 <span class="meta-sep">|</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/#comment-4559" title="Permalink to this comment" data-slimstat="5">Permalink</a></div>
<div class="clear"></div>
<div class="comment-body"><p>Hi Dimiter</p>
<p>I’ve setup a system according to your posts and have made attempts to install OpenStack but run into the following two issues:</p>
<p>1. When using multiple networks, as in the setup, and deploying LXC containers the containers are stuck in pending state because there is no route to one of the subnets (10.100.0.111). How can I configure the LXC to use 10.14.0.111 instead? A workaround to use I did was to put all the subnets for the nodes as unconfigured but then I got stuck on issue #2.</p>
<p>+ printf Attempt 5 to download tools from %s…\n <a href="https://10.100.0.111:17070/tools/1.25.5-trusty-amd64" rel="nofollow" data-slimstat="5">https://10.100.0.111:17070/tools/1.25.5-trusty-amd64</a><br>
Attempt 5 to download tools from <a href="https://10.100.0.111:17070/tools/1.25.5-trusty-amd64" rel="nofollow" data-slimstat="5">https://10.100.0.111:17070/tools/1.25.5-trusty-amd64</a>…<br>
+ curl -sSfw tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s –noproxy * –insecure -o /var/lib/juju/tools/1.25.5-trusty-amd64/tools.tar.gz <a href="https://10.100.0.111:17070/tools/1.25.5-trusty-amd64" rel="nofollow" data-slimstat="5">https://10.100.0.111:17070/tools/1.25.5-trusty-amd64</a><br>
curl: (7) Failed to connect to 10.100.0.111 port 17070: Connection timed out</p>
<p>2. When I try to install the openstack-base charm using juju i get the following error for keystone:<br>
unit-keystone-0[914]: 2016-05-02 08:16:48 ERROR unit.keystone/0.juju-log server.go:268 FATAL ERROR: Could not determine OpenStack codename for version 8.1 </p>
<p>Thanks in advance!<br>
David</p>
</div>
<div class="reply">
<a rel="nofollow" class="comment-reply-link" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/?replytocom=4559#respond" onclick="return addComment.moveForm( "comment-4559", "4559", "respond", "404" )" aria-label="Reply to David Gustavsson" data-slimstat="5">Reply</a> </div>
<ul class="children">
<li id="comment-4569" class="comment byuser comment-author-dimitern bypostauthor odd alt depth-2">
<div class="comment-author vcard">
<img alt="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/6889e0065cf206ab0e4b3873576b5026.png" srcset="http://0.gravatar.com/avatar/6889e0065cf206ab0e4b3873576b5026?s=96&r=g 2x" class="avatar avatar-48 photo" height="48" width="48"> <div class="fn">dimitern</div> </div>
<div class="comment-meta">May 4, 2016 - 09:45 <span class="meta-sep">|</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/#comment-4569" title="Permalink to this comment" data-slimstat="5">Permalink</a></div>
<div class="clear"></div>
<div class="comment-body"><p>Hi David,</p>
<p>With Juju 1.25 the options are limited, Juju 2.0 supports multi-NIC containers on MAAS (each container gets provisioned with as many NICs as its host, which in turn gets multiple bridges created for that to work).<br>
Juju 1.25 only creates a single bridge. Can you please file a bug with the issue #1 you’re having, and attach the contents of /etc/network/interfaces on the host and the container, also /var/log/juju/machine-0.log will be useful.<br>
About issue #2, I suspect it might be because you’re not using xenial for that machine and the charm cannot find the expected packages to install?</p>
<p>Hope this helps,<br>
Dimiter</p>
</div>
<div class="reply">
<a rel="nofollow" class="comment-reply-link" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/?replytocom=4569#respond" onclick="return addComment.moveForm( "comment-4569", "4569", "respond", "404" )" aria-label="Reply to dimitern" data-slimstat="5">Reply</a> </div>
<ul class="children">
<li id="comment-4571" class="comment even depth-3">
<div class="comment-author vcard">
<img alt="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/c570c1b5ac52747ca8fb0c9e31bfdda2.jpg" srcset="http://0.gravatar.com/avatar/c570c1b5ac52747ca8fb0c9e31bfdda2?s=96&r=g 2x" class="avatar avatar-48 photo" height="48" width="48"> <div class="fn"><a href="http://arctoslabs.com/" rel="external nofollow" class="url" data-slimstat="5">David Gustavsson</a></div> </div>
<div class="comment-meta">May 4, 2016 - 11:10 <span class="meta-sep">|</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/#comment-4571" title="Permalink to this comment" data-slimstat="5">Permalink</a></div>
<div class="clear"></div>
<div class="comment-body"><p>Thanks Dimiter!<br>
Please reply with a link where I can submit the bug.</p>
<p>Regarding issue #2: There is a new update of openstack-base charm, version 41, that solves this issue and which I’ve verified.</p>
<p>BTW: when will final releases of Juju 2.0 and MAAS 2.0 be available? Just beta versions available which I’ve tried but ran into some strange issues.</p>
<p>Regards,<br>
David</p>
</div>
<div class="reply">
<a rel="nofollow" class="comment-reply-link" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/?replytocom=4571#respond" onclick="return addComment.moveForm( "comment-4571", "4571", "respond", "404" )" aria-label="Reply to David Gustavsson" data-slimstat="5">Reply</a> </div>
<ul class="children">
<li id="comment-4572" class="comment byuser comment-author-dimitern bypostauthor odd alt depth-4">
<div class="comment-author vcard">
<img alt="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/6889e0065cf206ab0e4b3873576b5026.png" srcset="http://0.gravatar.com/avatar/6889e0065cf206ab0e4b3873576b5026?s=96&r=g 2x" class="avatar avatar-48 photo" height="48" width="48"> <div class="fn">dimitern</div> </div>
<div class="comment-meta">May 4, 2016 - 11:21 <span class="meta-sep">|</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/#comment-4572" title="Permalink to this comment" data-slimstat="5">Permalink</a></div>
<div class="clear"></div>
<div class="comment-body"><p>Sure, please use the following link to file a bug against juju:<br>
<a href="https://bugs.launchpad.net/juju-core/+filebug" rel="nofollow" data-slimstat="5">https://bugs.launchpad.net/juju-core/+filebug</a></p>
<p>Glad to hear you managed to resolve issue #2!</p>
<p>As for the release dates for Juju 2.0 and MAAS 2.0, unfortunately I can’t give you an exact date,<br>
but it should be soon (I suspect within the next 2 weeks).</p>
<p>Cheers,<br>
Dimiter</p>
</div>
<div class="reply">
<a rel="nofollow" class="comment-reply-link" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/?replytocom=4572#respond" onclick="return addComment.moveForm( "comment-4572", "4572", "respond", "404" )" aria-label="Reply to dimitern" data-slimstat="5">Reply</a> </div>
</li><!-- #comment-## -->
</ul><!-- .children -->
</li><!-- #comment-## -->
</ul><!-- .children -->
</li><!-- #comment-## -->
</ul><!-- .children -->
</li><!-- #comment-## -->
<li id="comment-4564" class="comment even thread-odd thread-alt depth-1">
<div class="comment-author vcard">
<img alt="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/7c9d789b1db8ceed795c6a51cc5b21fa.jpeg" srcset="http://1.gravatar.com/avatar/7c9d789b1db8ceed795c6a51cc5b21fa?s=96&r=g 2x" class="avatar avatar-48 photo" height="48" width="48"> <div class="fn">bdx</div> </div>
<div class="comment-meta">May 3, 2016 - 20:55 <span class="meta-sep">|</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/#comment-4564" title="Permalink to this comment" data-slimstat="5">Permalink</a></div>
<div class="clear"></div>
<div class="comment-body"><p>Great article! After giving it a once over, I have a few questions for you. </p>
<p>What is the ‘compute-data’ network used for?<br>
Are openstack charms aware of ‘compute-data’ network, how? </p>
<p>Thanks!</p>
</div>
<div class="reply">
<a rel="nofollow" class="comment-reply-link" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/?replytocom=4564#respond" onclick="return addComment.moveForm( "comment-4564", "4564", "respond", "404" )" aria-label="Reply to bdx" data-slimstat="5">Reply</a> </div>
<ul class="children">
<li id="comment-4570" class="comment byuser comment-author-dimitern bypostauthor odd alt depth-2">
<div class="comment-author vcard">
<img alt="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/6889e0065cf206ab0e4b3873576b5026.png" srcset="http://0.gravatar.com/avatar/6889e0065cf206ab0e4b3873576b5026?s=96&r=g 2x" class="avatar avatar-48 photo" height="48" width="48"> <div class="fn">dimitern</div> </div>
<div class="comment-meta">May 4, 2016 - 09:54 <span class="meta-sep">|</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/#comment-4570" title="Permalink to this comment" data-slimstat="5">Permalink</a></div>
<div class="clear"></div>
<div class="comment-body"><p>Thanks James!</p>
<p>The compute-data network is used for guest VM traffic (instances started by OpenStack) to other guest VMs or to OpenStack services.<br>
If you have a look at the first post in the series, the architecture diagram shows the different networks OpenStack uses (the ‘data’ network there is called ‘compute-data’ in later posts, to distinguish it from the ‘storage-data’ network).<br>
OpenStack charms (nova-compute and neutron-gateway in particular) are aware of the compute-data network, either via config settings or extra-bindings (in latest versions of OpenStack charms).</p>
<p>I see you asked this on the Juju mailing list as well, I’d suggest to ask there for details about how OpenStack charms are configured (I’m not quite up-to-date with the latest developments).</p>
<p>Cheers,<br>
Dimiter</p>
</div>
<div class="reply">
<a rel="nofollow" class="comment-reply-link" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/?replytocom=4570#respond" onclick="return addComment.moveForm( "comment-4570", "4570", "respond", "404" )" aria-label="Reply to dimitern" data-slimstat="5">Reply</a> </div>
</li><!-- #comment-## -->
</ul><!-- .children -->
</li><!-- #comment-## -->
<li id="comment-4672" class="comment even thread-even depth-1">
<div class="comment-author vcard">
<img alt="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/78003005606c5f29fdbe68c16eaaf0e0.jpg" srcset="http://1.gravatar.com/avatar/78003005606c5f29fdbe68c16eaaf0e0?s=96&r=g 2x" class="avatar avatar-48 photo" height="48" width="48"> <div class="fn">Luis Lozano</div> </div>
<div class="comment-meta">May 17, 2016 - 17:11 <span class="meta-sep">|</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/#comment-4672" title="Permalink to this comment" data-slimstat="5">Permalink</a></div>
<div class="clear"></div>
<div class="comment-body"><p>Hi, nice article, looking forward to seeing what’s next in this series.</p>
<p>Regards</p>
</div>
<div class="reply">
<a rel="nofollow" class="comment-reply-link" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/?replytocom=4672#respond" onclick="return addComment.moveForm( "comment-4672", "4672", "respond", "404" )" aria-label="Reply to Luis Lozano" data-slimstat="5">Reply</a> </div>
</li><!-- #comment-## -->
<li id="comment-4680" class="comment odd alt thread-odd thread-alt depth-1">
<div class="comment-author vcard">
<img alt="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/94bfad8af7f21fac4f2f98da53f81249.jpg" srcset="http://0.gravatar.com/avatar/94bfad8af7f21fac4f2f98da53f81249?s=96&r=g 2x" class="avatar avatar-48 photo" height="48" width="48"> <div class="fn">ak</div> </div>
<div class="comment-meta">May 18, 2016 - 18:17 <span class="meta-sep">|</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/#comment-4680" title="Permalink to this comment" data-slimstat="5">Permalink</a></div>
<div class="clear"></div>
<div class="comment-body"><p>Thanks for these posts! Extremely helpful so far. I’m also looking forward to the Juju 2.0 updates.</p>
<p>As a quick question to the guidance above, using your “Physical Network Layout” diagram it appears you have physically setup the following:</p>
<p>Nodes 12:eth0 –> maas-zone1-sw/4<br>
Nodes 21:eth0 –> maas-zone2-sw/2<br>
Nodes 22:eth0 –> maas-zone2-sw/4</p>
<p>In the “Setting up Wiring and Switches” section you have also tagged the following ports on each of the switches as below:</p>
<p>maas-zone1-sw/4: VLAN 1,30,99,200,250<br>
maas-zone2-sw/2: VLAN 1,30,99,200,250<br>
maas-zone2-sw/4: VLAN 1,30,99,200,250</p>
<p>However, you are tagging the Node eth0 interfaces as:</p>
<p>Nodes 12:eth0 –> VLAN 50,100,150,200,250<br>
Nodes 21:eth0 –> VLAN 50,100,150,200,250<br>
Nodes 22:eth0 –> VLAN 50,100,150,200,250</p>
<p>Wilth VLANs 50,100,150 assigned to the odd ports on both switches, will this traffic ever navigate to the eth0 interfaces of these nodes?</p>
<p>If you can get a chance to add a screen shot of the Web UI Node>Interfaces section, this would probably clear up the confusion for me.</p>
<p>This is admittedly my first foray into advanced networking scenarios with MAAS and as such my understanding may be off.</p>
<p>Once again, thanks for these posts as all other guidance does not present such a full picture as this.</p>
</div>
<div class="reply">
<a rel="nofollow" class="comment-reply-link" href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/?replytocom=4680#respond" onclick="return addComment.moveForm( "comment-4680", "4680", "respond", "404" )" aria-label="Reply to ak" data-slimstat="5">Reply</a> </div>
<ul class="children">
<li id="comment-4689" class="comment byuser comment-author-dimitern bypostauthor even depth-2">
<div class="comment-author vcard">
<img alt="" src="./4-Nodes Networking_ Deploying OpenStack on MAAS 1.9+ with Juju_files/6889e0065cf206ab0e4b3873576b5026.png" srcset="http://0.gravatar.com/avatar/6889e0065cf206ab0e4b3873576b5026?s=96&r=g 2x" class="avatar avatar-48 photo" height="48" width="48"> <div class="fn">dimitern</div> </div>
<div class="comment-meta">May 19, 2016 - 10:26 <span class="meta-sep">|</span> <a href="http://blog.naydenov.net/2016/01/nodes-networking-deploying-openstack-on-maas-1-9-with-juju/#comment-4689" title="Permalink to this comment" data-slimstat="5">Permalink</a></div>
<div class="clear"></div>
<div class="comment-body"><p>Thanks!</p>
<p>I see how it might be confusing, because the ‘Physical Network Layout’ shows a simplified diagram, while the ‘Setting up Wiring and Switches’ describes the actual hardware setup.</p>
<p>maas-zone1-sw has 24 ports, maas-zone2-sw has 8 ports.<br>
Out of those 24 ports in maas-zone1-sw only the following ports have wires plugged in them:</p>
<ul>
<li>Port #1: connected to MAAS’s eth1, and carrying all trunked VLAN traffic (tagged and untagged)</li>
<li>Port #3: connected to node-11’s eth0, and carrying both untagged and tagged traffic (for VIDs 50, 100, 150)</li>
<li>Port #4: connected to node-11’s eth1, and carrying both untagged and tagged traffic (for VIDs 30, 99, 200, 250)</li>
<li>Port #5: connected to node-12’s eth0, and carrying both untagged and tagged traffic (for VIDs 50, 100, 150)</li>
<li>Port #6: connected to node-12’s eth1, and carrying both untagged and tagged traffic (for VIDs 30, 99, 200, 250)</li>
<li>Port #24: connected to maas-zone2-sw’s port #1, and carrying all trunked VLAN traffic (tagged and untagged)</li>
</ul>
<p>Very similar picture for the 8 ports in maas-zone2-sw; only the following ports are used:</p>
<ul>
<li>Port #1: connected to maas-zone1-sw’ port #24, and carrying all trunked VLAN traffic (tagged and untagged)</li>
<li>Port #3: connected to node-21’s eth0, and carrying both untagged and tagged traffic (for VIDs 50, 100, 150)</li>
<li>Port #4: connected to node-21’s eth1, and carrying both untagged and tagged traffic (for VIDs 30, 99, 200, 250)</li>
<li>Port #5: connected to node-22’s eth0, and carrying both untagged and tagged traffic (for VIDs 50, 100, 150)</li>