Inside the container:
root@foohost:~# find /config-drive/ -type f
/config-drive/openstack/latest/network_data.json
/config-drive/openstack/latest/vendor_data.json
/config-drive/openstack/latest/user_data
/config-drive/openstack/latest/meta_data.json
/config-drive/openstack/2015-10-15/meta_data.json
/config-drive/openstack/2015-10-15/network_data.json
/config-drive/openstack/2015-10-15/vendor_data.json
/config-drive/openstack/2015-10-15/user_data
And again, to make sure my config-drive was being read, I injected a failure:
$ lxc exec x1-fixed cat /run/cloud-init/result.json
{
"v1": {
"datasource": null,
"errors": [
"Unknown network_data link type: dvs-andreas-was-here-again",
"Unknown network_data link type: dvs-andreas-was-here-again",
"('ssh-authkey-fingerprints', KeyError('getpwnam(): name not found: ubuntu',))"
]
}
}
Verified on xenial with a xenial lxd container and the provided instructions:
Version table: g61eb03fe- 0ubuntu1~ 16.04.1 500 archive. ubuntu. com/ubuntu xenial- proposed/ main amd64 Packages
*** 0.7.9-90-
500 http://
$ lxc exec x1-fixed cat /run/cloud- init/result. json igDrive [net,ver= 2][source= /config- drive]" ,
{
"v1": {
"datasource": "DataSourceConf
"errors": []
}
}
Inside the container: drive/openstack /latest/ network_ data.json drive/openstack /latest/ vendor_ data.json drive/openstack /latest/ user_data drive/openstack /latest/ meta_data. json drive/openstack /2015-10- 15/meta_ data.json drive/openstack /2015-10- 15/network_ data.json drive/openstack /2015-10- 15/vendor_ data.json drive/openstack /2015-10- 15/user_ data
root@foohost:~# find /config-drive/ -type f
/config-
/config-
/config-
/config-
/config-
/config-
/config-
/config-
And again, to make sure my config-drive was being read, I injected a failure: init/result. json was-here- again", was-here- again", authkey- fingerprints' , KeyError( 'getpwnam( ): name not found: ubuntu',))"
$ lxc exec x1-fixed cat /run/cloud-
{
"v1": {
"datasource": null,
"errors": [
"Unknown network_data link type: dvs-andreas-
"Unknown network_data link type: dvs-andreas-
"('ssh-
]
}
}
All good.