Creating /etc/network/interfaces if it doesn't exist was fixed long ago; see bug #666554
This bug morphed from that simple issue into needing to handle the case of people trying to use non-Debian images with flat injected
A fix might be for inject_net_into_fs to look at /etc/lsb-release and throw an ImageUnacceptable exception if it's not Debian/Ubuntu
We also need to make sure this exception is handled correctly - i.e. the libvirt driver just logs all exceptions from inject_data() as warnings. With the Xen driver, it looks like the exception would make it all the way back to ComputeManager and the instance spawn would fail correctly
Creating /etc/network/ interfaces if it doesn't exist was fixed long ago; see bug #666554
This bug morphed from that simple issue into needing to handle the case of people trying to use non-Debian images with flat injected
A fix might be for inject_net_into_fs to look at /etc/lsb-release and throw an ImageUnacceptable exception if it's not Debian/Ubuntu
We also need to make sure this exception is handled correctly - i.e. the libvirt driver just logs all exceptions from inject_data() as warnings. With the Xen driver, it looks like the exception would make it all the way back to ComputeManager and the instance spawn would fail correctly