Verified this is working on brightbox now.  Thanks for your cooperation
and help, Neil.

Booted img-foxkf
(com.ubuntu.cloud:daily:download/com.ubuntu.cloud.daily:server:17.04:amd64/20170228.1/disk1.img)

inside:
$ cat /etc/cloud/build.info 
build_name: server
serial: 20170228.1

$ dpkg-query --show cloud-init
cloud-init  0.7.9-38-g83606ae-0ubuntu1

$ grep brightbox -i /var/log/cloud-init.log 
2017-03-01 19:17:17,514 - util.py[DEBUG]: dmi data 
/sys/class/dmi/id/product_serial returned srv-fajvm.gb1.brightbox.com
2017-03-01 19:17:17,514 - DataSourceEc2.py[DEBUG]: strict_mode: warn, 
cloud_platform=Brightbox
2017-03-01 19:17:19,755 - cc_set_hostname.py[DEBUG]: Setting the hostname to 
srv-fajvm.gb1.brightbox.com (srv-fajvm)
2017-03-01 19:17:19,764 - cc_update_hostname.py[DEBUG]: Updating hostname to 
srv-fajvm.gb1.brightbox.com (srv-fajvm)


$ grep -i ec2 /run/cloud-init/ds-identify.log
/etc/cloud/cloud.cfg.d/90_dpkg.cfg set datasource_list: [ NoCloud, ConfigDrive, 
OpenNebula, DigitalOcean, Azure, AltCloud, OVF, MAAS, GCE, OpenStack, 
CloudSigma, SmartOS, Ec2, CloudStack, None ]
DSLIST=NoCloud ConfigDrive OpenNebula DigitalOcean Azure AltCloud OVF MAAS GCE 
OpenStack CloudSigma SmartOS Ec2 CloudStack None
ec2 platform is 'Brightbox'.
check for 'Ec2' returned found
Found single datasource: Ec2

$ ( cd /sys/class/dmi/id && sudo grep -r . . ) 2>/dev/null
./product_serial:srv-fajvm.gb1.brightbox.com
./bios_vendor:Seabios
./product_version:RHEL 6.6.0 PC
./power/runtime_active_kids:0
./power/runtime_suspended_time:0
./power/runtime_enabled:disabled
./power/runtime_active_time:0
./power/control:auto
./power/async:disabled
./power/runtime_usage:0
./power/runtime_status:unsupported
./chassis_vendor:Red Hat
./modalias:dmi:bvnSeabios:bvr0.5.1:bd01/01/2007:svnRedHat:pnKVM:pvrRHEL6.6.0PC:cvnRedHat:ct1:cvr:
./product_uuid:D5BF3AE9-7D9C-2923-0B1E-B0ED967E7DF0
./bios_version:0.5.1
./sys_vendor:Red Hat
./chassis_type:1
./uevent:MODALIAS=dmi:bvnSeabios:bvr0.5.1:bd01/01/2007:svnRedHat:pnKVM:pvrRHEL6.6.0PC:cvnRedHat:ct1:cvr:
./product_name:KVM
./bios_date:01/01/2007

$ cat /var/lib/cloud/data/instance-id
srv-fajvm

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

Title:
  identify brightbox platform to enable Ec2 datasource

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

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

Reply via email to