get_data of DataSourceConfigDrive raised 'network-interfaces' no instance data found in start-local

Bug #1276253 reported by Matt Symonds
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Running the current precise-server-cloudimg-amd64-disk1.img on Openstack Grizzly with ConfigDrive as the only source of metadata I get the following error:

cloud-init start-local running: Tue, 04 Feb 2014 16:59:55 +0000. up 2.36 seconds
2014-02-04 16:59:55,721 - __init__.py[WARNING]: get_data of DataSourceConfigDrive raised 'network-interfaces'
no instance data found in start-local
mountall: Event failed

The cdrom is labeled as config-2 as required.

It is hard to give any further information as no password is set for the default user. This may well be an issue with the openstack setup.

Matt Symonds (msymonds)
Changed in cloud-init (Ubuntu):
status: New → Invalid
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

Changed in cloud-init (Ubuntu):
status: Invalid → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.