Hi,
Can you elaborate on what is not working?

I've tested, it generally seems functional:
me=z-dsnone
$ lxc init ubuntu-daily:zesty $name
Creating z-dsnone

$ cfg="etc/cloud/cloud.cfg.d/90_dpkg.cfg"
$ lxc file pull $name/$cfg -
# to update this file, run dpkg-reconfigure cloud-init
datasource_list: [ NoCloud, ConfigDrive, OpenNebula, DigitalOcean, Azure, 
AltCloud, OVF, MAAS, GCE, OpenStack, CloudSigma, SmartOS, Ec2, CloudStack, None 
]

$ echo "datasource_list: [ None ]" | lxc file push - "$name/$cfg"
$ lxc file pull $name/$cfg -
datasource_list: [ None ]

$ lxc start $name
$ sleep 10

$ lxc exec $name -- tail -n 2 /run/cloud-init/ds-identify.log 
single entry in datasource_list (None) use that.
[up 1.0s] returning 0

$ lxc exec $name -- cat /var/log/cloud-init.log | pastebinit
http://paste.ubuntu.com/24269260/

# a small bug here, but does not seem harmful.
$ lxc exec $name -- cat /run/cloud-init/cloud.cfg
datasource_list: [ None, None ]

$ lxc exec $name cat /run/cloud-init/result.json
{
 "v1": {
  "datasource": "DataSourceNone",
  "errors": []
 }
}


$ lxc exec $name -- egrep -v '(WARN|DEBUG)' /var/log/cloud-init.log
2017-03-28 18:20:00,145 - stages.py[INFO]: Applying network configuration from 
fallback bringup=False: {'version': 1, 'config': [{'type': 'physical', 
'subnets': [{'type': 'dhcp'}], 'name': 'eth0', 'mac_address': 
'00:16:3e:a4:96:61'}]}
2017-03-28 18:20:05,901 - stages.py[INFO]: Loaded datasource DataSourceNone - 
DataSourceNone
2017-03-28 18:20:05,958 - stages.py[INFO]: Applying network configuration from 
fallback bringup=True: {'config': [{'subnets': [{'type': 'dhcp'}], 'name': 
'eth0', 'type': 'physical', 'mac_address': '00:16:3e:a4:96:61'}], 'version': 1}
2017-03-28 18:20:08,518 - cc_apt_configure.py[INFO]: No custom template 
provided, fall back to builtin

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1676607

Title:
  cloud-init is disabled when data source is set to just "None"

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1676607/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to