identify brightbox platform to enable Ec2 datasource
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Unassigned | ||
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Brightbox provides an EC2 Metadata service lookalike, and that is how cloud-init
gets metadata on their platform.
In an effort to avoid polling metadata services in cloud-init we will disable
attempts to reach the MD without positive identification of the cloud.
We need to be able to positively identify that the host platform is
brightbox so we can safely assume there will be a metadata service there.
The easiest thing is for Brightbox to put something in dmi tables that identify
their platform. See bug 1660385 for more information and for how Amazon does
this.
Related bugs
bug 1660385: Alert user of Ec2 Datasource on lookalike cloud
bug 1661797: identify lxd-nova platform to enable Openstack datasource
bug 1661693: identify brightbox platform to enable Ec2 datasource
bug 1663304: identify openstack kvm platform on arm64
bug 1663315: identify openstack kvm platform on ppc64
Related branches
- Server Team CI bot: Needs Fixing (continuous-integration)
- cloud-init Commiters: Pending requested
-
Diff: 597 lines (+365/-41)3 files modifiedcloudinit/sources/DataSourceAliYun.py (+4/-0)
cloudinit/sources/DataSourceEc2.py (+177/-2)
tools/ds-identify (+184/-39)
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
description: | updated |
Changed in cloud-init: | |
status: | Confirmed → Fix Committed |
Changed in cloud-init (Ubuntu): | |
status: | New → Fix Released |
importance: | Undecided → Medium |
tags: | added: dsid |
tags: | added: id-5893565c611597333b35fa8b |
There isn't a standard way of identifying cloud platforms from what I can see. Are you going to be maintaining a list of the myriad of different mechanisms?
What's the driver for doing this? Is there a newer way of getting metadata into Ubuntu?