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 | E
======================================================================
ERROR: test_vlan (tests.unittests.test_datasource.test_configdrive.TestConvertNetworkData)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/smoser-public/src/cloud-init/cloud-init/tests/unittests/test_datasource/test_configdrive.py", line 702, in test_vlan
raise Exception("FOO")
Exception: FOO
-------------------- >> begin captured stdout << ---------------------
==== vlan network_data.json ====
{
"links": [
{
"ethernet_mac_address": "fa:16:3e:69:b0:58",
"id": "eth0",
"mtu": 1500,
"type": "phy"
},
{
"ethernet_mac_address": "fa:16:3e:b3:72:30",
"id": "vlan1",
"type": "vlan",
"vlan_id": 602,
"vlan_link": "eth0",
"vlan_mac_address": "fa:16:3e:b3:72:30"
}
],
"networks": [
{
"id": "network1-ipv4",
"ip_address": "10.0.1.5",
"link": "vlan1",
"netmask": "255.255.255.248",
"network_id": "a9e2f47c-3c43-4782-94d0-e1eeef1c8c9d",
"routes": [
{
"gateway": "10.0.1.1",
"netmask": "255.255.255.255",
"network": "192.168.1.0"
}
],
"type": "ipv4"
}
],
"services": [
{
"address": "1.1.1.191",
"type": "nameserver"
}
]
}
==== start netconfig ===
{
"config": [
{
"mac_address": "fa:16:3e:69:b0:58",
"mtu": 1500,
"name": "enp0s1",
"subnets": [],
"type": "physical"
},
{
"mac_address": "fa:16:3e:b3:72:30",
"name": "eth0.602",
"subnets": [
{
"address": "10.0.1.5",
"ipv4": true,
"netmask": "255.255.255.248",
"routes": [
{
"gateway": "10.0.1.1",
"netmask": "255.255.255.255",
"network": "192.168.1.0"
}
],
"type": "static"
}
],
"type": "vlan",
"vlan_id": 602,
"vlan_link": "eth0"
},
{
"address": "1.1.1.191",
"type": "nameserver"
}
],
"version": 1
}
==== end netconfig ===
=== eni rendered ===
auto lo
iface lo inet loopback
dns-nameservers 1.1.1.191
iface enp0s1 inet manual
mtu 1500
auto eth0.602
iface eth0.602 inet static
address 10.0.1.5
netmask 255.255.255.248
hwaddress fa:16:3e:b3:72:30
vlan-raw-device eth0
vlan_id 602
post-up route add -net 192.168.1.0 netmask 255.255.255.255 gw 10.0.1.1 || true
pre-down route del -net 192.168.1.0 netmask 255.255.255.255 gw 10.0.1.1 || true
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
cloudinit.util: DEBUG: Writing to /tmp/tmpoz9yn693/etc/network/interfaces - wb: [420] 431 bytes
cloudinit.util: DEBUG: Writing to /tmp/tmpoz9yn693/etc/udev/rules.d/70-persistent-net.rules - wb: [420] 98 bytes
cloudinit.util: DEBUG: Writing to /tmp/tmpoz9yn693/etc/systemd/network/50-cloud-init-enp0s1.link - wb: [420] 57 bytes
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 1 test in 0.009s
FAILED (errors=1)
|