Ubuntu Pastebin

Paste from dfbh at Fri, 15 Apr 2016 13:47:44 +0000

Download as text
   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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
ubuntu@node0:/var/log$ 
ubuntu@node0:/var/log$ sudo cat cloud-init-output.log
Cloud-init v. 0.7.5 running 'init-local' at Fri, 15 Apr 2016 11:34:25 +0000. Up 7.53 seconds.
Cloud-init v. 0.7.5 running 'init' at Fri, 15 Apr 2016 11:34:29 +0000. Up 11.80 seconds.
ci-info: ++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++
ci-info: +---------+------+----------------+---------------+-------------------+
ci-info: |  Device |  Up  |    Address     |      Mask     |     Hw-Address    |
ci-info: +---------+------+----------------+---------------+-------------------+
ci-info: | eth1.14 | True | 192.168.14.193 | 255.255.255.0 | 00:1b:78:e3:f7:5e |
ci-info: | eth1.15 | True | 192.168.15.193 | 255.255.255.0 | 00:1b:78:e3:f7:5e |
ci-info: | eth1.16 | True | 192.168.16.193 | 255.255.255.0 | 00:1b:78:e3:f7:5e |
ci-info: | eth1.11 | True | 192.168.11.193 | 255.255.255.0 | 00:1b:78:e3:f7:5e |
ci-info: | eth1.12 | True | 192.168.12.193 | 255.255.255.0 | 00:1b:78:e3:f7:5e |
ci-info: | eth1.13 | True | 192.168.13.193 | 255.255.255.0 | 00:1b:78:e3:f7:5e |
ci-info: |    lo   | True |   127.0.0.1    |   255.0.0.0   |         .         |
ci-info: |   eth1  | True |       .        |       .       | 00:1b:78:e3:f7:5e |
ci-info: |   eth0  | True | 192.168.6.193  | 255.255.255.0 | 00:1b:78:e3:e7:de |
ci-info: +---------+------+----------------+---------------+-------------------+
ci-info: ++++++++++++++++++++++++++++++++Route info++++++++++++++++++++++++++++++++
ci-info: +-------+--------------+-------------+---------------+-----------+-------+
ci-info: | Route | Destination  |   Gateway   |    Genmask    | Interface | Flags |
ci-info: +-------+--------------+-------------+---------------+-----------+-------+
ci-info: |   0   |   0.0.0.0    | 192.168.6.1 |    0.0.0.0    |    eth0   |   UG  |
ci-info: |   1   | 192.168.6.0  |   0.0.0.0   | 255.255.255.0 |    eth0   |   U   |
ci-info: |   2   | 192.168.11.0 |   0.0.0.0   | 255.255.255.0 |  eth1.11  |   U   |
ci-info: |   3   | 192.168.12.0 |   0.0.0.0   | 255.255.255.0 |  eth1.12  |   U   |
ci-info: |   4   | 192.168.13.0 |   0.0.0.0   | 255.255.255.0 |  eth1.13  |   U   |
ci-info: |   5   | 192.168.14.0 |   0.0.0.0   | 255.255.255.0 |  eth1.14  |   U   |
ci-info: |   6   | 192.168.15.0 |   0.0.0.0   | 255.255.255.0 |  eth1.15  |   U   |
ci-info: |   7   | 192.168.16.0 |   0.0.0.0   | 255.255.255.0 |  eth1.16  |   U   |
ci-info: +-------+--------------+-------------+---------------+-----------+-------+
Generating public/private rsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is:
39:09:89:88:45:c6:0e:e3:37:c0:3d:55:47:1f:f4:f8 root@node0
The key's randomart image is:
+--[ RSA 2048]----+
|.o= .....o.o     |
|o*.+ . .. . +    |
|o+o o o    o .   |
| ..o   . o  .    |
|  . .   S    E   |
|         .       |
|                 |
|                 |
|                 |
+-----------------+
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
db:6d:67:37:52:cc:c5:86:80:0e:0a:c4:f6:fb:d7:17 root@node0
The key's randomart image is:
+--[ DSA 1024]----+
|   o.      ..    |
|    +   . .  . o |
|   . o . o    . +|
|      o   .   o..|
|       .S      + |
|      .  o .  E  |
|       .. ..o.oo.|
|        . ...oo..|
|         .   .   |
+-----------------+
Generating public/private ecdsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_ecdsa_key.
Your public key has been saved in /etc/ssh/ssh_host_ecdsa_key.pub.
The key fingerprint is:
83:27:f9:91:6a:08:8f:77:d6:7f:d1:2d:af:38:3e:93 root@node0
The key's randomart image is:
+--[ECDSA  256]---+
|                 |
|                 |
|                 |
|       o .       |
|  .   + S    . . |
|   + . * o  . o .|
|  . + = o    o o |
|   . +   .  E.  .|
|          .oo+.. |
+-----------------+
Generating public/private ed25519 key pair.
Your identification has been saved in /etc/ssh/ssh_host_ed25519_key.
Your public key has been saved in /etc/ssh/ssh_host_ed25519_key.pub.
The key fingerprint is:
dd:2f:a0:e7:60:8f:bc:79:d6:5e:3f:91:e2:c9:8e:ff root@node0
The key's randomart image is:
+--[ED25519  256--+
|                 |
|                 |
|                 |
|         . .     |
|        S o .   .|
|         . . o o |
|        + ..+ = .|
|       o Bo o* o |
|        =+oo+o.Eo|
+-----------------+
Cloud-init v. 0.7.5 running 'modules:config' at Fri, 15 Apr 2016 11:34:37 +0000. Up 19.79 seconds.
Generating locales...
  en_US.UTF-8... up-to-date
Generation complete.
Ign http://archive.ubuntu.com trusty InRelease
Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:2 http://archive.ubuntu.com trusty-security InRelease [65.9 kB]
Hit http://archive.ubuntu.com trusty Release.gpg
Get:3 http://archive.ubuntu.com trusty-updates/main amd64 Packages [752 kB]
Get:4 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]
Get:5 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [358 kB]
Get:6 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [13.2 kB]
Get:7 http://archive.ubuntu.com trusty-updates/main Translation-en [376 kB]
Get:8 http://archive.ubuntu.com trusty-updates/multiverse Translation-en [7227 B]
Get:9 http://archive.ubuntu.com trusty-updates/restricted Translation-en [3699 B]
Get:10 http://archive.ubuntu.com trusty-updates/universe Translation-en [187 kB]
Get:11 http://archive.ubuntu.com trusty-security/main amd64 Packages [455 kB]
Get:12 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [13.0 kB]
Get:13 http://archive.ubuntu.com trusty-security/universe amd64 Packages [127 kB]
Get:14 http://archive.ubuntu.com trusty-security/multiverse amd64 Packages [4982 B]
Get:15 http://archive.ubuntu.com trusty-security/main Translation-en [250 kB]
Get:16 http://archive.ubuntu.com trusty-security/multiverse Translation-en [2570 B]
Get:17 http://archive.ubuntu.com trusty-security/restricted Translation-en [3206 B]
Get:18 http://archive.ubuntu.com trusty-security/universe Translation-en [74.7 kB]
Hit http://archive.ubuntu.com trusty Release
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
Get:19 http://archive.ubuntu.com trusty/main Translation-en [762 kB]
Get:20 http://archive.ubuntu.com trusty/multiverse Translation-en [102 kB]
Get:21 http://archive.ubuntu.com trusty/restricted Translation-en [3457 B]
Get:22 http://archive.ubuntu.com trusty/universe Translation-en [4089 kB]
Fetched 7732 kB in 31s (246 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  bridge-utils
0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
Need to get 29.2 kB of archives.
After this operation, 146 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com//ubuntu/ trusty/main bridge-utils amd64 1.5-6ubuntu2 [29.2 kB]
Fetched 29.2 kB in 0s (50.8 kB/s)
Selecting previously unselected package bridge-utils.
(Reading database ... 85851 files and directories currently installed.)
Preparing to unpack .../bridge-utils_1.5-6ubuntu2_amd64.deb ...
Unpacking bridge-utils (1.5-6ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up bridge-utils (1.5-6ubuntu2) ...
Cloud-init v. 0.7.5 running 'modules:final' at Fri, 15 Apr 2016 11:35:17 +0000. Up 60.08 seconds.
+ mkdir -p /var/lib/juju
+ cat
+ chmod 0755 /var/lib/juju/MAASmachine.txt
+ cat
+ python_script=#!/usr/bin/env python

# Copyright 2015 Canonical Ltd.
# Licensed under the AGPLv3, see LICENCE file for details.

from __future__ import print_function
import argparse
import os
import re
import shutil
import subprocess
import sys


# This script re-renders an interfaces(5) file to enslave the primary
# NIC with a bridge. It is aware of bond interfaces and aliases.

class SeekableIterator(object):
    """An iterator that supports relative seeking."""

    def __init__(self, iterable):
        self.iterable = iterable
        self.index = 0

    def __iter__(self):
        return self

    def next(self):  # Python 2
        try:
            value = self.iterable[self.index]
            self.index += 1
            return value
        except IndexError:
            raise StopIteration

    def __next__(self):  # Python 3
        return self.next()

    def seek(self, n, relative=False):
        if relative:
            self.index += n
        else:
            self.index = n
        if self.index < 0 or self.index >= len(self.iterable):
            raise IndexError


class Stanza(object):
    """Represents one stanza together with all its options."""

    def __init__(self, definition, options=None):
        if not options:
            options = []
        self._definition = definition
        self._options = options

    def is_physical_interface(self):
        return self._definition.startswith('auto ')

    def is_logical_interface(self):
        return self._definition.startswith('iface ')

    def options(self):
        return self._options

    def definition(self):
        return self._definition

    def interface_name(self):
        if self.is_physical_interface():
            return self._definition.split()[1]
        if self.is_logical_interface():
            return self._definition.split()[1]
        return None


class NetworkInterfaceParser(object):
    """Parse a network interface file into its set of stanzas."""

    @classmethod
    def is_stanza(cls, s):
        return re.match(r'^(iface|mapping|auto|allow-|source)', s)

    def __init__(self, filename):
        self._filename = filename
        self._stanzas = []
        with open(filename) as f:
            lines = f.readlines()
        line_iterator = SeekableIterator(lines)
        for line in line_iterator:
            if self.is_stanza(line):
                stanza = self._parse_stanza(line, line_iterator)
                self._stanzas.append(stanza)

    def _parse_stanza(self, stanza_line, iterable):
        stanza_options = []
        for line in iterable:
            line = line.strip()
            if line.startswith('#') or line == "":
                continue
            if self.is_stanza(line):
                iterable.seek(-1, True)
                break
            stanza_options.append(line)
        return Stanza(stanza_line.strip(), stanza_options)

    def stanzas(self):
        return [x for x in self._stanzas]


def print_stanza(s, stream=sys.stdout):
    print(s.definition(), file=stream)
    for o in s.options():
        print("   ", o, file=stream)


def print_stanzas(stanzas, stream=sys.stdout):
    n = len(stanzas)
    for i, s in enumerate(stanzas):
        print_stanza(s, stream)
        if s.is_logical_interface() and i + 1 < n:
            print(file=stream)


# Parses filename and returns a set of stanzas that have the existing
# primary NIC bridged.
def add_bridge(filename, bridge_name, primary_nic, bonded):
    stanzas = []

    for s in NetworkInterfaceParser(filename).stanzas():
        if not s.is_logical_interface() and not s.is_physical_interface():
            stanzas.append(s)
            continue

        if primary_nic != s.interface_name() and \
                        primary_nic not in s.interface_name():
            stanzas.append(s)
            continue

        if bonded:
            if s.is_physical_interface():
                stanzas.append(s)
            else:
                iface, orig_name, addr_family, method = s.definition().split()
                stanzas.append(Stanza("iface {} {} manual".format(orig_name, addr_family), s.options()))

                # new auto <bridge_name>
                stanzas.append(Stanza("auto {}".format(bridge_name)))

                # new iface <bridge_name> ...
                options = [x for x in s.options() if not x.startswith("bond")]
                options.insert(0, "bridge_ports {}".format(primary_nic))
                options.append("pre-up ip link add dev {} name {} type bridge || true".format(orig_name, bridge_name))
                stanzas.append(Stanza("iface {} {} {}".format(bridge_name, addr_family, method), options))
            continue

        if primary_nic == s.interface_name():
            if s.is_physical_interface():
                # The net change:
                #   auto eth0
                # to:
                #   auto <bridge_name>
                words = s.definition().split()
                words[1] = bridge_name
                stanzas.append(Stanza(" ".join(words)))
            else:
                # The net change is:
                #   auto eth0
                #   iface eth0 inet <config>
                # to:
                #   iface eth0 inet manual
                #
                #   auto <bridge_name>
                #   iface <bridge_name> inet <config>
                words = s.definition().split()
                words[3] = "manual"
                if len(stanzas) > 0:
                    last_stanza = stanzas.pop()
                else:
                    last_stanza = None
                stanzas.append(Stanza(" ".join(words)))
                if last_stanza:
                    stanzas.append(last_stanza)
                # Replace existing 'iface' line with new <bridge_name>
                words = s.definition().split()
                words[1] = bridge_name
                options = s.options()
                options.insert(0, "bridge_ports {}".format(primary_nic))
                stanzas.append(Stanza(" ".join(words), options))
            continue

        # Aliases, hence the 'eth0' in 'auto eth0:1'.

        if primary_nic in s.definition():
            definition = s.definition().replace(primary_nic, bridge_name)
            stanzas.append(Stanza(definition, s.options()))

    return stanzas


def shell_cmd(s):
    p = subprocess.Popen(s, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    out, err = p.communicate()
    return [out, err, p.returncode]


def print_shell_cmd(s, verbose=True, exitOnError=False):
    if verbose: print(s)
    out, err, retcode = shell_cmd(s)
    if out and len(out) > 0:
        print(out.rstrip(chr(10)))
    if err and len(err) > 0:
        print(err.rstrip(chr(10)))
    if exitOnError and retcode != 0:
        sys.exit(1)


def check_shell_cmd(s, verbose=False):
    if verbose: print(s)
    output = subprocess.check_output(s, shell=True, stderr=subprocess.STDOUT).strip().decode("utf-8")
    if verbose: print(output.rstrip('\n'))
    return output


def get_gateway(ver='-4'):
    return check_shell_cmd("ip {} route list exact default | head -n1 | cut -d' ' -f3".format(ver))


def get_primary_nic(ver='-4'):
    return check_shell_cmd("ip {} route list exact default | head -n1 | cut -d' ' -f5".format(ver))


def is_nic_bonded(name):
    out, err, retcode = shell_cmd("cat {}".format("/sys/class/net/bonding_masters"))
    return name in out


def is_bridged(name, filename):
    for s in NetworkInterfaceParser(filename).stanzas():
        if name in s.definition():
            return True
    return False


def link_is_up(name):
    out, err, retcode = shell_cmd('ip link show {} up'.format(name))
    return re.search(r'\s+{}:\s+.*\s+state\s+UP\s+'.format(name), out)


def ifup(name, retries=5):
    if retries < 1:
        retries = 1
    i = 1
    while i <= retries:
        print("link {} not up, attempt ({}/{})".format(name, i, retries))
        print_shell_cmd("ifdown -v -a")
        print_shell_cmd("ifup -v -a")
        if link_is_up(name):
            return True
        print_shell_cmd("ip link")
        i += 1
    return False


parser = argparse.ArgumentParser()

parser.add_argument('--filename',
                    help='filename to re-render',
                    type=str,
                    required=False,
                    default="/etc/network/interfaces")

parser.add_argument('--bridge-name',
                    help="bridge name",
                    type=str,
                    required=False,
                    default='juju-br0')

parser.add_argument('--primary-nic',
                    help="primary NIC name",
                    type=str,
                    required=False)

parser.add_argument('--primary-nic-is-bonded',
                    help="primary NIC is bonded",
                    action='store_true',
                    required=False)

parser.add_argument('--render-only',
                    help='render to stdout, no network restart',
                    action='store_true',
                    required=False)

parser.add_argument('--backup-filename',
                    help='backup filename',
                    type=str,
                    required=False)

args = parser.parse_args()

if is_bridged(args.bridge_name, args.filename):
    print("already bridged; nothing to do")
    sys.exit(0)

if not args.primary_nic:
    args.primary_nic = get_primary_nic()

if not args.primary_nic_is_bonded:
    args.primary_nic_is_bonded = is_nic_bonded(args.primary_nic)

bridged_stanzas = add_bridge(args.filename,
                             args.bridge_name,
                             args.primary_nic,
                             args.primary_nic_is_bonded)

if args.render_only:
    print_stanzas(bridged_stanzas)
    sys.exit(0)

if not get_gateway():
    print("no default gw; continue continue")
    sys.exit(1)

if args.backup_filename and not os.path.isfile(args.backup_filename):
    shutil.copy2(args.filename, args.backup_filename)

print("**** Original configuration")
print_shell_cmd("cat {}".format(args.filename))
print_shell_cmd("ifconfig -a")
print_shell_cmd("ip route show")
print_shell_cmd("ifdown -v -a")

print("**** Activating new configuration")

with open(args.filename, 'w') as f:
    print_stanzas(bridged_stanzas, f)
    f.close()

if not ifup(args.bridge_name):
    sys.exit(1)

print_shell_cmd("ifconfig -a")
print_shell_cmd("ip route show")
print_shell_cmd("brctl show")
+ python -c #!/usr/bin/env python

# Copyright 2015 Canonical Ltd.
# Licensed under the AGPLv3, see LICENCE file for details.

from __future__ import print_function
import argparse
import os
import re
import shutil
import subprocess
import sys


# This script re-renders an interfaces(5) file to enslave the primary
# NIC with a bridge. It is aware of bond interfaces and aliases.

class SeekableIterator(object):
    """An iterator that supports relative seeking."""

    def __init__(self, iterable):
        self.iterable = iterable
        self.index = 0

    def __iter__(self):
        return self

    def next(self):  # Python 2
        try:
            value = self.iterable[self.index]
            self.index += 1
            return value
        except IndexError:
            raise StopIteration

    def __next__(self):  # Python 3
        return self.next()

    def seek(self, n, relative=False):
        if relative:
            self.index += n
        else:
            self.index = n
        if self.index < 0 or self.index >= len(self.iterable):
            raise IndexError


class Stanza(object):
    """Represents one stanza together with all its options."""

    def __init__(self, definition, options=None):
        if not options:
            options = []
        self._definition = definition
        self._options = options

    def is_physical_interface(self):
        return self._definition.startswith('auto ')

    def is_logical_interface(self):
        return self._definition.startswith('iface ')

    def options(self):
        return self._options

    def definition(self):
        return self._definition

    def interface_name(self):
        if self.is_physical_interface():
            return self._definition.split()[1]
        if self.is_logical_interface():
            return self._definition.split()[1]
        return None


class NetworkInterfaceParser(object):
    """Parse a network interface file into its set of stanzas."""

    @classmethod
    def is_stanza(cls, s):
        return re.match(r'^(iface|mapping|auto|allow-|source)', s)

    def __init__(self, filename):
        self._filename = filename
        self._stanzas = []
        with open(filename) as f:
            lines = f.readlines()
        line_iterator = SeekableIterator(lines)
        for line in line_iterator:
            if self.is_stanza(line):
                stanza = self._parse_stanza(line, line_iterator)
                self._stanzas.append(stanza)

    def _parse_stanza(self, stanza_line, iterable):
        stanza_options = []
        for line in iterable:
            line = line.strip()
            if line.startswith('#') or line == "":
                continue
            if self.is_stanza(line):
                iterable.seek(-1, True)
                break
            stanza_options.append(line)
        return Stanza(stanza_line.strip(), stanza_options)

    def stanzas(self):
        return [x for x in self._stanzas]


def print_stanza(s, stream=sys.stdout):
    print(s.definition(), file=stream)
    for o in s.options():
        print("   ", o, file=stream)


def print_stanzas(stanzas, stream=sys.stdout):
    n = len(stanzas)
    for i, s in enumerate(stanzas):
        print_stanza(s, stream)
        if s.is_logical_interface() and i + 1 < n:
            print(file=stream)


# Parses filename and returns a set of stanzas that have the existing
# primary NIC bridged.
def add_bridge(filename, bridge_name, primary_nic, bonded):
    stanzas = []

    for s in NetworkInterfaceParser(filename).stanzas():
        if not s.is_logical_interface() and not s.is_physical_interface():
            stanzas.append(s)
            continue

        if primary_nic != s.interface_name() and \
                        primary_nic not in s.interface_name():
            stanzas.append(s)
            continue

        if bonded:
            if s.is_physical_interface():
                stanzas.append(s)
            else:
                iface, orig_name, addr_family, method = s.definition().split()
                stanzas.append(Stanza("iface {} {} manual".format(orig_name, addr_family), s.options()))

                # new auto <bridge_name>
                stanzas.append(Stanza("auto {}".format(bridge_name)))

                # new iface <bridge_name> ...
                options = [x for x in s.options() if not x.startswith("bond")]
                options.insert(0, "bridge_ports {}".format(primary_nic))
                options.append("pre-up ip link add dev {} name {} type bridge || true".format(orig_name, bridge_name))
                stanzas.append(Stanza("iface {} {} {}".format(bridge_name, addr_family, method), options))
            continue

        if primary_nic == s.interface_name():
            if s.is_physical_interface():
                # The net change:
                #   auto eth0
                # to:
                #   auto <bridge_name>
                words = s.definition().split()
                words[1] = bridge_name
                stanzas.append(Stanza(" ".join(words)))
            else:
                # The net change is:
                #   auto eth0
                #   iface eth0 inet <config>
                # to:
                #   iface eth0 inet manual
                #
                #   auto <bridge_name>
                #   iface <bridge_name> inet <config>
                words = s.definition().split()
                words[3] = "manual"
                if len(stanzas) > 0:
                    last_stanza = stanzas.pop()
                else:
                    last_stanza = None
                stanzas.append(Stanza(" ".join(words)))
                if last_stanza:
                    stanzas.append(last_stanza)
                # Replace existing 'iface' line with new <bridge_name>
                words = s.definition().split()
                words[1] = bridge_name
                options = s.options()
                options.insert(0, "bridge_ports {}".format(primary_nic))
                stanzas.append(Stanza(" ".join(words), options))
            continue

        # Aliases, hence the 'eth0' in 'auto eth0:1'.

        if primary_nic in s.definition():
            definition = s.definition().replace(primary_nic, bridge_name)
            stanzas.append(Stanza(definition, s.options()))

    return stanzas


def shell_cmd(s):
    p = subprocess.Popen(s, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    out, err = p.communicate()
    return [out, err, p.returncode]


def print_shell_cmd(s, verbose=True, exitOnError=False):
    if verbose: print(s)
    out, err, retcode = shell_cmd(s)
    if out and len(out) > 0:
        print(out.rstrip(chr(10)))
    if err and len(err) > 0:
        print(err.rstrip(chr(10)))
    if exitOnError and retcode != 0:
        sys.exit(1)


def check_shell_cmd(s, verbose=False):
    if verbose: print(s)
    output = subprocess.check_output(s, shell=True, stderr=subprocess.STDOUT).strip().decode("utf-8")
    if verbose: print(output.rstrip('\n'))
    return output


def get_gateway(ver='-4'):
    return check_shell_cmd("ip {} route list exact default | head -n1 | cut -d' ' -f3".format(ver))


def get_primary_nic(ver='-4'):
    return check_shell_cmd("ip {} route list exact default | head -n1 | cut -d' ' -f5".format(ver))


def is_nic_bonded(name):
    out, err, retcode = shell_cmd("cat {}".format("/sys/class/net/bonding_masters"))
    return name in out


def is_bridged(name, filename):
    for s in NetworkInterfaceParser(filename).stanzas():
        if name in s.definition():
            return True
    return False


def link_is_up(name):
    out, err, retcode = shell_cmd('ip link show {} up'.format(name))
    return re.search(r'\s+{}:\s+.*\s+state\s+UP\s+'.format(name), out)


def ifup(name, retries=5):
    if retries < 1:
        retries = 1
    i = 1
    while i <= retries:
        print("link {} not up, attempt ({}/{})".format(name, i, retries))
        print_shell_cmd("ifdown -v -a")
        print_shell_cmd("ifup -v -a")
        if link_is_up(name):
            return True
        print_shell_cmd("ip link")
        i += 1
    return False


parser = argparse.ArgumentParser()

parser.add_argument('--filename',
                    help='filename to re-render',
                    type=str,
                    required=False,
                    default="/etc/network/interfaces")

parser.add_argument('--bridge-name',
                    help="bridge name",
                    type=str,
                    required=False,
                    default='juju-br0')

parser.add_argument('--primary-nic',
                    help="primary NIC name",
                    type=str,
                    required=False)

parser.add_argument('--primary-nic-is-bonded',
                    help="primary NIC is bonded",
                    action='store_true',
                    required=False)

parser.add_argument('--render-only',
                    help='render to stdout, no network restart',
                    action='store_true',
                    required=False)

parser.add_argument('--backup-filename',
                    help='backup filename',
                    type=str,
                    required=False)

args = parser.parse_args()

if is_bridged(args.bridge_name, args.filename):
    print("already bridged; nothing to do")
    sys.exit(0)

if not args.primary_nic:
    args.primary_nic = get_primary_nic()

if not args.primary_nic_is_bonded:
    args.primary_nic_is_bonded = is_nic_bonded(args.primary_nic)

bridged_stanzas = add_bridge(args.filename,
                             args.bridge_name,
                             args.primary_nic,
                             args.primary_nic_is_bonded)

if args.render_only:
    print_stanzas(bridged_stanzas)
    sys.exit(0)

if not get_gateway():
    print("no default gw; continue continue")
    sys.exit(1)

if args.backup_filename and not os.path.isfile(args.backup_filename):
    shutil.copy2(args.filename, args.backup_filename)

print("**** Original configuration")
print_shell_cmd("cat {}".format(args.filename))
print_shell_cmd("ifconfig -a")
print_shell_cmd("ip route show")
print_shell_cmd("ifdown -v -a")

print("**** Activating new configuration")

with open(args.filename, 'w') as f:
    print_stanzas(bridged_stanzas, f)
    f.close()

if not ifup(args.bridge_name):
    sys.exit(1)

print_shell_cmd("ifconfig -a")
print_shell_cmd("ip route show")
print_shell_cmd("brctl show") --backup-filename=/etc/network/interfaces-orig --filename=/etc/network/interfaces --bridge-name=juju-br0
**** Original configuration
cat /etc/network/interfaces
auto eth0
iface eth0 inet static
    gateway 192.168.6.1
    address 192.168.6.193/24
    mtu 1500

auto eth1
iface eth1 inet manual
    mtu 1500

auto eth1.11
iface eth1.11 inet static
    address 192.168.11.193/24
    vlan-raw-device eth1
    mtu 1500
    vlan_id 11

auto eth1.12
iface eth1.12 inet static
    address 192.168.12.193/24
    vlan-raw-device eth1
    mtu 1500
    vlan_id 12

auto eth1.13
iface eth1.13 inet static
    address 192.168.13.193/24
    vlan-raw-device eth1
    mtu 1500
    vlan_id 13

auto eth1.14
iface eth1.14 inet static
    address 192.168.14.193/24
    vlan-raw-device eth1
    mtu 1500
    vlan_id 14

auto eth1.15
iface eth1.15 inet static
    address 192.168.15.193/24
    vlan-raw-device eth1
    mtu 1500
    vlan_id 15

auto eth1.16
iface eth1.16 inet static
    address 192.168.16.193/24
    vlan-raw-device eth1
    mtu 1500
    vlan_id 16

dns-nameservers 192.168.6.11
dns-search maas
ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1b:78:e3:e7:de  
          inet addr:192.168.6.193  Bcast:192.168.6.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fee3:e7de/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5896 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1041 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8223695 (8.2 MB)  TX bytes:98337 (98.3 KB)

eth1      Link encap:Ethernet  HWaddr 00:1b:78:e3:f7:5e  
          inet6 addr: fe80::21b:78ff:fee3:f75e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:4952 (4.9 KB)

eth1.11   Link encap:Ethernet  HWaddr 00:1b:78:e3:f7:5e  
          inet addr:192.168.11.193  Bcast:192.168.11.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fee3:f75e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:648 (648.0 B)

eth1.12   Link encap:Ethernet  HWaddr 00:1b:78:e3:f7:5e  
          inet addr:192.168.12.193  Bcast:192.168.12.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fee3:f75e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:648 (648.0 B)

eth1.13   Link encap:Ethernet  HWaddr 00:1b:78:e3:f7:5e  
          inet addr:192.168.13.193  Bcast:192.168.13.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fee3:f75e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:648 (648.0 B)

eth1.14   Link encap:Ethernet  HWaddr 00:1b:78:e3:f7:5e  
          inet addr:192.168.14.193  Bcast:192.168.14.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fee3:f75e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:648 (648.0 B)

eth1.15   Link encap:Ethernet  HWaddr 00:1b:78:e3:f7:5e  
          inet addr:192.168.15.193  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fee3:f75e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:648 (648.0 B)

eth1.16   Link encap:Ethernet  HWaddr 00:1b:78:e3:f7:5e  
          inet addr:192.168.16.193  Bcast:192.168.16.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fee3:f75e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:648 (648.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:352 (352.0 B)  TX bytes:352 (352.0 B)
ip route show
default via 192.168.6.1 dev eth0 
192.168.6.0/24 dev eth0  proto kernel  scope link  src 192.168.6.193 
192.168.11.0/24 dev eth1.11  proto kernel  scope link  src 192.168.11.193 
192.168.12.0/24 dev eth1.12  proto kernel  scope link  src 192.168.12.193 
192.168.13.0/24 dev eth1.13  proto kernel  scope link  src 192.168.13.193 
192.168.14.0/24 dev eth1.14  proto kernel  scope link  src 192.168.14.193 
192.168.15.0/24 dev eth1.15  proto kernel  scope link  src 192.168.15.193 
192.168.16.0/24 dev eth1.16  proto kernel  scope link  src 192.168.16.193 
ifdown -v -a
Removed VLAN -:eth1.15:-
Removed VLAN -:eth1.14:-
Removed VLAN -:eth1.12:-
Removed VLAN -:eth1.13:-
Removed VLAN -:eth1.11:-
Removed VLAN -:eth1.16:-
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/upstart
Configuring interface eth1.15=eth1.15 (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/upstart

ip -4 addr flush dev eth1.15 label eth1.15
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/bridge
run-parts: executing /etc/network/if-post-down.d/vlan
Configuring interface eth1.14=eth1.14 (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/upstart

ip -4 addr flush dev eth1.14 label eth1.14
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/bridge
run-parts: executing /etc/network/if-post-down.d/vlan
Configuring interface eth1.12=eth1.12 (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/upstart

ip -4 addr flush dev eth1.12 label eth1.12
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/bridge
run-parts: executing /etc/network/if-post-down.d/vlan
Configuring interface eth1.13=eth1.13 (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/upstart

ip -4 addr flush dev eth1.13 label eth1.13
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/bridge
run-parts: executing /etc/network/if-post-down.d/vlan
Configuring interface eth1=eth1 (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/upstart
ip link set dev eth1 down
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/bridge
run-parts: executing /etc/network/if-post-down.d/vlan
ifdown: waiting for lock on /run/network/ifstate.eth1
Configuring interface eth1.11=eth1.11 (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/upstart

ip -4 addr flush dev eth1.11 label eth1.11
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/bridge
run-parts: executing /etc/network/if-post-down.d/vlan
Configuring interface lo=lo (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/upstart
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/bridge
run-parts: executing /etc/network/if-post-down.d/vlan
Configuring interface eth1.16=eth1.16 (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/upstart

ip -4 addr flush dev eth1.16 label eth1.16
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/bridge
run-parts: executing /etc/network/if-post-down.d/vlan
Configuring interface eth0=eth0 (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/upstart
 ip route del default via 192.168.6.1  dev eth0 2>&1 1>/dev/null || true 
ip -4 addr flush dev eth0 label eth0
ip link set dev eth0 down
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/bridge
run-parts: executing /etc/network/if-post-down.d/vlan
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/bridge
run-parts: executing /etc/network/if-post-down.d/vlan
**** Activating new configuration
link juju-br0 not up, attempt (1/5)
ifdown -v -a
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/upstart
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/bridge
run-parts: executing /etc/network/if-post-down.d/vlan
ifup -v -a

Waiting for juju-br0 to get ready (MAXWAIT is 32 seconds).
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 11 to IF -:eth1:-
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 12 to IF -:eth1:-
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 13 to IF -:eth1:-
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 14 to IF -:eth1:-
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 15 to IF -:eth1:-
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 16 to IF -:eth1:-
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/vlan
Configuring interface lo=lo (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/vlan
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/ethtool
run-parts: executing /etc/network/if-up.d/ip
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/upstart
Configuring interface juju-br0=juju-br0 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/vlan
ip addr add 192.168.6.193/255.255.255.0 broadcast 192.168.6.255           dev juju-br0 label juju-br0
ip link set dev juju-br0 mtu 1500  up
 ip route add default via 192.168.6.1  dev juju-br0 
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/ethtool
run-parts: executing /etc/network/if-up.d/ip
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/upstart
Configuring interface eth1=eth1 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/vlan
ip link set dev eth1 mtu 1500  up
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/ethtool
run-parts: executing /etc/network/if-up.d/ip
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/upstart
Configuring interface eth1.11=eth1.11 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/vlan
ip addr add 192.168.11.193/255.255.255.0 broadcast 192.168.11.255         dev eth1.11 label eth1.11
ip link set dev eth1.11 mtu 1500  up

run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/ethtool
run-parts: executing /etc/network/if-up.d/ip
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/upstart
Configuring interface eth1.12=eth1.12 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/vlan
ip addr add 192.168.12.193/255.255.255.0 broadcast 192.168.12.255         dev eth1.12 label eth1.12
ip link set dev eth1.12 mtu 1500  up

run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/ethtool
run-parts: executing /etc/network/if-up.d/ip
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/upstart
Configuring interface eth1.13=eth1.13 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/vlan
ip addr add 192.168.13.193/255.255.255.0 broadcast 192.168.13.255         dev eth1.13 label eth1.13
ip link set dev eth1.13 mtu 1500  up

run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/ethtool
run-parts: executing /etc/network/if-up.d/ip
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/upstart
Configuring interface eth1.14=eth1.14 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/vlan
ip addr add 192.168.14.193/255.255.255.0 broadcast 192.168.14.255         dev eth1.14 label eth1.14
ip link set dev eth1.14 mtu 1500  up

run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/ethtool
run-parts: executing /etc/network/if-up.d/ip
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/upstart
Configuring interface eth1.15=eth1.15 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/vlan
ip addr add 192.168.15.193/255.255.255.0 broadcast 192.168.15.255         dev eth1.15 label eth1.15
ip link set dev eth1.15 mtu 1500  up

run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/ethtool
run-parts: executing /etc/network/if-up.d/ip
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/upstart
Configuring interface eth1.16=eth1.16 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge
run-parts: executing /etc/network/if-pre-up.d/ethtool
run-parts: executing /etc/network/if-pre-up.d/vlan
ip addr add 192.168.16.193/255.255.255.0 broadcast 192.168.16.255         dev eth1.16 label eth1.16
ip link set dev eth1.16 mtu 1500  up

run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/ethtool
run-parts: executing /etc/network/if-up.d/ip
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/upstart
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/ethtool
run-parts: executing /etc/network/if-up.d/ip
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/upstart
ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1b:78:e3:e7:de  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1266 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1139 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:269624 (269.6 KB)  TX bytes:202596 (202.5 KB)

eth1      Link encap:Ethernet  HWaddr 00:1b:78:e3:f7:5e  
          inet6 addr: fe80::21b:78ff:fee3:f75e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:79 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7027 (7.0 KB)  TX bytes:5208 (5.2 KB)

eth1.11   Link encap:Ethernet  HWaddr 00:1b:78:e3:f7:5e  
          inet addr:192.168.11.193  Bcast:192.168.11.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fee3:f75e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:660 (660.0 B)  TX bytes:648 (648.0 B)

eth1.12   Link encap:Ethernet  HWaddr 00:1b:78:e3:f7:5e  
          inet addr:192.168.12.193  Bcast:192.168.12.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fee3:f75e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:646 (646.0 B)  TX bytes:690 (690.0 B)

eth1.13   Link encap:Ethernet  HWaddr 00:1b:78:e3:f7:5e  
          inet addr:192.168.13.193  Bcast:192.168.13.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fee3:f75e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:646 (646.0 B)  TX bytes:690 (690.0 B)

eth1.14   Link encap:Ethernet  HWaddr 00:1b:78:e3:f7:5e  
          inet addr:192.168.14.193  Bcast:192.168.14.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fee3:f75e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:660 (660.0 B)  TX bytes:648 (648.0 B)

eth1.15   Link encap:Ethernet  HWaddr 00:1b:78:e3:f7:5e  
          inet addr:192.168.15.193  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fee3:f75e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:646 (646.0 B)  TX bytes:690 (690.0 B)

eth1.16   Link encap:Ethernet  HWaddr 00:1b:78:e3:f7:5e  
          inet addr:192.168.16.193  Bcast:192.168.16.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fee3:f75e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:646 (646.0 B)  TX bytes:690 (690.0 B)

juju-br0  Link encap:Ethernet  HWaddr 00:1b:78:e3:e7:de  
          inet addr:192.168.6.193  Bcast:192.168.6.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fee3:e7de/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1200 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1142 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:243510 (243.5 KB)  TX bytes:198118 (198.1 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1032 (1.0 KB)  TX bytes:1032 (1.0 KB)
ip route show
default via 192.168.6.1 dev juju-br0 
192.168.6.0/24 dev juju-br0  proto kernel  scope link  src 192.168.6.193 
192.168.11.0/24 dev eth1.11  proto kernel  scope link  src 192.168.11.193 
192.168.12.0/24 dev eth1.12  proto kernel  scope link  src 192.168.12.193 
192.168.13.0/24 dev eth1.13  proto kernel  scope link  src 192.168.13.193 
192.168.14.0/24 dev eth1.14  proto kernel  scope link  src 192.168.14.193 
192.168.15.0/24 dev eth1.15  proto kernel  scope link  src 192.168.15.193 
192.168.16.0/24 dev eth1.16  proto kernel  scope link  src 192.168.16.193 
brctl show
bridge name     bridge id               STP enabled     interfaces
juju-br0                8000.001b78e3e7de       no              eth0
+ set -xe
+ install -D -m 644 /dev/null /etc/init/juju-clean-shutdown.conf
+ printf %s\n 
author "Juju Team <juju@lists.ubuntu.com>"
description "Stop all network interfaces on shutdown"
start on runlevel [016]
task
console output

exec /sbin/ifdown -a -v --force

+ install -D -m 644 /dev/null /var/lib/juju/nonce.txt
+ printf %s\n user-admin:bootstrap
Cloud-init v. 0.7.5 finished at Fri, 15 Apr 2016 11:39:15 +0000. Datasource DataSourceMAAS [http://192.168.6.11/MAAS/metadata/].  Up 298.01 seconds
Ign http://archive.ubuntu.com trusty InRelease
Hit http://archive.ubuntu.com trusty-updates InRelease
Hit http://archive.ubuntu.com trusty-security InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://archive.ubuntu.com trusty-security/main amd64 Packages
Hit http://archive.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-security/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty-security/main Translation-en
Hit http://archive.ubuntu.com trusty-security/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-security/restricted Translation-en
Hit http://archive.ubuntu.com trusty-security/universe Translation-en
Hit http://archive.ubuntu.com trusty Release
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/multiverse Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_US
Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://archive.ubuntu.com trusty/universe Translation-en_US
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be upgraded:
  apt apt-transport-https apt-utils cloud-guest-utils cloud-init coreutils
  grub-legacy-ec2 initramfs-tools initramfs-tools-bin libapt-inst1.5
  libapt-pkg4.12 libpam-modules libpam-modules-bin libpam-runtime
  libpam-systemd libpam0g libpcre3 libsystemd-daemon0 libsystemd-login0
  libudev1 systemd-services tzdata udev
23 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,923 kB of archives.
After this operation, 9,216 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com//ubuntu/ trusty-updates/main coreutils amd64 8.21-1ubuntu5.4 [1,091 kB]
Get:2 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libapt-pkg4.12 amd64 1.0.1ubuntu2.12 [637 kB]
Get:3 http://archive.ubuntu.com//ubuntu/ trusty-updates/main apt amd64 1.0.1ubuntu2.12 [954 kB]
Get:4 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libpam0g amd64 1.1.8-1ubuntu2.2 [56.1 kB]
Get:5 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libpam-modules-bin amd64 1.1.8-1ubuntu2.2 [31.2 kB]
Get:6 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libpam-modules amd64 1.1.8-1ubuntu2.2 [234 kB]
Get:7 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libpcre3 amd64 1:8.31-2ubuntu2.2 [144 kB]
Get:8 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libapt-inst1.5 amd64 1.0.1ubuntu2.12 [58.6 kB]
Get:9 http://archive.ubuntu.com//ubuntu/ trusty-updates/main udev amd64 204-5ubuntu20.19 [735 kB]
Get:10 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libudev1 amd64 204-5ubuntu20.19 [33.8 kB]
Get:11 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libpam-systemd amd64 204-5ubuntu20.19 [25.5 kB]
Get:12 http://archive.ubuntu.com//ubuntu/ trusty-updates/main systemd-services amd64 204-5ubuntu20.19 [197 kB]
Get:13 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libsystemd-daemon0 amd64 204-5ubuntu20.19 [10.2 kB]
Get:14 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libpam-runtime all 1.1.8-1ubuntu2.2 [37.8 kB]
Get:15 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libsystemd-login0 amd64 204-5ubuntu20.19 [27.2 kB]
Get:16 http://archive.ubuntu.com//ubuntu/ trusty-updates/main tzdata all 2016c-0ubuntu0.14.04 [166 kB]
Get:17 http://archive.ubuntu.com//ubuntu/ trusty-updates/main apt-utils amd64 1.0.1ubuntu2.12 [172 kB]
Get:18 http://archive.ubuntu.com//ubuntu/ trusty-updates/main initramfs-tools all 0.103ubuntu4.3 [44.4 kB]
Get:19 http://archive.ubuntu.com//ubuntu/ trusty-updates/main initramfs-tools-bin amd64 0.103ubuntu4.3 [9,172 B]
Get:20 http://archive.ubuntu.com//ubuntu/ trusty-updates/main apt-transport-https amd64 1.0.1ubuntu2.12 [25.1 kB]
Get:21 http://archive.ubuntu.com//ubuntu/ trusty-updates/main cloud-guest-utils all 0.27-0ubuntu9.2 [13.8 kB]
Get:22 http://archive.ubuntu.com//ubuntu/ trusty-updates/main cloud-init all 0.7.5-0ubuntu1.18 [198 kB]
Get:23 http://archive.ubuntu.com//ubuntu/ trusty-updates/main grub-legacy-ec2 all 0.7.5-0ubuntu1.18 [22.5 kB]
Preconfiguring packages ...
Fetched 4,923 kB in 5s (932 kB/s)
(Reading database ... 85877 files and directories currently installed.)
Preparing to unpack .../coreutils_8.21-1ubuntu5.4_amd64.deb ...
Unpacking coreutils (8.21-1ubuntu5.4) over (8.21-1ubuntu5.3) ...
Processing triggers for install-info (5.2.0.dfsg.1-2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up coreutils (8.21-1ubuntu5.4) ...
(Reading database ... 85877 files and directories currently installed.)
Preparing to unpack .../libapt-pkg4.12_1.0.1ubuntu2.12_amd64.deb ...
Unpacking libapt-pkg4.12:amd64 (1.0.1ubuntu2.12) over (1.0.1ubuntu2.11) ...
Setting up libapt-pkg4.12:amd64 (1.0.1ubuntu2.12) ...
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
(Reading database ... 85877 files and directories currently installed.)
Preparing to unpack .../apt_1.0.1ubuntu2.12_amd64.deb ...
Unpacking apt (1.0.1ubuntu2.12) over (1.0.1ubuntu2.11) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up apt (1.0.1ubuntu2.12) ...
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
(Reading database ... 85877 files and directories currently installed.)
Preparing to unpack .../libpam0g_1.1.8-1ubuntu2.2_amd64.deb ...
Unpacking libpam0g:amd64 (1.1.8-1ubuntu2.2) over (1.1.8-1ubuntu2) ...
Setting up libpam0g:amd64 (1.1.8-1ubuntu2.2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
(Reading database ... 85877 files and directories currently installed.)
Preparing to unpack .../libpam-modules-bin_1.1.8-1ubuntu2.2_amd64.deb ...
Unpacking libpam-modules-bin (1.1.8-1ubuntu2.2) over (1.1.8-1ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libpam-modules-bin (1.1.8-1ubuntu2.2) ...
(Reading database ... 85877 files and directories currently installed.)
Preparing to unpack .../libpam-modules_1.1.8-1ubuntu2.2_amd64.deb ...
Unpacking libpam-modules:amd64 (1.1.8-1ubuntu2.2) over (1.1.8-1ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libpam-modules:amd64 (1.1.8-1ubuntu2.2) ...
(Reading database ... 85877 files and directories currently installed.)
Preparing to unpack .../libpcre3_1%3a8.31-2ubuntu2.2_amd64.deb ...
Unpacking libpcre3:amd64 (1:8.31-2ubuntu2.2) over (1:8.31-2ubuntu2.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libpcre3:amd64 (1:8.31-2ubuntu2.2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
(Reading database ... 85877 files and directories currently installed.)
Preparing to unpack .../libapt-inst1.5_1.0.1ubuntu2.12_amd64.deb ...
Unpacking libapt-inst1.5:amd64 (1.0.1ubuntu2.12) over (1.0.1ubuntu2.11) ...
Preparing to unpack .../udev_204-5ubuntu20.19_amd64.deb ...
Adding 'diversion of /bin/udevadm to /bin/udevadm.upgrade by fake-udev'
Unpacking udev (204-5ubuntu20.19) over (204-5ubuntu20.18) ...
Preparing to unpack .../libudev1_204-5ubuntu20.19_amd64.deb ...
Unpacking libudev1:amd64 (204-5ubuntu20.19) over (204-5ubuntu20.18) ...
Preparing to unpack .../libpam-systemd_204-5ubuntu20.19_amd64.deb ...
systemd-logind stop/waiting
Unpacking libpam-systemd:amd64 (204-5ubuntu20.19) over (204-5ubuntu20.18) ...
Preparing to unpack .../systemd-services_204-5ubuntu20.19_amd64.deb ...
Unpacking systemd-services (204-5ubuntu20.19) over (204-5ubuntu20.18) ...
Preparing to unpack .../libsystemd-daemon0_204-5ubuntu20.19_amd64.deb ...
Unpacking libsystemd-daemon0:amd64 (204-5ubuntu20.19) over (204-5ubuntu20.18) ...
Preparing to unpack .../libpam-runtime_1.1.8-1ubuntu2.2_all.deb ...
Unpacking libpam-runtime (1.1.8-1ubuntu2.2) over (1.1.8-1ubuntu2) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libpam-runtime (1.1.8-1ubuntu2.2) ...
(Reading database ... 85878 files and directories currently installed.)
Preparing to unpack .../libsystemd-login0_204-5ubuntu20.19_amd64.deb ...
Unpacking libsystemd-login0:amd64 (204-5ubuntu20.19) over (204-5ubuntu20.18) ...
Preparing to unpack .../tzdata_2016c-0ubuntu0.14.04_all.deb ...
Unpacking tzdata (2016c-0ubuntu0.14.04) over (2015g-0ubuntu0.14.04) ...
Setting up tzdata (2016c-0ubuntu0.14.04) ...

Current default time zone: 'Etc/UTC'
Local time is now:      Fri Apr 15 11:39:57 UTC 2016.
Universal Time is now:  Fri Apr 15 11:39:57 UTC 2016.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

(Reading database ... 85888 files and directories currently installed.)
Preparing to unpack .../apt-utils_1.0.1ubuntu2.12_amd64.deb ...
Unpacking apt-utils (1.0.1ubuntu2.12) over (1.0.1ubuntu2.11) ...
Preparing to unpack .../initramfs-tools_0.103ubuntu4.3_all.deb ...
Unpacking initramfs-tools (0.103ubuntu4.3) over (0.103ubuntu4.2) ...
Preparing to unpack .../initramfs-tools-bin_0.103ubuntu4.3_amd64.deb ...
Unpacking initramfs-tools-bin (0.103ubuntu4.3) over (0.103ubuntu4.2) ...
Preparing to unpack .../apt-transport-https_1.0.1ubuntu2.12_amd64.deb ...
Unpacking apt-transport-https (1.0.1ubuntu2.12) over (1.0.1ubuntu2.11) ...
Preparing to unpack .../cloud-guest-utils_0.27-0ubuntu9.2_all.deb ...
Unpacking cloud-guest-utils (0.27-0ubuntu9.2) over (0.27-0ubuntu9.1) ...
Preparing to unpack .../cloud-init_0.7.5-0ubuntu1.18_all.deb ...
Unpacking cloud-init (0.7.5-0ubuntu1.18) over (0.7.5-0ubuntu1.17) ...
Preparing to unpack .../grub-legacy-ec2_0.7.5-0ubuntu1.18_all.deb ...
Leaving 'diversion of /usr/sbin/grub-set-default to /usr/sbin/grub-set-default.real by grub-legacy-ec2'
Unpacking grub-legacy-ec2 (0.7.5-0ubuntu1.18) over (0.7.5-0ubuntu1.17) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libapt-inst1.5:amd64 (1.0.1ubuntu2.12) ...
Setting up libudev1:amd64 (204-5ubuntu20.19) ...
Setting up udev (204-5ubuntu20.19) ...
udev stop/waiting
udev start/running, process 10452
Removing 'diversion of /bin/udevadm to /bin/udevadm.upgrade by fake-udev'
update-initramfs: deferring update (trigger activated)
Setting up libsystemd-daemon0:amd64 (204-5ubuntu20.19) ...
Setting up systemd-services (204-5ubuntu20.19) ...
Setting up libpam-systemd:amd64 (204-5ubuntu20.19) ...
systemd-logind start/running, process 10517
Setting up libsystemd-login0:amd64 (204-5ubuntu20.19) ...
Setting up apt-utils (1.0.1ubuntu2.12) ...
Setting up initramfs-tools-bin (0.103ubuntu4.3) ...
Setting up initramfs-tools (0.103ubuntu4.3) ...
update-initramfs: deferring update (trigger activated)
Setting up apt-transport-https (1.0.1ubuntu2.12) ...
Setting up cloud-guest-utils (0.27-0ubuntu9.2) ...
Setting up cloud-init (0.7.5-0ubuntu1.18) ...
Leaving 'diversion of /etc/init/ureadahead.conf to /etc/init/ureadahead.conf.disabled by cloud-init'
Cloud-init v. 0.7.5 running 'single' at Fri, 15 Apr 2016 11:40:06 +0000. Up 349.56 seconds.
Setting up grub-legacy-ec2 (0.7.5-0ubuntu1.18) ...
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-3.13.0-85-generic
Found kernel: /boot/vmlinuz-3.13.0-83-generic
Updating /boot/grub/menu.lst ... done

Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
Processing triggers for initramfs-tools (0.103ubuntu4.3) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-85-generic
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  msr-tools
The following NEW packages will be installed:
  cpu-checker msr-tools
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.5 kB of archives.
After this operation, 112 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com//ubuntu/ trusty/main msr-tools amd64 1.3-2 [10.6 kB]
Get:2 http://archive.ubuntu.com//ubuntu/ trusty/main cpu-checker amd64 0.7-0ubuntu4 [6,834 B]
Fetched 17.5 kB in 1s (13.8 kB/s)
Selecting previously unselected package msr-tools.
(Reading database ... 85887 files and directories currently installed.)
Preparing to unpack .../msr-tools_1.3-2_amd64.deb ...
Unpacking msr-tools (1.3-2) ...
Selecting previously unselected package cpu-checker.
Preparing to unpack .../cpu-checker_0.7-0ubuntu4_amd64.deb ...
Unpacking cpu-checker (0.7-0ubuntu4) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up msr-tools (1.3-2) ...
Setting up cpu-checker (0.7-0ubuntu4) ...
Reading package lists...
Building dependency tree...
Reading state information...
bridge-utils is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
  gnutls-bin
The following NEW packages will be installed:
  rsyslog-gnutls
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.9 kB of archives.
After this operation, 88.1 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com//ubuntu/ trusty-updates/universe rsyslog-gnutls amd64 7.4.4-1ubuntu2.6 [13.9 kB]
Fetched 13.9 kB in 0s (41.1 kB/s)
Selecting previously unselected package rsyslog-gnutls.
(Reading database ... 85901 files and directories currently installed.)
Preparing to unpack .../rsyslog-gnutls_7.4.4-1ubuntu2.6_amd64.deb ...
Unpacking rsyslog-gnutls (7.4.4-1ubuntu2.6) ...
Setting up rsyslog-gnutls (7.4.4-1ubuntu2.6) ...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  cloud-image-utils distro-info distro-info-data euca2ools genisoimage libaio1
  libboost-system1.54.0 libboost-thread1.54.0 libnspr4 libnss3 libnss3-nssdb
  librados2 librbd1 libxslt1.1 python-distro-info python-lxml
  python-requestbuilder python-setuptools qemu-utils sharutils
Suggested packages:
  shunit2 wodim cdrkit-doc python-lxml-dbg debootstrap bsd-mailx mailx
The following NEW packages will be installed:
  cloud-image-utils cloud-utils distro-info distro-info-data euca2ools
  genisoimage libaio1 libboost-system1.54.0 libboost-thread1.54.0 libnspr4
  libnss3 libnss3-nssdb librados2 librbd1 libxslt1.1 python-distro-info
  python-lxml python-requestbuilder python-setuptools qemu-utils sharutils
0 upgraded, 21 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,504 kB of archives.
After this operation, 21.7 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com//ubuntu/ trusty/main libaio1 amd64 0.3.109-4 [6,364 B]
Get:2 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libboost-system1.54.0 amd64 1.54.0-4ubuntu3.1 [10.1 kB]
Get:3 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libboost-thread1.54.0 amd64 1.54.0-4ubuntu3.1 [26.5 kB]
Get:4 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libnspr4 amd64 2:4.10.10-0ubuntu0.14.04.1 [111 kB]
Get:5 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libnss3-nssdb all 2:3.21-0ubuntu0.14.04.2 [10.6 kB]
Get:6 http://archive.ubuntu.com//ubuntu/ trusty-updates/main libnss3 amd64 2:3.21-0ubuntu0.14.04.2 [1,103 kB]
Get:7 http://archive.ubuntu.com//ubuntu/ trusty-updates/main librados2 amd64 0.80.11-0ubuntu1.14.04.1 [1,431 kB]
Get:8 http://archive.ubuntu.com//ubuntu/ trusty-updates/main librbd1 amd64 0.80.11-0ubuntu1.14.04.1 [323 kB]
Get:9 http://archive.ubuntu.com//ubuntu/ trusty/main libxslt1.1 amd64 1.1.28-2build1 [145 kB]
Get:10 http://archive.ubuntu.com//ubuntu/ trusty/main python-requestbuilder all 0.1.0~beta2-1build1 [25.4 kB]
Get:11 http://archive.ubuntu.com//ubuntu/ trusty-updates/main distro-info-data all 0.18ubuntu0.4 [4,290 B]
Get:12 http://archive.ubuntu.com//ubuntu/ trusty/main distro-info amd64 0.12 [19.3 kB]
Get:13 http://archive.ubuntu.com//ubuntu/ trusty-updates/main python-lxml amd64 3.3.3-1ubuntu0.1 [629 kB]
Get:14 http://archive.ubuntu.com//ubuntu/ trusty-updates/main python-setuptools all 3.3-1ubuntu2 [230 kB]
Get:15 http://archive.ubuntu.com//ubuntu/ trusty/main euca2ools all 3.0.2-1ubuntu1 [251 kB]
Get:16 http://archive.ubuntu.com//ubuntu/ trusty/main genisoimage amd64 9:1.1.11-2ubuntu3 [587 kB]
Get:17 http://archive.ubuntu.com//ubuntu/ trusty/main python-distro-info all 0.12 [8,082 B]
Get:18 http://archive.ubuntu.com//ubuntu/ trusty-updates/main qemu-utils amd64 2.0.0+dfsg-2ubuntu1.22 [413 kB]
Get:19 http://archive.ubuntu.com//ubuntu/ trusty/main sharutils amd64 1:4.14-1ubuntu1 [145 kB]
Get:20 http://archive.ubuntu.com//ubuntu/ trusty-updates/main cloud-image-utils all 0.27-0ubuntu9.2 [25.7 kB]
Get:21 http://archive.ubuntu.com//ubuntu/ trusty-updates/main cloud-utils all 0.27-0ubuntu9.2 [1,510 B]
Fetched 5,504 kB in 7s (736 kB/s)
Selecting previously unselected package libaio1:amd64.
(Reading database ... 85906 files and directories currently installed.)
Preparing to unpack .../libaio1_0.3.109-4_amd64.deb ...
Unpacking libaio1:amd64 (0.3.109-4) ...
Selecting previously unselected package libboost-system1.54.0:amd64.
Preparing to unpack .../libboost-system1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-system1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-thread1.54.0:amd64.
Preparing to unpack .../libboost-thread1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-thread1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libnspr4:amd64.
Preparing to unpack .../libnspr4_2%3a4.10.10-0ubuntu0.14.04.1_amd64.deb ...
Unpacking libnspr4:amd64 (2:4.10.10-0ubuntu0.14.04.1) ...
Selecting previously unselected package libnss3-nssdb.
Preparing to unpack .../libnss3-nssdb_2%3a3.21-0ubuntu0.14.04.2_all.deb ...
Unpacking libnss3-nssdb (2:3.21-0ubuntu0.14.04.2) ...
Selecting previously unselected package libnss3:amd64.
Preparing to unpack .../libnss3_2%3a3.21-0ubuntu0.14.04.2_amd64.deb ...
Unpacking libnss3:amd64 (2:3.21-0ubuntu0.14.04.2) ...
Selecting previously unselected package librados2.
Preparing to unpack .../librados2_0.80.11-0ubuntu1.14.04.1_amd64.deb ...
Unpacking librados2 (0.80.11-0ubuntu1.14.04.1) ...
Selecting previously unselected package librbd1.
Preparing to unpack .../librbd1_0.80.11-0ubuntu1.14.04.1_amd64.deb ...
Unpacking librbd1 (0.80.11-0ubuntu1.14.04.1) ...
Selecting previously unselected package libxslt1.1:amd64.
Preparing to unpack .../libxslt1.1_1.1.28-2build1_amd64.deb ...
Unpacking libxslt1.1:amd64 (1.1.28-2build1) ...
Selecting previously unselected package python-requestbuilder.
Preparing to unpack .../python-requestbuilder_0.1.0~beta2-1build1_all.deb ...
Unpacking python-requestbuilder (0.1.0~beta2-1build1) ...
Selecting previously unselected package distro-info-data.
Preparing to unpack .../distro-info-data_0.18ubuntu0.4_all.deb ...
Unpacking distro-info-data (0.18ubuntu0.4) ...
Selecting previously unselected package distro-info.
Preparing to unpack .../distro-info_0.12_amd64.deb ...
Unpacking distro-info (0.12) ...
Selecting previously unselected package python-lxml.
Preparing to unpack .../python-lxml_3.3.3-1ubuntu0.1_amd64.deb ...
Unpacking python-lxml (3.3.3-1ubuntu0.1) ...
Selecting previously unselected package python-setuptools.
Preparing to unpack .../python-setuptools_3.3-1ubuntu2_all.deb ...
Unpacking python-setuptools (3.3-1ubuntu2) ...
Selecting previously unselected package euca2ools.
Preparing to unpack .../euca2ools_3.0.2-1ubuntu1_all.deb ...
Unpacking euca2ools (3.0.2-1ubuntu1) ...
Selecting previously unselected package genisoimage.
Preparing to unpack .../genisoimage_9%3a1.1.11-2ubuntu3_amd64.deb ...
Unpacking genisoimage (9:1.1.11-2ubuntu3) ...
Selecting previously unselected package python-distro-info.
Preparing to unpack .../python-distro-info_0.12_all.deb ...
Unpacking python-distro-info (0.12) ...
Selecting previously unselected package qemu-utils.
Preparing to unpack .../qemu-utils_2.0.0+dfsg-2ubuntu1.22_amd64.deb ...
Unpacking qemu-utils (2.0.0+dfsg-2ubuntu1.22) ...
Selecting previously unselected package sharutils.
Preparing to unpack .../sharutils_1%3a4.14-1ubuntu1_amd64.deb ...
Unpacking sharutils (1:4.14-1ubuntu1) ...
Selecting previously unselected package cloud-image-utils.
Preparing to unpack .../cloud-image-utils_0.27-0ubuntu9.2_all.deb ...
Unpacking cloud-image-utils (0.27-0ubuntu9.2) ...
Selecting previously unselected package cloud-utils.
Preparing to unpack .../cloud-utils_0.27-0ubuntu9.2_all.deb ...
Unpacking cloud-utils (0.27-0ubuntu9.2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for install-info (5.2.0.dfsg.1-2) ...
Setting up libaio1:amd64 (0.3.109-4) ...
Setting up libboost-system1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-thread1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libnspr4:amd64 (2:4.10.10-0ubuntu0.14.04.1) ...
Setting up libxslt1.1:amd64 (1.1.28-2build1) ...
Setting up python-requestbuilder (0.1.0~beta2-1build1) ...
Setting up distro-info-data (0.18ubuntu0.4) ...
Setting up distro-info (0.12) ...
Setting up python-lxml (3.3.3-1ubuntu0.1) ...
Setting up python-setuptools (3.3-1ubuntu2) ...
Setting up euca2ools (3.0.2-1ubuntu1) ...
Setting up genisoimage (9:1.1.11-2ubuntu3) ...
Setting up python-distro-info (0.12) ...
Setting up sharutils (1:4.14-1ubuntu1) ...
Setting up libnss3-nssdb (2:3.21-0ubuntu0.14.04.2) ...
Setting up libnss3:amd64 (2:3.21-0ubuntu0.14.04.2) ...
Setting up librados2 (0.80.11-0ubuntu1.14.04.1) ...
Setting up librbd1 (0.80.11-0ubuntu1.14.04.1) ...
Setting up qemu-utils (2.0.0+dfsg-2ubuntu1.22) ...
Setting up cloud-image-utils (0.27-0ubuntu9.2) ...
Setting up cloud-utils (0.27-0ubuntu9.2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
Reading package lists...
Building dependency tree...
Reading state information...
cloud-image-utils is already the newest version.
cloud-image-utils set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
tmux is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Attempt 1 to download tools from https://streams.canonical.com/juju/tools/agent/1.25.3/juju-1.25.3-trusty-amd64.tgz...
tools from https://streams.canonical.com/juju/tools/agent/1.25.3/juju-1.25.3-trusty-amd64.tgz downloaded: HTTP 200; time 46.131s; size 18722171 bytes; speed 405845.000 bytes/s Tools downloaded successfully.
71243a70d1c98d56e352b03a8a6b885080713c326674a94a4a06f26d61a3fa60  /var/lib/juju/tools/1.25.3-trusty-amd64/tools.tar.gz
2016-04-15 11:41:40 INFO juju.cmd supercommand.go:37 running jujud [1.25.3-trusty-amd64 gc]
2016-04-15 11:41:40 DEBUG juju.agent agent.go:482 read agent config, format "1.18"
2016-04-15 11:41:40 INFO juju.network network.go:242 setting prefer-ipv6 to false
2016-04-15 11:41:40 DEBUG juju.provider.maas environprovider.go:28 opening environment "maas".
2016-04-15 11:41:42 INFO juju.agent identity.go:22 writing system identity file
2016-04-15 11:41:42 DEBUG juju.cmd.jujud bootstrap.go:253 starting mongo
2016-04-15 11:41:42 DEBUG juju.cmd.jujud bootstrap.go:278 calling ensureMongoServer
2016-04-15 11:41:42 INFO juju.mongo mongo.go:208 Ensuring mongo server is running; data directory /var/lib/juju; port 37017
2016-04-15 11:41:42 INFO juju.mongo mongo.go:372 installing juju-mongodb
2016-04-15 11:41:42 INFO juju.utils.packaging.manager utils.go:57 Running: apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet install juju-mongodb
2016-04-15 11:42:02 DEBUG juju.mongo mongo.go:331 using mongod: /usr/lib/juju/bin/mongod --version: "db version v2.4.9\nFri Apr 15 11:42:02.737 git version: nogitversion\n"
2016-04-15 11:42:02 DEBUG juju.service discovery.go:115 discovered init system "upstart" from local host
2016-04-15 11:42:04 DEBUG juju.worker.peergrouper initiate.go:48 Initiating mongo replicaset; dialInfo &mgo.DialInfo{Addrs:[]string{"127.0.0.1:37017"}, Direct:false, Timeout:300000000000, FailFast:false, Database:"", ReplicaSetName:"", Source:"", Service:"", ServiceHost:"", Mechanism:"", Username:"", Password:"", PoolLimit:0, DialServer:(func(*mgo.ServerAddr) (net.Conn, error))(nil), Dial:(func(net.Addr) (net.Conn, error))(0x545ee0)}; memberHostport "node0.maas:37017"; user ""; password ""
2016-04-15 11:42:04 DEBUG juju.mongo open.go:117 connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused
2016-04-15 11:42:04 DEBUG juju.mongo open.go:117 connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused
2016-04-15 11:42:04 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2016-04-15 11:42:04 INFO juju.replicaset replicaset.go:78 Initiating replicaset with config replicaset.Config{Name:"juju", Version:1, Members:[]replicaset.Member{replicaset.Member{Id:1, Address:"node0.maas:37017", Arbiter:(*bool)(nil), BuildIndexes:(*bool)(nil), Hidden:(*bool)(nil), Priority:(*float64)(nil), Tags:map[string]string{"juju-machine-id":"0"}, SlaveDelay:(*time.Duration)(nil), Votes:(*int)(nil)}}}
2016-04-15 11:42:09 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2016-04-15 11:42:24 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2016-04-15 11:42:24 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:24 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:25 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:25 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:26 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:26 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:27 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:27 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:28 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:28 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:29 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:29 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:30 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:30 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:31 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:31 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:32 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:32 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:33 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:33 WARNING juju.replicaset replicaset.go:98 Initiate: fetching replication status failed: cannot get replica set status: Received replSetInitiate - should come online shortly.
2016-04-15 11:42:34 INFO juju.worker.peergrouper initiate.go:70 replica set initiated
2016-04-15 11:42:34 INFO juju.worker.peergrouper initiate.go:78 finished MaybeInitiateMongoServer
2016-04-15 11:42:34 INFO juju.cmd.jujud bootstrap.go:187 started mongo
2016-04-15 11:42:34 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2016-04-15 11:42:36 DEBUG juju.agent bootstrap.go:88 initializing address [127.0.0.1:37017]
2016-04-15 11:42:36 INFO juju.state open.go:51 opening state, mongo addresses: ["127.0.0.1:37017"]; entity <nil>
2016-04-15 11:42:36 DEBUG juju.state open.go:52 dialing mongo
2016-04-15 11:42:36 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2016-04-15 11:42:36 DEBUG juju.state open.go:57 connection established
2016-04-15 11:42:36 DEBUG juju.state open.go:64 mongodb login successful
2016-04-15 11:42:36 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2016-04-15 11:42:36 INFO juju.state open.go:135 initializing state server environment c2f79e37-2249-466e-8c38-4e18791e2dbd
2016-04-15 11:42:36 INFO juju.state state.go:187 running state anonymously; using unique client id
2016-04-15 11:42:36 INFO juju.state state.go:195 creating lease client as anon-1a827c8e-8891-43ae-83b9-1e288a62a880
2016-04-15 11:42:36 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2016-04-15 11:42:36 INFO juju.state state.go:208 starting leadership manager
2016-04-15 11:42:36 INFO juju.state state.go:218 creating cloud image metadata storage
2016-04-15 11:42:36 INFO juju.state state.go:221 starting presence watcher
2016-04-15 11:42:36 DEBUG juju.agent bootstrap.go:93 connected to initial state
2016-04-15 11:42:36 DEBUG juju.network network.go:268 no lxc bridge addresses to filter for machine
2016-04-15 11:42:36 DEBUG juju.state address.go:137 setting API hostPorts: [[node0.maas:17070 node0.maas:17070 192.168.6.193:17070 192.168.11.193:17070 192.168.12.193:17070 192.168.13.193:17070 192.168.14.193:17070 192.168.15.193:17070 192.168.16.193:17070]]
2016-04-15 11:42:36 DEBUG juju.provider.maas environprovider.go:28 opening environment "maas".
2016-04-15 11:42:36 INFO juju.agent bootstrap.go:166 initialising bootstrap machine with config: {Addresses:[public:node0.maas local-cloud:node0.maas local-cloud:192.168.6.193 local-cloud:192.168.11.193 local-cloud:192.168.12.193 local-cloud:192.168.13.193 local-cloud:192.168.14.193 local-cloud:192.168.15.193 local-cloud:192.168.16.193] Constraints: Jobs:[JobManageEnviron JobHostUnits] InstanceId:/MAAS/api/1.0/nodes/node-4aefe4e8-ffcf-11e5-ac41-002324287b48/ Characteristics:arch=amd64 cpu-cores=8 mem=16384M SharedSecret:iUc0FGa7CJxFY7ZVM1f8zBhNaIrEGFAPgzQ9Xezq/eNQBCTHVSMIkmp843sXWD8RvW29puJdGQ3QH9fnfWEoU5P+hUidMBh7Q0/u6OLbLkoSau+ifGh/Yc8WyaSXElsxZYeMmTRGS0GkIf6QNrsdVTLiUI088p9xzGxTnsvj/mbO6SrwFin9WtRcuBavDqi2xNXU+5vSduI1TCC222624WvT7/g0m2HAdXWLZTUkSSW2FC0/9VeJtkJjBdPFmb/o5urBKgKHKY/KjmbYF6iBrONtPPYrWNJxJU9tGyRhjJ+gZAtMYEY8tkX2+fNZVZmhrnOXUbVA/ZPE59GxDt+YzoFeuMJeJoZ/n2GA58D+m3DQkvRa7RfvT/aIFVh3Fz9cATpUjZITsPXk1UotubpbFpcYqTH9dct4tF2E7f3fkExqoGolWB4H+s1wKRHDqQNu405A9S26rXsgyIRNK5YAFJeS8R2kvmULm5kziyJuI4RXTJ500ytHVXZErmfdT2k6Pz9Pc+MVDm3xsr/yy16RWiujWsf9gYpl3BkLwM6WqqAusI3SOxGN/gh1mK6NBHfMA2UXm16C6PeOfnyVYxqIhzSINp5KJiLcOsbGaEaByRmSd86YJap2Lh7aS6zwD7+5HLGWxPa6/9mX7Kr80KkF2d3mmBl8myGIw1GHcKzJNF+UoDgA62VVX3gROZYMN8lylFRsQEWf2mULiKccZHP9LP/oO7EFG97jLauadCbHbTsBMPl3sZFiljYmr2wlS9cSK8ZLZQrIbDYyqn/5qwh/0EcUdN1a9oJlobp65vI6KIm7Oi4a12jx4m6tafW9mT+jnSOqaOL5SeaJaqHZ23Q/T+x62BoFdcqmUtI5Xgb8pS5RNdolJAvZp4fYQc5BPARtqa1TtyUlK3S5d3TJ8rfXfRfLMgg7oRhOg0UVJlLvCCFIAXhvKAKUEi6p9BuUeP7tMI12Qzuf+3i1L7hzCRrbO5HSSdST8t25JubbqQLbg55VI/gDgJN8MFRCk3iQf1aP}
2016-04-15 11:42:36 DEBUG juju.provider.maas environprovider.go:28 opening environment "maas".
2016-04-15 11:42:36 DEBUG juju.agent bootstrap.go:194 create new random password for machine 0
2016-04-15 11:42:36 DEBUG juju.cmd.jujud bootstrap.go:350 Adding tools: 1.25.3-trusty-amd64
2016-04-15 11:42:36 DEBUG juju.storage managedstorage.go:239 resource catalog entry created with id "5e9055089b8489f06eb1bb2ac25e00d65f3c6c140e4b36572e7357208e1b588b95240b96a4595c863123c24f6cef5179"
2016-04-15 11:42:37 DEBUG juju.storage managedstorage.go:293 managed resource entry created with path "environs/c2f79e37-2249-466e-8c38-4e18791e2dbd/tools/1.25.3-trusty-amd64-71243a70d1c98d56e352b03a8a6b885080713c326674a94a4a06f26d61a3fa60" -> "5e9055089b8489f06eb1bb2ac25e00d65f3c6c140e4b36572e7357208e1b588b95240b96a4595c863123c24f6cef5179"
2016-04-15 11:42:37 DEBUG juju.state open.go:306 closed state without error
2016-04-15 11:42:37 INFO juju.cmd supercommand.go:435 command finished
jujud-machine-0 start/running, process 20672
Download as text