tox -e py36 tests.unittests.test_distros.test_netconfig.TestNetCfgDistro
GLOB sdist-make: /root/cloud-init.smoser/setup.py
py36 inst-nodeps: /root/cloud-init.smoser/.tox/dist/cloud-init-0.7.9.zip
py36 installed: certifi==2017.4.17,chardet==3.0.4,cloud-init==0.7.9,configobj==5.0.6,contextlib2==0.5.5,coverage==4.4.1,httpretty==0.8.14,idna==2.5,Jinja2==2.9.6,jsonpatch==1.16,jsonpointer==1.10,jsonschema==2.6.0,linecache2==1.0.0,MarkupSafe==1.0,mock==2.0.0,nose==1.3.7,oauthlib==2.0.2,pbr==3.1.1,pkg-resources==0.0.0,prettytable==0.7.2,PyYAML==3.12,requests==2.18.1,six==1.10.0,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.21.1
py36 runtests: PYTHONHASHSEED='3327461761'
py36 runtests: commands[0] | /root/cloud-init.smoser/.tox/py36/bin/python -m nose tests.unittests.test_distros.test_netconfig.TestNetCfgDistro
..EE........
======================================================================
ERROR: test_apply_network_config_v1_to_netplan_ub (tests.unittests.test_distros.test_netconfig.TestNetCfgDistro)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/cloud-init.smoser/tests/unittests/test_distros/test_netconfig.py", line 293, in test_apply_network_config_v1_to_netplan_ub
ub_distro.apply_network_config(V1_NET_CFG, False)
File "/root/cloud-init.smoser/cloudinit/distros/__init__.py", line 166, in apply_network_config
dev_names = self._write_network_config(netconfig)
File "/root/cloud-init.smoser/cloudinit/distros/debian.py", line 89, in _write_network_config
return self._supported_write_network_config(netconfig)
File "/root/cloud-init.smoser/cloudinit/distros/__init__.py", line 82, in _supported_write_network_config
renderer.render_network_config(network_config=network_config)
File "/root/cloud-init.smoser/cloudinit/net/renderer.py", line 49, in render_network_config
network_state=parse_net_config_data(network_config), target=target)
File "/root/cloud-init.smoser/cloudinit/net/netplan.py", line 212, in render_network_state
fpnplan = os.path.join(target, self.netplan_path)
File "/root/cloud-init.smoser/.tox/py36/lib/python3.6/posixpath.py", line 78, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
-------------------- >> begin captured logging << --------------------
cloudinit.distros: DEBUG: Selected renderer 'netplan' from priority list: ['netplan']
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_apply_network_config_v2_passthrough_ub (tests.unittests.test_distros.test_netconfig.TestNetCfgDistro)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/cloud-init.smoser/tests/unittests/test_distros/test_netconfig.py", line 331, in test_apply_network_config_v2_passthrough_ub
ub_distro.apply_network_config(V2_NET_CFG, False)
File "/root/cloud-init.smoser/cloudinit/distros/__init__.py", line 166, in apply_network_config
dev_names = self._write_network_config(netconfig)
File "/root/cloud-init.smoser/cloudinit/distros/debian.py", line 89, in _write_network_config
return self._supported_write_network_config(netconfig)
File "/root/cloud-init.smoser/cloudinit/distros/__init__.py", line 82, in _supported_write_network_config
renderer.render_network_config(network_config=network_config)
File "/root/cloud-init.smoser/cloudinit/net/renderer.py", line 49, in render_network_config
network_state=parse_net_config_data(network_config), target=target)
File "/root/cloud-init.smoser/cloudinit/net/netplan.py", line 212, in render_network_state
fpnplan = os.path.join(target, self.netplan_path)
File "/root/cloud-init.smoser/.tox/py36/lib/python3.6/posixpath.py", line 78, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
-------------------- >> begin captured logging << --------------------
cloudinit.distros: DEBUG: Selected renderer 'netplan' from priority list: ['netplan']
cloudinit.net.network_state: DEBUG: NetworkState Version2: missing "macaddress" info in config entry: eth7: {'addresses': ['192.168.1.5/255.255.255.0'], 'gateway4': '192.168.1.254'}
cloudinit.net.network_state: DEBUG: v2(ethernets) -> v1(physical):
{'type': 'physical', 'name': 'eth7', 'subnets': [{'type': 'static', 'address': '192.168.1.5/255.255.255.0', 'routes': [], 'gateway': '192.168.1.254'}]}
cloudinit.net.network_state: DEBUG: NetworkState Version2: missing "macaddress" info in config entry: eth9: {'dhcp4': True}
cloudinit.net.network_state: DEBUG: v2(ethernets) -> v1(physical):
{'type': 'physical', 'name': 'eth9', 'subnets': [{'type': 'dhcp4'}]}
cloudinit.net.network_state: DEBUG: v2_common: handling config:
{'eth7': {'addresses': ['192.168.1.5/255.255.255.0'], 'gateway4': '192.168.1.254'}, 'eth9': {'dhcp4': True}}
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 12 tests in 0.044s
FAILED (errors=2)
ERROR: InvocationError: '/root/cloud-init.smoser/.tox/py36/bin/python -m nose tests.unittests.test_distros.test_netconfig.TestNetCfgDistro'
________________________________________________________________________________ summary __________________________________________________