To make sure my config-drive was being used, I injected a failure by setting an unknown link type of "dvs-andreas-was-here-again":
$ lxc file pull x1-fixed/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"
]
}
}
Also verified it with xenial and a config-drive that had "type": "dvs" in openstack/ latest/ network_ data.json using the proposed package:
root@x1-fixed:~# apt-cache policy cloud-init g61eb03fe- 0ubuntu1~ 16.04.1 g61eb03fe- 0ubuntu1~ 16.04.1 g61eb03fe- 0ubuntu1~ 16.04.1 500 archive. ubuntu. com/ubuntu xenial- proposed/ main amd64 Packages
cloud-init:
Installed: 0.7.9-90-
Candidate: 0.7.9-90-
Version table:
*** 0.7.9-90-
500 http://
$ lxc file pull x1-fixed/ run/cloud- init/result. json var/lib/ cloud/seed/ nocloud- net][dsmode= net]",
{
"v1": {
"datasource": "DataSourceNoCloud [seed=/
"errors": []
}
}
To make sure my config-drive was being used, I injected a failure by setting an unknown link type of "dvs-andreas- was-here- again": run/cloud- init/result. json - was-here- again", was-here- again"
$ lxc file pull x1-fixed/
{
"v1": {
"datasource": null,
"errors": [
"Unknown network_data link type: dvs-andreas-
"Unknown network_data link type: dvs-andreas-
]
}
}
and
$ lxc exec x1-fixed -- grep dvs-andreas- was-here- again /var/log/ cloud-init. log was-here- again
ValueError: Unknown network_data link type: dvs-andreas-