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
# 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}
# 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
For xenial:
With the current cloud-init, where the problem appears: g1c795b9- 0ubuntu1~ 16.04.1 500 br.archive. ubuntu. com/ubuntu xenial-updates/main amd64 Packages
*** 0.7.9-48-
500 http://
# remove generated files 89:/run/ cloud-init# rm cloud.cfg ds-identify.log
root@15-
# cloud-init configuration, set via dpkg-reconfigure cloud-init and unchecking all items: 89:/run/ cloud-init# cat /etc/cloud/ cloud.cfg. d/90_dpkg. cfg
root@15-
# to update this file, run dpkg-reconfigure cloud-init
datasource_list: [ ]
# maas datasource config file, written to by MAAS: 89:/run/ cloud-init# cat /etc/cloud/ cloud.cfg. d/90_dpkg_ maas.cfg {maas-metadata- url,/maas- metadata- credentials} 10.0.5. 5:5240/ MAAS/metadata/ ', 6SrErnqeK2z9LH2 Dj}
root@15-
# written by cloud-init debian package per preseed entries
# cloud-init/
datasource:
MAAS: {consumer_key: L8SxaFb29L3rzc3Vw8, metadata_url: 'http://
token_key: 92LGSD8NBTHbD7n7T8, token_secret: FAbznaWcx72ryaK
# let's call ds-identify: 89:/run/ cloud-init# unset DS_MAIN 89:/run/ cloud-init# /usr/lib/ cloud-init/ ds-identify
root@15-
root@15-
# and we have no MAAS in cloud.cfg (somehow it thinks ec2 could be a candidate): 89:/run/ cloud-init# cat cloud.cfg
root@15-
di_report:
datasource_list: [ Ec2, None ]
datasource: {Ec2: {strict_id: "warn"}}
# the ds-identify log file has 89:/run/ cloud-init# cat ds-identify.log
root@15-
(...)
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: g61eb03fe- 0ubuntu1~ 16.04.1 500 br.archive. ubuntu. com/ubuntu xenial- proposed/ main amd64 Packages
*** 0.7.9-90-
500 http://
90_dpkg.cfg still has an empty list: 89:/run/ cloud-init# cat /etc/cloud/ cloud.cfg. d/90_dpkg. cfg
root@15-
# to update this file, run dpkg-reconfigure cloud-init
datasource_list: [ ]
And repeat the steps. This time I get: 89:/run/ cloud-init# cat cloud.cfg
root@15-
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