hyperv and cloudbase-init not working

I downloaded the cloudbase Windows 2012 R2 Image and Network get a binding but not a ipaddress. So in the cloudbase-init logfile is a error auto eth0
iface eth0 inet static
hwaddress ether fa:16:3e:e5:27:77
address 192.168.200.37
netmask 255.255.255.0
broadcast 192.168.200.255
gateway 192.168.200.1
dns-nameservers 8.8.8.8
execute C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\plugins\windows\networkconfig.py:50
2015-10-13 15:20:08.219 1288 ERROR cloudbaseinit.init [-] plugin 'NetworkConfigPlugin' failed with error 'network_config format not recognized'
I read in this forum that you must provide a new line for python 2.7.3. Is it that?

1 answer

I've been looking through the log and identified the issue (next time please post the entire log within a paste service). The problem is that you're using an outdated version of Cloudbase-Init which comes by default with the image you downloaded (may/june 2014) but since then, both the network config content in OpenStack and the parsing process have changed, so the old parsing method isn't able to process the different formatted content (which contains now as an additional field the hardware address value).
I suggest you to install an updated version of Cloudbase-Init from here (http://www.cloudbase.it/cloud-init-wi...) and in the meantime we will try to find a way to keep the images updated.

Regarding the "new line for python 2.7.3", I'm not sure what are you talking about, could you post a link to that article/information? But as far as I know, the issue explained above isn't related to such trick.

Understood, that line was working with the old parsing method, but now everything has changed (in both stable and continuous versions) so there is no need to worry about that.
Regarding Cloudbase-Init MSI versions, you should try with the continous one (beta) and if something goes wrong, the stable.

Ok, he's getting an address by now. Thanks. Best straight forward support I've got in a long time. A hint anyway: seems that in the dev version cloudinit tries to check the internet before it configured the network. So it take a while . log: http://pastebin.com/sVkMKuUL .