forked from chanjarster/openstack-install-by-maas-juju
-
Notifications
You must be signed in to change notification settings - Fork 0
/
2- MAAS Setup_ Deploying OpenStack on MAAS 1.9+ with Juju.html
1820 lines (1570 loc) · 379 KB
/
2- MAAS Setup_ 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=(0086)http://blog.naydenov.net/2016/01/maas-setup-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>ubuntu | juju | golang | MAAS Setup: Deploying OpenStack on MAAS 1.9+ with Juju | blog.naydenov.net</title>
<link rel="pingback" href="http://blog.naydenov.net/xmlrpc.php">
<title>MAAS Setup: 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 » MAAS Setup: Deploying OpenStack on MAAS 1.9+ with Juju Comments Feed" href="http://blog.naydenov.net/2016/01/maas-setup-deploying-openstack-on-maas-1-9-with-juju/feed/">
<script async="" src="./2- MAAS Setup_ Deploying OpenStack on MAAS 1.9+ with Juju_files/icons.27.svg.js"></script><script async="" src="./2- MAAS Setup_ 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="./2- MAAS Setup_ 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="./2- MAAS Setup_ 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="./2- MAAS Setup_ 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="./2- MAAS Setup_ 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="./2- MAAS Setup_ 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="./2- MAAS Setup_ Deploying OpenStack on MAAS 1.9+ with Juju_files/style.css" type="text/css" media="all">
<link rel="stylesheet" id="addtoany-css" href="./2- MAAS Setup_ Deploying OpenStack on MAAS 1.9+ with Juju_files/addtoany.min.css" type="text/css" media="all">
<script type="text/javascript" src="./2- MAAS Setup_ Deploying OpenStack on MAAS 1.9+ with Juju_files/jquery.js"></script>
<script type="text/javascript" src="./2- MAAS Setup_ 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="./2- MAAS Setup_ Deploying OpenStack on MAAS 1.9+ with Juju_files/crayon.min.js"></script>
<script type="text/javascript" src="./2- MAAS Setup_ 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="./2- MAAS Setup_ 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="Hardware Setup: Deploying OpenStack on MAAS 1.9+ with Juju" href="http://blog.naydenov.net/2015/11/deploying-openstack-on-maas-1-9-with-juju-hardware-setup/">
<link rel="next" title="Nodes Networking: Deploying OpenStack on MAAS 1.9+ with Juju" href="http://blog.naydenov.net/2016/01/nodes-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/maas-setup-deploying-openstack-on-maas-1-9-with-juju/">
<link rel="shortlink" href="http://blog.naydenov.net/?p=368">
<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%2Fmaas-setup-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%2Fmaas-setup-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 ubuntu, call us today! Dimiter Naydenov's blog"><link href="./2- MAAS Setup_ Deploying OpenStack on MAAS 1.9+ with Juju_files/css" rel="stylesheet" type="text/css">
<link href="./2- MAAS Setup_ Deploying OpenStack on MAAS 1.9+ with Juju_files/css(1)" rel="stylesheet" type="text/css">
<link href="./2- MAAS Setup_ 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-368 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-368 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-368" class="post-368 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">MAAS Setup: Deploying OpenStack on MAAS 1.9+ with Juju</h1>
<div class="linebreak"></div>
<div class="entry-content">
<p>This is part 3 of my new “Deploying OpenStack on MAAS 1.9+ with Juju” series. It follows up my last post <em><a href="http://blog.naydenov.net/2015/11/deploying-openstack-on-maas-1-9-with-juju-hardware-setup/" target="_blank" data-slimstat-clicked="false" data-slimstat-type="2" data-slimstat-tracking="false" data-slimstat-callback="false" data-slimstat-async="false" data-slimstat="5">Hardware Setup: Deploying OpenStack on MAAS 1.9+ with Juju</a></em>. I planned to write this post almost 2 months ago, and I know some readers were expecting it eagerly, so I apologize for the delay. We were (and still are) pretty busy working on the networking features of <a href="http://jujucharms.com/" target="_blank" data-slimstat="5">Juju</a>. <span style="color: #008000;">All of the features, presented in this series of posts are available for use, today – with the recent Juju 2.0.1 release (from ppa:juju/stable).</span> In the past articles I explained the <a href="http://blog.naydenov.net/2015/11/deploying-openstack-on-maas-1-9-with-juju-network-setup/" target="_blank" data-slimstat="5">high-level OpenStack deployment plan</a> and the <a href="http://blog.naydenov.net/2015/11/deploying-openstack-on-maas-1-9-with-juju-hardware-setup/" target="_blank" data-slimstat="5">hardware setup</a> of the machines and switches. Now it’s time to install <a href="http://maas.io/" target="_blank" data-slimstat="5">MAAS</a>,configure the cluster controller and its managed subnets, spaces, and fabrics. Once that’s done, we can enlist and commission all 4 of the NUCs as nodes and deploy them via MAAS.</p>
<h3><span style="color: #008000;">Updates</span></h3>
<p><span style="color: #008000;">Since I published this article, MAAS 1.9 became the latest stable, replacing 1.8 and earlier releases. MAAS 2.0 (and even 2.1 )is out now, and it comes with a new not-quite-backwards-compatible API 2.0. Juju 2.0.1 released less than a week ago, is the only version on Juju to support MAAS 2.0+. So the setup below assumes MAAS 1.9, but information specific to MAAS 2.0 or Juju 2.0 will be highlighted in <strong>green</strong>.</span></p>
<h2>Setting up MAAS 1.9+ for Deploying OpenStack with Juju</h2>
<p>There are 2 main ways to install MAAS on Ubuntu (14.04 <em>Trusty Tahr</em> or later): Using the “<em>Multiple Server install with MAAS</em>” boot option from the Ubuntu Server installer media, or by installing a few packages with <em>apt-get</em> inside an existing Ubuntu installation. <span style="color: #008000;">MAAS 2.0 on the other hand <strong>requires</strong> at least Ubuntu 16.04 (<em>Xenial Xerus</em>).</span> Both options are well described, step-by-step with screenshots in the <a href="http://maas.ubuntu.com/docs/install.html" target="_blank" data-slimstat="5">official MAAS documentation</a>. There’s a slight wrinkle there though – the described steps apply for the <strong>latest stable</strong> version of MAAS available for <em>trusty</em> (or xenial), which supports the advanced 1.9+ network modelling. Fortunately, the installation steps are almost the same as the nice one-pager <em><a href="http://maas.io/get-started" target="_blank" data-slimstat="5">“MAAS | Get Started”</a></em>, so I’ll just list them briefly below.</p>
<h3>Installing MAAS</h3>
<ol>
<li>We need to prepare the machine for MAAS by installing the older Ubuntu Server LTS (14.04) on it. It should be a simple matter of downloading the ISO from <a href="http://www.ubuntu.com/download/server" target="_blank" data-slimstat="5">http://www.ubuntu.com/download/server</a> and burning it on a CD or better and quicker – on a bootable USB stick (using “Startup Disk Creator” in Ubuntu or any other tool).<br>
<span style="color: #008000;"><strong>NOTE:</strong> If you’re installing MAAS 2.0, you’ll need to install the latest Ubuntu Server LTS (16.04) instead!</span></li>
<li>Once Ubuntu is up and running, log into the console prepare the machine by adding the <a href="https://launchpad.net/~maas/+archive/ubuntu/stable" data-slimstat="5"><strong>ppa:maas/stable</strong></a> <del><span style="color: #008000;">(or for MAAS 2.0 <a href="https://launchpad.net/~maas/+archive/ubuntu/next-proposed" data-slimstat="5"><strong style="color: #008000;">ppa:maas/next-proposed</strong></a>)</span></del><span style="color: #008000;"> to get MAAS 2.0</span>, installing OpenSSH (so we can manage it remotely), VLAN (so we can create virtual VLAN NICs), and updating/upgrading all packages on the system:<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29db67951983216" 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">Shell</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;"># for both MAAS 1.9 on trusty, or 2.0 on xenial:
$ sudo add-apt-repository ppa:maas/stable
$ sudo apt-get update
$ sudo apt-get install openssh-server vlan
$ sudo apt-get update
$ sudo apt-get dist-upgrade</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-5b04cdb29db67951983216-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29db67951983216-2" style="height: 15px;">2</div><div class="crayon-num crayon-marked-num crayon-top" data-line="crayon-5b04cdb29db67951983216-3" style="height: 16px;">3</div><div class="crayon-num crayon-marked-num crayon-bottom crayon-striped-num" data-line="crayon-5b04cdb29db67951983216-4" style="height: 16px;">4</div><div class="crayon-num" data-line="crayon-5b04cdb29db67951983216-5" style="height: 15px;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29db67951983216-6" style="height: 15px;">6</div><div class="crayon-num" data-line="crayon-5b04cdb29db67951983216-7" style="height: 15px;">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-5b04cdb29db67951983216-1"># for both MAAS 1.9 on trusty, or 2.0 on xenial:</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29db67951983216-2">$ sudo add-apt-repository ppa:maas/stable</div><div class="crayon-line crayon-marked-line crayon-top" id="crayon-5b04cdb29db67951983216-3"> </div><div class="crayon-line crayon-marked-line crayon-bottom crayon-striped-line" id="crayon-5b04cdb29db67951983216-4">$ sudo apt-get update</div><div class="crayon-line" id="crayon-5b04cdb29db67951983216-5">$ sudo apt-get install openssh-server vlan</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29db67951983216-6">$ sudo apt-get update</div><div class="crayon-line" id="crayon-5b04cdb29db67951983216-7">$ sudo apt-get dist-upgrade</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0002 seconds] -->
<br>
<strong>NOTE:</strong> If you’re not using en_US locale (like me), you’ll need to also add the line <code>LC_ALL=C</code> to <code>/etc/default/locale</code> otherwise some of the packages (e.g. postgresql) MAAS depends on will FAIL to install properly!</li>
<li>I found it’s better to first configure all network interfaces (NICs) in /etc/network/interfaces and <strong>then</strong> install MAAS, as it will discover and auto-create the subnets linked to each interface of the cluster controller. The machine needs 2 physical NICs – one for the managed nodes and one for providing external access for the nodes and MAAS itself. Since the HP laptop I’m using does not have more than 1 Ethernet controller, I plugged in a USB2Ethernet adapter to provide access to the nodes network. We need those NICs configured like this:
<ul>
<li>Primary physical NIC of the machine (eth0 <span style="color: #008000;">on <em>trusty</em> or e.g. eno1 on <em>xenial</em></span>) is the on-board Ethernet controller, configured with a static IP from my home network (192.168.1.104/24 in my case) and uses the home WiFi router as default gateway (192.168.1.1).</li>
<li>Second physical NIC (eth1 <span style="color: #008000;">on <em>trusty</em> or e.g. enxxaabbccddeef0 on <em>xenial</em>; it’s wise to rename this to something shorter on <em>xenial</em></span>) is the USB2Ethernet adapter, configured with a static IP address (10.14.0.1/20) from the managed network.</li>
<li>7 Virtual VLAN NICs on top of eth1 for <strong>all</strong> the VLANs we created earlier (eth1.50, eth1.100, eth1.150, eth1.200, eth1.250, eth1.30) – each of these VLAN NICs have static IPs with the same format (10.<VLAN-ID>.0.1/20 – e.g. 10.250.0.1).</li>
<li>I’ve edited the /etc/network/interfaces file as <strong>root</strong> (use your favourite editor or even simply <strong>pico</strong>) on the MAAS machine and it looks like this now <span style="color: #008000;">(on trusty)</span>: <a href="http://paste.ubuntu.com/14567573/" target="_blank" data-slimstat="5">http://paste.ubuntu.com/14567573/</a>. The iptables rules we add on eth0 up/down are to enable NAT so nodes can access the Internet.</li>
</ul>
</li>
<li>Reboot the machine (both to pick up any kernel updates that might have happened during the <code>apt-get upgrade / dist-upgrade</code> call earlier, and to make sure all NICs come up in the right order).</li>
<li>Now let’s install the needed MAAS packages:<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29db78981498064" 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;">$ sudo apt-get install maas maas-dns maas-dhcp maas-proxy</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-5b04cdb29db78981498064-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-5b04cdb29db78981498064-1">$ sudo apt-get install maas maas-dns maas-dhcp maas-proxy</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
<br>
<strong>NOTE:</strong> When asked for the Ubuntu MAAS API address, double check the detected URL uses eth0’s (external) IP address: <code>http://192.168.1.104/MAAS/</code>. You can later change this by running:<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29db7e611252418" 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:
$ sudo dpkg-reconfigure maas-cluster-controller
# for MAAS 2.0 on xenial:
$ sudo dpkg-reconfigure maas-rack-controller</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-5b04cdb29db7e611252418-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29db7e611252418-2" style="height: 15px;">2</div><div class="crayon-num crayon-marked-num crayon-top" data-line="crayon-5b04cdb29db7e611252418-3" style="height: 16px;">3</div><div class="crayon-num crayon-marked-num crayon-striped-num" data-line="crayon-5b04cdb29db7e611252418-4" style="height: 15px;">4</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-5b04cdb29db7e611252418-1"># for MAAS 1.9 on trusty:</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29db7e611252418-2">$ sudo dpkg-reconfigure maas-cluster-controller</div><div class="crayon-line crayon-marked-line crayon-top" id="crayon-5b04cdb29db7e611252418-3"># for MAAS 2.0 on xenial:</div><div class="crayon-line crayon-marked-line crayon-striped-line" id="crayon-5b04cdb29db7e611252418-4">$ sudo dpkg-reconfigure maas-rack-controller</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
<br>
Also, double check that running<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29db83243903267" 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;">$ sudo dpkg-reconfigure maas-region-controller</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-5b04cdb29db83243903267-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-5b04cdb29db83243903267-1">$ sudo dpkg-reconfigure maas-region-controller</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
<br>
shows the IP address of eth1 (managed NIC), if not <strong>set it to 10.14.0.1!</strong></li>
<li>Create an admin user (I used “root” for username):<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29db88100340782" 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:
$ sudo maas-region-admin createadmin
# for MAAS 2.0 on xenial:
$ sudo maas-region createsuperuser</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-5b04cdb29db88100340782-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29db88100340782-2" style="height: 15px;">2</div><div class="crayon-num crayon-marked-num crayon-top" data-line="crayon-5b04cdb29db88100340782-3" style="height: 16px;">3</div><div class="crayon-num crayon-marked-num crayon-bottom crayon-striped-num" data-line="crayon-5b04cdb29db88100340782-4" style="height: 16px;">4</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-5b04cdb29db88100340782-1"># for MAAS 1.9 on trusty:</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29db88100340782-2">$ sudo maas-region-admin createadmin</div><div class="crayon-line crayon-marked-line crayon-top" id="crayon-5b04cdb29db88100340782-3"># for MAAS 2.0 on xenial:</div><div class="crayon-line crayon-marked-line crayon-bottom crayon-striped-line" id="crayon-5b04cdb29db88100340782-4">$ sudo maas-region createsuperuser</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
</li>
<li>You should be able to access the MAAS Web UI at http://192.168.1.104/MAAS/ now. Login with the admin username and password you’ve just created.</li>
<li>While a lot of the following configuration steps can be done from the web UI, a few important ones can only be done via the MAAS CLI client, so let’s install it now (on the client machine you use to access MAAS – e.g. your laptop). You’ll need the MAAS API key for the admin user – copy it from the UI’s top-right menu > Account (or go to http://192.168.1.104/MAAS/account/prefs/). Alternatively, from inside the MAAS server you can run<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29db8d667537309" 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:
$ sudo maas-region-admin apikey --username root
# for MAAS 2.0 on xenial:
$ sudo maas-region apikey --username root</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-5b04cdb29db8d667537309-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29db8d667537309-2" style="height: 15px;">2</div><div class="crayon-num crayon-marked-num crayon-top" data-line="crayon-5b04cdb29db8d667537309-3" style="height: 16px;">3</div><div class="crayon-num crayon-marked-num crayon-bottom crayon-striped-num" data-line="crayon-5b04cdb29db8d667537309-4" style="height: 16px;">4</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-5b04cdb29db8d667537309-1"># for MAAS 1.9 on trusty:</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29db8d667537309-2">$ sudo maas-region-admin apikey --username root</div><div class="crayon-line crayon-marked-line crayon-top" id="crayon-5b04cdb29db8d667537309-3"># for MAAS 2.0 on xenial:</div><div class="crayon-line crayon-marked-line crayon-bottom crayon-striped-line" id="crayon-5b04cdb29db8d667537309-4">$ sudo maas-region apikey --username root</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
<br>
to get it (assuming the admin user you created is called “root”).</li>
<li>Once you have the API key run these commands:<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29db92072036574" 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">Shell</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;">$ sudo apt-get install maas-cli
# for MAAS 1.9 on trusty:
$ maas login <profile> http://192.168.1.104/MAAS/api/1.0/ '<key>'
# for MAAS 2.0 on xenial:
$ maas login <profile> http://192.168.1.104/MAAS/api/2.0/ '<key>'</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-5b04cdb29db92072036574-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29db92072036574-2" style="height: 15px;">2</div><div class="crayon-num" data-line="crayon-5b04cdb29db92072036574-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29db92072036574-4" style="height: 15px;">4</div><div class="crayon-num crayon-marked-num crayon-top" data-line="crayon-5b04cdb29db92072036574-5" style="height: 16px;">5</div><div class="crayon-num crayon-marked-num crayon-bottom crayon-striped-num" data-line="crayon-5b04cdb29db92072036574-6" style="height: 16px;">6</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-5b04cdb29db92072036574-1">$ sudo apt-get install maas-cli</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29db92072036574-2"> </div><div class="crayon-line" id="crayon-5b04cdb29db92072036574-3"># for MAAS 1.9 on trusty:</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29db92072036574-4">$ maas login <profile> http://192.168.1.104/MAAS/api/1.0/ '<key>'</div><div class="crayon-line crayon-marked-line crayon-top" id="crayon-5b04cdb29db92072036574-5"># for MAAS 2.0 on xenial:</div><div class="crayon-line crayon-marked-line crayon-bottom crayon-striped-line" id="crayon-5b04cdb29db92072036574-6">$ maas login <profile> http://192.168.1.104/MAAS/api/2.0/ '<key>'</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0002 seconds] -->
<br>
Pick a meaningful name for <em><profile></em> (e.g. I use “19-root” <span style="color: #008000;">(or “20-root” for MAAS 2.0)</span> as I run multiple versions of MAAS with multiple users created on them, so I’ll use <code>$ maas login 19-root http://...</code>). Replace the ‘<key>’ above with the string you’ve copied earlier from the Account Web UI page (it’s a long string that should contain 3 parts separated with colons, e.g. ‘2WAF3wT9tHNEtTa9kV:A9CWR2ytFHwkN2mxN9:fTnk723tTFcV8xCUpTf85RfQLTeNcX7C’ You should be able to use the CLI after this – to test, try running <code>version read</code> and you should see something like this:<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29db97435338068" 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 version read
Success.
Machine-readable output follows:
{
"subversion": "trusty1",
"version": "1.9.4+bzr4533-0ubuntu1",
"capabilities": [
"networks-management",
"static-ipaddresses",
"ipv6-deployment-ubuntu",
"devices-management",
"storage-deployment-ubuntu",
"network-deployment-ubuntu"
]
}</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-5b04cdb29db97435338068-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29db97435338068-2" style="height: 15px;">2</div><div class="crayon-num" data-line="crayon-5b04cdb29db97435338068-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29db97435338068-4" style="height: 15px;">4</div><div class="crayon-num" data-line="crayon-5b04cdb29db97435338068-5" style="height: 15px;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29db97435338068-6" style="height: 15px;">6</div><div class="crayon-num" data-line="crayon-5b04cdb29db97435338068-7" style="height: 15px;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29db97435338068-8" style="height: 15px;">8</div><div class="crayon-num" data-line="crayon-5b04cdb29db97435338068-9" style="height: 15px;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29db97435338068-10" style="height: 15px;">10</div><div class="crayon-num" data-line="crayon-5b04cdb29db97435338068-11" style="height: 15px;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29db97435338068-12" style="height: 15px;">12</div><div class="crayon-num" data-line="crayon-5b04cdb29db97435338068-13" style="height: 15px;">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29db97435338068-14" style="height: 15px;">14</div><div class="crayon-num" data-line="crayon-5b04cdb29db97435338068-15" style="height: 15px;">15</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-5b04cdb29db97435338068-1"><span class="crayon-sy">$</span><span class="crayon-h"> </span><span class="crayon-i">maas</span><span class="crayon-h"> </span><span class="crayon-cn">19</span><span class="crayon-o">-</span><span class="crayon-e">root </span><span class="crayon-e">version </span><span class="crayon-e">read</span></div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29db97435338068-2"><span class="crayon-v">Success</span><span class="crayon-sy">.</span></div><div class="crayon-line" id="crayon-5b04cdb29db97435338068-3"><span class="crayon-v">Machine</span><span class="crayon-o">-</span><span class="crayon-e">readable </span><span class="crayon-e">output </span><span class="crayon-v">follows</span><span class="crayon-o">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29db97435338068-4"><span class="crayon-sy">{</span></div><div class="crayon-line" id="crayon-5b04cdb29db97435338068-5"><span class="crayon-h"> </span><span class="crayon-s">"subversion"</span><span class="crayon-o">:</span><span class="crayon-h"> </span><span class="crayon-s">"trusty1"</span><span class="crayon-sy">,</span><span class="crayon-h"> </span></div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29db97435338068-6"><span class="crayon-h"> </span><span class="crayon-s">"version"</span><span class="crayon-o">:</span><span class="crayon-h"> </span><span class="crayon-s">"1.9.4+bzr4533-0ubuntu1"</span><span class="crayon-sy">,</span><span class="crayon-h"> </span></div><div class="crayon-line" id="crayon-5b04cdb29db97435338068-7"><span class="crayon-h"> </span><span class="crayon-s">"capabilities"</span><span class="crayon-o">:</span><span class="crayon-h"> </span><span class="crayon-sy">[</span></div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29db97435338068-8"><span class="crayon-h"> </span><span class="crayon-s">"networks-management"</span><span class="crayon-sy">,</span><span class="crayon-h"> </span></div><div class="crayon-line" id="crayon-5b04cdb29db97435338068-9"><span class="crayon-h"> </span><span class="crayon-s">"static-ipaddresses"</span><span class="crayon-sy">,</span><span class="crayon-h"> </span></div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29db97435338068-10"><span class="crayon-h"> </span><span class="crayon-s">"ipv6-deployment-ubuntu"</span><span class="crayon-sy">,</span><span class="crayon-h"> </span></div><div class="crayon-line" id="crayon-5b04cdb29db97435338068-11"><span class="crayon-h"> </span><span class="crayon-s">"devices-management"</span><span class="crayon-sy">,</span><span class="crayon-h"> </span></div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29db97435338068-12"><span class="crayon-h"> </span><span class="crayon-s">"storage-deployment-ubuntu"</span><span class="crayon-sy">,</span><span class="crayon-h"> </span></div><div class="crayon-line" id="crayon-5b04cdb29db97435338068-13"><span class="crayon-h"> </span><span class="crayon-s">"network-deployment-ubuntu"</span></div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29db97435338068-14"><span class="crayon-h"> </span><span class="crayon-sy">]</span></div><div class="crayon-line" id="crayon-5b04cdb29db97435338068-15"><span class="crayon-sy">}</span></div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0018 seconds] -->
</li>
</ol>
<p>MAAS UI may complain there are no boot images imported yet, but that’s fine – we’ll get to that once we need to add the NUCs as nodes.</p>
<h3>Configuring Cluster <span style="color: #008000;">(Rack)</span> Controller Interfaces</h3>
<p>Now we have MAAS up and running and it’s time to configure the manged cluster controller <span style="color: #008000;">(a.k.a. rack controller in MAAS 2.0)</span> interfaces before we continue with the rest (zones, fabrics, spaces, subnets). Either from the web UI (as outlined in the <a href="http://maas.io/get-started" target="_blank" data-slimstat="5"><em>Get Started</em> quick guide)</a> or from the CLI, we need to update all cluster controller interfaces so that eth1 and all VLAN NICs on it are managed for DNS and DHCP, have default gateway and both DHCP and static ranges set. Here’s a screenshot of how it looks like after we’re done <span style="color: #008000;">(for MAAS 1.9 on trusty)</span>:<br>
<img class="wp-image-374 size-large" src="./2- MAAS Setup_ Deploying OpenStack on MAAS 1.9+ with Juju_files/cluster-interfaces-1024x902.png" alt="MAAS Cluster Controller Interfaces after finishing their configuration" width="620" height="546" srcset="http://blog.naydenov.net/wp-content/uploads/2016/01/cluster-interfaces-1024x902.png 1024w, http://blog.naydenov.net/wp-content/uploads/2016/01/cluster-interfaces-300x264.png 300w, http://blog.naydenov.net/wp-content/uploads/2016/01/cluster-interfaces-768x677.png 768w, http://blog.naydenov.net/wp-content/uploads/2016/01/cluster-interfaces.png 1100w" sizes="(max-width: 620px) 100vw, 620px"></p>
<p><span style="color: #008000;">In MAAS 2.0 the same information can be found in the <strong>Nodes</strong> page -> <strong>Controllers (1)</strong> , clicking on the only controller and checking the similar <strong>Interfaces</strong> section at the bottom of the page.</span></p>
<p>To achieve this using the CLI, run the following commands:</p>
<ol>
<li>Get the UUID of the controller, e.g. <code>5d5085c8-34fe-4f86-a338-0450a49bf698</code> <span style="color: #008000;">(in MAAS 2.0 the equivalent ID would be e.g. <code>4y3h7n</code>)</span>:<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29db9e888184780" 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 node-groups list | grep uuid
# for MAAS 2.0 on xenial:
$ maas 20-root rack-controllers read | grep system_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-5b04cdb29db9e888184780-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29db9e888184780-2" style="height: 15px;">2</div><div class="crayon-num crayon-marked-num crayon-top" data-line="crayon-5b04cdb29db9e888184780-3" style="height: 16px;">3</div><div class="crayon-num crayon-marked-num crayon-bottom crayon-striped-num" data-line="crayon-5b04cdb29db9e888184780-4" style="height: 16px;">4</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-5b04cdb29db9e888184780-1"># for MAAS 1.9 on trusty:</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29db9e888184780-2">$ maas 19-root node-groups list | grep uuid</div><div class="crayon-line crayon-marked-line crayon-top" id="crayon-5b04cdb29db9e888184780-3"># for MAAS 2.0 on xenial:</div><div class="crayon-line crayon-marked-line crayon-bottom crayon-striped-line" id="crayon-5b04cdb29db9e888184780-4">$ maas 20-root rack-controllers read | grep system_id</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
<br>
<span style="color: #008000;"><strong>NOTE:</strong> To configure rack controller interfaces in MAAS 2.0, you can use the same CLI commands used for regular machines (a.k.a. nodes). We will discuss configuring nodes networking in more detail in the next post. However, MAAS 2.0 auto-detection of controller interfaces (and their subnets and VLANs) works better than in MAAS 1.9. So the steps below can be skipped for MAAS 2.0, provided you edit the <code>/etc/network/interfaces</code> on the controller to include all interfaces you want to manage, and then reboot to let MAAS detect the changes. Here is a paste of the <code>/etc/network/interfaces</code> contents I used for MAAS 2.0 (remember to <code>apt-get install vlan</code> to ensure the VLAN interfaces work): <a style="color: #008000;" href="http://paste.ubuntu.com/16189887/" data-slimstat="5">http://paste.ubuntu.com/16189887/</a>. <strong>The next few steps only apply to MAAS 1.9 and earlier</strong>.</span></li>
<li>Update the external NIC eth0 to be unmanaged and set the default gateway:<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dba3353854083" 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 node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \
eth0 ip=192.168.1.104 interface=eth0 management=0 subnet_mask=255.255.255.0 \
router_ip=192.168.1.1</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-5b04cdb29dba3353854083-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dba3353854083-2" style="height: 15px;">2</div><div class="crayon-num" data-line="crayon-5b04cdb29dba3353854083-3" style="height: 15px;">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-5b04cdb29dba3353854083-1">$ maas 19-root node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dba3353854083-2">eth0 ip=192.168.1.104 interface=eth0 management=0 subnet_mask=255.255.255.0 \</div><div class="crayon-line" id="crayon-5b04cdb29dba3353854083-3">router_ip=192.168.1.1</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
</li>
<li>Update the internal NIC eth1 used to control the nodes to be managed and have both DHCP (10.14.0.40-10.14.0.90) and static IP (10.14.0.100-10.14.1.200) ranges set:<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dba8768361924" 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 node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \
eth1 ip=10.14.0.1 interface=eth1 management=2 subnet_mask=255.255.240.0 \
ip_range_low=10.14.0.40 ip_range_high=10.14.0.90 \
static_ip_range_low=10.14.0.100 static_ip_range_high=10.14.1.200</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-5b04cdb29dba8768361924-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dba8768361924-2" style="height: 15px;">2</div><div class="crayon-num" data-line="crayon-5b04cdb29dba8768361924-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dba8768361924-4" style="height: 15px;">4</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-5b04cdb29dba8768361924-1">$ maas 19-root node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dba8768361924-2">eth1 ip=10.14.0.1 interface=eth1 management=2 subnet_mask=255.255.240.0 \</div><div class="crayon-line" id="crayon-5b04cdb29dba8768361924-3">ip_range_low=10.14.0.40 ip_range_high=10.14.0.90 \</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dba8768361924-4">static_ip_range_low=10.14.0.100 static_ip_range_high=10.14.1.200</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0002 seconds] -->
</li>
<li>Update the eth1.99 VLAN NIC – it needs to be unmanaged, as it will be used by OpenStack Neutron Gateway to provide DHCP for OpenStack guest instances:<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbad054083912" 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 node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \
eth1.99 ip=10.99.0.1 interface=eth1.99 management=0 subnet_mask=255.255.240.0 \
ip_range_low=10.99.0.40 ip_range_high=10.99.0.90 \
static_ip_range_low=10.99.0.100 static_ip_range_high=10.99.1.200</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-5b04cdb29dbad054083912-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbad054083912-2" style="height: 15px;">2</div><div class="crayon-num" data-line="crayon-5b04cdb29dbad054083912-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbad054083912-4" style="height: 15px;">4</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-5b04cdb29dbad054083912-1">$ maas 19-root node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbad054083912-2">eth1.99 ip=10.99.0.1 interface=eth1.99 management=0 subnet_mask=255.255.240.0 \</div><div class="crayon-line" id="crayon-5b04cdb29dbad054083912-3">ip_range_low=10.99.0.40 ip_range_high=10.99.0.90 \</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbad054083912-4">static_ip_range_low=10.99.0.100 static_ip_range_high=10.99.1.200</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0002 seconds] -->
</li>
<li>Update all remaining VLAN NICs the same way (DHCP and static IP ranges, default gateway, managed):<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbb2479404983" 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 node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \
eth1.30 ip=10.30.0.1 interface=eth1.30 management=2 subnet_mask=255.255.240.0 \
ip_range_low=10.30.0.40 ip_range_high=10.30.0.90 \
static_ip_range_low=10.30.0.100 static_ip_range_high=10.30.1.200
$ maas 19-root node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \
eth1.50 ip=10.50.0.1 interface=eth1.50 management=2 subnet_mask=255.255.240.0 \
ip_range_low=10.50.0.40 ip_range_high=10.50.0.90 \
static_ip_range_low=10.50.0.100 static_ip_range_high=10.50.1.200
$ maas 19-root node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \
eth1.100 ip=10.100.0.1 interface=eth1.100 management=2 subnet_mask=255.255.240.0 \
ip_range_low=10.100.0.40 ip_range_high=10.100.0.90 \
static_ip_range_low=10.100.0.100 static_ip_range_high=10.100.1.200
$ maas 19-root node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \
eth1.150 ip=10.150.0.1 interface=eth1.150 management=2 subnet_mask=255.255.240.0 \
ip_range_low=10.150.0.40 ip_range_high=10.150.0.90 \
static_ip_range_low=10.150.0.100 static_ip_range_high=10.150.1.200
$ maas 19-root node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \
eth1.200 ip=10.200.0.1 interface=eth1.200 management=2 subnet_mask=255.255.240.0 \
ip_range_low=10.200.0.40 ip_range_high=10.200.0.90 \
static_ip_range_low=10.200.0.100 static_ip_range_high=10.200.1.200
$ maas 19-root node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \
eth1.250 ip=10.250.0.1 interface=eth1.250 management=2 subnet_mask=255.255.240.0 \
ip_range_low=10.250.0.40 ip_range_high=10.250.0.90 \
static_ip_range_low=10.250.0.100 static_ip_range_high=10.250.1.200</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-5b04cdb29dbb2479404983-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbb2479404983-2" style="height: 15px;">2</div><div class="crayon-num" data-line="crayon-5b04cdb29dbb2479404983-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbb2479404983-4" style="height: 15px;">4</div><div class="crayon-num" data-line="crayon-5b04cdb29dbb2479404983-5" style="height: 15px;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbb2479404983-6" style="height: 15px;">6</div><div class="crayon-num" data-line="crayon-5b04cdb29dbb2479404983-7" style="height: 15px;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbb2479404983-8" style="height: 15px;">8</div><div class="crayon-num" data-line="crayon-5b04cdb29dbb2479404983-9" style="height: 15px;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbb2479404983-10" style="height: 15px;">10</div><div class="crayon-num" data-line="crayon-5b04cdb29dbb2479404983-11" style="height: 15px;">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbb2479404983-12" style="height: 15px;">12</div><div class="crayon-num" data-line="crayon-5b04cdb29dbb2479404983-13" style="height: 15px;">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbb2479404983-14" style="height: 15px;">14</div><div class="crayon-num" data-line="crayon-5b04cdb29dbb2479404983-15" style="height: 15px;">15</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbb2479404983-16" style="height: 15px;">16</div><div class="crayon-num" data-line="crayon-5b04cdb29dbb2479404983-17" style="height: 15px;">17</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbb2479404983-18" style="height: 15px;">18</div><div class="crayon-num" data-line="crayon-5b04cdb29dbb2479404983-19" style="height: 15px;">19</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbb2479404983-20" style="height: 15px;">20</div><div class="crayon-num" data-line="crayon-5b04cdb29dbb2479404983-21" style="height: 15px;">21</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbb2479404983-22" style="height: 15px;">22</div><div class="crayon-num" data-line="crayon-5b04cdb29dbb2479404983-23" style="height: 15px;">23</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbb2479404983-24" style="height: 15px;">24</div><div class="crayon-num" data-line="crayon-5b04cdb29dbb2479404983-25" style="height: 15px;">25</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbb2479404983-26" style="height: 15px;">26</div><div class="crayon-num" data-line="crayon-5b04cdb29dbb2479404983-27" style="height: 15px;">27</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbb2479404983-28" style="height: 15px;">28</div><div class="crayon-num" data-line="crayon-5b04cdb29dbb2479404983-29" style="height: 15px;">29</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-5b04cdb29dbb2479404983-1">$ maas 19-root node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbb2479404983-2">eth1.30 ip=10.30.0.1 interface=eth1.30 management=2 subnet_mask=255.255.240.0 \</div><div class="crayon-line" id="crayon-5b04cdb29dbb2479404983-3">ip_range_low=10.30.0.40 ip_range_high=10.30.0.90 \</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbb2479404983-4">static_ip_range_low=10.30.0.100 static_ip_range_high=10.30.1.200</div><div class="crayon-line" id="crayon-5b04cdb29dbb2479404983-5"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbb2479404983-6">$ maas 19-root node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \</div><div class="crayon-line" id="crayon-5b04cdb29dbb2479404983-7">eth1.50 ip=10.50.0.1 interface=eth1.50 management=2 subnet_mask=255.255.240.0 \</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbb2479404983-8">ip_range_low=10.50.0.40 ip_range_high=10.50.0.90 \</div><div class="crayon-line" id="crayon-5b04cdb29dbb2479404983-9">static_ip_range_low=10.50.0.100 static_ip_range_high=10.50.1.200</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbb2479404983-10"> </div><div class="crayon-line" id="crayon-5b04cdb29dbb2479404983-11">$ maas 19-root node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbb2479404983-12">eth1.100 ip=10.100.0.1 interface=eth1.100 management=2 subnet_mask=255.255.240.0 \</div><div class="crayon-line" id="crayon-5b04cdb29dbb2479404983-13">ip_range_low=10.100.0.40 ip_range_high=10.100.0.90 \</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbb2479404983-14">static_ip_range_low=10.100.0.100 static_ip_range_high=10.100.1.200</div><div class="crayon-line" id="crayon-5b04cdb29dbb2479404983-15"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbb2479404983-16">$ maas 19-root node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \</div><div class="crayon-line" id="crayon-5b04cdb29dbb2479404983-17">eth1.150 ip=10.150.0.1 interface=eth1.150 management=2 subnet_mask=255.255.240.0 \</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbb2479404983-18">ip_range_low=10.150.0.40 ip_range_high=10.150.0.90 \</div><div class="crayon-line" id="crayon-5b04cdb29dbb2479404983-19">static_ip_range_low=10.150.0.100 static_ip_range_high=10.150.1.200</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbb2479404983-20"> </div><div class="crayon-line" id="crayon-5b04cdb29dbb2479404983-21">$ maas 19-root node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbb2479404983-22">eth1.200 ip=10.200.0.1 interface=eth1.200 management=2 subnet_mask=255.255.240.0 \</div><div class="crayon-line" id="crayon-5b04cdb29dbb2479404983-23">ip_range_low=10.200.0.40 ip_range_high=10.200.0.90 \</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbb2479404983-24">static_ip_range_low=10.200.0.100 static_ip_range_high=10.200.1.200</div><div class="crayon-line" id="crayon-5b04cdb29dbb2479404983-25"> </div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbb2479404983-26">$ maas 19-root node-group-interface update 5d5085c8-34fe-4f86-a338-0450a49bf698 \</div><div class="crayon-line" id="crayon-5b04cdb29dbb2479404983-27">eth1.250 ip=10.250.0.1 interface=eth1.250 management=2 subnet_mask=255.255.240.0 \</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbb2479404983-28">ip_range_low=10.250.0.40 ip_range_high=10.250.0.90 \</div><div class="crayon-line" id="crayon-5b04cdb29dbb2479404983-29">static_ip_range_low=10.250.0.100 static_ip_range_high=10.250.1.200</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0006 seconds] -->
</li>
<li>Verify the changes by listing all NICs of the cluster controller again:<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbb8335143816" 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 node-group-interfaces list 5d5085c8-34fe-4f86-a338-0450a49bf698</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-5b04cdb29dbb8335143816-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-5b04cdb29dbb8335143816-1">$ maas 19-root node-group-interfaces list 5d5085c8-34fe-4f86-a338-0450a49bf698</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
<br>
The last command should return output similar to this one: <a href="http://paste.ubuntu.com/14575066/" target="_blank" data-slimstat="5">http://paste.ubuntu.com/14575066/</a> For the VLAN NICs the VLAN ID part of the IPs, ranges, and the interface name changes.</li>
</ol>
<h3>Setting up Fabrics, VLANs, Spaces, and Subnets</h3>
<p>Next step is to set up 2 MAAS fabrics: I’ve chosen “maas-external” (containing the external 192.168.1.1/24 subnet for eth0) and “maas-management” (containing everything else). By default MAAS creates one fabric per physical NIC it discovers in /etc/network/interfaces during installation. So at this point you should have <strong>fabric-0</strong> containing an “untagged” VLAN and the external subnet linked to eth0 (192.168.1.0/24) and <strong>fabric-1</strong>, which also contains an”untagged” VLAN and as many “tagged” VLANs as discovered from the /etc/network/interfaces.</p>
<p><span style="color: #008000;"><strong>NOTE:</strong> MAAS 2.0 CLI commands for fabrics, spaces, VLANs, and subnets are identical (only the profile name should differ – e.g. 19-root vs 20-root).</span></p>
<p>Running:</p>
<p></p><!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbbd425937547" 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 fabrics read</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-5b04cdb29dbbd425937547-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-5b04cdb29dbbd425937547-1">$ maas 19-root fabrics read</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
<p></p>
<p>should give you output like this <a href="http://paste.ubuntu.com/14568771/" target="_blank" data-slimstat="5">http://paste.ubuntu.com/14568771/</a>. This is <em>almost</em> what we need, but let’s change the names of the fabrics to reflect their intended usage:</p>
<p></p><!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbc2954892338" 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 fabric update 0 name=maas-external
$ maas 19-root fabric update 1 name=maas-management</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-5b04cdb29dbc2954892338-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dbc2954892338-2" style="height: 15px;">2</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-5b04cdb29dbc2954892338-1">$ maas 19-root fabric update 0 name=maas-external</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dbc2954892338-2">$ maas 19-root fabric update 1 name=maas-management</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
<p></p>
<p>You might have noticed MAAS created a default space called <strong>space-0</strong> and all subnets are part of it, as you can see the Subnets page in the UI or by running:</p>
<p></p><!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbc7550033489" 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 subnets read</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-5b04cdb29dbc7550033489-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-5b04cdb29dbc7550033489-1">$ maas 19-root subnets read</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
<p></p>
<p>This space-0 will be used when no explicit space is specified for any (new) subnet. We’ll rename it to “default” and also create all the other spaces we need for deploying OpenStack:</p>
<ul>
<li>Rename space-0 to <strong>default</strong><br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbcc074760218" 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 space update 0 name=default</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-5b04cdb29dbcc074760218-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-5b04cdb29dbcc074760218-1">$ maas 19-root space update 0 name=default</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
</li>
<li><strong>unused</strong> space will contain the external subnet only<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbd0133089156" 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 spaces create name=unused</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-5b04cdb29dbd0133089156-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-5b04cdb29dbd0133089156-1">$ maas 19-root spaces create name=unused</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
</li>
<li><strong>admin-api</strong> space will contain VLAN <strong><strong>150<br>
</strong></strong><br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbd5008180459" 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 spaces create name=admin-api</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-5b04cdb29dbd5008180459-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-5b04cdb29dbd5008180459-1">$ maas 19-root spaces create name=admin-api</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
</li>
<li><strong>internal-api</strong> space will contain VLAN <strong><strong>100<br>
</strong></strong><br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbda298451891" 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 spaces create name=internal-api</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-5b04cdb29dbda298451891-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-5b04cdb29dbda298451891-1">$ maas 19-root spaces create name=internal-api</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
</li>
<li><strong>public-api</strong> space will contain VLAN <strong><strong>50<br>
</strong></strong><br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbde483402762" 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 spaces create name=public-api</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-5b04cdb29dbde483402762-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-5b04cdb29dbde483402762-1">$ maas 19-root spaces create name=public-api</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
</li>
<li><strong>compute-data </strong>space will contain VLAN <strong><strong>250<br>
</strong></strong><br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbe3841218251" 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 spaces create name=compute-data</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-5b04cdb29dbe3841218251-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-5b04cdb29dbe3841218251-1">$ maas 19-root spaces create name=compute-data</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
</li>
<li><strong>compute-external</strong> space will contain VLAN <strong><strong>99<br>
</strong></strong><br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbe8085296426" 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 spaces create name=compute-external</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-5b04cdb29dbe8085296426-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-5b04cdb29dbe8085296426-1">$ maas 19-root spaces create name=compute-external</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
</li>
<li><strong>storage-data</strong> space will contain VLAN <strong><strong>200<br>
</strong></strong><br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbec532271864" 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 spaces create name=storage-data</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-5b04cdb29dbec532271864-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-5b04cdb29dbec532271864-1">$ maas 19-root spaces create name=storage-data</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
</li>
<li><strong>storage-cluster</strong> space will contain VLAN <strong><strong>30<br>
</strong></strong><br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbf1949277331" 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 spaces create name=storage-cluster</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-5b04cdb29dbf1949277331-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-5b04cdb29dbf1949277331-1">$ maas 19-root spaces create name=storage-cluster</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
</li>
</ul>
<p>Now we can update all subnets to set meaningful names and a default gateway for each and also to associate them with the correct spaces. To do that we need to use the MAAS IDs for spaces, same for subnets, but fortunately there’s a neat trick we can use here: prefixed references – e.g. instead of <code>"2"</code> (a subnet ID) use <code>"vlan:50"</code> (i.e. the subnet in VLAN with ID 50 – if there is more than one subnet in VLAN 50, it won’t work as it won’t uniquely identify a single subnet). Another prefixed reference for subnets is for example <code>"cidr:192.168.1.0/24"</code> to select the unmanaged external subnet. We still need the space IDs, so we’ll first list them all and then copy their IDs in the subsequent commands to update each subnet. If we created the spaces in the order given above, they will have increasing IDs starting from 2, so that’s makes it slightly easier.</p>
<ul>
<li>List all spaces and get their IDs:<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbf6529482701" 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 spaces read</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-5b04cdb29dbf6529482701-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-5b04cdb29dbf6529482701-1">$ maas 19-root spaces read</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
</li>
<li>Move the unmanaged subnet of eth0 to space “unused” and call ot “maas-external”:<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbfb485145387" 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 subnet update cidr:192.168.1.0/24 name=maas-external space=1</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-5b04cdb29dbfb485145387-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-5b04cdb29dbfb485145387-1">$ maas 19-root subnet update cidr:192.168.1.0/24 name=maas-external space=1</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
</li>
<li>Rename the managed subnet (used for PXE booting the nodes) 10.14.0.0/20 to “maas-management”:<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dbff902467051" 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 subnet update cidr:10.14.0.0/20 name=maas-management</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-5b04cdb29dbff902467051-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-5b04cdb29dbff902467051-1">$ maas 19-root subnet update cidr:10.14.0.0/20 name=maas-management</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0001 seconds] -->
</li>
<li>Move all VLAN subnets to their respective spaces, set a name and default gateway for each:<br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dc04630164823" 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 subnet update vlan:150 name=admin-api space=2 gateway_ip=10.150.0.1
$ maas 19-root subnet update vlan:100 name=internal-api space=3 gateway_ip=10.100.0.1
$ maas 19-root subnet update vlan:50 name=public-api space=4 gateway_ip=10.50.0.1
$ maas 19-root subnet update vlan:250 name=compute-data space=5 gateway_ip=10.250.0.1
$ maas 19-root subnet update vlan:99 name=compute-external space=6 gateway_ip=10.99.0.1
$ maas 19-root subnet update vlan:200 name=storage-data space=7 gateway_ip=10.200.0.1
$ maas 19-root subnet update vlan:30 name=storage-cluster space=8 gateway_ip=10.30.0.1</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-5b04cdb29dc04630164823-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dc04630164823-2" style="height: 15px;">2</div><div class="crayon-num" data-line="crayon-5b04cdb29dc04630164823-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dc04630164823-4" style="height: 15px;">4</div><div class="crayon-num" data-line="crayon-5b04cdb29dc04630164823-5" style="height: 15px;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dc04630164823-6" style="height: 15px;">6</div><div class="crayon-num" data-line="crayon-5b04cdb29dc04630164823-7" style="height: 15px;">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-5b04cdb29dc04630164823-1">$ maas 19-root subnet update vlan:150 name=admin-api space=2 gateway_ip=10.150.0.1</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dc04630164823-2">$ maas 19-root subnet update vlan:100 name=internal-api space=3 gateway_ip=10.100.0.1</div><div class="crayon-line" id="crayon-5b04cdb29dc04630164823-3">$ maas 19-root subnet update vlan:50 name=public-api space=4 gateway_ip=10.50.0.1</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dc04630164823-4">$ maas 19-root subnet update vlan:250 name=compute-data space=5 gateway_ip=10.250.0.1</div><div class="crayon-line" id="crayon-5b04cdb29dc04630164823-5">$ maas 19-root subnet update vlan:99 name=compute-external space=6 gateway_ip=10.99.0.1</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dc04630164823-6">$ maas 19-root subnet update vlan:200 name=storage-data space=7 gateway_ip=10.200.0.1</div><div class="crayon-line" id="crayon-5b04cdb29dc04630164823-7">$ maas 19-root subnet update vlan:30 name=storage-cluster space=8 gateway_ip=10.30.0.1</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0003 seconds] -->
</li>
</ul>
<p><span style="color: #008000;"><strong>MAAS 2.0 specific steps</strong></span></p>
<p><span style="color: #008000;"><strong>NOTE: </strong> These steps assume you’ve pre-populated the <code>/etc/network/interfaces/</code> of the rack controller as suggested earlier, so the fabrics, VLANs and subnets are auto-detected and created by MAAS. We only need to set up DHCP for the managed subnets. </span></p>
<ul>
<li><span style="color: #008000;">Create dynamic IP ranges for all managed subnets (i.e. all except the maas-external 192.168.1.0/24 and compute-external 10.99.0.0/20). No need to make the ranges large, we’ll use 10.X.0.40-10.X.0.90 (X is the subnet’s VLAN VID or 14 for 10.14.0.0/20):</span><br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dc09310822633" 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 20-root ipranges create type=dynamic start_ip=10.14.0.40 end_ip=10.14.0.90
$ maas 20-root ipranges create type=dynamic start_ip=10.30.0.40 end_ip=10.30.0.90
$ maas 20-root ipranges create type=dynamic start_ip=10.50.0.40 end_ip=10.50.0.90
$ maas 20-root ipranges create type=dynamic start_ip=10.100.0.40 end_ip=10.100.0.90
$ maas 20-root ipranges create type=dynamic start_ip=10.150.0.40 end_ip=10.150.0.90
$ maas 20-root ipranges create type=dynamic start_ip=10.200.0.40 end_ip=10.200.0.90
$ maas 20-root ipranges create type=dynamic start_ip=10.250.0.40 end_ip=10.250.0.90</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-5b04cdb29dc09310822633-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dc09310822633-2" style="height: 15px;">2</div><div class="crayon-num" data-line="crayon-5b04cdb29dc09310822633-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dc09310822633-4" style="height: 15px;">4</div><div class="crayon-num" data-line="crayon-5b04cdb29dc09310822633-5" style="height: 15px;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dc09310822633-6" style="height: 15px;">6</div><div class="crayon-num" data-line="crayon-5b04cdb29dc09310822633-7" style="height: 15px;">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-5b04cdb29dc09310822633-1">$ maas 20-root ipranges create type=dynamic start_ip=10.14.0.40 end_ip=10.14.0.90</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dc09310822633-2">$ maas 20-root ipranges create type=dynamic start_ip=10.30.0.40 end_ip=10.30.0.90</div><div class="crayon-line" id="crayon-5b04cdb29dc09310822633-3">$ maas 20-root ipranges create type=dynamic start_ip=10.50.0.40 end_ip=10.50.0.90</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dc09310822633-4">$ maas 20-root ipranges create type=dynamic start_ip=10.100.0.40 end_ip=10.100.0.90</div><div class="crayon-line" id="crayon-5b04cdb29dc09310822633-5">$ maas 20-root ipranges create type=dynamic start_ip=10.150.0.40 end_ip=10.150.0.90</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dc09310822633-6">$ maas 20-root ipranges create type=dynamic start_ip=10.200.0.40 end_ip=10.200.0.90</div><div class="crayon-line" id="crayon-5b04cdb29dc09310822633-7">$ maas 20-root ipranges create type=dynamic start_ip=10.250.0.40 end_ip=10.250.0.90</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0003 seconds] -->
</li>
<li><span style="color: #008000;">Enable DHCP (using the created IP ranges) on all VLANs of the maas-management fabric, except compute-external (VID: 99). We need to pass the rack controller ID explicitly (get it from <code>$ maas 20-root rack-controllers read | grep system_id</code>):</span><br>
<!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dc0e631033683" 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 20-root vlan update 1 0 name=maas-management dhcp_on=True primary_rack=4y3h7n
$ maas 20-root vlan update 1 30 name=storage-cluster dhcp_on=True primary_rack=4y3h7n
$ maas 20-root vlan update 1 50 name=public-api dhcp_on=True primary_rack=4y3h7n
$ maas 20-root vlan update 1 100 name=internal-api dhcp_on=True primary_rack=4y3h7n
$ maas 20-root vlan update 1 150 name=admin-api dhcp_on=True primary_rack=4y3h7n
$ maas 20-root vlan update 1 200 name=storage-data dhcp_on=True primary_rack=4y3h7n
$ maas 20-root vlan update 1 250 name=compute-data dhcp_on=True primary_rack=4y3h7n
# Rename the unmanaged VLAN with VID:99 to compute-external (optional; for readability):
$ maas 20-root vlan update 1 99 name=compute-external</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-5b04cdb29dc0e631033683-1" style="height: 15px;">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dc0e631033683-2" style="height: 15px;">2</div><div class="crayon-num" data-line="crayon-5b04cdb29dc0e631033683-3" style="height: 15px;">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dc0e631033683-4" style="height: 15px;">4</div><div class="crayon-num" data-line="crayon-5b04cdb29dc0e631033683-5" style="height: 15px;">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dc0e631033683-6" style="height: 15px;">6</div><div class="crayon-num" data-line="crayon-5b04cdb29dc0e631033683-7" style="height: 15px;">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dc0e631033683-8" style="height: 15px;">8</div><div class="crayon-num" data-line="crayon-5b04cdb29dc0e631033683-9" style="height: 15px;">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-5b04cdb29dc0e631033683-10" style="height: 15px;">10</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-5b04cdb29dc0e631033683-1">$ maas 20-root vlan update 1 0 name=maas-management dhcp_on=True primary_rack=4y3h7n</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dc0e631033683-2">$ maas 20-root vlan update 1 30 name=storage-cluster dhcp_on=True primary_rack=4y3h7n</div><div class="crayon-line" id="crayon-5b04cdb29dc0e631033683-3">$ maas 20-root vlan update 1 50 name=public-api dhcp_on=True primary_rack=4y3h7n</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dc0e631033683-4">$ maas 20-root vlan update 1 100 name=internal-api dhcp_on=True primary_rack=4y3h7n</div><div class="crayon-line" id="crayon-5b04cdb29dc0e631033683-5">$ maas 20-root vlan update 1 150 name=admin-api dhcp_on=True primary_rack=4y3h7n</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dc0e631033683-6">$ maas 20-root vlan update 1 200 name=storage-data dhcp_on=True primary_rack=4y3h7n</div><div class="crayon-line" id="crayon-5b04cdb29dc0e631033683-7">$ maas 20-root vlan update 1 250 name=compute-data dhcp_on=True primary_rack=4y3h7n</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dc0e631033683-8"> </div><div class="crayon-line" id="crayon-5b04cdb29dc0e631033683-9"># Rename the unmanaged VLAN with VID:99 to compute-external (optional; for readability):</div><div class="crayon-line crayon-striped-line" id="crayon-5b04cdb29dc0e631033683-10">$ maas 20-root vlan update 1 99 name=compute-external</div></div></td>
</tr>
</tbody></table>
</div>
</div>
<!-- [Format Time: 0.0003 seconds] -->
</li>
</ul>
<p>After those commands your Subnets page in the MAAS UI should look like the following screenshot <span style="color: #008000;">(in MAAS 1.9, for MAAS 2.0 look at the <strong>Networks</strong> page for the same information, albeit displayed slightly differently)</span>:</p>
<div id="attachment_390" style="width: 630px" class="wp-caption aligncenter"><img class="wp-image-390 size-large" src="./2- MAAS Setup_ Deploying OpenStack on MAAS 1.9+ with Juju_files/fabrics-spaces-subnets-1024x933.png" alt="fabrics-spaces-subnets" width="620" height="565" srcset="http://blog.naydenov.net/wp-content/uploads/2016/01/fabrics-spaces-subnets-1024x933.png 1024w, http://blog.naydenov.net/wp-content/uploads/2016/01/fabrics-spaces-subnets-300x273.png 300w, http://blog.naydenov.net/wp-content/uploads/2016/01/fabrics-spaces-subnets-768x699.png 768w" sizes="(max-width: 620px) 100vw, 620px"><p class="wp-caption-text">MAAS Subnets showing fabrics and spaces</p></div>
<h3>Importing Boot Images and Next Steps</h3>
<p>We’re almost ready to use our new MAAS. Three more steps remain:</p>
<ul>
<li>Importing boot images to use for deployments of nodes</li>
<li>Enlisting all 4 NUCs as nodes.</li>
<li>Accepting and commissioning all nodes.</li>
</ul>
<p>The first step can be done from the UI or the CLI. <span style="color: #008000;">We’ll need amd64 Ubuntu 14.04 LTS (Trusty) and Ubuntu 16.04 LTS (Xenial) images only for both MAAS 1.9 and 2.0</span>. Go to the web UI “Images” page, check “14.04 LTS” and “16.04 LTS” for Ubuntu release and “amd64” for Architecture, then click “Import images”. Sit and wait – with a reasonably fast Internet connection it should take only a few minutes (less than 800 MB download for the 14.04 amd64 image).</p>
<p>Alternatively, with the CLI you can run <span style="color: #008000;">(same command for both MAAS 1.9 and MAAS 2.0)</span>:</p>
<p></p><!-- Crayon Syntax Highlighter v_2.7.2_beta -->
<div id="crayon-5b04cdb29dc15481466064" 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;">