Verified on yakkety with a yakkety lxd container and the provided instructions:
*** 0.7.9-90-g61eb03fe-0ubuntu1~16.10.1 500 500 http://archive.ubuntu.com/ubuntu yakkety-proposed/main amd64 Packages
Created a config-drive and verified the result.json file:
$ lxc file pull $name/run/cloud-init/result.json - { "v1": { "datasource": "DataSourceConfigDrive [net,ver=2][source=/config-drive]", "errors": [] } }
/config-drive was there: root@foohost:~# find /config-drive/ -type f /config-drive/openstack/latest/meta_data.json /config-drive/openstack/latest/network_data.json /config-drive/openstack/latest/vendor_data.json /config-drive/openstack/latest/user_data /config-drive/openstack/2015-10-15/network_data.json /config-drive/openstack/2015-10-15/user_data /config-drive/openstack/2015-10-15/vendor_data.json /config-drive/openstack/2015-10-15/meta_data.json
To be sure my config-drive was being read, in another attempt I injected a failure into it by setting a link of an unknown type:
$ lxc file pull $name/run/cloud-init/result.json - { "v1": { "datasource": null, "errors": [ "Unknown network_data link type: dvs-andreas-was-here", "Unknown network_data link type: dvs-andreas-was-here", "('ssh-authkey-fingerprints', KeyError('getpwnam(): name not found: ubuntu',))" ] } }
As a side note, that prevented the ubuntu user from being created (and probably other things which do not concern us here).
Verified on yakkety with a yakkety lxd container and the provided instructions:
*** 0.7.9-90- g61eb03fe- 0ubuntu1~ 16.10.1 500 archive. ubuntu. com/ubuntu yakkety- proposed/ main amd64 Packages
500 http://
Created a config-drive and verified the result.json file:
$ lxc file pull $name/run/ cloud-init/ result. json - igDrive [net,ver= 2][source= /config- drive]" ,
{
"v1": {
"datasource": "DataSourceConf
"errors": []
}
}
/config-drive was there: drive/openstack /latest/ meta_data. json drive/openstack /latest/ network_ data.json drive/openstack /latest/ vendor_ data.json drive/openstack /latest/ user_data drive/openstack /2015-10- 15/network_ data.json drive/openstack /2015-10- 15/user_ data drive/openstack /2015-10- 15/vendor_ data.json drive/openstack /2015-10- 15/meta_ data.json
root@foohost:~# find /config-drive/ -type f
/config-
/config-
/config-
/config-
/config-
/config-
/config-
/config-
To be sure my config-drive was being read, in another attempt I injected a failure into it by setting a link of an unknown type:
$ lxc file pull $name/run/ cloud-init/ result. json - was-here" , was-here" , authkey- fingerprints' , KeyError( 'getpwnam( ): name not found: ubuntu',))"
{
"v1": {
"datasource": null,
"errors": [
"Unknown network_data link type: dvs-andreas-
"Unknown network_data link type: dvs-andreas-
"('ssh-
]
}
}
As a side note, that prevented the ubuntu user from being created (and probably other things which do not concern us here).