Comment 1 for bug 1276253

Revision history for this message
Jin Dong (greenmoon55) wrote :

I have the same problem with precise cloudimg on Openstack Icehouse with config drive.

        # update interfaces and ifup only on the local datasource
        # this way the DataSourceConfigDriveNet doesn't do it also.
        if 'network_config' in results and self.dsmode == "local":
            LOG.debug("Updating network interfaces from config drive (%s)",
                      dsmode)

            util.write_file("/etc/network/interfaces",
                md['network-interfaces'])

In 'get_data', this two lines above should be changed to

util.write_file("/etc/network/interfaces",
                results['network_config'])

This seems to be a bug in the backport of config drive v2 support in 0.6.3-0ubuntu1.5.

http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/cloud-init/precise-updates/revision/194#cloudinit/DataSourceConfigDrive.py