...............E..
======================================================================
ERROR: test_conversion_with_route (tests.unittests.test_datasource.test_configdrive.TestConvertNetworkData)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/smoser-public/src/cloud-init/trunk.fix-networking/tests/unittests/test_datasource/test_configdrive.py", line 441, in test_conversion_with_route
raise Exception(ncfg)
Exception: {'config': [{'subnets': [{'netmask': '255.255.255.248', 'type': 'static', 'address': '2.2.2.10', 'routes': [{'netmask': '0.0.0.0', 'network': '0.0.0.0', 'gateway': '2.2.2.9'}]}], 'type': 'physical', 'name': 'foo1', 'mac_address': 'fa:16:3e:dd:50:9a'}, {'subnets': [{'netmask': '255.255.255.224', 'type': 'static', 'address': '3.3.3.24', 'routes': []}], 'type': 'physical', 'name': 'foo2', 'mac_address': 'fa:16:3e:a8:14:69'}, {'type': 'nameserver', 'address': '1.1.1.191'}, {'type': 'nameserver', 'address': '1.1.1.4'}], 'version': 1}
-------------------- >> begin captured stdout << ---------------------
===== network json ====
{'links': [{'ethernet_mac_address': 'fa:16:3e:dd:50:9a',
'id': 'eth0',
'mtu': 1500,
'type': 'vif',
'vif_id': 'vif-foo1'},
{'ethernet_mac_address': 'fa:16:3e:a8:14:69',
'id': 'eth1',
'mtu': 1500,
'type': 'vif',
'vif_id': 'vif-foo2'}],
'networks': [{'id': 'network0-ipv4',
'ip_address': '2.2.2.10',
'link': 'eth0',
'netmask': '255.255.255.248',
'network_id': 'd94bbe94-7abc-48d4-9c82-4628ea26164a',
'routes': [{'gateway': '2.2.2.9',
'netmask': '0.0.0.0',
'network': '0.0.0.0'}],
'type': 'ipv4'},
{'id': 'network1-ipv4',
'ip_address': '3.3.3.24',
'link': 'eth1',
'netmask': '255.255.255.224',
'network_id': 'ca447c83-6409-499b-aaef-6ad1ae995348',
'routes': [],
'type': 'ipv4'}],
'services': [{'address': '1.1.1.191', 'type': 'dns'},
{'address': '1.1.1.4', 'type': 'dns'}]}
===== network config ====
{'config': [{'mac_address': 'fa:16:3e:dd:50:9a',
'name': 'foo1',
'subnets': [{'address': '2.2.2.10',
'netmask': '255.255.255.248',
'routes': [{'gateway': '2.2.2.9',
'netmask': '0.0.0.0',
'network': '0.0.0.0'}],
'type': 'static'}],
'type': 'physical'},
{'mac_address': 'fa:16:3e:a8:14:69',
'name': 'foo2',
'subnets': [{'address': '3.3.3.24',
'netmask': '255.255.255.224',
'routes': [],
'type': 'static'}],
'type': 'physical'},
{'address': '1.1.1.191', 'type': 'nameserver'},
{'address': '1.1.1.4', 'type': 'nameserver'}],
'version': 1}
===== /etc/network/interfaces ====
auto lo
iface lo inet loopback
dns-nameservers 1.1.1.191 1.1.1.4
auto foo1
iface foo1 inet static
netmask 255.255.255.248
address 2.2.2.10
post-up route add default gw 2.2.2.9 || true
pre-down route del default gw 2.2.2.9 || true
auto foo2
iface foo2 inet static
netmask 255.255.255.224
address 3.3.3.24
--------------------- >> end captured stdout << ----------------------
----------------------------------------------------------------------
Ran 18 tests in 0.077s
FAILED (errors=1)