For xenial: With the current cloud-init, where the problem appears: *** 0.7.9-48-g1c795b9-0ubuntu1~16.04.1 500 500 http://br.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
# remove generated files root@15-89:/run/cloud-init# rm cloud.cfg ds-identify.log # cloud-init configuration, set via dpkg-reconfigure cloud-init and unchecking all items: root@15-89:/run/cloud-init# cat /etc/cloud/cloud.cfg.d/90_dpkg.cfg # to update this file, run dpkg-reconfigure cloud-init datasource_list: [ ] # maas datasource config file, written to by MAAS: root@15-89:/run/cloud-init# cat /etc/cloud/cloud.cfg.d/90_dpkg_maas.cfg # written by cloud-init debian package per preseed entries # cloud-init/{maas-metadata-url,/maas-metadata-credentials} datasource: MAAS: {consumer_key: L8SxaFb29L3rzc3Vw8, metadata_url: 'http://10.0.5.5:5240/MAAS/metadata/', token_key: 92LGSD8NBTHbD7n7T8, token_secret: FAbznaWcx72ryaK6SrErnqeK2z9LH2Dj} # let's call ds-identify: root@15-89:/run/cloud-init# unset DS_MAIN root@15-89:/run/cloud-init# /usr/lib/cloud-init/ds-identify # and we have no MAAS in cloud.cfg (somehow it thinks ec2 could be a candidate): root@15-89:/run/cloud-init# cat cloud.cfg di_report: datasource_list: [ Ec2, None ] datasource: {Ec2: {strict_id: "warn"}} # the ds-identify log file has root@15-89:/run/cloud-init# cat ds-identify.log (...) DSLIST=MAAS ConfigDrive NoCloud AltCloud Azure Bigstep CloudSigma CloudStack DigitalOcean Ec2 OpenNebula OpenStack OVF SmartOS (...) is_container=false ec2 platform is 'Unknown'. check for 'Ec2' returned maybe 1 datasources returned maybe: Ec2 [up 273.31s] returning 0 Now I install the package from proposed: *** 0.7.9-90-g61eb03fe-0ubuntu1~16.04.1 500 500 http://br.archive.ubuntu.com/ubuntu xenial-proposed/main amd64 Packages 90_dpkg.cfg still has an empty list: root@15-89:/run/cloud-init# cat /etc/cloud/cloud.cfg.d/90_dpkg.cfg # to update this file, run dpkg-reconfigure cloud-init datasource_list: [ ] And repeat the steps. This time I get: root@15-89:/run/cloud-init# cat cloud.cfg di_report: datasource_list: [ MAAS, None ] And the ds-identify log has: (...) DSLIST=MAAS ConfigDrive NoCloud AltCloud Azure Bigstep CloudSigma CloudStack DigitalOcean Ec2 GCE OpenNebula OpenStack OVF SmartOS (...) is_container=false check for 'MAAS' returned found ec2 platform is 'Unknown'. check for 'Ec2' returned maybe Found single datasource: MAAS [up 401.41s] returning 0 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1677710 Title: ds-identify does not find maas datasource To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1677710/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs